Class AspectType.MetadataTemplate.EnumValue.Builder (1.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AspectType.MetadataTemplate.EnumValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AspectType.MetadataTemplate.EnumValue.Builder
Overrides

build()

public AspectType.MetadataTemplate.EnumValue build()
Returns
TypeDescription
AspectType.MetadataTemplate.EnumValue

buildPartial()

public AspectType.MetadataTemplate.EnumValue buildPartial()
Returns
TypeDescription
AspectType.MetadataTemplate.EnumValue

clear()

public AspectType.MetadataTemplate.EnumValue.Builder clear()
Returns
TypeDescription
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
TypeDescription
AspectType.MetadataTemplate.EnumValue.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AspectType.MetadataTemplate.EnumValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AspectType.MetadataTemplate.EnumValue.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AspectType.MetadataTemplate.EnumValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AspectType.MetadataTemplate.EnumValue.Builder
Overrides

clone()

public AspectType.MetadataTemplate.EnumValue.Builder clone()
Returns
TypeDescription
AspectType.MetadataTemplate.EnumValue.Builder
Overrides

getDefaultInstanceForType()

public AspectType.MetadataTemplate.EnumValue getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for deprecated.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIndex()

public int getIndex()

Required. Index for the enum. Cannot be modified.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AspectType.MetadataTemplate.EnumValue other)

public AspectType.MetadataTemplate.EnumValue.Builder mergeFrom(AspectType.MetadataTemplate.EnumValue other)
Parameter
NameDescription
otherAspectType.MetadataTemplate.EnumValue
Returns
TypeDescription
AspectType.MetadataTemplate.EnumValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AspectType.MetadataTemplate.EnumValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AspectType.MetadataTemplate.EnumValue.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AspectType.MetadataTemplate.EnumValue.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AspectType.MetadataTemplate.EnumValue.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AspectType.MetadataTemplate.EnumValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The deprecated to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for deprecated to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The index to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AspectType.MetadataTemplate.EnumValue.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AspectType.MetadataTemplate.EnumValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AspectType.MetadataTemplate.EnumValue.Builder
Overrides