...

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

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

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

View as plain text