github.com/erda-project/erda-infra@v1.0.9/providers/component-protocol/protobuf/proto-go/cp/pb/protocol.validator.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: protocol.proto 3 4 package pb 5 6 import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11 github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" 12 _ "google.golang.org/genproto/googleapis/api/annotations" 13 _ "google.golang.org/protobuf/types/known/structpb" 14 ) 15 16 // Reference imports to suppress errors if they are not otherwise used. 17 var _ = proto.Marshal 18 var _ = fmt.Errorf 19 var _ = math.Inf 20 21 func (this *ComponentProtocol) Validate() error { 22 // Validation of proto3 map<> fields is unsupported. 23 if this.Hierarchy != nil { 24 if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Hierarchy); err != nil { 25 return github_com_mwitkow_go_proto_validators.FieldError("Hierarchy", err) 26 } 27 } 28 // Validation of proto3 map<> fields is unsupported. 29 // Validation of proto3 map<> fields is unsupported. 30 if this.Options != nil { 31 if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Options); err != nil { 32 return github_com_mwitkow_go_proto_validators.FieldError("Options", err) 33 } 34 } 35 return nil 36 } 37 func (this *Hierarchy) Validate() error { 38 // Validation of proto3 map<> fields is unsupported. 39 // Validation of proto3 map<> fields is unsupported. 40 return nil 41 } 42 func (this *Component) Validate() error { 43 if this.Props != nil { 44 if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Props); err != nil { 45 return github_com_mwitkow_go_proto_validators.FieldError("Props", err) 46 } 47 } 48 // Validation of proto3 map<> fields is unsupported. 49 // Validation of proto3 map<> fields is unsupported. 50 // Validation of proto3 map<> fields is unsupported. 51 if this.Options != nil { 52 if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Options); err != nil { 53 return github_com_mwitkow_go_proto_validators.FieldError("Options", err) 54 } 55 } 56 return nil 57 } 58 func (this *ComponentOptions) Validate() error { 59 return nil 60 } 61 func (this *Scenario) Validate() error { 62 return nil 63 } 64 func (this *ComponentEvent) Validate() error { 65 // Validation of proto3 map<> fields is unsupported. 66 return nil 67 } 68 func (this *DebugOptions) Validate() error { 69 return nil 70 } 71 func (this *ProtocolOptions) Validate() error { 72 return nil 73 } 74 func (this *RenderRequest) Validate() error { 75 if this.Scenario != nil { 76 if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Scenario); err != nil { 77 return github_com_mwitkow_go_proto_validators.FieldError("Scenario", err) 78 } 79 } 80 if this.Event != nil { 81 if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Event); err != nil { 82 return github_com_mwitkow_go_proto_validators.FieldError("Event", err) 83 } 84 } 85 // Validation of proto3 map<> fields is unsupported. 86 if this.Protocol != nil { 87 if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Protocol); err != nil { 88 return github_com_mwitkow_go_proto_validators.FieldError("Protocol", err) 89 } 90 } 91 if this.DebugOptions != nil { 92 if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.DebugOptions); err != nil { 93 return github_com_mwitkow_go_proto_validators.FieldError("DebugOptions", err) 94 } 95 } 96 return nil 97 } 98 func (this *RenderResponse) Validate() error { 99 if this.Scenario != nil { 100 if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Scenario); err != nil { 101 return github_com_mwitkow_go_proto_validators.FieldError("Scenario", err) 102 } 103 } 104 if this.Protocol != nil { 105 if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Protocol); err != nil { 106 return github_com_mwitkow_go_proto_validators.FieldError("Protocol", err) 107 } 108 } 109 return nil 110 } 111 func (this *IdentityInfo) Validate() error { 112 return nil 113 }