label.pb.go 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. // Copyright 2023 Google LLC
  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. // Code generated by protoc-gen-go. DO NOT EDIT.
  15. // versions:
  16. // protoc-gen-go v1.26.0
  17. // protoc v3.21.9
  18. // source: google/api/label.proto
  19. package label
  20. import (
  21. reflect "reflect"
  22. sync "sync"
  23. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  24. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  25. )
  26. const (
  27. // Verify that this generated code is sufficiently up-to-date.
  28. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  29. // Verify that runtime/protoimpl is sufficiently up-to-date.
  30. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  31. )
  32. // Value types that can be used as label values.
  33. type LabelDescriptor_ValueType int32
  34. const (
  35. // A variable-length string. This is the default.
  36. LabelDescriptor_STRING LabelDescriptor_ValueType = 0
  37. // Boolean; true or false.
  38. LabelDescriptor_BOOL LabelDescriptor_ValueType = 1
  39. // A 64-bit signed integer.
  40. LabelDescriptor_INT64 LabelDescriptor_ValueType = 2
  41. )
  42. // Enum value maps for LabelDescriptor_ValueType.
  43. var (
  44. LabelDescriptor_ValueType_name = map[int32]string{
  45. 0: "STRING",
  46. 1: "BOOL",
  47. 2: "INT64",
  48. }
  49. LabelDescriptor_ValueType_value = map[string]int32{
  50. "STRING": 0,
  51. "BOOL": 1,
  52. "INT64": 2,
  53. }
  54. )
  55. func (x LabelDescriptor_ValueType) Enum() *LabelDescriptor_ValueType {
  56. p := new(LabelDescriptor_ValueType)
  57. *p = x
  58. return p
  59. }
  60. func (x LabelDescriptor_ValueType) String() string {
  61. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  62. }
  63. func (LabelDescriptor_ValueType) Descriptor() protoreflect.EnumDescriptor {
  64. return file_google_api_label_proto_enumTypes[0].Descriptor()
  65. }
  66. func (LabelDescriptor_ValueType) Type() protoreflect.EnumType {
  67. return &file_google_api_label_proto_enumTypes[0]
  68. }
  69. func (x LabelDescriptor_ValueType) Number() protoreflect.EnumNumber {
  70. return protoreflect.EnumNumber(x)
  71. }
  72. // Deprecated: Use LabelDescriptor_ValueType.Descriptor instead.
  73. func (LabelDescriptor_ValueType) EnumDescriptor() ([]byte, []int) {
  74. return file_google_api_label_proto_rawDescGZIP(), []int{0, 0}
  75. }
  76. // A description of a label.
  77. type LabelDescriptor struct {
  78. state protoimpl.MessageState
  79. sizeCache protoimpl.SizeCache
  80. unknownFields protoimpl.UnknownFields
  81. // The label key.
  82. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  83. // The type of data that can be assigned to the label.
  84. ValueType LabelDescriptor_ValueType `protobuf:"varint,2,opt,name=value_type,json=valueType,proto3,enum=google.api.LabelDescriptor_ValueType" json:"value_type,omitempty"`
  85. // A human-readable description for the label.
  86. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  87. }
  88. func (x *LabelDescriptor) Reset() {
  89. *x = LabelDescriptor{}
  90. if protoimpl.UnsafeEnabled {
  91. mi := &file_google_api_label_proto_msgTypes[0]
  92. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  93. ms.StoreMessageInfo(mi)
  94. }
  95. }
  96. func (x *LabelDescriptor) String() string {
  97. return protoimpl.X.MessageStringOf(x)
  98. }
  99. func (*LabelDescriptor) ProtoMessage() {}
  100. func (x *LabelDescriptor) ProtoReflect() protoreflect.Message {
  101. mi := &file_google_api_label_proto_msgTypes[0]
  102. if protoimpl.UnsafeEnabled && x != nil {
  103. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  104. if ms.LoadMessageInfo() == nil {
  105. ms.StoreMessageInfo(mi)
  106. }
  107. return ms
  108. }
  109. return mi.MessageOf(x)
  110. }
  111. // Deprecated: Use LabelDescriptor.ProtoReflect.Descriptor instead.
  112. func (*LabelDescriptor) Descriptor() ([]byte, []int) {
  113. return file_google_api_label_proto_rawDescGZIP(), []int{0}
  114. }
  115. func (x *LabelDescriptor) GetKey() string {
  116. if x != nil {
  117. return x.Key
  118. }
  119. return ""
  120. }
  121. func (x *LabelDescriptor) GetValueType() LabelDescriptor_ValueType {
  122. if x != nil {
  123. return x.ValueType
  124. }
  125. return LabelDescriptor_STRING
  126. }
  127. func (x *LabelDescriptor) GetDescription() string {
  128. if x != nil {
  129. return x.Description
  130. }
  131. return ""
  132. }
  133. var File_google_api_label_proto protoreflect.FileDescriptor
  134. var file_google_api_label_proto_rawDesc = []byte{
  135. 0x0a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x61, 0x62,
  136. 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  137. 0x2e, 0x61, 0x70, 0x69, 0x22, 0xb9, 0x01, 0x0a, 0x0f, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x44, 0x65,
  138. 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
  139. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44, 0x0a, 0x0a, 0x76, 0x61,
  140. 0x6c, 0x75, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25,
  141. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x61, 0x62, 0x65,
  142. 0x6c, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x56, 0x61, 0x6c, 0x75,
  143. 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65,
  144. 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
  145. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
  146. 0x6f, 0x6e, 0x22, 0x2c, 0x0a, 0x09, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12,
  147. 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x42,
  148. 0x4f, 0x4f, 0x4c, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x02,
  149. 0x42, 0x5f, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61,
  150. 0x70, 0x69, 0x42, 0x0a, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
  151. 0x5a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
  152. 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f,
  153. 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x61, 0x62, 0x65,
  154. 0x6c, 0x3b, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50,
  155. 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  156. }
  157. var (
  158. file_google_api_label_proto_rawDescOnce sync.Once
  159. file_google_api_label_proto_rawDescData = file_google_api_label_proto_rawDesc
  160. )
  161. func file_google_api_label_proto_rawDescGZIP() []byte {
  162. file_google_api_label_proto_rawDescOnce.Do(func() {
  163. file_google_api_label_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_label_proto_rawDescData)
  164. })
  165. return file_google_api_label_proto_rawDescData
  166. }
  167. var file_google_api_label_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  168. var file_google_api_label_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  169. var file_google_api_label_proto_goTypes = []interface{}{
  170. (LabelDescriptor_ValueType)(0), // 0: google.api.LabelDescriptor.ValueType
  171. (*LabelDescriptor)(nil), // 1: google.api.LabelDescriptor
  172. }
  173. var file_google_api_label_proto_depIdxs = []int32{
  174. 0, // 0: google.api.LabelDescriptor.value_type:type_name -> google.api.LabelDescriptor.ValueType
  175. 1, // [1:1] is the sub-list for method output_type
  176. 1, // [1:1] is the sub-list for method input_type
  177. 1, // [1:1] is the sub-list for extension type_name
  178. 1, // [1:1] is the sub-list for extension extendee
  179. 0, // [0:1] is the sub-list for field type_name
  180. }
  181. func init() { file_google_api_label_proto_init() }
  182. func file_google_api_label_proto_init() {
  183. if File_google_api_label_proto != nil {
  184. return
  185. }
  186. if !protoimpl.UnsafeEnabled {
  187. file_google_api_label_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  188. switch v := v.(*LabelDescriptor); i {
  189. case 0:
  190. return &v.state
  191. case 1:
  192. return &v.sizeCache
  193. case 2:
  194. return &v.unknownFields
  195. default:
  196. return nil
  197. }
  198. }
  199. }
  200. type x struct{}
  201. out := protoimpl.TypeBuilder{
  202. File: protoimpl.DescBuilder{
  203. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  204. RawDescriptor: file_google_api_label_proto_rawDesc,
  205. NumEnums: 1,
  206. NumMessages: 1,
  207. NumExtensions: 0,
  208. NumServices: 0,
  209. },
  210. GoTypes: file_google_api_label_proto_goTypes,
  211. DependencyIndexes: file_google_api_label_proto_depIdxs,
  212. EnumInfos: file_google_api_label_proto_enumTypes,
  213. MessageInfos: file_google_api_label_proto_msgTypes,
  214. }.Build()
  215. File_google_api_label_proto = out.File
  216. file_google_api_label_proto_rawDesc = nil
  217. file_google_api_label_proto_goTypes = nil
  218. file_google_api_label_proto_depIdxs = nil
  219. }