...

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

View as plain text