Interface AspectType.MetadataTemplate.EnumValueOrBuilder (1.53.0)

public static interface AspectType.MetadataTemplate.EnumValueOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDeprecated()

public abstract String getDeprecated()

Optional. You can set this message if you need to deprecate an enum value.

string deprecated = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The deprecated.

getDeprecatedBytes()

public abstract ByteString getDeprecatedBytes()

Optional. You can set this message if you need to deprecate an enum value.

string deprecated = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for deprecated.

getIndex()

public abstract int getIndex()

Required. Index for the enum value. It can't be modified.

int32 index = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The index.

getName()

public abstract String getName()

Required. Name of the enumvalue. This is the actual value that the aspect can contain.

string name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Required. Name of the enumvalue. This is the actual value that the aspect can contain.

string name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.