Class AzureSourceDetails.Builder (1.74.0)

public static final class AzureSourceDetails.Builder extends GeneratedMessageV3.Builder<AzureSourceDetails.Builder> implements AzureSourceDetailsOrBuilder

AzureSourceDetails message describes a specific source details for the Azure source type.

Protobuf type google.cloud.vmmigration.v1.AzureSourceDetails

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AzureSourceDetails build()
Returns
Type Description
AzureSourceDetails

buildPartial()

public AzureSourceDetails buildPartial()
Returns
Type Description
AzureSourceDetails

clear()

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

clearAzureLocation()

public AzureSourceDetails.Builder clearAzureLocation()

Immutable. The Azure location (region) that the source VMs will be migrated from.

string azure_location = 5 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
AzureSourceDetails.Builder

This builder for chaining.

clearClientSecretCreds()

public AzureSourceDetails.Builder clearClientSecretCreds()

Azure Credentials using tenant ID, client ID and secret.

.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9;

Returns
Type Description
AzureSourceDetails.Builder

clearCredentialsType()

public AzureSourceDetails.Builder clearCredentialsType()
Returns
Type Description
AzureSourceDetails.Builder

clearError()

public AzureSourceDetails.Builder clearError()

Output only. Provides details on the state of the Source in case of an error.

.google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AzureSourceDetails.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMigrationResourcesUserTags()

public AzureSourceDetails.Builder clearMigrationResourcesUserTags()
Returns
Type Description
AzureSourceDetails.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourceGroupId()

public AzureSourceDetails.Builder clearResourceGroupId()

Output only. The ID of the Azure resource group that contains all resources related to the migration process of this source.

string resource_group_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AzureSourceDetails.Builder

This builder for chaining.

clearState()

public AzureSourceDetails.Builder clearState()

Output only. State of the source as determined by the health check.

.google.cloud.vmmigration.v1.AzureSourceDetails.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AzureSourceDetails.Builder

This builder for chaining.

clearSubscriptionId()

public AzureSourceDetails.Builder clearSubscriptionId()

Immutable. Azure subscription ID.

string subscription_id = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
AzureSourceDetails.Builder

This builder for chaining.

clone()

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

containsMigrationResourcesUserTags(String key)

public boolean containsMigrationResourcesUserTags(String key)

User specified tags to add to every M2VM generated resource in Azure. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix m4ce or m2vm.

map<string, string> migration_resources_user_tags = 8;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAzureLocation()

public String getAzureLocation()

Immutable. The Azure location (region) that the source VMs will be migrated from.

string azure_location = 5 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The azureLocation.

getAzureLocationBytes()

public ByteString getAzureLocationBytes()

Immutable. The Azure location (region) that the source VMs will be migrated from.

string azure_location = 5 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for azureLocation.

getClientSecretCreds()

public AzureSourceDetails.ClientSecretCredentials getClientSecretCreds()

Azure Credentials using tenant ID, client ID and secret.

.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9;

Returns
Type Description
AzureSourceDetails.ClientSecretCredentials

The clientSecretCreds.

getClientSecretCredsBuilder()

public AzureSourceDetails.ClientSecretCredentials.Builder getClientSecretCredsBuilder()

Azure Credentials using tenant ID, client ID and secret.

.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9;

Returns
Type Description
AzureSourceDetails.ClientSecretCredentials.Builder

getClientSecretCredsOrBuilder()

public AzureSourceDetails.ClientSecretCredentialsOrBuilder getClientSecretCredsOrBuilder()

Azure Credentials using tenant ID, client ID and secret.

.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9;

Returns
Type Description
AzureSourceDetails.ClientSecretCredentialsOrBuilder

getCredentialsTypeCase()

public AzureSourceDetails.CredentialsTypeCase getCredentialsTypeCase()
Returns
Type Description
AzureSourceDetails.CredentialsTypeCase

getDefaultInstanceForType()

public AzureSourceDetails getDefaultInstanceForType()
Returns
Type Description
AzureSourceDetails

getDescriptorForType()

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

getError()

public Status getError()

Output only. Provides details on the state of the Source in case of an error.

.google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Output only. Provides details on the state of the Source in case of an error.

.google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Output only. Provides details on the state of the Source in case of an error.

.google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.StatusOrBuilder

getMigrationResourcesUserTags() (deprecated)

public Map<String,String> getMigrationResourcesUserTags()
Returns
Type Description
Map<String,String>

getMigrationResourcesUserTagsCount()

public int getMigrationResourcesUserTagsCount()

User specified tags to add to every M2VM generated resource in Azure. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix m4ce or m2vm.

map<string, string> migration_resources_user_tags = 8;

Returns
Type Description
int

getMigrationResourcesUserTagsMap()

public Map<String,String> getMigrationResourcesUserTagsMap()

User specified tags to add to every M2VM generated resource in Azure. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix m4ce or m2vm.

map<string, string> migration_resources_user_tags = 8;

Returns
Type Description
Map<String,String>

getMigrationResourcesUserTagsOrDefault(String key, String defaultValue)

public String getMigrationResourcesUserTagsOrDefault(String key, String defaultValue)

User specified tags to add to every M2VM generated resource in Azure. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix m4ce or m2vm.

map<string, string> migration_resources_user_tags = 8;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getMigrationResourcesUserTagsOrThrow(String key)

public String getMigrationResourcesUserTagsOrThrow(String key)

User specified tags to add to every M2VM generated resource in Azure. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix m4ce or m2vm.

map<string, string> migration_resources_user_tags = 8;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableMigrationResourcesUserTags() (deprecated)

public Map<String,String> getMutableMigrationResourcesUserTags()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getResourceGroupId()

public String getResourceGroupId()

Output only. The ID of the Azure resource group that contains all resources related to the migration process of this source.

string resource_group_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The resourceGroupId.

getResourceGroupIdBytes()

public ByteString getResourceGroupIdBytes()

Output only. The ID of the Azure resource group that contains all resources related to the migration process of this source.

string resource_group_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for resourceGroupId.

getState()

public AzureSourceDetails.State getState()

Output only. State of the source as determined by the health check.

.google.cloud.vmmigration.v1.AzureSourceDetails.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AzureSourceDetails.State

The state.

getStateValue()

public int getStateValue()

Output only. State of the source as determined by the health check.

.google.cloud.vmmigration.v1.AzureSourceDetails.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getSubscriptionId()

public String getSubscriptionId()

Immutable. Azure subscription ID.

string subscription_id = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The subscriptionId.

getSubscriptionIdBytes()

public ByteString getSubscriptionIdBytes()

Immutable. Azure subscription ID.

string subscription_id = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for subscriptionId.

hasClientSecretCreds()

public boolean hasClientSecretCreds()

Azure Credentials using tenant ID, client ID and secret.

.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9;

Returns
Type Description
boolean

Whether the clientSecretCreds field is set.

hasError()

public boolean hasError()

Output only. Provides details on the state of the Source in case of an error.

.google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the error field is set.

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

mergeClientSecretCreds(AzureSourceDetails.ClientSecretCredentials value)

public AzureSourceDetails.Builder mergeClientSecretCreds(AzureSourceDetails.ClientSecretCredentials value)

Azure Credentials using tenant ID, client ID and secret.

.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9;

Parameter
Name Description
value AzureSourceDetails.ClientSecretCredentials
Returns
Type Description
AzureSourceDetails.Builder

mergeError(Status value)

public AzureSourceDetails.Builder mergeError(Status value)

Output only. Provides details on the state of the Source in case of an error.

.google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
AzureSourceDetails.Builder

mergeFrom(AzureSourceDetails other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllMigrationResourcesUserTags(Map<String,String> values)

public AzureSourceDetails.Builder putAllMigrationResourcesUserTags(Map<String,String> values)

User specified tags to add to every M2VM generated resource in Azure. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix m4ce or m2vm.

map<string, string> migration_resources_user_tags = 8;

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

putMigrationResourcesUserTags(String key, String value)

public AzureSourceDetails.Builder putMigrationResourcesUserTags(String key, String value)

User specified tags to add to every M2VM generated resource in Azure. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix m4ce or m2vm.

map<string, string> migration_resources_user_tags = 8;

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

removeMigrationResourcesUserTags(String key)

public AzureSourceDetails.Builder removeMigrationResourcesUserTags(String key)

User specified tags to add to every M2VM generated resource in Azure. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix m4ce or m2vm.

map<string, string> migration_resources_user_tags = 8;

Parameter
Name Description
key String
Returns
Type Description
AzureSourceDetails.Builder

setAzureLocation(String value)

public AzureSourceDetails.Builder setAzureLocation(String value)

Immutable. The Azure location (region) that the source VMs will be migrated from.

string azure_location = 5 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The azureLocation to set.

Returns
Type Description
AzureSourceDetails.Builder

This builder for chaining.

setAzureLocationBytes(ByteString value)

public AzureSourceDetails.Builder setAzureLocationBytes(ByteString value)

Immutable. The Azure location (region) that the source VMs will be migrated from.

string azure_location = 5 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for azureLocation to set.

Returns
Type Description
AzureSourceDetails.Builder

This builder for chaining.

setClientSecretCreds(AzureSourceDetails.ClientSecretCredentials value)

public AzureSourceDetails.Builder setClientSecretCreds(AzureSourceDetails.ClientSecretCredentials value)

Azure Credentials using tenant ID, client ID and secret.

.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9;

Parameter
Name Description
value AzureSourceDetails.ClientSecretCredentials
Returns
Type Description
AzureSourceDetails.Builder

setClientSecretCreds(AzureSourceDetails.ClientSecretCredentials.Builder builderForValue)

public AzureSourceDetails.Builder setClientSecretCreds(AzureSourceDetails.ClientSecretCredentials.Builder builderForValue)

Azure Credentials using tenant ID, client ID and secret.

.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9;

Parameter
Name Description
builderForValue AzureSourceDetails.ClientSecretCredentials.Builder
Returns
Type Description
AzureSourceDetails.Builder

setError(Status value)

public AzureSourceDetails.Builder setError(Status value)

Output only. Provides details on the state of the Source in case of an error.

.google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
AzureSourceDetails.Builder

setError(Status.Builder builderForValue)

public AzureSourceDetails.Builder setError(Status.Builder builderForValue)

Output only. Provides details on the state of the Source in case of an error.

.google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
AzureSourceDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResourceGroupId(String value)

public AzureSourceDetails.Builder setResourceGroupId(String value)

Output only. The ID of the Azure resource group that contains all resources related to the migration process of this source.

string resource_group_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The resourceGroupId to set.

Returns
Type Description
AzureSourceDetails.Builder

This builder for chaining.

setResourceGroupIdBytes(ByteString value)

public AzureSourceDetails.Builder setResourceGroupIdBytes(ByteString value)

Output only. The ID of the Azure resource group that contains all resources related to the migration process of this source.

string resource_group_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for resourceGroupId to set.

Returns
Type Description
AzureSourceDetails.Builder

This builder for chaining.

setState(AzureSourceDetails.State value)

public AzureSourceDetails.Builder setState(AzureSourceDetails.State value)

Output only. State of the source as determined by the health check.

.google.cloud.vmmigration.v1.AzureSourceDetails.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AzureSourceDetails.State

The state to set.

Returns
Type Description
AzureSourceDetails.Builder

This builder for chaining.

setStateValue(int value)

public AzureSourceDetails.Builder setStateValue(int value)

Output only. State of the source as determined by the health check.

.google.cloud.vmmigration.v1.AzureSourceDetails.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
AzureSourceDetails.Builder

This builder for chaining.

setSubscriptionId(String value)

public AzureSourceDetails.Builder setSubscriptionId(String value)

Immutable. Azure subscription ID.

string subscription_id = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The subscriptionId to set.

Returns
Type Description
AzureSourceDetails.Builder

This builder for chaining.

setSubscriptionIdBytes(ByteString value)

public AzureSourceDetails.Builder setSubscriptionIdBytes(ByteString value)

Immutable. Azure subscription ID.

string subscription_id = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for subscriptionId to set.

Returns
Type Description
AzureSourceDetails.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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