...

Source file src/google.golang.org/genproto/googleapis/api/label/label.pb.go

Documentation: google.golang.org/genproto/googleapis/api/label

     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/label.proto
    20  
    21  package label
    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  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  // Value types that can be used as label values.
    39  type LabelDescriptor_ValueType int32
    40  
    41  const (
    42  	// A variable-length string. This is the default.
    43  	LabelDescriptor_STRING LabelDescriptor_ValueType = 0
    44  	// Boolean; true or false.
    45  	LabelDescriptor_BOOL LabelDescriptor_ValueType = 1
    46  	// A 64-bit signed integer.
    47  	LabelDescriptor_INT64 LabelDescriptor_ValueType = 2
    48  )
    49  
    50  // Enum value maps for LabelDescriptor_ValueType.
    51  var (
    52  	LabelDescriptor_ValueType_name = map[int32]string{
    53  		0: "STRING",
    54  		1: "BOOL",
    55  		2: "INT64",
    56  	}
    57  	LabelDescriptor_ValueType_value = map[string]int32{
    58  		"STRING": 0,
    59  		"BOOL":   1,
    60  		"INT64":  2,
    61  	}
    62  )
    63  
    64  func (x LabelDescriptor_ValueType) Enum() *LabelDescriptor_ValueType {
    65  	p := new(LabelDescriptor_ValueType)
    66  	*p = x
    67  	return p
    68  }
    69  
    70  func (x LabelDescriptor_ValueType) String() string {
    71  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    72  }
    73  
    74  func (LabelDescriptor_ValueType) Descriptor() protoreflect.EnumDescriptor {
    75  	return file_google_api_label_proto_enumTypes[0].Descriptor()
    76  }
    77  
    78  func (LabelDescriptor_ValueType) Type() protoreflect.EnumType {
    79  	return &file_google_api_label_proto_enumTypes[0]
    80  }
    81  
    82  func (x LabelDescriptor_ValueType) Number() protoreflect.EnumNumber {
    83  	return protoreflect.EnumNumber(x)
    84  }
    85  
    86  // Deprecated: Use LabelDescriptor_ValueType.Descriptor instead.
    87  func (LabelDescriptor_ValueType) EnumDescriptor() ([]byte, []int) {
    88  	return file_google_api_label_proto_rawDescGZIP(), []int{0, 0}
    89  }
    90  
    91  // A description of a label.
    92  type LabelDescriptor struct {
    93  	state         protoimpl.MessageState
    94  	sizeCache     protoimpl.SizeCache
    95  	unknownFields protoimpl.UnknownFields
    96  
    97  	// The label key.
    98  	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    99  	// The type of data that can be assigned to the label.
   100  	ValueType LabelDescriptor_ValueType `protobuf:"varint,2,opt,name=value_type,json=valueType,proto3,enum=google.api.LabelDescriptor_ValueType" json:"value_type,omitempty"`
   101  	// A human-readable description for the label.
   102  	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
   103  }
   104  
   105  func (x *LabelDescriptor) Reset() {
   106  	*x = LabelDescriptor{}
   107  	if protoimpl.UnsafeEnabled {
   108  		mi := &file_google_api_label_proto_msgTypes[0]
   109  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   110  		ms.StoreMessageInfo(mi)
   111  	}
   112  }
   113  
   114  func (x *LabelDescriptor) String() string {
   115  	return protoimpl.X.MessageStringOf(x)
   116  }
   117  
   118  func (*LabelDescriptor) ProtoMessage() {}
   119  
   120  func (x *LabelDescriptor) ProtoReflect() protoreflect.Message {
   121  	mi := &file_google_api_label_proto_msgTypes[0]
   122  	if protoimpl.UnsafeEnabled && x != nil {
   123  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   124  		if ms.LoadMessageInfo() == nil {
   125  			ms.StoreMessageInfo(mi)
   126  		}
   127  		return ms
   128  	}
   129  	return mi.MessageOf(x)
   130  }
   131  
   132  // Deprecated: Use LabelDescriptor.ProtoReflect.Descriptor instead.
   133  func (*LabelDescriptor) Descriptor() ([]byte, []int) {
   134  	return file_google_api_label_proto_rawDescGZIP(), []int{0}
   135  }
   136  
   137  func (x *LabelDescriptor) GetKey() string {
   138  	if x != nil {
   139  		return x.Key
   140  	}
   141  	return ""
   142  }
   143  
   144  func (x *LabelDescriptor) GetValueType() LabelDescriptor_ValueType {
   145  	if x != nil {
   146  		return x.ValueType
   147  	}
   148  	return LabelDescriptor_STRING
   149  }
   150  
   151  func (x *LabelDescriptor) GetDescription() string {
   152  	if x != nil {
   153  		return x.Description
   154  	}
   155  	return ""
   156  }
   157  
   158  var File_google_api_label_proto protoreflect.FileDescriptor
   159  
   160  var file_google_api_label_proto_rawDesc = []byte{
   161  	0x0a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x61, 0x62,
   162  	0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   163  	0x2e, 0x61, 0x70, 0x69, 0x22, 0xb9, 0x01, 0x0a, 0x0f, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x44, 0x65,
   164  	0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
   165  	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44, 0x0a, 0x0a, 0x76, 0x61,
   166  	0x6c, 0x75, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25,
   167  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x61, 0x62, 0x65,
   168  	0x6c, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x56, 0x61, 0x6c, 0x75,
   169  	0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65,
   170  	0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
   171  	0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
   172  	0x6f, 0x6e, 0x22, 0x2c, 0x0a, 0x09, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12,
   173  	0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x42,
   174  	0x4f, 0x4f, 0x4c, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x02,
   175  	0x42, 0x5f, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61,
   176  	0x70, 0x69, 0x42, 0x0a, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
   177  	0x5a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
   178  	0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f,
   179  	0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x61, 0x62, 0x65,
   180  	0x6c, 0x3b, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50,
   181  	0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   182  }
   183  
   184  var (
   185  	file_google_api_label_proto_rawDescOnce sync.Once
   186  	file_google_api_label_proto_rawDescData = file_google_api_label_proto_rawDesc
   187  )
   188  
   189  func file_google_api_label_proto_rawDescGZIP() []byte {
   190  	file_google_api_label_proto_rawDescOnce.Do(func() {
   191  		file_google_api_label_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_label_proto_rawDescData)
   192  	})
   193  	return file_google_api_label_proto_rawDescData
   194  }
   195  
   196  var file_google_api_label_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   197  var file_google_api_label_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   198  var file_google_api_label_proto_goTypes = []interface{}{
   199  	(LabelDescriptor_ValueType)(0), // 0: google.api.LabelDescriptor.ValueType
   200  	(*LabelDescriptor)(nil),        // 1: google.api.LabelDescriptor
   201  }
   202  var file_google_api_label_proto_depIdxs = []int32{
   203  	0, // 0: google.api.LabelDescriptor.value_type:type_name -> google.api.LabelDescriptor.ValueType
   204  	1, // [1:1] is the sub-list for method output_type
   205  	1, // [1:1] is the sub-list for method input_type
   206  	1, // [1:1] is the sub-list for extension type_name
   207  	1, // [1:1] is the sub-list for extension extendee
   208  	0, // [0:1] is the sub-list for field type_name
   209  }
   210  
   211  func init() { file_google_api_label_proto_init() }
   212  func file_google_api_label_proto_init() {
   213  	if File_google_api_label_proto != nil {
   214  		return
   215  	}
   216  	if !protoimpl.UnsafeEnabled {
   217  		file_google_api_label_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   218  			switch v := v.(*LabelDescriptor); i {
   219  			case 0:
   220  				return &v.state
   221  			case 1:
   222  				return &v.sizeCache
   223  			case 2:
   224  				return &v.unknownFields
   225  			default:
   226  				return nil
   227  			}
   228  		}
   229  	}
   230  	type x struct{}
   231  	out := protoimpl.TypeBuilder{
   232  		File: protoimpl.DescBuilder{
   233  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   234  			RawDescriptor: file_google_api_label_proto_rawDesc,
   235  			NumEnums:      1,
   236  			NumMessages:   1,
   237  			NumExtensions: 0,
   238  			NumServices:   0,
   239  		},
   240  		GoTypes:           file_google_api_label_proto_goTypes,
   241  		DependencyIndexes: file_google_api_label_proto_depIdxs,
   242  		EnumInfos:         file_google_api_label_proto_enumTypes,
   243  		MessageInfos:      file_google_api_label_proto_msgTypes,
   244  	}.Build()
   245  	File_google_api_label_proto = out.File
   246  	file_google_api_label_proto_rawDesc = nil
   247  	file_google_api_label_proto_goTypes = nil
   248  	file_google_api_label_proto_depIdxs = nil
   249  }
   250  

View as plain text