Class ConnectionProfile.Builder (2.22.0)

public static final class ConnectionProfile.Builder extends GeneratedMessageV3.Builder<ConnectionProfile.Builder> implements ConnectionProfileOrBuilder

A connection profile definition.

Protobuf type google.cloud.clouddms.v1.ConnectionProfile

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConnectionProfile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConnectionProfile.Builder
Overrides

build()

public ConnectionProfile build()
Returns
TypeDescription
ConnectionProfile

buildPartial()

public ConnectionProfile buildPartial()
Returns
TypeDescription
ConnectionProfile

clear()

public ConnectionProfile.Builder clear()
Returns
TypeDescription
ConnectionProfile.Builder
Overrides

clearAlloydb()

public ConnectionProfile.Builder clearAlloydb()

An AlloyDB cluster connection profile.

.google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105;

Returns
TypeDescription
ConnectionProfile.Builder

clearCloudsql()

public ConnectionProfile.Builder clearCloudsql()

A CloudSQL database connection profile.

.google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102;

Returns
TypeDescription
ConnectionProfile.Builder

clearConnectionProfile()

public ConnectionProfile.Builder clearConnectionProfile()
Returns
TypeDescription
ConnectionProfile.Builder

clearCreateTime()

public ConnectionProfile.Builder clearCreateTime()

Output only. The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ConnectionProfile.Builder

clearDisplayName()

public ConnectionProfile.Builder clearDisplayName()

The connection profile display name.

string display_name = 6;

Returns
TypeDescription
ConnectionProfile.Builder

This builder for chaining.

clearError()

public ConnectionProfile.Builder clearError()

Output only. The error details in case of state FAILED.

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

Returns
TypeDescription
ConnectionProfile.Builder

clearField(Descriptors.FieldDescriptor field)

public ConnectionProfile.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ConnectionProfile.Builder
Overrides

clearLabels()

public ConnectionProfile.Builder clearLabels()
Returns
TypeDescription
ConnectionProfile.Builder

clearMysql()

public ConnectionProfile.Builder clearMysql()

A MySQL database connection profile.

.google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100;

Returns
TypeDescription
ConnectionProfile.Builder

clearName()

public ConnectionProfile.Builder clearName()

The name of this connection profile resource in the form of projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.

string name = 1;

Returns
TypeDescription
ConnectionProfile.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ConnectionProfile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConnectionProfile.Builder
Overrides

clearOracle()

public ConnectionProfile.Builder clearOracle()

An Oracle database connection profile.

.google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104;

Returns
TypeDescription
ConnectionProfile.Builder

clearPostgresql()

public ConnectionProfile.Builder clearPostgresql()

A PostgreSQL database connection profile.

.google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101;

Returns
TypeDescription
ConnectionProfile.Builder

clearProvider()

public ConnectionProfile.Builder clearProvider()

The database provider.

.google.cloud.clouddms.v1.DatabaseProvider provider = 8;

Returns
TypeDescription
ConnectionProfile.Builder

This builder for chaining.

clearState()

public ConnectionProfile.Builder clearState()

The current connection profile state (e.g. DRAFT, READY, or FAILED).

.google.cloud.clouddms.v1.ConnectionProfile.State state = 5;

Returns
TypeDescription
ConnectionProfile.Builder

This builder for chaining.

clearUpdateTime()

public ConnectionProfile.Builder clearUpdateTime()

Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ConnectionProfile.Builder

clone()

public ConnectionProfile.Builder clone()
Returns
TypeDescription
ConnectionProfile.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

The resource labels for connection profile to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAlloydb()

public AlloyDbConnectionProfile getAlloydb()

An AlloyDB cluster connection profile.

.google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105;

Returns
TypeDescription
AlloyDbConnectionProfile

The alloydb.

getAlloydbBuilder()

public AlloyDbConnectionProfile.Builder getAlloydbBuilder()

An AlloyDB cluster connection profile.

.google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105;

Returns
TypeDescription
AlloyDbConnectionProfile.Builder

getAlloydbOrBuilder()

public AlloyDbConnectionProfileOrBuilder getAlloydbOrBuilder()

An AlloyDB cluster connection profile.

.google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105;

Returns
TypeDescription
AlloyDbConnectionProfileOrBuilder

getCloudsql()

public CloudSqlConnectionProfile getCloudsql()

A CloudSQL database connection profile.

.google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102;

Returns
TypeDescription
CloudSqlConnectionProfile

The cloudsql.

getCloudsqlBuilder()

public CloudSqlConnectionProfile.Builder getCloudsqlBuilder()

A CloudSQL database connection profile.

.google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102;

Returns
TypeDescription
CloudSqlConnectionProfile.Builder

getCloudsqlOrBuilder()

public CloudSqlConnectionProfileOrBuilder getCloudsqlOrBuilder()

A CloudSQL database connection profile.

.google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102;

Returns
TypeDescription
CloudSqlConnectionProfileOrBuilder

getConnectionProfileCase()

public ConnectionProfile.ConnectionProfileCase getConnectionProfileCase()
Returns
TypeDescription
ConnectionProfile.ConnectionProfileCase

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ConnectionProfile getDefaultInstanceForType()
Returns
TypeDescription
ConnectionProfile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The connection profile display name.

string display_name = 6;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The connection profile display name.

string display_name = 6;

Returns
TypeDescription
ByteString

The bytes for displayName.

getError()

public Status getError()

Output only. The error details in case of state FAILED.

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

Returns
TypeDescription
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Output only. The error details in case of state FAILED.

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

Returns
TypeDescription
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Output only. The error details in case of state FAILED.

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

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

The resource labels for connection profile to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

The resource labels for connection profile to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

The resource labels for connection profile to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

The resource labels for connection profile to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMysql()

public MySqlConnectionProfile getMysql()

A MySQL database connection profile.

.google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100;

Returns
TypeDescription
MySqlConnectionProfile

The mysql.

getMysqlBuilder()

public MySqlConnectionProfile.Builder getMysqlBuilder()

A MySQL database connection profile.

.google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100;

Returns
TypeDescription
MySqlConnectionProfile.Builder

getMysqlOrBuilder()

public MySqlConnectionProfileOrBuilder getMysqlOrBuilder()

A MySQL database connection profile.

.google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100;

Returns
TypeDescription
MySqlConnectionProfileOrBuilder

getName()

public String getName()

The name of this connection profile resource in the form of projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of this connection profile resource in the form of projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getOracle()

public OracleConnectionProfile getOracle()

An Oracle database connection profile.

.google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104;

Returns
TypeDescription
OracleConnectionProfile

The oracle.

getOracleBuilder()

public OracleConnectionProfile.Builder getOracleBuilder()

An Oracle database connection profile.

.google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104;

Returns
TypeDescription
OracleConnectionProfile.Builder

getOracleOrBuilder()

public OracleConnectionProfileOrBuilder getOracleOrBuilder()

An Oracle database connection profile.

.google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104;

Returns
TypeDescription
OracleConnectionProfileOrBuilder

getPostgresql()

public PostgreSqlConnectionProfile getPostgresql()

A PostgreSQL database connection profile.

.google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101;

Returns
TypeDescription
PostgreSqlConnectionProfile

The postgresql.

getPostgresqlBuilder()

public PostgreSqlConnectionProfile.Builder getPostgresqlBuilder()

A PostgreSQL database connection profile.

.google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101;

Returns
TypeDescription
PostgreSqlConnectionProfile.Builder

getPostgresqlOrBuilder()

public PostgreSqlConnectionProfileOrBuilder getPostgresqlOrBuilder()

A PostgreSQL database connection profile.

.google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101;

Returns
TypeDescription
PostgreSqlConnectionProfileOrBuilder

getProvider()

public DatabaseProvider getProvider()

The database provider.

.google.cloud.clouddms.v1.DatabaseProvider provider = 8;

Returns
TypeDescription
DatabaseProvider

The provider.

getProviderValue()

public int getProviderValue()

The database provider.

.google.cloud.clouddms.v1.DatabaseProvider provider = 8;

Returns
TypeDescription
int

The enum numeric value on the wire for provider.

getState()

public ConnectionProfile.State getState()

The current connection profile state (e.g. DRAFT, READY, or FAILED).

.google.cloud.clouddms.v1.ConnectionProfile.State state = 5;

Returns
TypeDescription
ConnectionProfile.State

The state.

getStateValue()

public int getStateValue()

The current connection profile state (e.g. DRAFT, READY, or FAILED).

.google.cloud.clouddms.v1.ConnectionProfile.State state = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasAlloydb()

public boolean hasAlloydb()

An AlloyDB cluster connection profile.

.google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105;

Returns
TypeDescription
boolean

Whether the alloydb field is set.

hasCloudsql()

public boolean hasCloudsql()

A CloudSQL database connection profile.

.google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102;

Returns
TypeDescription
boolean

Whether the cloudsql field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasError()

public boolean hasError()

Output only. The error details in case of state FAILED.

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

Returns
TypeDescription
boolean

Whether the error field is set.

hasMysql()

public boolean hasMysql()

A MySQL database connection profile.

.google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100;

Returns
TypeDescription
boolean

Whether the mysql field is set.

hasOracle()

public boolean hasOracle()

An Oracle database connection profile.

.google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104;

Returns
TypeDescription
boolean

Whether the oracle field is set.

hasPostgresql()

public boolean hasPostgresql()

A PostgreSQL database connection profile.

.google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101;

Returns
TypeDescription
boolean

Whether the postgresql field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAlloydb(AlloyDbConnectionProfile value)

public ConnectionProfile.Builder mergeAlloydb(AlloyDbConnectionProfile value)

An AlloyDB cluster connection profile.

.google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105;

Parameter
NameDescription
valueAlloyDbConnectionProfile
Returns
TypeDescription
ConnectionProfile.Builder

mergeCloudsql(CloudSqlConnectionProfile value)

public ConnectionProfile.Builder mergeCloudsql(CloudSqlConnectionProfile value)

A CloudSQL database connection profile.

.google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102;

Parameter
NameDescription
valueCloudSqlConnectionProfile
Returns
TypeDescription
ConnectionProfile.Builder

mergeCreateTime(Timestamp value)

public ConnectionProfile.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ConnectionProfile.Builder

mergeError(Status value)

public ConnectionProfile.Builder mergeError(Status value)

Output only. The error details in case of state FAILED.

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

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
ConnectionProfile.Builder

mergeFrom(ConnectionProfile other)

public ConnectionProfile.Builder mergeFrom(ConnectionProfile other)
Parameter
NameDescription
otherConnectionProfile
Returns
TypeDescription
ConnectionProfile.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConnectionProfile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectionProfile.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ConnectionProfile.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ConnectionProfile.Builder
Overrides

mergeMysql(MySqlConnectionProfile value)

public ConnectionProfile.Builder mergeMysql(MySqlConnectionProfile value)

A MySQL database connection profile.

.google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100;

Parameter
NameDescription
valueMySqlConnectionProfile
Returns
TypeDescription
ConnectionProfile.Builder

mergeOracle(OracleConnectionProfile value)

public ConnectionProfile.Builder mergeOracle(OracleConnectionProfile value)

An Oracle database connection profile.

.google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104;

Parameter
NameDescription
valueOracleConnectionProfile
Returns
TypeDescription
ConnectionProfile.Builder

mergePostgresql(PostgreSqlConnectionProfile value)

public ConnectionProfile.Builder mergePostgresql(PostgreSqlConnectionProfile value)

A PostgreSQL database connection profile.

.google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101;

Parameter
NameDescription
valuePostgreSqlConnectionProfile
Returns
TypeDescription
ConnectionProfile.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConnectionProfile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConnectionProfile.Builder
Overrides

mergeUpdateTime(Timestamp value)

public ConnectionProfile.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ConnectionProfile.Builder

putAllLabels(Map<String,String> values)

public ConnectionProfile.Builder putAllLabels(Map<String,String> values)

The resource labels for connection profile to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> labels = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
ConnectionProfile.Builder

putLabels(String key, String value)

public ConnectionProfile.Builder putLabels(String key, String value)

The resource labels for connection profile to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
ConnectionProfile.Builder

removeLabels(String key)

public ConnectionProfile.Builder removeLabels(String key)

The resource labels for connection profile to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
ConnectionProfile.Builder

setAlloydb(AlloyDbConnectionProfile value)

public ConnectionProfile.Builder setAlloydb(AlloyDbConnectionProfile value)

An AlloyDB cluster connection profile.

.google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105;

Parameter
NameDescription
valueAlloyDbConnectionProfile
Returns
TypeDescription
ConnectionProfile.Builder

setAlloydb(AlloyDbConnectionProfile.Builder builderForValue)

public ConnectionProfile.Builder setAlloydb(AlloyDbConnectionProfile.Builder builderForValue)

An AlloyDB cluster connection profile.

.google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105;

Parameter
NameDescription
builderForValueAlloyDbConnectionProfile.Builder
Returns
TypeDescription
ConnectionProfile.Builder

setCloudsql(CloudSqlConnectionProfile value)

public ConnectionProfile.Builder setCloudsql(CloudSqlConnectionProfile value)

A CloudSQL database connection profile.

.google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102;

Parameter
NameDescription
valueCloudSqlConnectionProfile
Returns
TypeDescription
ConnectionProfile.Builder

setCloudsql(CloudSqlConnectionProfile.Builder builderForValue)

public ConnectionProfile.Builder setCloudsql(CloudSqlConnectionProfile.Builder builderForValue)

A CloudSQL database connection profile.

.google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102;

Parameter
NameDescription
builderForValueCloudSqlConnectionProfile.Builder
Returns
TypeDescription
ConnectionProfile.Builder

setCreateTime(Timestamp value)

public ConnectionProfile.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ConnectionProfile.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ConnectionProfile.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ConnectionProfile.Builder

setDisplayName(String value)

public ConnectionProfile.Builder setDisplayName(String value)

The connection profile display name.

string display_name = 6;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
ConnectionProfile.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ConnectionProfile.Builder setDisplayNameBytes(ByteString value)

The connection profile display name.

string display_name = 6;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
ConnectionProfile.Builder

This builder for chaining.

setError(Status value)

public ConnectionProfile.Builder setError(Status value)

Output only. The error details in case of state FAILED.

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

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
ConnectionProfile.Builder

setError(Status.Builder builderForValue)

public ConnectionProfile.Builder setError(Status.Builder builderForValue)

Output only. The error details in case of state FAILED.

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

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
ConnectionProfile.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ConnectionProfile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConnectionProfile.Builder
Overrides

setMysql(MySqlConnectionProfile value)

public ConnectionProfile.Builder setMysql(MySqlConnectionProfile value)

A MySQL database connection profile.

.google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100;

Parameter
NameDescription
valueMySqlConnectionProfile
Returns
TypeDescription
ConnectionProfile.Builder

setMysql(MySqlConnectionProfile.Builder builderForValue)

public ConnectionProfile.Builder setMysql(MySqlConnectionProfile.Builder builderForValue)

A MySQL database connection profile.

.google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100;

Parameter
NameDescription
builderForValueMySqlConnectionProfile.Builder
Returns
TypeDescription
ConnectionProfile.Builder

setName(String value)

public ConnectionProfile.Builder setName(String value)

The name of this connection profile resource in the form of projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ConnectionProfile.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ConnectionProfile.Builder setNameBytes(ByteString value)

The name of this connection profile resource in the form of projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ConnectionProfile.Builder

This builder for chaining.

setOracle(OracleConnectionProfile value)

public ConnectionProfile.Builder setOracle(OracleConnectionProfile value)

An Oracle database connection profile.

.google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104;

Parameter
NameDescription
valueOracleConnectionProfile
Returns
TypeDescription
ConnectionProfile.Builder

setOracle(OracleConnectionProfile.Builder builderForValue)

public ConnectionProfile.Builder setOracle(OracleConnectionProfile.Builder builderForValue)

An Oracle database connection profile.

.google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104;

Parameter
NameDescription
builderForValueOracleConnectionProfile.Builder
Returns
TypeDescription
ConnectionProfile.Builder

setPostgresql(PostgreSqlConnectionProfile value)

public ConnectionProfile.Builder setPostgresql(PostgreSqlConnectionProfile value)

A PostgreSQL database connection profile.

.google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101;

Parameter
NameDescription
valuePostgreSqlConnectionProfile
Returns
TypeDescription
ConnectionProfile.Builder

setPostgresql(PostgreSqlConnectionProfile.Builder builderForValue)

public ConnectionProfile.Builder setPostgresql(PostgreSqlConnectionProfile.Builder builderForValue)

A PostgreSQL database connection profile.

.google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101;

Parameter
NameDescription
builderForValuePostgreSqlConnectionProfile.Builder
Returns
TypeDescription
ConnectionProfile.Builder

setProvider(DatabaseProvider value)

public ConnectionProfile.Builder setProvider(DatabaseProvider value)

The database provider.

.google.cloud.clouddms.v1.DatabaseProvider provider = 8;

Parameter
NameDescription
valueDatabaseProvider

The provider to set.

Returns
TypeDescription
ConnectionProfile.Builder

This builder for chaining.

setProviderValue(int value)

public ConnectionProfile.Builder setProviderValue(int value)

The database provider.

.google.cloud.clouddms.v1.DatabaseProvider provider = 8;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ConnectionProfile.Builder

This builder for chaining.

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

public ConnectionProfile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConnectionProfile.Builder
Overrides

setState(ConnectionProfile.State value)

public ConnectionProfile.Builder setState(ConnectionProfile.State value)

The current connection profile state (e.g. DRAFT, READY, or FAILED).

.google.cloud.clouddms.v1.ConnectionProfile.State state = 5;

Parameter
NameDescription
valueConnectionProfile.State

The state to set.

Returns
TypeDescription
ConnectionProfile.Builder

This builder for chaining.

setStateValue(int value)

public ConnectionProfile.Builder setStateValue(int value)

The current connection profile state (e.g. DRAFT, READY, or FAILED).

.google.cloud.clouddms.v1.ConnectionProfile.State state = 5;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ConnectionProfile.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ConnectionProfile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConnectionProfile.Builder
Overrides

setUpdateTime(Timestamp value)

public ConnectionProfile.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ConnectionProfile.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ConnectionProfile.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ConnectionProfile.Builder