...

Source file src/google.golang.org/genproto/googleapis/api/expr/v1alpha1/eval.pb.go

Documentation: google.golang.org/genproto/googleapis/api/expr/v1alpha1

     1  // Copyright 2024 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  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.26.0
    18  // 	protoc        v4.24.4
    19  // source: google/api/expr/v1alpha1/eval.proto
    20  
    21  package expr
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	status "google.golang.org/genproto/googleapis/rpc/status"
    28  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    29  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    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  // The state of an evaluation.
    40  //
    41  // Can represent an inital, partial, or completed state of evaluation.
    42  type EvalState struct {
    43  	state         protoimpl.MessageState
    44  	sizeCache     protoimpl.SizeCache
    45  	unknownFields protoimpl.UnknownFields
    46  
    47  	// The unique values referenced in this message.
    48  	Values []*ExprValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
    49  	// An ordered list of results.
    50  	//
    51  	// Tracks the flow of evaluation through the expression.
    52  	// May be sparse.
    53  	Results []*EvalState_Result `protobuf:"bytes,3,rep,name=results,proto3" json:"results,omitempty"`
    54  }
    55  
    56  func (x *EvalState) Reset() {
    57  	*x = EvalState{}
    58  	if protoimpl.UnsafeEnabled {
    59  		mi := &file_google_api_expr_v1alpha1_eval_proto_msgTypes[0]
    60  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    61  		ms.StoreMessageInfo(mi)
    62  	}
    63  }
    64  
    65  func (x *EvalState) String() string {
    66  	return protoimpl.X.MessageStringOf(x)
    67  }
    68  
    69  func (*EvalState) ProtoMessage() {}
    70  
    71  func (x *EvalState) ProtoReflect() protoreflect.Message {
    72  	mi := &file_google_api_expr_v1alpha1_eval_proto_msgTypes[0]
    73  	if protoimpl.UnsafeEnabled && x != nil {
    74  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    75  		if ms.LoadMessageInfo() == nil {
    76  			ms.StoreMessageInfo(mi)
    77  		}
    78  		return ms
    79  	}
    80  	return mi.MessageOf(x)
    81  }
    82  
    83  // Deprecated: Use EvalState.ProtoReflect.Descriptor instead.
    84  func (*EvalState) Descriptor() ([]byte, []int) {
    85  	return file_google_api_expr_v1alpha1_eval_proto_rawDescGZIP(), []int{0}
    86  }
    87  
    88  func (x *EvalState) GetValues() []*ExprValue {
    89  	if x != nil {
    90  		return x.Values
    91  	}
    92  	return nil
    93  }
    94  
    95  func (x *EvalState) GetResults() []*EvalState_Result {
    96  	if x != nil {
    97  		return x.Results
    98  	}
    99  	return nil
   100  }
   101  
   102  // The value of an evaluated expression.
   103  type ExprValue struct {
   104  	state         protoimpl.MessageState
   105  	sizeCache     protoimpl.SizeCache
   106  	unknownFields protoimpl.UnknownFields
   107  
   108  	// An expression can resolve to a value, error or unknown.
   109  	//
   110  	// Types that are assignable to Kind:
   111  	//
   112  	//	*ExprValue_Value
   113  	//	*ExprValue_Error
   114  	//	*ExprValue_Unknown
   115  	Kind isExprValue_Kind `protobuf_oneof:"kind"`
   116  }
   117  
   118  func (x *ExprValue) Reset() {
   119  	*x = ExprValue{}
   120  	if protoimpl.UnsafeEnabled {
   121  		mi := &file_google_api_expr_v1alpha1_eval_proto_msgTypes[1]
   122  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   123  		ms.StoreMessageInfo(mi)
   124  	}
   125  }
   126  
   127  func (x *ExprValue) String() string {
   128  	return protoimpl.X.MessageStringOf(x)
   129  }
   130  
   131  func (*ExprValue) ProtoMessage() {}
   132  
   133  func (x *ExprValue) ProtoReflect() protoreflect.Message {
   134  	mi := &file_google_api_expr_v1alpha1_eval_proto_msgTypes[1]
   135  	if protoimpl.UnsafeEnabled && x != nil {
   136  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   137  		if ms.LoadMessageInfo() == nil {
   138  			ms.StoreMessageInfo(mi)
   139  		}
   140  		return ms
   141  	}
   142  	return mi.MessageOf(x)
   143  }
   144  
   145  // Deprecated: Use ExprValue.ProtoReflect.Descriptor instead.
   146  func (*ExprValue) Descriptor() ([]byte, []int) {
   147  	return file_google_api_expr_v1alpha1_eval_proto_rawDescGZIP(), []int{1}
   148  }
   149  
   150  func (m *ExprValue) GetKind() isExprValue_Kind {
   151  	if m != nil {
   152  		return m.Kind
   153  	}
   154  	return nil
   155  }
   156  
   157  func (x *ExprValue) GetValue() *Value {
   158  	if x, ok := x.GetKind().(*ExprValue_Value); ok {
   159  		return x.Value
   160  	}
   161  	return nil
   162  }
   163  
   164  func (x *ExprValue) GetError() *ErrorSet {
   165  	if x, ok := x.GetKind().(*ExprValue_Error); ok {
   166  		return x.Error
   167  	}
   168  	return nil
   169  }
   170  
   171  func (x *ExprValue) GetUnknown() *UnknownSet {
   172  	if x, ok := x.GetKind().(*ExprValue_Unknown); ok {
   173  		return x.Unknown
   174  	}
   175  	return nil
   176  }
   177  
   178  type isExprValue_Kind interface {
   179  	isExprValue_Kind()
   180  }
   181  
   182  type ExprValue_Value struct {
   183  	// A concrete value.
   184  	Value *Value `protobuf:"bytes,1,opt,name=value,proto3,oneof"`
   185  }
   186  
   187  type ExprValue_Error struct {
   188  	// The set of errors in the critical path of evalution.
   189  	//
   190  	// Only errors in the critical path are included. For example,
   191  	// `(<error1> || true) && <error2>` will only result in `<error2>`,
   192  	// while `<error1> || <error2>` will result in both `<error1>` and
   193  	// `<error2>`.
   194  	//
   195  	// Errors cause by the presence of other errors are not included in the
   196  	// set. For example `<error1>.foo`, `foo(<error1>)`, and `<error1> + 1` will
   197  	// only result in `<error1>`.
   198  	//
   199  	// Multiple errors *might* be included when evaluation could result
   200  	// in different errors. For example `<error1> + <error2>` and
   201  	// `foo(<error1>, <error2>)` may result in `<error1>`, `<error2>` or both.
   202  	// The exact subset of errors included for this case is unspecified and
   203  	// depends on the implementation details of the evaluator.
   204  	Error *ErrorSet `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
   205  }
   206  
   207  type ExprValue_Unknown struct {
   208  	// The set of unknowns in the critical path of evaluation.
   209  	//
   210  	// Unknown behaves identically to Error with regards to propagation.
   211  	// Specifically, only unknowns in the critical path are included, unknowns
   212  	// caused by the presence of other unknowns are not included, and multiple
   213  	// unknowns *might* be included included when evaluation could result in
   214  	// different unknowns. For example:
   215  	//
   216  	//	(<unknown[1]> || true) && <unknown[2]> -> <unknown[2]>
   217  	//	<unknown[1]> || <unknown[2]> -> <unknown[1,2]>
   218  	//	<unknown[1]>.foo -> <unknown[1]>
   219  	//	foo(<unknown[1]>) -> <unknown[1]>
   220  	//	<unknown[1]> + <unknown[2]> -> <unknown[1]> or <unknown[2[>
   221  	//
   222  	// Unknown takes precidence over Error in cases where a `Value` can short
   223  	// circuit the result:
   224  	//
   225  	//	<error> || <unknown> -> <unknown>
   226  	//	<error> && <unknown> -> <unknown>
   227  	//
   228  	// Errors take precidence in all other cases:
   229  	//
   230  	//	<unknown> + <error> -> <error>
   231  	//	foo(<unknown>, <error>) -> <error>
   232  	Unknown *UnknownSet `protobuf:"bytes,3,opt,name=unknown,proto3,oneof"`
   233  }
   234  
   235  func (*ExprValue_Value) isExprValue_Kind() {}
   236  
   237  func (*ExprValue_Error) isExprValue_Kind() {}
   238  
   239  func (*ExprValue_Unknown) isExprValue_Kind() {}
   240  
   241  // A set of errors.
   242  //
   243  // The errors included depend on the context. See `ExprValue.error`.
   244  type ErrorSet struct {
   245  	state         protoimpl.MessageState
   246  	sizeCache     protoimpl.SizeCache
   247  	unknownFields protoimpl.UnknownFields
   248  
   249  	// The errors in the set.
   250  	Errors []*status.Status `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"`
   251  }
   252  
   253  func (x *ErrorSet) Reset() {
   254  	*x = ErrorSet{}
   255  	if protoimpl.UnsafeEnabled {
   256  		mi := &file_google_api_expr_v1alpha1_eval_proto_msgTypes[2]
   257  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   258  		ms.StoreMessageInfo(mi)
   259  	}
   260  }
   261  
   262  func (x *ErrorSet) String() string {
   263  	return protoimpl.X.MessageStringOf(x)
   264  }
   265  
   266  func (*ErrorSet) ProtoMessage() {}
   267  
   268  func (x *ErrorSet) ProtoReflect() protoreflect.Message {
   269  	mi := &file_google_api_expr_v1alpha1_eval_proto_msgTypes[2]
   270  	if protoimpl.UnsafeEnabled && x != nil {
   271  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   272  		if ms.LoadMessageInfo() == nil {
   273  			ms.StoreMessageInfo(mi)
   274  		}
   275  		return ms
   276  	}
   277  	return mi.MessageOf(x)
   278  }
   279  
   280  // Deprecated: Use ErrorSet.ProtoReflect.Descriptor instead.
   281  func (*ErrorSet) Descriptor() ([]byte, []int) {
   282  	return file_google_api_expr_v1alpha1_eval_proto_rawDescGZIP(), []int{2}
   283  }
   284  
   285  func (x *ErrorSet) GetErrors() []*status.Status {
   286  	if x != nil {
   287  		return x.Errors
   288  	}
   289  	return nil
   290  }
   291  
   292  // A set of expressions for which the value is unknown.
   293  //
   294  // The unknowns included depend on the context. See `ExprValue.unknown`.
   295  type UnknownSet struct {
   296  	state         protoimpl.MessageState
   297  	sizeCache     protoimpl.SizeCache
   298  	unknownFields protoimpl.UnknownFields
   299  
   300  	// The ids of the expressions with unknown values.
   301  	Exprs []int64 `protobuf:"varint,1,rep,packed,name=exprs,proto3" json:"exprs,omitempty"`
   302  }
   303  
   304  func (x *UnknownSet) Reset() {
   305  	*x = UnknownSet{}
   306  	if protoimpl.UnsafeEnabled {
   307  		mi := &file_google_api_expr_v1alpha1_eval_proto_msgTypes[3]
   308  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   309  		ms.StoreMessageInfo(mi)
   310  	}
   311  }
   312  
   313  func (x *UnknownSet) String() string {
   314  	return protoimpl.X.MessageStringOf(x)
   315  }
   316  
   317  func (*UnknownSet) ProtoMessage() {}
   318  
   319  func (x *UnknownSet) ProtoReflect() protoreflect.Message {
   320  	mi := &file_google_api_expr_v1alpha1_eval_proto_msgTypes[3]
   321  	if protoimpl.UnsafeEnabled && x != nil {
   322  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   323  		if ms.LoadMessageInfo() == nil {
   324  			ms.StoreMessageInfo(mi)
   325  		}
   326  		return ms
   327  	}
   328  	return mi.MessageOf(x)
   329  }
   330  
   331  // Deprecated: Use UnknownSet.ProtoReflect.Descriptor instead.
   332  func (*UnknownSet) Descriptor() ([]byte, []int) {
   333  	return file_google_api_expr_v1alpha1_eval_proto_rawDescGZIP(), []int{3}
   334  }
   335  
   336  func (x *UnknownSet) GetExprs() []int64 {
   337  	if x != nil {
   338  		return x.Exprs
   339  	}
   340  	return nil
   341  }
   342  
   343  // A single evalution result.
   344  type EvalState_Result struct {
   345  	state         protoimpl.MessageState
   346  	sizeCache     protoimpl.SizeCache
   347  	unknownFields protoimpl.UnknownFields
   348  
   349  	// The id of the expression this result if for.
   350  	Expr int64 `protobuf:"varint,1,opt,name=expr,proto3" json:"expr,omitempty"`
   351  	// The index in `values` of the resulting value.
   352  	Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
   353  }
   354  
   355  func (x *EvalState_Result) Reset() {
   356  	*x = EvalState_Result{}
   357  	if protoimpl.UnsafeEnabled {
   358  		mi := &file_google_api_expr_v1alpha1_eval_proto_msgTypes[4]
   359  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   360  		ms.StoreMessageInfo(mi)
   361  	}
   362  }
   363  
   364  func (x *EvalState_Result) String() string {
   365  	return protoimpl.X.MessageStringOf(x)
   366  }
   367  
   368  func (*EvalState_Result) ProtoMessage() {}
   369  
   370  func (x *EvalState_Result) ProtoReflect() protoreflect.Message {
   371  	mi := &file_google_api_expr_v1alpha1_eval_proto_msgTypes[4]
   372  	if protoimpl.UnsafeEnabled && x != nil {
   373  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   374  		if ms.LoadMessageInfo() == nil {
   375  			ms.StoreMessageInfo(mi)
   376  		}
   377  		return ms
   378  	}
   379  	return mi.MessageOf(x)
   380  }
   381  
   382  // Deprecated: Use EvalState_Result.ProtoReflect.Descriptor instead.
   383  func (*EvalState_Result) Descriptor() ([]byte, []int) {
   384  	return file_google_api_expr_v1alpha1_eval_proto_rawDescGZIP(), []int{0, 0}
   385  }
   386  
   387  func (x *EvalState_Result) GetExpr() int64 {
   388  	if x != nil {
   389  		return x.Expr
   390  	}
   391  	return 0
   392  }
   393  
   394  func (x *EvalState_Result) GetValue() int64 {
   395  	if x != nil {
   396  		return x.Value
   397  	}
   398  	return 0
   399  }
   400  
   401  var File_google_api_expr_v1alpha1_eval_proto protoreflect.FileDescriptor
   402  
   403  var file_google_api_expr_v1alpha1_eval_proto_rawDesc = []byte{
   404  	0x0a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70,
   405  	0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x2e,
   406  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70,
   407  	0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a,
   408  	0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70, 0x72,
   409  	0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2e,
   410  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70,
   411  	0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc2,
   412  	0x01, 0x0a, 0x09, 0x45, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x06,
   413  	0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67,
   414  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76,
   415  	0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x56, 0x61, 0x6c, 0x75,
   416  	0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x44, 0x0a, 0x07, 0x72, 0x65, 0x73,
   417  	0x75, 0x6c, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f,
   418  	0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61,
   419  	0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e,
   420  	0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x1a,
   421  	0x32, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x78, 0x70,
   422  	0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x65, 0x78, 0x70, 0x72, 0x12, 0x14, 0x0a,
   423  	0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61,
   424  	0x6c, 0x75, 0x65, 0x22, 0xca, 0x01, 0x0a, 0x09, 0x45, 0x78, 0x70, 0x72, 0x56, 0x61, 0x6c, 0x75,
   425  	0x65, 0x12, 0x37, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
   426  	0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78,
   427  	0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75,
   428  	0x65, 0x48, 0x00, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3a, 0x0a, 0x05, 0x65, 0x72,
   429  	0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   430  	0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c,
   431  	0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x48, 0x00, 0x52,
   432  	0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x40, 0x0a, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77,
   433  	0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   434  	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68,
   435  	0x61, 0x31, 0x2e, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x53, 0x65, 0x74, 0x48, 0x00, 0x52,
   436  	0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64,
   437  	0x22, 0x36, 0x0a, 0x08, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x2a, 0x0a, 0x06,
   438  	0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67,
   439  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
   440  	0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x22, 0x22, 0x0a, 0x0a, 0x55, 0x6e, 0x6b, 0x6e,
   441  	0x6f, 0x77, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x78, 0x70, 0x72, 0x73, 0x18,
   442  	0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, 0x65, 0x78, 0x70, 0x72, 0x73, 0x42, 0x6c, 0x0a, 0x1c,
   443  	0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65,
   444  	0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x09, 0x45, 0x76,
   445  	0x61, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   446  	0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
   447  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
   448  	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68,
   449  	0x61, 0x31, 0x3b, 0x65, 0x78, 0x70, 0x72, 0xf8, 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   450  	0x6f, 0x33,
   451  }
   452  
   453  var (
   454  	file_google_api_expr_v1alpha1_eval_proto_rawDescOnce sync.Once
   455  	file_google_api_expr_v1alpha1_eval_proto_rawDescData = file_google_api_expr_v1alpha1_eval_proto_rawDesc
   456  )
   457  
   458  func file_google_api_expr_v1alpha1_eval_proto_rawDescGZIP() []byte {
   459  	file_google_api_expr_v1alpha1_eval_proto_rawDescOnce.Do(func() {
   460  		file_google_api_expr_v1alpha1_eval_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_expr_v1alpha1_eval_proto_rawDescData)
   461  	})
   462  	return file_google_api_expr_v1alpha1_eval_proto_rawDescData
   463  }
   464  
   465  var file_google_api_expr_v1alpha1_eval_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
   466  var file_google_api_expr_v1alpha1_eval_proto_goTypes = []interface{}{
   467  	(*EvalState)(nil),        // 0: google.api.expr.v1alpha1.EvalState
   468  	(*ExprValue)(nil),        // 1: google.api.expr.v1alpha1.ExprValue
   469  	(*ErrorSet)(nil),         // 2: google.api.expr.v1alpha1.ErrorSet
   470  	(*UnknownSet)(nil),       // 3: google.api.expr.v1alpha1.UnknownSet
   471  	(*EvalState_Result)(nil), // 4: google.api.expr.v1alpha1.EvalState.Result
   472  	(*Value)(nil),            // 5: google.api.expr.v1alpha1.Value
   473  	(*status.Status)(nil),    // 6: google.rpc.Status
   474  }
   475  var file_google_api_expr_v1alpha1_eval_proto_depIdxs = []int32{
   476  	1, // 0: google.api.expr.v1alpha1.EvalState.values:type_name -> google.api.expr.v1alpha1.ExprValue
   477  	4, // 1: google.api.expr.v1alpha1.EvalState.results:type_name -> google.api.expr.v1alpha1.EvalState.Result
   478  	5, // 2: google.api.expr.v1alpha1.ExprValue.value:type_name -> google.api.expr.v1alpha1.Value
   479  	2, // 3: google.api.expr.v1alpha1.ExprValue.error:type_name -> google.api.expr.v1alpha1.ErrorSet
   480  	3, // 4: google.api.expr.v1alpha1.ExprValue.unknown:type_name -> google.api.expr.v1alpha1.UnknownSet
   481  	6, // 5: google.api.expr.v1alpha1.ErrorSet.errors:type_name -> google.rpc.Status
   482  	6, // [6:6] is the sub-list for method output_type
   483  	6, // [6:6] is the sub-list for method input_type
   484  	6, // [6:6] is the sub-list for extension type_name
   485  	6, // [6:6] is the sub-list for extension extendee
   486  	0, // [0:6] is the sub-list for field type_name
   487  }
   488  
   489  func init() { file_google_api_expr_v1alpha1_eval_proto_init() }
   490  func file_google_api_expr_v1alpha1_eval_proto_init() {
   491  	if File_google_api_expr_v1alpha1_eval_proto != nil {
   492  		return
   493  	}
   494  	file_google_api_expr_v1alpha1_value_proto_init()
   495  	if !protoimpl.UnsafeEnabled {
   496  		file_google_api_expr_v1alpha1_eval_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   497  			switch v := v.(*EvalState); i {
   498  			case 0:
   499  				return &v.state
   500  			case 1:
   501  				return &v.sizeCache
   502  			case 2:
   503  				return &v.unknownFields
   504  			default:
   505  				return nil
   506  			}
   507  		}
   508  		file_google_api_expr_v1alpha1_eval_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   509  			switch v := v.(*ExprValue); i {
   510  			case 0:
   511  				return &v.state
   512  			case 1:
   513  				return &v.sizeCache
   514  			case 2:
   515  				return &v.unknownFields
   516  			default:
   517  				return nil
   518  			}
   519  		}
   520  		file_google_api_expr_v1alpha1_eval_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   521  			switch v := v.(*ErrorSet); i {
   522  			case 0:
   523  				return &v.state
   524  			case 1:
   525  				return &v.sizeCache
   526  			case 2:
   527  				return &v.unknownFields
   528  			default:
   529  				return nil
   530  			}
   531  		}
   532  		file_google_api_expr_v1alpha1_eval_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   533  			switch v := v.(*UnknownSet); i {
   534  			case 0:
   535  				return &v.state
   536  			case 1:
   537  				return &v.sizeCache
   538  			case 2:
   539  				return &v.unknownFields
   540  			default:
   541  				return nil
   542  			}
   543  		}
   544  		file_google_api_expr_v1alpha1_eval_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   545  			switch v := v.(*EvalState_Result); i {
   546  			case 0:
   547  				return &v.state
   548  			case 1:
   549  				return &v.sizeCache
   550  			case 2:
   551  				return &v.unknownFields
   552  			default:
   553  				return nil
   554  			}
   555  		}
   556  	}
   557  	file_google_api_expr_v1alpha1_eval_proto_msgTypes[1].OneofWrappers = []interface{}{
   558  		(*ExprValue_Value)(nil),
   559  		(*ExprValue_Error)(nil),
   560  		(*ExprValue_Unknown)(nil),
   561  	}
   562  	type x struct{}
   563  	out := protoimpl.TypeBuilder{
   564  		File: protoimpl.DescBuilder{
   565  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   566  			RawDescriptor: file_google_api_expr_v1alpha1_eval_proto_rawDesc,
   567  			NumEnums:      0,
   568  			NumMessages:   5,
   569  			NumExtensions: 0,
   570  			NumServices:   0,
   571  		},
   572  		GoTypes:           file_google_api_expr_v1alpha1_eval_proto_goTypes,
   573  		DependencyIndexes: file_google_api_expr_v1alpha1_eval_proto_depIdxs,
   574  		MessageInfos:      file_google_api_expr_v1alpha1_eval_proto_msgTypes,
   575  	}.Build()
   576  	File_google_api_expr_v1alpha1_eval_proto = out.File
   577  	file_google_api_expr_v1alpha1_eval_proto_rawDesc = nil
   578  	file_google_api_expr_v1alpha1_eval_proto_goTypes = nil
   579  	file_google_api_expr_v1alpha1_eval_proto_depIdxs = nil
   580  }
   581  

View as plain text