genproto: Index | Files

package label

import ""


Package Files



var (
    LabelDescriptor_ValueType_name = map[int32]string{
        0:  "STRING",
        1:  "BOOL",
        2:  "INT64",
    LabelDescriptor_ValueType_value = map[string]int32{
        "STRING": 0,
        "BOOL":   1,
        "INT64":  2,

Enum value maps for LabelDescriptor_ValueType.

var File_google_api_label_proto protoreflect.FileDescriptor

type LabelDescriptor Uses

type LabelDescriptor struct {

    // The label key.
    Key string `protobuf:"bytes,1,opt,name=key,proto3" 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,proto3,enum=google.api.LabelDescriptor_ValueType" json:"value_type,omitempty"`
    // A human-readable description for the label.
    Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
    // contains filtered or unexported fields

A description of a label.

func (*LabelDescriptor) Descriptor Uses

func (*LabelDescriptor) Descriptor() ([]byte, []int)

Deprecated: Use LabelDescriptor.ProtoReflect.Descriptor instead.

func (*LabelDescriptor) GetDescription Uses

func (x *LabelDescriptor) GetDescription() string

func (*LabelDescriptor) GetKey Uses

func (x *LabelDescriptor) GetKey() string

func (*LabelDescriptor) GetValueType Uses

func (x *LabelDescriptor) GetValueType() LabelDescriptor_ValueType

func (*LabelDescriptor) ProtoMessage Uses

func (*LabelDescriptor) ProtoMessage()

func (*LabelDescriptor) ProtoReflect Uses

func (x *LabelDescriptor) ProtoReflect() protoreflect.Message

func (*LabelDescriptor) Reset Uses

func (x *LabelDescriptor) Reset()

func (*LabelDescriptor) String Uses

func (x *LabelDescriptor) String() string

type LabelDescriptor_ValueType Uses

type LabelDescriptor_ValueType int32

Value types that can be used as label values.

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) Descriptor Uses

func (LabelDescriptor_ValueType) Descriptor() protoreflect.EnumDescriptor

func (LabelDescriptor_ValueType) Enum Uses

func (x LabelDescriptor_ValueType) Enum() *LabelDescriptor_ValueType

func (LabelDescriptor_ValueType) EnumDescriptor Uses

func (LabelDescriptor_ValueType) EnumDescriptor() ([]byte, []int)

Deprecated: Use LabelDescriptor_ValueType.Descriptor instead.

func (LabelDescriptor_ValueType) Number Uses

func (x LabelDescriptor_ValueType) Number() protoreflect.EnumNumber

func (LabelDescriptor_ValueType) String Uses

func (x LabelDescriptor_ValueType) String() string

func (LabelDescriptor_ValueType) Type Uses

func (LabelDescriptor_ValueType) Type() protoreflect.EnumType

Package label imports 5 packages (graph) and is imported by 28 packages. Updated 2020-09-03. Refresh now. Tools for package owners.