Back to godoc.org
google.golang.org/genproto/googleapis/api/label

package label

v0.0.0 (0750642)
Latest Go to latest
Published: 4 days ago | License: Apache-2.0 | Module: google.golang.org/genproto

Index

Variables

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

type LabelDescriptor struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`

	ValueType LabelDescriptor_ValueType "" /* 131 byte string literal not displayed */

	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`

}

A description of a label.

func (*LabelDescriptor) Descriptor

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

Deprecated: Use LabelDescriptor.ProtoReflect.Descriptor instead.

func (*LabelDescriptor) GetDescription

func (x *LabelDescriptor) GetDescription() string

func (*LabelDescriptor) GetKey

func (x *LabelDescriptor) GetKey() string

func (*LabelDescriptor) GetValueType

func (x *LabelDescriptor) GetValueType() LabelDescriptor_ValueType

func (*LabelDescriptor) ProtoMessage

func (*LabelDescriptor) ProtoMessage()

func (*LabelDescriptor) ProtoReflect

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

func (*LabelDescriptor) Reset

func (x *LabelDescriptor) Reset()

func (*LabelDescriptor) String

func (x *LabelDescriptor) String() string

type LabelDescriptor_ValueType

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

func (LabelDescriptor_ValueType) Descriptor() protoreflect.EnumDescriptor

func (LabelDescriptor_ValueType) Enum

func (x LabelDescriptor_ValueType) Enum() *LabelDescriptor_ValueType

func (LabelDescriptor_ValueType) EnumDescriptor

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

Deprecated: Use LabelDescriptor_ValueType.Descriptor instead.

func (LabelDescriptor_ValueType) Number

func (x LabelDescriptor_ValueType) Number() protoreflect.EnumNumber

func (LabelDescriptor_ValueType) String

func (x LabelDescriptor_ValueType) String() string

func (LabelDescriptor_ValueType) Type

func (LabelDescriptor_ValueType) Type() protoreflect.EnumType
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier