Show / Hide Table of Contents

Class LabelDescriptor

A description of a label.

Inheritance
System.Object
LabelDescriptor
Implements
IMessage<LabelDescriptor>
IMessage
System.IEquatable<LabelDescriptor>
IDeepCloneable<LabelDescriptor>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Api
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class LabelDescriptor : IMessage<LabelDescriptor>, IMessage, IEquatable<LabelDescriptor>, IDeepCloneable<LabelDescriptor>

Constructors

LabelDescriptor()

Declaration
public LabelDescriptor()

LabelDescriptor(LabelDescriptor)

Declaration
public LabelDescriptor(LabelDescriptor other)
Parameters
Type Name Description
LabelDescriptor other

Fields

DescriptionFieldNumber

Field number for the "description" field.

Declaration
public const int DescriptionFieldNumber = 3
Field Value
Type Description
System.Int32

KeyFieldNumber

Field number for the "key" field.

Declaration
public const int KeyFieldNumber = 1
Field Value
Type Description
System.Int32

ValueTypeFieldNumber

Field number for the "value_type" field.

Declaration
public const int ValueTypeFieldNumber = 2
Field Value
Type Description
System.Int32

Properties

Description

A human-readable description for the label.

Declaration
public string Description { get; set; }
Property Value
Type Description
System.String

Descriptor

Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

Key

The label key.

Declaration
public string Key { get; set; }
Property Value
Type Description
System.String

Parser

Declaration
public static MessageParser<LabelDescriptor> Parser { get; }
Property Value
Type Description
MessageParser<LabelDescriptor>

ValueType

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

Declaration
public LabelDescriptor.Types.ValueType ValueType { get; set; }
Property Value
Type Description
LabelDescriptor.Types.ValueType

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

Clone()

Declaration
public LabelDescriptor Clone()
Returns
Type Description
LabelDescriptor
Implements
IDeepCloneable<T>.Clone()

Equals(LabelDescriptor)

Declaration
public bool Equals(LabelDescriptor other)
Parameters
Type Name Description
LabelDescriptor other
Returns
Type Description
System.Boolean
Implements
System.IEquatable<T>.Equals(T)

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
System.Object other
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

MergeFrom(LabelDescriptor)

Declaration
public void MergeFrom(LabelDescriptor other)
Parameters
Type Name Description
LabelDescriptor other
Implements
IMessage<T>.MergeFrom(T)

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor
Back to top