Class AspectType.MetadataTemplate.EnumValue.Builder (1.81.0)

public static final class AspectType.MetadataTemplate.EnumValue.Builder extends GeneratedMessage.Builder<AspectType.MetadataTemplate.EnumValue.Builder> implements AspectType.MetadataTemplate.EnumValueOrBuilder

Definition of Enumvalue, to be used for enum fields.

Protobuf type google.cloud.dataplex.v1.AspectType.MetadataTemplate.EnumValue

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public AspectType.MetadataTemplate.EnumValue build()
Returns
Type Description
AspectType.MetadataTemplate.EnumValue

buildPartial()

public AspectType.MetadataTemplate.EnumValue buildPartial()
Returns
Type Description
AspectType.MetadataTemplate.EnumValue

clear()

public AspectType.MetadataTemplate.EnumValue.Builder clear()
Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder
Overrides

clearDeprecated()

public AspectType.MetadataTemplate.EnumValue.Builder clearDeprecated()

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
AspectType.MetadataTemplate.EnumValue.Builder

This builder for chaining.

clearIndex()

public AspectType.MetadataTemplate.EnumValue.Builder clearIndex()

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

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

Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder

This builder for chaining.

clearName()

public AspectType.MetadataTemplate.EnumValue.Builder clearName()

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
AspectType.MetadataTemplate.EnumValue.Builder

This builder for chaining.

getDefaultInstanceForType()

public AspectType.MetadataTemplate.EnumValue getDefaultInstanceForType()
Returns
Type Description
AspectType.MetadataTemplate.EnumValue

getDeprecated()

public 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 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.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIndex()

public 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 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AspectType.MetadataTemplate.EnumValue other)

public AspectType.MetadataTemplate.EnumValue.Builder mergeFrom(AspectType.MetadataTemplate.EnumValue other)
Parameter
Name Description
other AspectType.MetadataTemplate.EnumValue
Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AspectType.MetadataTemplate.EnumValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AspectType.MetadataTemplate.EnumValue.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder
Overrides

setDeprecated(String value)

public AspectType.MetadataTemplate.EnumValue.Builder setDeprecated(String value)

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

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

Parameter
Name Description
value String

The deprecated to set.

Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder

This builder for chaining.

setDeprecatedBytes(ByteString value)

public AspectType.MetadataTemplate.EnumValue.Builder setDeprecatedBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for deprecated to set.

Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder

This builder for chaining.

setIndex(int value)

public AspectType.MetadataTemplate.EnumValue.Builder setIndex(int value)

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

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

Parameter
Name Description
value int

The index to set.

Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder

This builder for chaining.

setName(String value)

public AspectType.MetadataTemplate.EnumValue.Builder setName(String value)

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

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AspectType.MetadataTemplate.EnumValue.Builder setNameBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder

This builder for chaining.