public static final class DiskMigrationJobTargetDetails.Builder extends GeneratedMessageV3.Builder<DiskMigrationJobTargetDetails.Builder> implements DiskMigrationJobTargetDetailsOrBuilder
Details of the target disk in Compute Engine.
Protobuf type google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails
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 DiskMigrationJobTargetDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public DiskMigrationJobTargetDetails build()
buildPartial()
public DiskMigrationJobTargetDetails buildPartial()
clear()
public DiskMigrationJobTargetDetails.Builder clear()
Overrides
clearEncryption()
public DiskMigrationJobTargetDetails.Builder clearEncryption()
Optional. The encryption to apply to the disk.
If the DiskMigrationJob parent Source resource has an encryption, this
field must be set to the same encryption key.
.google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL];
clearField(Descriptors.FieldDescriptor field)
public DiskMigrationJobTargetDetails.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLabels()
public DiskMigrationJobTargetDetails.Builder clearLabels()
clearOneof(Descriptors.OneofDescriptor oneof)
public DiskMigrationJobTargetDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTargetDisk()
public DiskMigrationJobTargetDetails.Builder clearTargetDisk()
Required. The target disk.
.google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED];
clearTargetProject()
public DiskMigrationJobTargetDetails.Builder clearTargetProject()
Required. The name of the resource of type TargetProject which represents
the Compute Engine project in which to create the disk. Should be of the
form: projects/{project}/locations/global/targetProjects/{target-project}
string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clearTargetStorage()
public DiskMigrationJobTargetDetails.Builder clearTargetStorage()
clone()
public DiskMigrationJobTargetDetails.Builder clone()
Overrides
containsLabels(String key)
public boolean containsLabels(String key)
Optional. A map of labels to associate with the disk.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
getDefaultInstanceForType()
public DiskMigrationJobTargetDetails getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEncryption()
public Encryption getEncryption()
Optional. The encryption to apply to the disk.
If the DiskMigrationJob parent Source resource has an encryption, this
field must be set to the same encryption key.
.google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
Encryption |
The encryption.
|
getEncryptionBuilder()
public Encryption.Builder getEncryptionBuilder()
Optional. The encryption to apply to the disk.
If the DiskMigrationJob parent Source resource has an encryption, this
field must be set to the same encryption key.
.google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL];
getEncryptionOrBuilder()
public EncryptionOrBuilder getEncryptionOrBuilder()
Optional. The encryption to apply to the disk.
If the DiskMigrationJob parent Source resource has an encryption, this
field must be set to the same encryption key.
.google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL];
getLabels() (deprecated)
public Map<String,String> getLabels()
getLabelsCount()
public int getLabelsCount()
Optional. A map of labels to associate with the disk.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()
Optional. A map of labels to associate with the disk.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Optional. A map of labels to associate with the disk.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Optional. A map of labels to associate with the disk.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
getTargetDisk()
public ComputeEngineDisk getTargetDisk()
Required. The target disk.
.google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED];
getTargetDiskBuilder()
public ComputeEngineDisk.Builder getTargetDiskBuilder()
Required. The target disk.
.google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED];
getTargetDiskOrBuilder()
public ComputeEngineDiskOrBuilder getTargetDiskOrBuilder()
Required. The target disk.
.google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED];
getTargetProject()
public String getTargetProject()
Required. The name of the resource of type TargetProject which represents
the Compute Engine project in which to create the disk. Should be of the
form: projects/{project}/locations/global/targetProjects/{target-project}
string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The targetProject.
|
getTargetProjectBytes()
public ByteString getTargetProjectBytes()
Required. The name of the resource of type TargetProject which represents
the Compute Engine project in which to create the disk. Should be of the
form: projects/{project}/locations/global/targetProjects/{target-project}
string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for targetProject.
|
getTargetStorageCase()
public DiskMigrationJobTargetDetails.TargetStorageCase getTargetStorageCase()
hasEncryption()
public boolean hasEncryption()
Optional. The encryption to apply to the disk.
If the DiskMigrationJob parent Source resource has an encryption, this
field must be set to the same encryption key.
.google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the encryption field is set.
|
hasTargetDisk()
public boolean hasTargetDisk()
Required. The target disk.
.google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the targetDisk field is set.
|
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
mergeEncryption(Encryption value)
public DiskMigrationJobTargetDetails.Builder mergeEncryption(Encryption value)
Optional. The encryption to apply to the disk.
If the DiskMigrationJob parent Source resource has an encryption, this
field must be set to the same encryption key.
.google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL];
mergeFrom(DiskMigrationJobTargetDetails other)
public DiskMigrationJobTargetDetails.Builder mergeFrom(DiskMigrationJobTargetDetails other)
public DiskMigrationJobTargetDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DiskMigrationJobTargetDetails.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeTargetDisk(ComputeEngineDisk value)
public DiskMigrationJobTargetDetails.Builder mergeTargetDisk(ComputeEngineDisk value)
Required. The target disk.
.google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DiskMigrationJobTargetDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
putAllLabels(Map<String,String> values)
public DiskMigrationJobTargetDetails.Builder putAllLabels(Map<String,String> values)
Optional. A map of labels to associate with the disk.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
putLabels(String key, String value)
public DiskMigrationJobTargetDetails.Builder putLabels(String key, String value)
Optional. A map of labels to associate with the disk.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
removeLabels(String key)
public DiskMigrationJobTargetDetails.Builder removeLabels(String key)
Optional. A map of labels to associate with the disk.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
setEncryption(Encryption value)
public DiskMigrationJobTargetDetails.Builder setEncryption(Encryption value)
Optional. The encryption to apply to the disk.
If the DiskMigrationJob parent Source resource has an encryption, this
field must be set to the same encryption key.
.google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL];
setEncryption(Encryption.Builder builderForValue)
public DiskMigrationJobTargetDetails.Builder setEncryption(Encryption.Builder builderForValue)
Optional. The encryption to apply to the disk.
If the DiskMigrationJob parent Source resource has an encryption, this
field must be set to the same encryption key.
.google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL];
setField(Descriptors.FieldDescriptor field, Object value)
public DiskMigrationJobTargetDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DiskMigrationJobTargetDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setTargetDisk(ComputeEngineDisk value)
public DiskMigrationJobTargetDetails.Builder setTargetDisk(ComputeEngineDisk value)
Required. The target disk.
.google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED];
setTargetDisk(ComputeEngineDisk.Builder builderForValue)
public DiskMigrationJobTargetDetails.Builder setTargetDisk(ComputeEngineDisk.Builder builderForValue)
Required. The target disk.
.google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED];
setTargetProject(String value)
public DiskMigrationJobTargetDetails.Builder setTargetProject(String value)
Required. The name of the resource of type TargetProject which represents
the Compute Engine project in which to create the disk. Should be of the
form: projects/{project}/locations/global/targetProjects/{target-project}
string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
String
The targetProject to set.
|
setTargetProjectBytes(ByteString value)
public DiskMigrationJobTargetDetails.Builder setTargetProjectBytes(ByteString value)
Required. The name of the resource of type TargetProject which represents
the Compute Engine project in which to create the disk. Should be of the
form: projects/{project}/locations/global/targetProjects/{target-project}
string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for targetProject to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final DiskMigrationJobTargetDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides