Class ConnectionProfile.Builder (0.16.0)

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

A connection profile definition.

Protobuf type google.events.cloud.clouddms.v1.ConnectionProfile

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConnectionProfile build()
Returns
Type Description
ConnectionProfile

buildPartial()

public ConnectionProfile buildPartial()
Returns
Type Description
ConnectionProfile

clear()

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

clearAlloydb()

public ConnectionProfile.Builder clearAlloydb()

An AlloyDB cluster connection profile.

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

Returns
Type Description
ConnectionProfile.Builder

clearCloudsql()

public ConnectionProfile.Builder clearCloudsql()

A CloudSQL database connection profile.

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

Returns
Type Description
ConnectionProfile.Builder

clearConnectionProfile()

public ConnectionProfile.Builder clearConnectionProfile()
Returns
Type Description
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;

Returns
Type Description
ConnectionProfile.Builder

clearDisplayName()

public ConnectionProfile.Builder clearDisplayName()

The connection profile display name.

string display_name = 6;

Returns
Type Description
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;

Returns
Type Description
ConnectionProfile.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public ConnectionProfile.Builder clearLabels()
Returns
Type Description
ConnectionProfile.Builder

clearMysql()

public ConnectionProfile.Builder clearMysql()

A MySQL database connection profile.

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

Returns
Type Description
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
Type Description
ConnectionProfile.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPostgresql()

public ConnectionProfile.Builder clearPostgresql()

A PostgreSQL database connection profile.

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

Returns
Type Description
ConnectionProfile.Builder

clearProvider()

public ConnectionProfile.Builder clearProvider()

The database provider.

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

Returns
Type Description
ConnectionProfile.Builder

This builder for chaining.

clearState()

public ConnectionProfile.Builder clearState()

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

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

Returns
Type Description
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;

Returns
Type Description
ConnectionProfile.Builder

clone()

public ConnectionProfile.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getAlloydb()

public AlloyDbConnectionProfile getAlloydb()

An AlloyDB cluster connection profile.

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

Returns
Type Description
AlloyDbConnectionProfile

The alloydb.

getAlloydbBuilder()

public AlloyDbConnectionProfile.Builder getAlloydbBuilder()

An AlloyDB cluster connection profile.

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

Returns
Type Description
AlloyDbConnectionProfile.Builder

getAlloydbOrBuilder()

public AlloyDbConnectionProfileOrBuilder getAlloydbOrBuilder()

An AlloyDB cluster connection profile.

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

Returns
Type Description
AlloyDbConnectionProfileOrBuilder

getCloudsql()

public CloudSqlConnectionProfile getCloudsql()

A CloudSQL database connection profile.

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

Returns
Type Description
CloudSqlConnectionProfile

The cloudsql.

getCloudsqlBuilder()

public CloudSqlConnectionProfile.Builder getCloudsqlBuilder()

A CloudSQL database connection profile.

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

Returns
Type Description
CloudSqlConnectionProfile.Builder

getCloudsqlOrBuilder()

public CloudSqlConnectionProfileOrBuilder getCloudsqlOrBuilder()

A CloudSQL database connection profile.

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

Returns
Type Description
CloudSqlConnectionProfileOrBuilder

getConnectionProfileCase()

public ConnectionProfile.ConnectionProfileCase getConnectionProfileCase()
Returns
Type Description
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;

Returns
Type Description
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;

Returns
Type Description
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;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ConnectionProfile getDefaultInstanceForType()
Returns
Type Description
ConnectionProfile

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

The connection profile display name.

string display_name = 6;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The connection profile display name.

string display_name = 6;

Returns
Type Description
ByteString

The bytes for displayName.

getError()

public Status getError()

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

.google.rpc.Status error = 7;

Returns
Type Description
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;

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

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

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

.google.rpc.Status error = 7;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMysql()

public MySqlConnectionProfile getMysql()

A MySQL database connection profile.

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

Returns
Type Description
MySqlConnectionProfile

The mysql.

getMysqlBuilder()

public MySqlConnectionProfile.Builder getMysqlBuilder()

A MySQL database connection profile.

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

Returns
Type Description
MySqlConnectionProfile.Builder

getMysqlOrBuilder()

public MySqlConnectionProfileOrBuilder getMysqlOrBuilder()

A MySQL database connection profile.

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

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

getPostgresql()

public PostgreSqlConnectionProfile getPostgresql()

A PostgreSQL database connection profile.

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

Returns
Type Description
PostgreSqlConnectionProfile

The postgresql.

getPostgresqlBuilder()

public PostgreSqlConnectionProfile.Builder getPostgresqlBuilder()

A PostgreSQL database connection profile.

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

Returns
Type Description
PostgreSqlConnectionProfile.Builder

getPostgresqlOrBuilder()

public PostgreSqlConnectionProfileOrBuilder getPostgresqlOrBuilder()

A PostgreSQL database connection profile.

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

Returns
Type Description
PostgreSqlConnectionProfileOrBuilder

getProvider()

public DatabaseProvider getProvider()

The database provider.

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

Returns
Type Description
DatabaseProvider

The provider.

getProviderValue()

public int getProviderValue()

The database provider.

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

Returns
Type Description
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.events.cloud.clouddms.v1.ConnectionProfile.State state = 5;

Returns
Type Description
ConnectionProfile.State

The state.

getStateValue()

public int getStateValue()

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

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

Returns
Type Description
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;

Returns
Type Description
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;

Returns
Type Description
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;

Returns
Type Description
TimestampOrBuilder

hasAlloydb()

public boolean hasAlloydb()

An AlloyDB cluster connection profile.

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

Returns
Type Description
boolean

Whether the alloydb field is set.

hasCloudsql()

public boolean hasCloudsql()

A CloudSQL database connection profile.

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

Returns
Type Description
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;

Returns
Type Description
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;

Returns
Type Description
boolean

Whether the error field is set.

hasMysql()

public boolean hasMysql()

A MySQL database connection profile.

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

Returns
Type Description
boolean

Whether the mysql field is set.

hasPostgresql()

public boolean hasPostgresql()

A PostgreSQL database connection profile.

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

Returns
Type Description
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;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAlloydb(AlloyDbConnectionProfile value)

public ConnectionProfile.Builder mergeAlloydb(AlloyDbConnectionProfile value)

An AlloyDB cluster connection profile.

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

Parameter
Name Description
value AlloyDbConnectionProfile
Returns
Type Description
ConnectionProfile.Builder

mergeCloudsql(CloudSqlConnectionProfile value)

public ConnectionProfile.Builder mergeCloudsql(CloudSqlConnectionProfile value)

A CloudSQL database connection profile.

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

Parameter
Name Description
value CloudSqlConnectionProfile
Returns
Type Description
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;

Parameter
Name Description
value Timestamp
Returns
Type Description
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;

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

mergeFrom(ConnectionProfile other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMysql(MySqlConnectionProfile value)

public ConnectionProfile.Builder mergeMysql(MySqlConnectionProfile value)

A MySQL database connection profile.

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

Parameter
Name Description
value MySqlConnectionProfile
Returns
Type Description
ConnectionProfile.Builder

mergePostgresql(PostgreSqlConnectionProfile value)

public ConnectionProfile.Builder mergePostgresql(PostgreSqlConnectionProfile value)

A PostgreSQL database connection profile.

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

Parameter
Name Description
value PostgreSqlConnectionProfile
Returns
Type Description
ConnectionProfile.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConnectionProfile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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;

Parameter
Name Description
value Timestamp
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
ConnectionProfile.Builder

setAlloydb(AlloyDbConnectionProfile value)

public ConnectionProfile.Builder setAlloydb(AlloyDbConnectionProfile value)

An AlloyDB cluster connection profile.

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

Parameter
Name Description
value AlloyDbConnectionProfile
Returns
Type Description
ConnectionProfile.Builder

setAlloydb(AlloyDbConnectionProfile.Builder builderForValue)

public ConnectionProfile.Builder setAlloydb(AlloyDbConnectionProfile.Builder builderForValue)

An AlloyDB cluster connection profile.

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

Parameter
Name Description
builderForValue AlloyDbConnectionProfile.Builder
Returns
Type Description
ConnectionProfile.Builder

setCloudsql(CloudSqlConnectionProfile value)

public ConnectionProfile.Builder setCloudsql(CloudSqlConnectionProfile value)

A CloudSQL database connection profile.

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

Parameter
Name Description
value CloudSqlConnectionProfile
Returns
Type Description
ConnectionProfile.Builder

setCloudsql(CloudSqlConnectionProfile.Builder builderForValue)

public ConnectionProfile.Builder setCloudsql(CloudSqlConnectionProfile.Builder builderForValue)

A CloudSQL database connection profile.

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

Parameter
Name Description
builderForValue CloudSqlConnectionProfile.Builder
Returns
Type Description
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;

Parameter
Name Description
value Timestamp
Returns
Type Description
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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ConnectionProfile.Builder

setDisplayName(String value)

public ConnectionProfile.Builder setDisplayName(String value)

The connection profile display name.

string display_name = 6;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
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;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
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;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMysql(MySqlConnectionProfile value)

public ConnectionProfile.Builder setMysql(MySqlConnectionProfile value)

A MySQL database connection profile.

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

Parameter
Name Description
value MySqlConnectionProfile
Returns
Type Description
ConnectionProfile.Builder

setMysql(MySqlConnectionProfile.Builder builderForValue)

public ConnectionProfile.Builder setMysql(MySqlConnectionProfile.Builder builderForValue)

A MySQL database connection profile.

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

Parameter
Name Description
builderForValue MySqlConnectionProfile.Builder
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ConnectionProfile.Builder

This builder for chaining.

setPostgresql(PostgreSqlConnectionProfile value)

public ConnectionProfile.Builder setPostgresql(PostgreSqlConnectionProfile value)

A PostgreSQL database connection profile.

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

Parameter
Name Description
value PostgreSqlConnectionProfile
Returns
Type Description
ConnectionProfile.Builder

setPostgresql(PostgreSqlConnectionProfile.Builder builderForValue)

public ConnectionProfile.Builder setPostgresql(PostgreSqlConnectionProfile.Builder builderForValue)

A PostgreSQL database connection profile.

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

Parameter
Name Description
builderForValue PostgreSqlConnectionProfile.Builder
Returns
Type Description
ConnectionProfile.Builder

setProvider(DatabaseProvider value)

public ConnectionProfile.Builder setProvider(DatabaseProvider value)

The database provider.

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

Parameter
Name Description
value DatabaseProvider

The provider to set.

Returns
Type Description
ConnectionProfile.Builder

This builder for chaining.

setProviderValue(int value)

public ConnectionProfile.Builder setProviderValue(int value)

The database provider.

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

Parameter
Name Description
value int

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

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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.events.cloud.clouddms.v1.ConnectionProfile.State state = 5;

Parameter
Name Description
value ConnectionProfile.State

The state to set.

Returns
Type Description
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.events.cloud.clouddms.v1.ConnectionProfile.State state = 5;

Parameter
Name Description
value int

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

Returns
Type Description
ConnectionProfile.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ConnectionProfile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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;

Parameter
Name Description
value Timestamp
Returns
Type Description
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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ConnectionProfile.Builder