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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AwsSourceDiskDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AwsSourceDiskDetails build()
buildPartial()
public AwsSourceDiskDetails buildPartial()
clear()
public AwsSourceDiskDetails.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public AwsSourceDiskDetails.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AwsSourceDiskDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSizeGib()
public AwsSourceDiskDetails.Builder clearSizeGib()
Output only. Size in GiB.
int64 size_gib = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public AwsSourceDiskDetails.Builder clearTags()
clearVolumeId()
public AwsSourceDiskDetails.Builder clearVolumeId()
Required. AWS volume ID.
string volume_id = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public AwsSourceDiskDetails.Builder clone()
Overrides
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
|
getDefaultInstanceForType()
public AwsSourceDiskDetails getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
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.
|
public Map<String,String> getMutableTags()
Use alternate mutation accessors instead.
getSizeGib()
Output only. Size in GiB.
int64 size_gib = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
long |
The sizeGib.
|
public Map<String,String> getTags()
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 |
|
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];
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];
Returns |
Type |
Description |
String |
|
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()
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()
Overrides
mergeFrom(AwsSourceDiskDetails other)
public AwsSourceDiskDetails.Builder mergeFrom(AwsSourceDiskDetails other)
public AwsSourceDiskDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AwsSourceDiskDetails.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AwsSourceDiskDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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];
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];
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
|
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];
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public AwsSourceDiskDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AwsSourceDiskDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final AwsSourceDiskDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|