// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: v1/request/event_query.proto package request import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf func (this *EventQueryByKeysRequest) Validate() error { if this.DatabaseID == "" { return github_com_mwitkow_go_proto_validators.FieldError("DatabaseID", fmt.Errorf(`value '%v' must not be an empty string`, this.DatabaseID)) } if this.TablePrefixWithSchema == "" { return github_com_mwitkow_go_proto_validators.FieldError("TablePrefixWithSchema", fmt.Errorf(`value '%v' must not be an empty string`, this.TablePrefixWithSchema)) } if len(this.KeyValues) < 1 { return github_com_mwitkow_go_proto_validators.FieldError("KeyValues", fmt.Errorf(`value '%v' must contain at least 1 elements`, this.KeyValues)) } return nil } func (this *CommonEventQueryRequest) Validate() error { if this.DatabaseID == "" { return github_com_mwitkow_go_proto_validators.FieldError("DatabaseID", fmt.Errorf(`value '%v' must not be an empty string`, this.DatabaseID)) } if this.TablePrefixWithSchema == "" { return github_com_mwitkow_go_proto_validators.FieldError("TablePrefixWithSchema", fmt.Errorf(`value '%v' must not be an empty string`, this.TablePrefixWithSchema)) } return nil } func (this *CountEventByKeysRequest) Validate() error { if this.DatabaseID == "" { return github_com_mwitkow_go_proto_validators.FieldError("DatabaseID", fmt.Errorf(`value '%v' must not be an empty string`, this.DatabaseID)) } if this.TablePrefixWithSchema == "" { return github_com_mwitkow_go_proto_validators.FieldError("TablePrefixWithSchema", fmt.Errorf(`value '%v' must not be an empty string`, this.TablePrefixWithSchema)) } if len(this.KeyValues) < 1 { return github_com_mwitkow_go_proto_validators.FieldError("KeyValues", fmt.Errorf(`value '%v' must contain at least 1 elements`, this.KeyValues)) } return nil } func (this *CommonCountEventRequest) Validate() error { if this.DatabaseID == "" { return github_com_mwitkow_go_proto_validators.FieldError("DatabaseID", fmt.Errorf(`value '%v' must not be an empty string`, this.DatabaseID)) } if this.TablePrefixWithSchema == "" { return github_com_mwitkow_go_proto_validators.FieldError("TablePrefixWithSchema", fmt.Errorf(`value '%v' must not be an empty string`, this.TablePrefixWithSchema)) } return nil }