go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/common/proto/options.pb.go (about) 1 // Copyright 2019 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 // Defining extensions is supported in proto2 syntax only. 16 17 // Code generated by protoc-gen-go. DO NOT EDIT. 18 // versions: 19 // protoc-gen-go v1.31.0 20 // protoc v3.21.7 21 // source: go.chromium.org/luci/common/proto/options.proto 22 23 package proto 24 25 import ( 26 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 27 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 28 descriptorpb "google.golang.org/protobuf/types/descriptorpb" 29 reflect "reflect" 30 sync "sync" 31 ) 32 33 const ( 34 // Verify that this generated code is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 36 // Verify that runtime/protoimpl is sufficiently up-to-date. 37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 38 ) 39 40 // Type of formatting to apply to a primitive field when converting a message to 41 // TextPB 42 type TextPBFieldFormat int32 43 44 const ( 45 // The default formatting for TextPB for the field 46 TextPBFieldFormat_DEFAULT TextPBFieldFormat = 0 47 // Interpret the field's value as a JSON object and format it across multiple 48 // lines, valid only for string fields 49 TextPBFieldFormat_JSON TextPBFieldFormat = 1 50 ) 51 52 // Enum value maps for TextPBFieldFormat. 53 var ( 54 TextPBFieldFormat_name = map[int32]string{ 55 0: "DEFAULT", 56 1: "JSON", 57 } 58 TextPBFieldFormat_value = map[string]int32{ 59 "DEFAULT": 0, 60 "JSON": 1, 61 } 62 ) 63 64 func (x TextPBFieldFormat) Enum() *TextPBFieldFormat { 65 p := new(TextPBFieldFormat) 66 *p = x 67 return p 68 } 69 70 func (x TextPBFieldFormat) String() string { 71 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 72 } 73 74 func (TextPBFieldFormat) Descriptor() protoreflect.EnumDescriptor { 75 return file_go_chromium_org_luci_common_proto_options_proto_enumTypes[0].Descriptor() 76 } 77 78 func (TextPBFieldFormat) Type() protoreflect.EnumType { 79 return &file_go_chromium_org_luci_common_proto_options_proto_enumTypes[0] 80 } 81 82 func (x TextPBFieldFormat) Number() protoreflect.EnumNumber { 83 return protoreflect.EnumNumber(x) 84 } 85 86 // Deprecated: Do not use. 87 func (x *TextPBFieldFormat) UnmarshalJSON(b []byte) error { 88 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 89 if err != nil { 90 return err 91 } 92 *x = TextPBFieldFormat(num) 93 return nil 94 } 95 96 // Deprecated: Use TextPBFieldFormat.Descriptor instead. 97 func (TextPBFieldFormat) EnumDescriptor() ([]byte, []int) { 98 return file_go_chromium_org_luci_common_proto_options_proto_rawDescGZIP(), []int{0} 99 } 100 101 type Metadata struct { 102 state protoimpl.MessageState 103 sizeCache protoimpl.SizeCache 104 unknownFields protoimpl.UnknownFields 105 106 // URL to a human-readable proto schema definition doc. 107 DocUrl *string `protobuf:"bytes,1,opt,name=doc_url,json=docUrl" json:"doc_url,omitempty"` 108 } 109 110 func (x *Metadata) Reset() { 111 *x = Metadata{} 112 if protoimpl.UnsafeEnabled { 113 mi := &file_go_chromium_org_luci_common_proto_options_proto_msgTypes[0] 114 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 115 ms.StoreMessageInfo(mi) 116 } 117 } 118 119 func (x *Metadata) String() string { 120 return protoimpl.X.MessageStringOf(x) 121 } 122 123 func (*Metadata) ProtoMessage() {} 124 125 func (x *Metadata) ProtoReflect() protoreflect.Message { 126 mi := &file_go_chromium_org_luci_common_proto_options_proto_msgTypes[0] 127 if protoimpl.UnsafeEnabled && x != nil { 128 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 129 if ms.LoadMessageInfo() == nil { 130 ms.StoreMessageInfo(mi) 131 } 132 return ms 133 } 134 return mi.MessageOf(x) 135 } 136 137 // Deprecated: Use Metadata.ProtoReflect.Descriptor instead. 138 func (*Metadata) Descriptor() ([]byte, []int) { 139 return file_go_chromium_org_luci_common_proto_options_proto_rawDescGZIP(), []int{0} 140 } 141 142 func (x *Metadata) GetDocUrl() string { 143 if x != nil && x.DocUrl != nil { 144 return *x.DocUrl 145 } 146 return "" 147 } 148 149 var file_go_chromium_org_luci_common_proto_options_proto_extTypes = []protoimpl.ExtensionInfo{ 150 { 151 ExtendedType: (*descriptorpb.FileOptions)(nil), 152 ExtensionType: (*Metadata)(nil), 153 Field: 73700, 154 Name: "luci.file_metadata", 155 Tag: "bytes,73700,opt,name=file_metadata", 156 Filename: "go.chromium.org/luci/common/proto/options.proto", 157 }, 158 { 159 ExtendedType: (*descriptorpb.FieldOptions)(nil), 160 ExtensionType: (*TextPBFieldFormat)(nil), 161 Field: 73701, 162 Name: "luci.text_pb_format", 163 Tag: "varint,73701,opt,name=text_pb_format,enum=luci.TextPBFieldFormat", 164 Filename: "go.chromium.org/luci/common/proto/options.proto", 165 }, 166 { 167 ExtendedType: (*descriptorpb.FieldOptions)(nil), 168 ExtensionType: (*bool)(nil), 169 Field: 73702, 170 Name: "luci.lucicfg_ignore", 171 Tag: "varint,73702,opt,name=lucicfg_ignore", 172 Filename: "go.chromium.org/luci/common/proto/options.proto", 173 }, 174 } 175 176 // Extension fields to descriptorpb.FileOptions. 177 var ( 178 // Used by lucicfg to populate headers of generated text proto files. 179 // 180 // Usage: 181 // 182 // import "go.chromium.org/luci/common/proto/options.proto"; 183 // 184 // option (luci.file_metadata) = { 185 // doc_url: "https://example.com/schema.md"; 186 // }; 187 // 188 // optional luci.Metadata file_metadata = 73700; 189 E_FileMetadata = &file_go_chromium_org_luci_common_proto_options_proto_extTypes[0] 190 ) 191 192 // Extension fields to descriptorpb.FieldOptions. 193 var ( 194 // Used by lucicfg and textpb package to pretty-print text protos. 195 // 196 // Usage: 197 // 198 // import "go.chromium.org/luci/common/proto/options.proto"; 199 // 200 // message MyMessage { 201 // string my_field = 1 [(luci.text_pb_format) = JSON]; 202 // } 203 // 204 // optional luci.TextPBFieldFormat text_pb_format = 73701; 205 E_TextPbFormat = &file_go_chromium_org_luci_common_proto_options_proto_extTypes[1] 206 // Used by lucicfg to skip comparing fields when making semantic comparison. 207 // 208 // Usage: 209 // 210 // import "go.chromium.org/luci/common/proto/options.proto"; 211 // 212 // message MyMessage { 213 // string my_field = 1 [(luci.lucicfg_ignore) = true]; 214 // } 215 // 216 // optional bool lucicfg_ignore = 73702; 217 E_LucicfgIgnore = &file_go_chromium_org_luci_common_proto_options_proto_extTypes[2] 218 ) 219 220 var File_go_chromium_org_luci_common_proto_options_proto protoreflect.FileDescriptor 221 222 var file_go_chromium_org_luci_common_proto_options_proto_rawDesc = []byte{ 223 0x0a, 0x2f, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 224 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 225 0x6f, 0x74, 0x6f, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 226 0x6f, 0x12, 0x04, 0x6c, 0x75, 0x63, 0x69, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 227 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 228 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x23, 0x0a, 0x08, 0x4d, 0x65, 0x74, 229 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x6f, 0x63, 0x5f, 0x75, 0x72, 0x6c, 230 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x63, 0x55, 0x72, 0x6c, 0x2a, 0x2a, 231 0x0a, 0x11, 0x54, 0x65, 0x78, 0x74, 0x50, 0x42, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x46, 0x6f, 0x72, 232 0x6d, 0x61, 0x74, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 233 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x01, 0x3a, 0x53, 0x0a, 0x0d, 0x66, 0x69, 234 0x6c, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 235 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 236 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe4, 0xbf, 0x04, 0x20, 0x01, 0x28, 237 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 238 0x61, 0x52, 0x0c, 0x66, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x3a, 239 0x5e, 0x0a, 0x0e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x62, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 240 0x74, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 241 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 242 0x18, 0xe5, 0xbf, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 243 0x54, 0x65, 0x78, 0x74, 0x50, 0x42, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x46, 0x6f, 0x72, 0x6d, 0x61, 244 0x74, 0x52, 0x0c, 0x74, 0x65, 0x78, 0x74, 0x50, 0x62, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x3a, 245 0x46, 0x0a, 0x0e, 0x6c, 0x75, 0x63, 0x69, 0x63, 0x66, 0x67, 0x5f, 0x69, 0x67, 0x6e, 0x6f, 0x72, 246 0x65, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 247 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 248 0x18, 0xe6, 0xbf, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x6c, 0x75, 0x63, 0x69, 0x63, 0x66, 249 0x67, 0x49, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x42, 0x23, 0x5a, 0x21, 0x67, 0x6f, 0x2e, 0x63, 0x68, 250 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 251 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 252 } 253 254 var ( 255 file_go_chromium_org_luci_common_proto_options_proto_rawDescOnce sync.Once 256 file_go_chromium_org_luci_common_proto_options_proto_rawDescData = file_go_chromium_org_luci_common_proto_options_proto_rawDesc 257 ) 258 259 func file_go_chromium_org_luci_common_proto_options_proto_rawDescGZIP() []byte { 260 file_go_chromium_org_luci_common_proto_options_proto_rawDescOnce.Do(func() { 261 file_go_chromium_org_luci_common_proto_options_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_common_proto_options_proto_rawDescData) 262 }) 263 return file_go_chromium_org_luci_common_proto_options_proto_rawDescData 264 } 265 266 var file_go_chromium_org_luci_common_proto_options_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 267 var file_go_chromium_org_luci_common_proto_options_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 268 var file_go_chromium_org_luci_common_proto_options_proto_goTypes = []interface{}{ 269 (TextPBFieldFormat)(0), // 0: luci.TextPBFieldFormat 270 (*Metadata)(nil), // 1: luci.Metadata 271 (*descriptorpb.FileOptions)(nil), // 2: google.protobuf.FileOptions 272 (*descriptorpb.FieldOptions)(nil), // 3: google.protobuf.FieldOptions 273 } 274 var file_go_chromium_org_luci_common_proto_options_proto_depIdxs = []int32{ 275 2, // 0: luci.file_metadata:extendee -> google.protobuf.FileOptions 276 3, // 1: luci.text_pb_format:extendee -> google.protobuf.FieldOptions 277 3, // 2: luci.lucicfg_ignore:extendee -> google.protobuf.FieldOptions 278 1, // 3: luci.file_metadata:type_name -> luci.Metadata 279 0, // 4: luci.text_pb_format:type_name -> luci.TextPBFieldFormat 280 5, // [5:5] is the sub-list for method output_type 281 5, // [5:5] is the sub-list for method input_type 282 3, // [3:5] is the sub-list for extension type_name 283 0, // [0:3] is the sub-list for extension extendee 284 0, // [0:0] is the sub-list for field type_name 285 } 286 287 func init() { file_go_chromium_org_luci_common_proto_options_proto_init() } 288 func file_go_chromium_org_luci_common_proto_options_proto_init() { 289 if File_go_chromium_org_luci_common_proto_options_proto != nil { 290 return 291 } 292 if !protoimpl.UnsafeEnabled { 293 file_go_chromium_org_luci_common_proto_options_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 294 switch v := v.(*Metadata); i { 295 case 0: 296 return &v.state 297 case 1: 298 return &v.sizeCache 299 case 2: 300 return &v.unknownFields 301 default: 302 return nil 303 } 304 } 305 } 306 type x struct{} 307 out := protoimpl.TypeBuilder{ 308 File: protoimpl.DescBuilder{ 309 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 310 RawDescriptor: file_go_chromium_org_luci_common_proto_options_proto_rawDesc, 311 NumEnums: 1, 312 NumMessages: 1, 313 NumExtensions: 3, 314 NumServices: 0, 315 }, 316 GoTypes: file_go_chromium_org_luci_common_proto_options_proto_goTypes, 317 DependencyIndexes: file_go_chromium_org_luci_common_proto_options_proto_depIdxs, 318 EnumInfos: file_go_chromium_org_luci_common_proto_options_proto_enumTypes, 319 MessageInfos: file_go_chromium_org_luci_common_proto_options_proto_msgTypes, 320 ExtensionInfos: file_go_chromium_org_luci_common_proto_options_proto_extTypes, 321 }.Build() 322 File_go_chromium_org_luci_common_proto_options_proto = out.File 323 file_go_chromium_org_luci_common_proto_options_proto_rawDesc = nil 324 file_go_chromium_org_luci_common_proto_options_proto_goTypes = nil 325 file_go_chromium_org_luci_common_proto_options_proto_depIdxs = nil 326 }