Class LabelDescriptor (2.10.0)

public sealed class LabelDescriptor : IMessage<LabelDescriptor>, IEquatable<LabelDescriptor>, IDeepCloneable<LabelDescriptor>, IBufferMessage, IMessage

A description of a label.

Inheritance

object > LabelDescriptor

Namespace

Google.Api

Assembly

Google.Api.CommonProtos.dll

Constructors

LabelDescriptor()

public LabelDescriptor()

LabelDescriptor(LabelDescriptor)

public LabelDescriptor(LabelDescriptor other)
Parameter
NameDescription
otherLabelDescriptor

Fields

DescriptionFieldNumber

public const int DescriptionFieldNumber = 3

Field number for the "description" field.

Field Value
TypeDescription
int

KeyFieldNumber

public const int KeyFieldNumber = 1

Field number for the "key" field.

Field Value
TypeDescription
int

ValueTypeFieldNumber

public const int ValueTypeFieldNumber = 2

Field number for the "value_type" field.

Field Value
TypeDescription
int

Properties

Description

public string Description { get; set; }

A human-readable description for the label.

Property Value
TypeDescription
string

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
MessageDescriptor

Key

public string Key { get; set; }

The label key.

Property Value
TypeDescription
string

Parser

public static MessageParser<LabelDescriptor> Parser { get; }
Property Value
TypeDescription
MessageParserLabelDescriptor

ValueType

public LabelDescriptor.Types.ValueType ValueType { get; set; }

The type of data that can be assigned to the label.

Property Value
TypeDescription
LabelDescriptorTypesValueType

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
int

Clone()

public LabelDescriptor Clone()
Returns
TypeDescription
LabelDescriptor

Equals(LabelDescriptor)

public bool Equals(LabelDescriptor other)
Parameter
NameDescription
otherLabelDescriptor
Returns
TypeDescription
bool

Equals(object)

public override bool Equals(object other)
Parameter
NameDescription
otherobject
Returns
TypeDescription
bool
Overrides

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
int
Overrides

MergeFrom(LabelDescriptor)

public void MergeFrom(LabelDescriptor other)
Parameter
NameDescription
otherLabelDescriptor

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream

ToString()

public override string ToString()
Returns
TypeDescription
string
Overrides

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream