label

package
v0.0.0-...-96659ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package label is a generated protocol buffer package.

It is generated from these files:

google/api/label.proto

It has these top-level messages:

LabelDescriptor

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type LabelDescriptor

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"`
}

A description of a label.

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

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) EnumDescriptor

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

func (LabelDescriptor_ValueType) String

func (x LabelDescriptor_ValueType) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL