Class AwsSourceDiskDetails.Builder (1.74.0)

public static final class AwsSourceDiskDetails.Builder extends GeneratedMessageV3.Builder<AwsSourceDiskDetails.Builder> implements AwsSourceDiskDetailsOrBuilder

Represents the source AWS Disk details.

Protobuf type google.cloud.vmmigration.v1.AwsSourceDiskDetails

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AwsSourceDiskDetails build()
Returns
Type Description
AwsSourceDiskDetails

buildPartial()

public AwsSourceDiskDetails buildPartial()
Returns
Type Description
AwsSourceDiskDetails

clear()

public AwsSourceDiskDetails.Builder clear()
Returns
Type Description
AwsSourceDiskDetails.Builder
Overrides

clearDiskType()

public AwsSourceDiskDetails.Builder clearDiskType()

Optional. Output only. Disk type.

.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type disk_type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AwsSourceDiskDetails.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AwsSourceDiskDetails.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AwsSourceDiskDetails.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AwsSourceDiskDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AwsSourceDiskDetails.Builder
Overrides

clearSizeGib()

public AwsSourceDiskDetails.Builder clearSizeGib()

Output only. Size in GiB.

int64 size_gib = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AwsSourceDiskDetails.Builder

This builder for chaining.

clearTags()

public AwsSourceDiskDetails.Builder clearTags()
Returns
Type Description
AwsSourceDiskDetails.Builder

clearVolumeId()

public AwsSourceDiskDetails.Builder clearVolumeId()

Required. AWS volume ID.

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

Returns
Type Description
AwsSourceDiskDetails.Builder

This builder for chaining.

clone()

public AwsSourceDiskDetails.Builder clone()
Returns
Type Description
AwsSourceDiskDetails.Builder
Overrides

containsTags(String key)

public boolean containsTags(String key)

Optional. Output only. A map of AWS volume tags.

map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public AwsSourceDiskDetails getDefaultInstanceForType()
Returns
Type Description
AwsSourceDiskDetails

getDescriptorForType()

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

getDiskType()

public AwsSourceDiskDetails.Type getDiskType()

Optional. Output only. Disk type.

.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type disk_type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AwsSourceDiskDetails.Type

The diskType.

getDiskTypeValue()

public int getDiskTypeValue()

Optional. Output only. Disk type.

.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type disk_type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for diskType.

getMutableTags() (deprecated)

public Map<String,String> getMutableTags()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getSizeGib()

public long getSizeGib()

Output only. Size in GiB.

int64 size_gib = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The sizeGib.

getTags() (deprecated)

public Map<String,String> getTags()

Use #getTagsMap() instead.

Returns
Type Description
Map<String,String>

getTagsCount()

public int getTagsCount()

Optional. Output only. A map of AWS volume tags.

map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getTagsMap()

public Map<String,String> getTagsMap()

Optional. Output only. A map of AWS volume tags.

map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,String>

getTagsOrDefault(String key, String defaultValue)

public String getTagsOrDefault(String key, String defaultValue)

Optional. Output only. A map of AWS volume tags.

map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getTagsOrThrow(String key)

public String getTagsOrThrow(String key)

Optional. Output only. A map of AWS volume tags.

map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
String

getVolumeId()

public String getVolumeId()

Required. AWS volume ID.

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

Returns
Type Description
String

The volumeId.

getVolumeIdBytes()

public ByteString getVolumeIdBytes()

Required. AWS volume ID.

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

Returns
Type Description
ByteString

The bytes for volumeId.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AwsSourceDiskDetails other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AwsSourceDiskDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AwsSourceDiskDetails.Builder
Overrides

putAllTags(Map<String,String> values)

public AwsSourceDiskDetails.Builder putAllTags(Map<String,String> values)

Optional. Output only. A map of AWS volume tags.

map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
AwsSourceDiskDetails.Builder

putTags(String key, String value)

public AwsSourceDiskDetails.Builder putTags(String key, String value)

Optional. Output only. A map of AWS volume tags.

map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value String
Returns
Type Description
AwsSourceDiskDetails.Builder

removeTags(String key)

public AwsSourceDiskDetails.Builder removeTags(String key)

Optional. Output only. A map of AWS volume tags.

map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
AwsSourceDiskDetails.Builder

setDiskType(AwsSourceDiskDetails.Type value)

public AwsSourceDiskDetails.Builder setDiskType(AwsSourceDiskDetails.Type value)

Optional. Output only. Disk type.

.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type disk_type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AwsSourceDiskDetails.Type

The diskType to set.

Returns
Type Description
AwsSourceDiskDetails.Builder

This builder for chaining.

setDiskTypeValue(int value)

public AwsSourceDiskDetails.Builder setDiskTypeValue(int value)

Optional. Output only. Disk type.

.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type disk_type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for diskType to set.

Returns
Type Description
AwsSourceDiskDetails.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSizeGib(long value)

public AwsSourceDiskDetails.Builder setSizeGib(long value)

Output only. Size in GiB.

int64 size_gib = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The sizeGib to set.

Returns
Type Description
AwsSourceDiskDetails.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AwsSourceDiskDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AwsSourceDiskDetails.Builder
Overrides

setVolumeId(String value)

public AwsSourceDiskDetails.Builder setVolumeId(String value)

Required. AWS volume ID.

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

Parameter
Name Description
value String

The volumeId to set.

Returns
Type Description
AwsSourceDiskDetails.Builder

This builder for chaining.

setVolumeIdBytes(ByteString value)

public AwsSourceDiskDetails.Builder setVolumeIdBytes(ByteString value)

Required. AWS volume ID.

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

Parameter
Name Description
value ByteString

The bytes for volumeId to set.

Returns
Type Description
AwsSourceDiskDetails.Builder

This builder for chaining.