value.pb.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721
  1. // Copyright 2022 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.5
  18. // source: google/api/expr/v1alpha1/value.proto
  19. package expr
  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. anypb "google.golang.org/protobuf/types/known/anypb"
  26. structpb "google.golang.org/protobuf/types/known/structpb"
  27. )
  28. const (
  29. // Verify that this generated code is sufficiently up-to-date.
  30. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  31. // Verify that runtime/protoimpl is sufficiently up-to-date.
  32. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  33. )
  34. // Represents a CEL value.
  35. //
  36. // This is similar to `google.protobuf.Value`, but can represent CEL's full
  37. // range of values.
  38. type Value struct {
  39. state protoimpl.MessageState
  40. sizeCache protoimpl.SizeCache
  41. unknownFields protoimpl.UnknownFields
  42. // Required. The valid kinds of values.
  43. //
  44. // Types that are assignable to Kind:
  45. //
  46. // *Value_NullValue
  47. // *Value_BoolValue
  48. // *Value_Int64Value
  49. // *Value_Uint64Value
  50. // *Value_DoubleValue
  51. // *Value_StringValue
  52. // *Value_BytesValue
  53. // *Value_EnumValue
  54. // *Value_ObjectValue
  55. // *Value_MapValue
  56. // *Value_ListValue
  57. // *Value_TypeValue
  58. Kind isValue_Kind `protobuf_oneof:"kind"`
  59. }
  60. func (x *Value) Reset() {
  61. *x = Value{}
  62. if protoimpl.UnsafeEnabled {
  63. mi := &file_google_api_expr_v1alpha1_value_proto_msgTypes[0]
  64. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  65. ms.StoreMessageInfo(mi)
  66. }
  67. }
  68. func (x *Value) String() string {
  69. return protoimpl.X.MessageStringOf(x)
  70. }
  71. func (*Value) ProtoMessage() {}
  72. func (x *Value) ProtoReflect() protoreflect.Message {
  73. mi := &file_google_api_expr_v1alpha1_value_proto_msgTypes[0]
  74. if protoimpl.UnsafeEnabled && x != nil {
  75. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  76. if ms.LoadMessageInfo() == nil {
  77. ms.StoreMessageInfo(mi)
  78. }
  79. return ms
  80. }
  81. return mi.MessageOf(x)
  82. }
  83. // Deprecated: Use Value.ProtoReflect.Descriptor instead.
  84. func (*Value) Descriptor() ([]byte, []int) {
  85. return file_google_api_expr_v1alpha1_value_proto_rawDescGZIP(), []int{0}
  86. }
  87. func (m *Value) GetKind() isValue_Kind {
  88. if m != nil {
  89. return m.Kind
  90. }
  91. return nil
  92. }
  93. func (x *Value) GetNullValue() structpb.NullValue {
  94. if x, ok := x.GetKind().(*Value_NullValue); ok {
  95. return x.NullValue
  96. }
  97. return structpb.NullValue_NULL_VALUE
  98. }
  99. func (x *Value) GetBoolValue() bool {
  100. if x, ok := x.GetKind().(*Value_BoolValue); ok {
  101. return x.BoolValue
  102. }
  103. return false
  104. }
  105. func (x *Value) GetInt64Value() int64 {
  106. if x, ok := x.GetKind().(*Value_Int64Value); ok {
  107. return x.Int64Value
  108. }
  109. return 0
  110. }
  111. func (x *Value) GetUint64Value() uint64 {
  112. if x, ok := x.GetKind().(*Value_Uint64Value); ok {
  113. return x.Uint64Value
  114. }
  115. return 0
  116. }
  117. func (x *Value) GetDoubleValue() float64 {
  118. if x, ok := x.GetKind().(*Value_DoubleValue); ok {
  119. return x.DoubleValue
  120. }
  121. return 0
  122. }
  123. func (x *Value) GetStringValue() string {
  124. if x, ok := x.GetKind().(*Value_StringValue); ok {
  125. return x.StringValue
  126. }
  127. return ""
  128. }
  129. func (x *Value) GetBytesValue() []byte {
  130. if x, ok := x.GetKind().(*Value_BytesValue); ok {
  131. return x.BytesValue
  132. }
  133. return nil
  134. }
  135. func (x *Value) GetEnumValue() *EnumValue {
  136. if x, ok := x.GetKind().(*Value_EnumValue); ok {
  137. return x.EnumValue
  138. }
  139. return nil
  140. }
  141. func (x *Value) GetObjectValue() *anypb.Any {
  142. if x, ok := x.GetKind().(*Value_ObjectValue); ok {
  143. return x.ObjectValue
  144. }
  145. return nil
  146. }
  147. func (x *Value) GetMapValue() *MapValue {
  148. if x, ok := x.GetKind().(*Value_MapValue); ok {
  149. return x.MapValue
  150. }
  151. return nil
  152. }
  153. func (x *Value) GetListValue() *ListValue {
  154. if x, ok := x.GetKind().(*Value_ListValue); ok {
  155. return x.ListValue
  156. }
  157. return nil
  158. }
  159. func (x *Value) GetTypeValue() string {
  160. if x, ok := x.GetKind().(*Value_TypeValue); ok {
  161. return x.TypeValue
  162. }
  163. return ""
  164. }
  165. type isValue_Kind interface {
  166. isValue_Kind()
  167. }
  168. type Value_NullValue struct {
  169. // Null value.
  170. NullValue structpb.NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"`
  171. }
  172. type Value_BoolValue struct {
  173. // Boolean value.
  174. BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
  175. }
  176. type Value_Int64Value struct {
  177. // Signed integer value.
  178. Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"`
  179. }
  180. type Value_Uint64Value struct {
  181. // Unsigned integer value.
  182. Uint64Value uint64 `protobuf:"varint,4,opt,name=uint64_value,json=uint64Value,proto3,oneof"`
  183. }
  184. type Value_DoubleValue struct {
  185. // Floating point value.
  186. DoubleValue float64 `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3,oneof"`
  187. }
  188. type Value_StringValue struct {
  189. // UTF-8 string value.
  190. StringValue string `protobuf:"bytes,6,opt,name=string_value,json=stringValue,proto3,oneof"`
  191. }
  192. type Value_BytesValue struct {
  193. // Byte string value.
  194. BytesValue []byte `protobuf:"bytes,7,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
  195. }
  196. type Value_EnumValue struct {
  197. // An enum value.
  198. EnumValue *EnumValue `protobuf:"bytes,9,opt,name=enum_value,json=enumValue,proto3,oneof"`
  199. }
  200. type Value_ObjectValue struct {
  201. // The proto message backing an object value.
  202. ObjectValue *anypb.Any `protobuf:"bytes,10,opt,name=object_value,json=objectValue,proto3,oneof"`
  203. }
  204. type Value_MapValue struct {
  205. // Map value.
  206. MapValue *MapValue `protobuf:"bytes,11,opt,name=map_value,json=mapValue,proto3,oneof"`
  207. }
  208. type Value_ListValue struct {
  209. // List value.
  210. ListValue *ListValue `protobuf:"bytes,12,opt,name=list_value,json=listValue,proto3,oneof"`
  211. }
  212. type Value_TypeValue struct {
  213. // Type value.
  214. TypeValue string `protobuf:"bytes,15,opt,name=type_value,json=typeValue,proto3,oneof"`
  215. }
  216. func (*Value_NullValue) isValue_Kind() {}
  217. func (*Value_BoolValue) isValue_Kind() {}
  218. func (*Value_Int64Value) isValue_Kind() {}
  219. func (*Value_Uint64Value) isValue_Kind() {}
  220. func (*Value_DoubleValue) isValue_Kind() {}
  221. func (*Value_StringValue) isValue_Kind() {}
  222. func (*Value_BytesValue) isValue_Kind() {}
  223. func (*Value_EnumValue) isValue_Kind() {}
  224. func (*Value_ObjectValue) isValue_Kind() {}
  225. func (*Value_MapValue) isValue_Kind() {}
  226. func (*Value_ListValue) isValue_Kind() {}
  227. func (*Value_TypeValue) isValue_Kind() {}
  228. // An enum value.
  229. type EnumValue struct {
  230. state protoimpl.MessageState
  231. sizeCache protoimpl.SizeCache
  232. unknownFields protoimpl.UnknownFields
  233. // The fully qualified name of the enum type.
  234. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  235. // The value of the enum.
  236. Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
  237. }
  238. func (x *EnumValue) Reset() {
  239. *x = EnumValue{}
  240. if protoimpl.UnsafeEnabled {
  241. mi := &file_google_api_expr_v1alpha1_value_proto_msgTypes[1]
  242. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  243. ms.StoreMessageInfo(mi)
  244. }
  245. }
  246. func (x *EnumValue) String() string {
  247. return protoimpl.X.MessageStringOf(x)
  248. }
  249. func (*EnumValue) ProtoMessage() {}
  250. func (x *EnumValue) ProtoReflect() protoreflect.Message {
  251. mi := &file_google_api_expr_v1alpha1_value_proto_msgTypes[1]
  252. if protoimpl.UnsafeEnabled && x != nil {
  253. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  254. if ms.LoadMessageInfo() == nil {
  255. ms.StoreMessageInfo(mi)
  256. }
  257. return ms
  258. }
  259. return mi.MessageOf(x)
  260. }
  261. // Deprecated: Use EnumValue.ProtoReflect.Descriptor instead.
  262. func (*EnumValue) Descriptor() ([]byte, []int) {
  263. return file_google_api_expr_v1alpha1_value_proto_rawDescGZIP(), []int{1}
  264. }
  265. func (x *EnumValue) GetType() string {
  266. if x != nil {
  267. return x.Type
  268. }
  269. return ""
  270. }
  271. func (x *EnumValue) GetValue() int32 {
  272. if x != nil {
  273. return x.Value
  274. }
  275. return 0
  276. }
  277. // A list.
  278. //
  279. // Wrapped in a message so 'not set' and empty can be differentiated, which is
  280. // required for use in a 'oneof'.
  281. type ListValue struct {
  282. state protoimpl.MessageState
  283. sizeCache protoimpl.SizeCache
  284. unknownFields protoimpl.UnknownFields
  285. // The ordered values in the list.
  286. Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
  287. }
  288. func (x *ListValue) Reset() {
  289. *x = ListValue{}
  290. if protoimpl.UnsafeEnabled {
  291. mi := &file_google_api_expr_v1alpha1_value_proto_msgTypes[2]
  292. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  293. ms.StoreMessageInfo(mi)
  294. }
  295. }
  296. func (x *ListValue) String() string {
  297. return protoimpl.X.MessageStringOf(x)
  298. }
  299. func (*ListValue) ProtoMessage() {}
  300. func (x *ListValue) ProtoReflect() protoreflect.Message {
  301. mi := &file_google_api_expr_v1alpha1_value_proto_msgTypes[2]
  302. if protoimpl.UnsafeEnabled && x != nil {
  303. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  304. if ms.LoadMessageInfo() == nil {
  305. ms.StoreMessageInfo(mi)
  306. }
  307. return ms
  308. }
  309. return mi.MessageOf(x)
  310. }
  311. // Deprecated: Use ListValue.ProtoReflect.Descriptor instead.
  312. func (*ListValue) Descriptor() ([]byte, []int) {
  313. return file_google_api_expr_v1alpha1_value_proto_rawDescGZIP(), []int{2}
  314. }
  315. func (x *ListValue) GetValues() []*Value {
  316. if x != nil {
  317. return x.Values
  318. }
  319. return nil
  320. }
  321. // A map.
  322. //
  323. // Wrapped in a message so 'not set' and empty can be differentiated, which is
  324. // required for use in a 'oneof'.
  325. type MapValue struct {
  326. state protoimpl.MessageState
  327. sizeCache protoimpl.SizeCache
  328. unknownFields protoimpl.UnknownFields
  329. // The set of map entries.
  330. //
  331. // CEL has fewer restrictions on keys, so a protobuf map represenation
  332. // cannot be used.
  333. Entries []*MapValue_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
  334. }
  335. func (x *MapValue) Reset() {
  336. *x = MapValue{}
  337. if protoimpl.UnsafeEnabled {
  338. mi := &file_google_api_expr_v1alpha1_value_proto_msgTypes[3]
  339. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  340. ms.StoreMessageInfo(mi)
  341. }
  342. }
  343. func (x *MapValue) String() string {
  344. return protoimpl.X.MessageStringOf(x)
  345. }
  346. func (*MapValue) ProtoMessage() {}
  347. func (x *MapValue) ProtoReflect() protoreflect.Message {
  348. mi := &file_google_api_expr_v1alpha1_value_proto_msgTypes[3]
  349. if protoimpl.UnsafeEnabled && x != nil {
  350. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  351. if ms.LoadMessageInfo() == nil {
  352. ms.StoreMessageInfo(mi)
  353. }
  354. return ms
  355. }
  356. return mi.MessageOf(x)
  357. }
  358. // Deprecated: Use MapValue.ProtoReflect.Descriptor instead.
  359. func (*MapValue) Descriptor() ([]byte, []int) {
  360. return file_google_api_expr_v1alpha1_value_proto_rawDescGZIP(), []int{3}
  361. }
  362. func (x *MapValue) GetEntries() []*MapValue_Entry {
  363. if x != nil {
  364. return x.Entries
  365. }
  366. return nil
  367. }
  368. // An entry in the map.
  369. type MapValue_Entry struct {
  370. state protoimpl.MessageState
  371. sizeCache protoimpl.SizeCache
  372. unknownFields protoimpl.UnknownFields
  373. // The key.
  374. //
  375. // Must be unique with in the map.
  376. // Currently only boolean, int, uint, and string values can be keys.
  377. Key *Value `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  378. // The value.
  379. Value *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  380. }
  381. func (x *MapValue_Entry) Reset() {
  382. *x = MapValue_Entry{}
  383. if protoimpl.UnsafeEnabled {
  384. mi := &file_google_api_expr_v1alpha1_value_proto_msgTypes[4]
  385. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  386. ms.StoreMessageInfo(mi)
  387. }
  388. }
  389. func (x *MapValue_Entry) String() string {
  390. return protoimpl.X.MessageStringOf(x)
  391. }
  392. func (*MapValue_Entry) ProtoMessage() {}
  393. func (x *MapValue_Entry) ProtoReflect() protoreflect.Message {
  394. mi := &file_google_api_expr_v1alpha1_value_proto_msgTypes[4]
  395. if protoimpl.UnsafeEnabled && x != nil {
  396. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  397. if ms.LoadMessageInfo() == nil {
  398. ms.StoreMessageInfo(mi)
  399. }
  400. return ms
  401. }
  402. return mi.MessageOf(x)
  403. }
  404. // Deprecated: Use MapValue_Entry.ProtoReflect.Descriptor instead.
  405. func (*MapValue_Entry) Descriptor() ([]byte, []int) {
  406. return file_google_api_expr_v1alpha1_value_proto_rawDescGZIP(), []int{3, 0}
  407. }
  408. func (x *MapValue_Entry) GetKey() *Value {
  409. if x != nil {
  410. return x.Key
  411. }
  412. return nil
  413. }
  414. func (x *MapValue_Entry) GetValue() *Value {
  415. if x != nil {
  416. return x.Value
  417. }
  418. return nil
  419. }
  420. var File_google_api_expr_v1alpha1_value_proto protoreflect.FileDescriptor
  421. var file_google_api_expr_v1alpha1_value_proto_rawDesc = []byte{
  422. 0x0a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70,
  423. 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x76, 0x61, 0x6c, 0x75, 0x65,
  424. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61,
  425. 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31,
  426. 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  427. 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f,
  428. 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72,
  429. 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcd, 0x04, 0x0a, 0x05, 0x56, 0x61,
  430. 0x6c, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75,
  431. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  432. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x56, 0x61,
  433. 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65,
  434. 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
  435. 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75,
  436. 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
  437. 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x56,
  438. 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x76,
  439. 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x0b, 0x75, 0x69,
  440. 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x6f, 0x75,
  441. 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x48,
  442. 0x00, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23,
  443. 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06,
  444. 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61,
  445. 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x76, 0x61, 0x6c,
  446. 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x79, 0x74, 0x65,
  447. 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76,
  448. 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f,
  449. 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61,
  450. 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48,
  451. 0x00, 0x52, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x0c,
  452. 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01,
  453. 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  454. 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x48, 0x00, 0x52, 0x0b, 0x6f, 0x62, 0x6a, 0x65,
  455. 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x41, 0x0a, 0x09, 0x6d, 0x61, 0x70, 0x5f, 0x76,
  456. 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f,
  457. 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61,
  458. 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00,
  459. 0x52, 0x08, 0x6d, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x0a, 0x6c, 0x69,
  460. 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23,
  461. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72,
  462. 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61,
  463. 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65,
  464. 0x12, 0x1f, 0x0a, 0x0a, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0f,
  465. 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x74, 0x79, 0x70, 0x65, 0x56, 0x61, 0x6c, 0x75,
  466. 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x35, 0x0a, 0x09, 0x45, 0x6e, 0x75,
  467. 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,
  468. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
  469. 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  470. 0x22, 0x44, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x37, 0x0a,
  471. 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
  472. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e,
  473. 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06,
  474. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0xc1, 0x01, 0x0a, 0x08, 0x4d, 0x61, 0x70, 0x56, 0x61,
  475. 0x6c, 0x75, 0x65, 0x12, 0x42, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01,
  476. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70,
  477. 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e,
  478. 0x4d, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07,
  479. 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x71, 0x0a, 0x05, 0x45, 0x6e, 0x74, 0x72, 0x79,
  480. 0x12, 0x31, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
  481. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e,
  482. 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03,
  483. 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
  484. 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  485. 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x61,
  486. 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x6d, 0x0a, 0x1c, 0x63, 0x6f,
  487. 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70,
  488. 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x56, 0x61, 0x6c, 0x75,
  489. 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  490. 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70,
  491. 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f,
  492. 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
  493. 0x31, 0x3b, 0x65, 0x78, 0x70, 0x72, 0xf8, 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  494. 0x33,
  495. }
  496. var (
  497. file_google_api_expr_v1alpha1_value_proto_rawDescOnce sync.Once
  498. file_google_api_expr_v1alpha1_value_proto_rawDescData = file_google_api_expr_v1alpha1_value_proto_rawDesc
  499. )
  500. func file_google_api_expr_v1alpha1_value_proto_rawDescGZIP() []byte {
  501. file_google_api_expr_v1alpha1_value_proto_rawDescOnce.Do(func() {
  502. file_google_api_expr_v1alpha1_value_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_expr_v1alpha1_value_proto_rawDescData)
  503. })
  504. return file_google_api_expr_v1alpha1_value_proto_rawDescData
  505. }
  506. var file_google_api_expr_v1alpha1_value_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  507. var file_google_api_expr_v1alpha1_value_proto_goTypes = []interface{}{
  508. (*Value)(nil), // 0: google.api.expr.v1alpha1.Value
  509. (*EnumValue)(nil), // 1: google.api.expr.v1alpha1.EnumValue
  510. (*ListValue)(nil), // 2: google.api.expr.v1alpha1.ListValue
  511. (*MapValue)(nil), // 3: google.api.expr.v1alpha1.MapValue
  512. (*MapValue_Entry)(nil), // 4: google.api.expr.v1alpha1.MapValue.Entry
  513. (structpb.NullValue)(0), // 5: google.protobuf.NullValue
  514. (*anypb.Any)(nil), // 6: google.protobuf.Any
  515. }
  516. var file_google_api_expr_v1alpha1_value_proto_depIdxs = []int32{
  517. 5, // 0: google.api.expr.v1alpha1.Value.null_value:type_name -> google.protobuf.NullValue
  518. 1, // 1: google.api.expr.v1alpha1.Value.enum_value:type_name -> google.api.expr.v1alpha1.EnumValue
  519. 6, // 2: google.api.expr.v1alpha1.Value.object_value:type_name -> google.protobuf.Any
  520. 3, // 3: google.api.expr.v1alpha1.Value.map_value:type_name -> google.api.expr.v1alpha1.MapValue
  521. 2, // 4: google.api.expr.v1alpha1.Value.list_value:type_name -> google.api.expr.v1alpha1.ListValue
  522. 0, // 5: google.api.expr.v1alpha1.ListValue.values:type_name -> google.api.expr.v1alpha1.Value
  523. 4, // 6: google.api.expr.v1alpha1.MapValue.entries:type_name -> google.api.expr.v1alpha1.MapValue.Entry
  524. 0, // 7: google.api.expr.v1alpha1.MapValue.Entry.key:type_name -> google.api.expr.v1alpha1.Value
  525. 0, // 8: google.api.expr.v1alpha1.MapValue.Entry.value:type_name -> google.api.expr.v1alpha1.Value
  526. 9, // [9:9] is the sub-list for method output_type
  527. 9, // [9:9] is the sub-list for method input_type
  528. 9, // [9:9] is the sub-list for extension type_name
  529. 9, // [9:9] is the sub-list for extension extendee
  530. 0, // [0:9] is the sub-list for field type_name
  531. }
  532. func init() { file_google_api_expr_v1alpha1_value_proto_init() }
  533. func file_google_api_expr_v1alpha1_value_proto_init() {
  534. if File_google_api_expr_v1alpha1_value_proto != nil {
  535. return
  536. }
  537. if !protoimpl.UnsafeEnabled {
  538. file_google_api_expr_v1alpha1_value_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  539. switch v := v.(*Value); i {
  540. case 0:
  541. return &v.state
  542. case 1:
  543. return &v.sizeCache
  544. case 2:
  545. return &v.unknownFields
  546. default:
  547. return nil
  548. }
  549. }
  550. file_google_api_expr_v1alpha1_value_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  551. switch v := v.(*EnumValue); i {
  552. case 0:
  553. return &v.state
  554. case 1:
  555. return &v.sizeCache
  556. case 2:
  557. return &v.unknownFields
  558. default:
  559. return nil
  560. }
  561. }
  562. file_google_api_expr_v1alpha1_value_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  563. switch v := v.(*ListValue); i {
  564. case 0:
  565. return &v.state
  566. case 1:
  567. return &v.sizeCache
  568. case 2:
  569. return &v.unknownFields
  570. default:
  571. return nil
  572. }
  573. }
  574. file_google_api_expr_v1alpha1_value_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  575. switch v := v.(*MapValue); i {
  576. case 0:
  577. return &v.state
  578. case 1:
  579. return &v.sizeCache
  580. case 2:
  581. return &v.unknownFields
  582. default:
  583. return nil
  584. }
  585. }
  586. file_google_api_expr_v1alpha1_value_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  587. switch v := v.(*MapValue_Entry); i {
  588. case 0:
  589. return &v.state
  590. case 1:
  591. return &v.sizeCache
  592. case 2:
  593. return &v.unknownFields
  594. default:
  595. return nil
  596. }
  597. }
  598. }
  599. file_google_api_expr_v1alpha1_value_proto_msgTypes[0].OneofWrappers = []interface{}{
  600. (*Value_NullValue)(nil),
  601. (*Value_BoolValue)(nil),
  602. (*Value_Int64Value)(nil),
  603. (*Value_Uint64Value)(nil),
  604. (*Value_DoubleValue)(nil),
  605. (*Value_StringValue)(nil),
  606. (*Value_BytesValue)(nil),
  607. (*Value_EnumValue)(nil),
  608. (*Value_ObjectValue)(nil),
  609. (*Value_MapValue)(nil),
  610. (*Value_ListValue)(nil),
  611. (*Value_TypeValue)(nil),
  612. }
  613. type x struct{}
  614. out := protoimpl.TypeBuilder{
  615. File: protoimpl.DescBuilder{
  616. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  617. RawDescriptor: file_google_api_expr_v1alpha1_value_proto_rawDesc,
  618. NumEnums: 0,
  619. NumMessages: 5,
  620. NumExtensions: 0,
  621. NumServices: 0,
  622. },
  623. GoTypes: file_google_api_expr_v1alpha1_value_proto_goTypes,
  624. DependencyIndexes: file_google_api_expr_v1alpha1_value_proto_depIdxs,
  625. MessageInfos: file_google_api_expr_v1alpha1_value_proto_msgTypes,
  626. }.Build()
  627. File_google_api_expr_v1alpha1_value_proto = out.File
  628. file_google_api_expr_v1alpha1_value_proto_rawDesc = nil
  629. file_google_api_expr_v1alpha1_value_proto_goTypes = nil
  630. file_google_api_expr_v1alpha1_value_proto_depIdxs = nil
  631. }