Class AwsSourceDetails.Tag.Builder (1.83.0)

public static final class AwsSourceDetails.Tag.Builder extends GeneratedMessage.Builder<AwsSourceDetails.Tag.Builder> implements AwsSourceDetails.TagOrBuilder

Tag is an AWS tag representation.

Protobuf type google.cloud.vmmigration.v1.AwsSourceDetails.Tag

Static Methods

getDescriptor()

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

Methods

build()

public AwsSourceDetails.Tag build()
Returns
Type Description
AwsSourceDetails.Tag

buildPartial()

public AwsSourceDetails.Tag buildPartial()
Returns
Type Description
AwsSourceDetails.Tag

clear()

public AwsSourceDetails.Tag.Builder clear()
Returns
Type Description
AwsSourceDetails.Tag.Builder
Overrides

clearKey()

public AwsSourceDetails.Tag.Builder clearKey()

Required. Key of tag.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AwsSourceDetails.Tag.Builder

This builder for chaining.

clearValue()

public AwsSourceDetails.Tag.Builder clearValue()

Required. Value of tag.

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

Returns
Type Description
AwsSourceDetails.Tag.Builder

This builder for chaining.

getDefaultInstanceForType()

public AwsSourceDetails.Tag getDefaultInstanceForType()
Returns
Type Description
AwsSourceDetails.Tag

getDescriptorForType()

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

getKey()

public String getKey()

Required. Key of tag.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Required. Key of tag.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for key.

getValue()

public String getValue()

Required. Value of tag.

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

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Required. Value of tag.

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

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AwsSourceDetails.Tag other)

public AwsSourceDetails.Tag.Builder mergeFrom(AwsSourceDetails.Tag other)
Parameter
Name Description
other AwsSourceDetails.Tag
Returns
Type Description
AwsSourceDetails.Tag.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AwsSourceDetails.Tag.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AwsSourceDetails.Tag.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AwsSourceDetails.Tag.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AwsSourceDetails.Tag.Builder
Overrides

setKey(String value)

public AwsSourceDetails.Tag.Builder setKey(String value)

Required. Key of tag.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The key to set.

Returns
Type Description
AwsSourceDetails.Tag.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public AwsSourceDetails.Tag.Builder setKeyBytes(ByteString value)

Required. Key of tag.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
AwsSourceDetails.Tag.Builder

This builder for chaining.

setValue(String value)

public AwsSourceDetails.Tag.Builder setValue(String value)

Required. Value of tag.

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

Parameter
Name Description
value String

The value to set.

Returns
Type Description
AwsSourceDetails.Tag.Builder

This builder for chaining.

setValueBytes(ByteString value)

public AwsSourceDetails.Tag.Builder setValueBytes(ByteString value)

Required. Value of tag.

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

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
AwsSourceDetails.Tag.Builder

This builder for chaining.