Class PrivateConnection.Builder (2.41.0)

public static final class PrivateConnection.Builder extends GeneratedMessageV3.Builder<PrivateConnection.Builder> implements PrivateConnectionOrBuilder

The PrivateConnection resource is used to establish private connectivity with the customer's network.

Protobuf type google.cloud.clouddms.v1.PrivateConnection

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PrivateConnection build()
Returns
Type Description
PrivateConnection

buildPartial()

public PrivateConnection buildPartial()
Returns
Type Description
PrivateConnection

clear()

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

clearConnectivity()

public PrivateConnection.Builder clearConnectivity()
Returns
Type Description
PrivateConnection.Builder

clearCreateTime()

public PrivateConnection.Builder clearCreateTime()

Output only. The create time of the resource.

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

Returns
Type Description
PrivateConnection.Builder

clearDisplayName()

public PrivateConnection.Builder clearDisplayName()

The private connection display name.

string display_name = 5;

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

clearError()

public PrivateConnection.Builder clearError()

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

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

Returns
Type Description
PrivateConnection.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

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

clearName()

public PrivateConnection.Builder clearName()

The name of the resource.

string name = 1;

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public PrivateConnection.Builder clearState()

Output only. The state of the private connection.

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

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

clearUpdateTime()

public PrivateConnection.Builder clearUpdateTime()

Output only. The last update time of the resource.

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

Returns
Type Description
PrivateConnection.Builder

clearVpcPeeringConfig()

public PrivateConnection.Builder clearVpcPeeringConfig()

VPC peering configuration.

.google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100;

Returns
Type Description
PrivateConnection.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

The resource labels for private connections 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

getConnectivityCase()

public PrivateConnection.ConnectivityCase getConnectivityCase()
Returns
Type Description
PrivateConnection.ConnectivityCase

getCreateTime()

public Timestamp getCreateTime()

Output only. The create time of the resource.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The create time of the resource.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The create time of the resource.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public PrivateConnection getDefaultInstanceForType()
Returns
Type Description
PrivateConnection

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

The private connection display name.

string display_name = 5;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The private connection display name.

string display_name = 5;

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.StatusOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

The resource labels for private connections 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 private connections 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 private connections 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 private connections 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() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

The name of the resource.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the resource.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getState()

public PrivateConnection.State getState()

Output only. The state of the private connection.

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

Returns
Type Description
PrivateConnection.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the private connection.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last update time of the resource.

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last update time of the resource.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last update time of the resource.

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

Returns
Type Description
TimestampOrBuilder

getVpcPeeringConfig()

public VpcPeeringConfig getVpcPeeringConfig()

VPC peering configuration.

.google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100;

Returns
Type Description
VpcPeeringConfig

The vpcPeeringConfig.

getVpcPeeringConfigBuilder()

public VpcPeeringConfig.Builder getVpcPeeringConfigBuilder()

VPC peering configuration.

.google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100;

Returns
Type Description
VpcPeeringConfig.Builder

getVpcPeeringConfigOrBuilder()

public VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder()

VPC peering configuration.

.google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100;

Returns
Type Description
VpcPeeringConfigOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The create time of the resource.

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

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the error field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last update time of the resource.

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

Returns
Type Description
boolean

Whether the updateTime field is set.

hasVpcPeeringConfig()

public boolean hasVpcPeeringConfig()

VPC peering configuration.

.google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100;

Returns
Type Description
boolean

Whether the vpcPeeringConfig 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

mergeCreateTime(Timestamp value)

public PrivateConnection.Builder mergeCreateTime(Timestamp value)

Output only. The create time of the resource.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
PrivateConnection.Builder

mergeError(Status value)

public PrivateConnection.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
Name Description
value com.google.rpc.Status
Returns
Type Description
PrivateConnection.Builder

mergeFrom(PrivateConnection other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public PrivateConnection.Builder mergeUpdateTime(Timestamp value)

Output only. The last update time of the resource.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
PrivateConnection.Builder

mergeVpcPeeringConfig(VpcPeeringConfig value)

public PrivateConnection.Builder mergeVpcPeeringConfig(VpcPeeringConfig value)

VPC peering configuration.

.google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100;

Parameter
Name Description
value VpcPeeringConfig
Returns
Type Description
PrivateConnection.Builder

putAllLabels(Map<String,String> values)

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

The resource labels for private connections 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
PrivateConnection.Builder

putLabels(String key, String value)

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

The resource labels for private connections 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
PrivateConnection.Builder

removeLabels(String key)

public PrivateConnection.Builder removeLabels(String key)

The resource labels for private connections 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
PrivateConnection.Builder

setCreateTime(Timestamp value)

public PrivateConnection.Builder setCreateTime(Timestamp value)

Output only. The create time of the resource.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
PrivateConnection.Builder

setCreateTime(Timestamp.Builder builderForValue)

public PrivateConnection.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The create time of the resource.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PrivateConnection.Builder

setDisplayName(String value)

public PrivateConnection.Builder setDisplayName(String value)

The private connection display name.

string display_name = 5;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public PrivateConnection.Builder setDisplayNameBytes(ByteString value)

The private connection display name.

string display_name = 5;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setError(Status value)

public PrivateConnection.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
Name Description
value com.google.rpc.Status
Returns
Type Description
PrivateConnection.Builder

setError(Status.Builder builderForValue)

public PrivateConnection.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
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
PrivateConnection.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public PrivateConnection.Builder setName(String value)

The name of the resource.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PrivateConnection.Builder setNameBytes(ByteString value)

The name of the resource.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

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

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

setState(PrivateConnection.State value)

public PrivateConnection.Builder setState(PrivateConnection.State value)

Output only. The state of the private connection.

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

Parameter
Name Description
value PrivateConnection.State

The state to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setStateValue(int value)

public PrivateConnection.Builder setStateValue(int value)

Output only. The state of the private connection.

.google.cloud.clouddms.v1.PrivateConnection.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
PrivateConnection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public PrivateConnection.Builder setUpdateTime(Timestamp value)

Output only. The last update time of the resource.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
PrivateConnection.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public PrivateConnection.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last update time of the resource.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PrivateConnection.Builder

setVpcPeeringConfig(VpcPeeringConfig value)

public PrivateConnection.Builder setVpcPeeringConfig(VpcPeeringConfig value)

VPC peering configuration.

.google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100;

Parameter
Name Description
value VpcPeeringConfig
Returns
Type Description
PrivateConnection.Builder

setVpcPeeringConfig(VpcPeeringConfig.Builder builderForValue)

public PrivateConnection.Builder setVpcPeeringConfig(VpcPeeringConfig.Builder builderForValue)

VPC peering configuration.

.google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100;

Parameter
Name Description
builderForValue VpcPeeringConfig.Builder
Returns
Type Description
PrivateConnection.Builder