...
Package label
Overview ▹
Index ▹
Variables
var LabelDescriptor_ValueType_name = map[int32]string{ 0: "STRING", 1: "BOOL", 2: "INT64", }
var LabelDescriptor_ValueType_value = map[string]int32{ "STRING": 0, "BOOL": 1, "INT64": 2, }
type LabelDescriptor ¶
A description of a label.
type LabelDescriptor struct { // The label key. Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` // The type of data that can be assigned to the label. ValueType LabelDescriptor_ValueType `protobuf:"varint,2,opt,name=value_type,json=valueType,enum=google.api.LabelDescriptor_ValueType" json:"value_type,omitempty"` // A human-readable description for the label. Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` }
func (*LabelDescriptor) Descriptor ¶
func (*LabelDescriptor) Descriptor() ([]byte, []int)
func (*LabelDescriptor) GetDescription ¶
func (m *LabelDescriptor) GetDescription() string
func (*LabelDescriptor) GetKey ¶
func (m *LabelDescriptor) GetKey() string
func (*LabelDescriptor) GetValueType ¶
func (m *LabelDescriptor) GetValueType() LabelDescriptor_ValueType
func (*LabelDescriptor) ProtoMessage ¶
func (*LabelDescriptor) ProtoMessage()
func (*LabelDescriptor) Reset ¶
func (m *LabelDescriptor) Reset()
func (*LabelDescriptor) String ¶
func (m *LabelDescriptor) String() string
type LabelDescriptor_ValueType ¶
Value types that can be used as label values.
type LabelDescriptor_ValueType int32
const ( // A variable-length string. This is the default. LabelDescriptor_STRING LabelDescriptor_ValueType = 0 // Boolean; true or false. LabelDescriptor_BOOL LabelDescriptor_ValueType = 1 // A 64-bit signed integer. LabelDescriptor_INT64 LabelDescriptor_ValueType = 2 )
func (LabelDescriptor_ValueType) EnumDescriptor ¶
func (LabelDescriptor_ValueType) EnumDescriptor() ([]byte, []int)
func (LabelDescriptor_ValueType) String ¶
func (x LabelDescriptor_ValueType) String() string