go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/buildbucket/proto/field_option.pb.go (about) 1 // Copyright 2022 The LUCI Authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.32.0 18 // protoc v3.21.7 19 // source: go.chromium.org/luci/buildbucket/proto/field_option.proto 20 21 package buildbucketpb 22 23 import ( 24 annotations "google.golang.org/genproto/googleapis/api/annotations" 25 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 26 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 27 descriptorpb "google.golang.org/protobuf/types/descriptorpb" 28 reflect "reflect" 29 sync "sync" 30 ) 31 32 const ( 33 // Verify that this generated code is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 35 // Verify that runtime/protoimpl is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 37 ) 38 39 type CreateBuildFieldOption struct { 40 state protoimpl.MessageState 41 sizeCache protoimpl.SizeCache 42 unknownFields protoimpl.UnknownFields 43 44 FieldBehavior annotations.FieldBehavior `protobuf:"varint,1,opt,name=field_behavior,json=fieldBehavior,proto3,enum=google.api.FieldBehavior" json:"field_behavior,omitempty"` 45 } 46 47 func (x *CreateBuildFieldOption) Reset() { 48 *x = CreateBuildFieldOption{} 49 if protoimpl.UnsafeEnabled { 50 mi := &file_go_chromium_org_luci_buildbucket_proto_field_option_proto_msgTypes[0] 51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 52 ms.StoreMessageInfo(mi) 53 } 54 } 55 56 func (x *CreateBuildFieldOption) String() string { 57 return protoimpl.X.MessageStringOf(x) 58 } 59 60 func (*CreateBuildFieldOption) ProtoMessage() {} 61 62 func (x *CreateBuildFieldOption) ProtoReflect() protoreflect.Message { 63 mi := &file_go_chromium_org_luci_buildbucket_proto_field_option_proto_msgTypes[0] 64 if protoimpl.UnsafeEnabled && x != nil { 65 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 66 if ms.LoadMessageInfo() == nil { 67 ms.StoreMessageInfo(mi) 68 } 69 return ms 70 } 71 return mi.MessageOf(x) 72 } 73 74 // Deprecated: Use CreateBuildFieldOption.ProtoReflect.Descriptor instead. 75 func (*CreateBuildFieldOption) Descriptor() ([]byte, []int) { 76 return file_go_chromium_org_luci_buildbucket_proto_field_option_proto_rawDescGZIP(), []int{0} 77 } 78 79 func (x *CreateBuildFieldOption) GetFieldBehavior() annotations.FieldBehavior { 80 if x != nil { 81 return x.FieldBehavior 82 } 83 return annotations.FieldBehavior(0) 84 } 85 86 var file_go_chromium_org_luci_buildbucket_proto_field_option_proto_extTypes = []protoimpl.ExtensionInfo{ 87 { 88 ExtendedType: (*descriptorpb.FieldOptions)(nil), 89 ExtensionType: (*CreateBuildFieldOption)(nil), 90 Field: 54321, 91 Name: "buildbucket.v2.create_build_field_option", 92 Tag: "bytes,54321,opt,name=create_build_field_option", 93 Filename: "go.chromium.org/luci/buildbucket/proto/field_option.proto", 94 }, 95 { 96 ExtendedType: (*descriptorpb.FieldOptions)(nil), 97 ExtensionType: ([]string)(nil), 98 Field: 54323, 99 Name: "buildbucket.v2.required_by_rpc", 100 Tag: "bytes,54323,rep,name=required_by_rpc", 101 Filename: "go.chromium.org/luci/buildbucket/proto/field_option.proto", 102 }, 103 } 104 105 // Extension fields to descriptorpb.FieldOptions. 106 var ( 107 // optional buildbucket.v2.CreateBuildFieldOption create_build_field_option = 54321; 108 E_CreateBuildFieldOption = &file_go_chromium_org_luci_buildbucket_proto_field_option_proto_extTypes[0] 109 // Custom repeatable field option that allows user to require some fields for 110 // a specific rpc. Set this value equal to RPC when using protowalk Field 111 // Processor. 112 // 113 // repeated string required_by_rpc = 54323; 114 E_RequiredByRpc = &file_go_chromium_org_luci_buildbucket_proto_field_option_proto_extTypes[1] 115 ) 116 117 var File_go_chromium_org_luci_buildbucket_proto_field_option_proto protoreflect.FileDescriptor 118 119 var file_go_chromium_org_luci_buildbucket_proto_field_option_proto_rawDesc = []byte{ 120 0x0a, 0x39, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 121 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 122 0x65, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6f, 123 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x75, 0x69, 124 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 125 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 126 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 127 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 128 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5a, 129 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x46, 0x69, 0x65, 130 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x0e, 0x66, 0x69, 0x65, 0x6c, 131 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 132 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x46, 0x69, 133 0x65, 0x6c, 0x64, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x52, 0x0d, 0x66, 0x69, 0x65, 134 0x6c, 0x64, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x3a, 0x82, 0x01, 0x0a, 0x19, 0x63, 135 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, 136 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 137 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 138 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xb1, 0xa8, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 139 0x26, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 140 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x46, 0x69, 0x65, 0x6c, 141 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 142 0x75, 0x69, 0x6c, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 143 0x47, 0x0a, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, 0x72, 144 0x70, 0x63, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 145 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 146 0x73, 0x18, 0xb3, 0xa8, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x69, 147 0x72, 0x65, 0x64, 0x42, 0x79, 0x52, 0x70, 0x63, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x63, 148 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 149 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2f, 0x70, 0x72, 0x6f, 150 0x74, 0x6f, 0x3b, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x70, 0x62, 151 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 152 } 153 154 var ( 155 file_go_chromium_org_luci_buildbucket_proto_field_option_proto_rawDescOnce sync.Once 156 file_go_chromium_org_luci_buildbucket_proto_field_option_proto_rawDescData = file_go_chromium_org_luci_buildbucket_proto_field_option_proto_rawDesc 157 ) 158 159 func file_go_chromium_org_luci_buildbucket_proto_field_option_proto_rawDescGZIP() []byte { 160 file_go_chromium_org_luci_buildbucket_proto_field_option_proto_rawDescOnce.Do(func() { 161 file_go_chromium_org_luci_buildbucket_proto_field_option_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_buildbucket_proto_field_option_proto_rawDescData) 162 }) 163 return file_go_chromium_org_luci_buildbucket_proto_field_option_proto_rawDescData 164 } 165 166 var file_go_chromium_org_luci_buildbucket_proto_field_option_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 167 var file_go_chromium_org_luci_buildbucket_proto_field_option_proto_goTypes = []interface{}{ 168 (*CreateBuildFieldOption)(nil), // 0: buildbucket.v2.CreateBuildFieldOption 169 (annotations.FieldBehavior)(0), // 1: google.api.FieldBehavior 170 (*descriptorpb.FieldOptions)(nil), // 2: google.protobuf.FieldOptions 171 } 172 var file_go_chromium_org_luci_buildbucket_proto_field_option_proto_depIdxs = []int32{ 173 1, // 0: buildbucket.v2.CreateBuildFieldOption.field_behavior:type_name -> google.api.FieldBehavior 174 2, // 1: buildbucket.v2.create_build_field_option:extendee -> google.protobuf.FieldOptions 175 2, // 2: buildbucket.v2.required_by_rpc:extendee -> google.protobuf.FieldOptions 176 0, // 3: buildbucket.v2.create_build_field_option:type_name -> buildbucket.v2.CreateBuildFieldOption 177 4, // [4:4] is the sub-list for method output_type 178 4, // [4:4] is the sub-list for method input_type 179 3, // [3:4] is the sub-list for extension type_name 180 1, // [1:3] is the sub-list for extension extendee 181 0, // [0:1] is the sub-list for field type_name 182 } 183 184 func init() { file_go_chromium_org_luci_buildbucket_proto_field_option_proto_init() } 185 func file_go_chromium_org_luci_buildbucket_proto_field_option_proto_init() { 186 if File_go_chromium_org_luci_buildbucket_proto_field_option_proto != nil { 187 return 188 } 189 if !protoimpl.UnsafeEnabled { 190 file_go_chromium_org_luci_buildbucket_proto_field_option_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 191 switch v := v.(*CreateBuildFieldOption); i { 192 case 0: 193 return &v.state 194 case 1: 195 return &v.sizeCache 196 case 2: 197 return &v.unknownFields 198 default: 199 return nil 200 } 201 } 202 } 203 type x struct{} 204 out := protoimpl.TypeBuilder{ 205 File: protoimpl.DescBuilder{ 206 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 207 RawDescriptor: file_go_chromium_org_luci_buildbucket_proto_field_option_proto_rawDesc, 208 NumEnums: 0, 209 NumMessages: 1, 210 NumExtensions: 2, 211 NumServices: 0, 212 }, 213 GoTypes: file_go_chromium_org_luci_buildbucket_proto_field_option_proto_goTypes, 214 DependencyIndexes: file_go_chromium_org_luci_buildbucket_proto_field_option_proto_depIdxs, 215 MessageInfos: file_go_chromium_org_luci_buildbucket_proto_field_option_proto_msgTypes, 216 ExtensionInfos: file_go_chromium_org_luci_buildbucket_proto_field_option_proto_extTypes, 217 }.Build() 218 File_go_chromium_org_luci_buildbucket_proto_field_option_proto = out.File 219 file_go_chromium_org_luci_buildbucket_proto_field_option_proto_rawDesc = nil 220 file_go_chromium_org_luci_buildbucket_proto_field_option_proto_goTypes = nil 221 file_go_chromium_org_luci_buildbucket_proto_field_option_proto_depIdxs = nil 222 }