explain.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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/explain.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. )
  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. // Values of intermediate expressions produced when evaluating expression.
  33. // Deprecated, use `EvalState` instead.
  34. //
  35. // Deprecated: Do not use.
  36. type Explain struct {
  37. state protoimpl.MessageState
  38. sizeCache protoimpl.SizeCache
  39. unknownFields protoimpl.UnknownFields
  40. // All of the observed values.
  41. //
  42. // The field value_index is an index in the values list.
  43. // Separating values from steps is needed to remove redundant values.
  44. Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
  45. // List of steps.
  46. //
  47. // Repeated evaluations of the same expression generate new ExprStep
  48. // instances. The order of such ExprStep instances matches the order of
  49. // elements returned by Comprehension.iter_range.
  50. ExprSteps []*Explain_ExprStep `protobuf:"bytes,2,rep,name=expr_steps,json=exprSteps,proto3" json:"expr_steps,omitempty"`
  51. }
  52. func (x *Explain) Reset() {
  53. *x = Explain{}
  54. if protoimpl.UnsafeEnabled {
  55. mi := &file_google_api_expr_v1alpha1_explain_proto_msgTypes[0]
  56. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  57. ms.StoreMessageInfo(mi)
  58. }
  59. }
  60. func (x *Explain) String() string {
  61. return protoimpl.X.MessageStringOf(x)
  62. }
  63. func (*Explain) ProtoMessage() {}
  64. func (x *Explain) ProtoReflect() protoreflect.Message {
  65. mi := &file_google_api_expr_v1alpha1_explain_proto_msgTypes[0]
  66. if protoimpl.UnsafeEnabled && x != nil {
  67. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  68. if ms.LoadMessageInfo() == nil {
  69. ms.StoreMessageInfo(mi)
  70. }
  71. return ms
  72. }
  73. return mi.MessageOf(x)
  74. }
  75. // Deprecated: Use Explain.ProtoReflect.Descriptor instead.
  76. func (*Explain) Descriptor() ([]byte, []int) {
  77. return file_google_api_expr_v1alpha1_explain_proto_rawDescGZIP(), []int{0}
  78. }
  79. func (x *Explain) GetValues() []*Value {
  80. if x != nil {
  81. return x.Values
  82. }
  83. return nil
  84. }
  85. func (x *Explain) GetExprSteps() []*Explain_ExprStep {
  86. if x != nil {
  87. return x.ExprSteps
  88. }
  89. return nil
  90. }
  91. // ID and value index of one step.
  92. type Explain_ExprStep struct {
  93. state protoimpl.MessageState
  94. sizeCache protoimpl.SizeCache
  95. unknownFields protoimpl.UnknownFields
  96. // ID of corresponding Expr node.
  97. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  98. // Index of the value in the values list.
  99. ValueIndex int32 `protobuf:"varint,2,opt,name=value_index,json=valueIndex,proto3" json:"value_index,omitempty"`
  100. }
  101. func (x *Explain_ExprStep) Reset() {
  102. *x = Explain_ExprStep{}
  103. if protoimpl.UnsafeEnabled {
  104. mi := &file_google_api_expr_v1alpha1_explain_proto_msgTypes[1]
  105. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  106. ms.StoreMessageInfo(mi)
  107. }
  108. }
  109. func (x *Explain_ExprStep) String() string {
  110. return protoimpl.X.MessageStringOf(x)
  111. }
  112. func (*Explain_ExprStep) ProtoMessage() {}
  113. func (x *Explain_ExprStep) ProtoReflect() protoreflect.Message {
  114. mi := &file_google_api_expr_v1alpha1_explain_proto_msgTypes[1]
  115. if protoimpl.UnsafeEnabled && x != nil {
  116. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  117. if ms.LoadMessageInfo() == nil {
  118. ms.StoreMessageInfo(mi)
  119. }
  120. return ms
  121. }
  122. return mi.MessageOf(x)
  123. }
  124. // Deprecated: Use Explain_ExprStep.ProtoReflect.Descriptor instead.
  125. func (*Explain_ExprStep) Descriptor() ([]byte, []int) {
  126. return file_google_api_expr_v1alpha1_explain_proto_rawDescGZIP(), []int{0, 0}
  127. }
  128. func (x *Explain_ExprStep) GetId() int64 {
  129. if x != nil {
  130. return x.Id
  131. }
  132. return 0
  133. }
  134. func (x *Explain_ExprStep) GetValueIndex() int32 {
  135. if x != nil {
  136. return x.ValueIndex
  137. }
  138. return 0
  139. }
  140. var File_google_api_expr_v1alpha1_explain_proto protoreflect.FileDescriptor
  141. var file_google_api_expr_v1alpha1_explain_proto_rawDesc = []byte{
  142. 0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70,
  143. 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x65, 0x78, 0x70, 0x6c, 0x61,
  144. 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  145. 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68,
  146. 0x61, 0x31, 0x1a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65,
  147. 0x78, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x76, 0x61, 0x6c,
  148. 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xce, 0x01, 0x0a, 0x07, 0x45, 0x78, 0x70,
  149. 0x6c, 0x61, 0x69, 0x6e, 0x12, 0x37, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01,
  150. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70,
  151. 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e,
  152. 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x49, 0x0a,
  153. 0x0a, 0x65, 0x78, 0x70, 0x72, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
  154. 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65,
  155. 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70,
  156. 0x6c, 0x61, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x53, 0x74, 0x65, 0x70, 0x52, 0x09, 0x65,
  157. 0x78, 0x70, 0x72, 0x53, 0x74, 0x65, 0x70, 0x73, 0x1a, 0x3b, 0x0a, 0x08, 0x45, 0x78, 0x70, 0x72,
  158. 0x53, 0x74, 0x65, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  159. 0x52, 0x02, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x6e,
  160. 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65,
  161. 0x49, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x02, 0x18, 0x01, 0x42, 0x6f, 0x0a, 0x1c, 0x63, 0x6f, 0x6d,
  162. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72,
  163. 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0c, 0x45, 0x78, 0x70, 0x6c, 0x61,
  164. 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  165. 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
  166. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
  167. 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68,
  168. 0x61, 0x31, 0x3b, 0x65, 0x78, 0x70, 0x72, 0xf8, 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  169. 0x6f, 0x33,
  170. }
  171. var (
  172. file_google_api_expr_v1alpha1_explain_proto_rawDescOnce sync.Once
  173. file_google_api_expr_v1alpha1_explain_proto_rawDescData = file_google_api_expr_v1alpha1_explain_proto_rawDesc
  174. )
  175. func file_google_api_expr_v1alpha1_explain_proto_rawDescGZIP() []byte {
  176. file_google_api_expr_v1alpha1_explain_proto_rawDescOnce.Do(func() {
  177. file_google_api_expr_v1alpha1_explain_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_expr_v1alpha1_explain_proto_rawDescData)
  178. })
  179. return file_google_api_expr_v1alpha1_explain_proto_rawDescData
  180. }
  181. var file_google_api_expr_v1alpha1_explain_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  182. var file_google_api_expr_v1alpha1_explain_proto_goTypes = []interface{}{
  183. (*Explain)(nil), // 0: google.api.expr.v1alpha1.Explain
  184. (*Explain_ExprStep)(nil), // 1: google.api.expr.v1alpha1.Explain.ExprStep
  185. (*Value)(nil), // 2: google.api.expr.v1alpha1.Value
  186. }
  187. var file_google_api_expr_v1alpha1_explain_proto_depIdxs = []int32{
  188. 2, // 0: google.api.expr.v1alpha1.Explain.values:type_name -> google.api.expr.v1alpha1.Value
  189. 1, // 1: google.api.expr.v1alpha1.Explain.expr_steps:type_name -> google.api.expr.v1alpha1.Explain.ExprStep
  190. 2, // [2:2] is the sub-list for method output_type
  191. 2, // [2:2] is the sub-list for method input_type
  192. 2, // [2:2] is the sub-list for extension type_name
  193. 2, // [2:2] is the sub-list for extension extendee
  194. 0, // [0:2] is the sub-list for field type_name
  195. }
  196. func init() { file_google_api_expr_v1alpha1_explain_proto_init() }
  197. func file_google_api_expr_v1alpha1_explain_proto_init() {
  198. if File_google_api_expr_v1alpha1_explain_proto != nil {
  199. return
  200. }
  201. file_google_api_expr_v1alpha1_value_proto_init()
  202. if !protoimpl.UnsafeEnabled {
  203. file_google_api_expr_v1alpha1_explain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  204. switch v := v.(*Explain); i {
  205. case 0:
  206. return &v.state
  207. case 1:
  208. return &v.sizeCache
  209. case 2:
  210. return &v.unknownFields
  211. default:
  212. return nil
  213. }
  214. }
  215. file_google_api_expr_v1alpha1_explain_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  216. switch v := v.(*Explain_ExprStep); i {
  217. case 0:
  218. return &v.state
  219. case 1:
  220. return &v.sizeCache
  221. case 2:
  222. return &v.unknownFields
  223. default:
  224. return nil
  225. }
  226. }
  227. }
  228. type x struct{}
  229. out := protoimpl.TypeBuilder{
  230. File: protoimpl.DescBuilder{
  231. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  232. RawDescriptor: file_google_api_expr_v1alpha1_explain_proto_rawDesc,
  233. NumEnums: 0,
  234. NumMessages: 2,
  235. NumExtensions: 0,
  236. NumServices: 0,
  237. },
  238. GoTypes: file_google_api_expr_v1alpha1_explain_proto_goTypes,
  239. DependencyIndexes: file_google_api_expr_v1alpha1_explain_proto_depIdxs,
  240. MessageInfos: file_google_api_expr_v1alpha1_explain_proto_msgTypes,
  241. }.Build()
  242. File_google_api_expr_v1alpha1_explain_proto = out.File
  243. file_google_api_expr_v1alpha1_explain_proto_rawDesc = nil
  244. file_google_api_expr_v1alpha1_explain_proto_goTypes = nil
  245. file_google_api_expr_v1alpha1_explain_proto_depIdxs = nil
  246. }