Class AspectType.MetadataTemplate.EnumValue.Builder (1.44.0)

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

Definition of Enumvalue (to be used by 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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AspectType.MetadataTemplate.EnumValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder
Overrides

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. Optional deprecation message to be set if an enum value needs to be deprecated.

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

Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AspectType.MetadataTemplate.EnumValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder
Overrides

clearIndex()

public AspectType.MetadataTemplate.EnumValue.Builder clearIndex()

Required. Index for the enum. Cannot 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 will contain.

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

Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AspectType.MetadataTemplate.EnumValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder
Overrides

clone()

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

getDefaultInstanceForType()

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

getDeprecated()

public String getDeprecated()

Optional. Optional deprecation message to be set if an enum value needs to be deprecated.

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

Returns
Type Description
String

The deprecated.

getDeprecatedBytes()

public ByteString getDeprecatedBytes()

Optional. Optional deprecation message to be set if an enum value needs to be deprecated.

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. Cannot 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 will 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 will contain.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AspectType.MetadataTemplate.EnumValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder
Overrides

setDeprecated(String value)

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

Optional. Optional deprecation message to be set if an enum value needs to be deprecated.

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. Optional deprecation message to be set if an enum value needs to be deprecated.

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.

setField(Descriptors.FieldDescriptor field, Object value)

public AspectType.MetadataTemplate.EnumValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder
Overrides

setIndex(int value)

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

Required. Index for the enum. Cannot 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 will 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 will 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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AspectType.MetadataTemplate.EnumValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AspectType.MetadataTemplate.EnumValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AspectType.MetadataTemplate.EnumValue.Builder
Overrides