Class PrivateConnection.Builder (2.33.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PrivateConnection build()
Returns
TypeDescription
PrivateConnection

buildPartial()

public PrivateConnection buildPartial()
Returns
TypeDescription
PrivateConnection

clear()

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

clearConnectivity()

public PrivateConnection.Builder clearConnectivity()
Returns
TypeDescription
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
TypeDescription
PrivateConnection.Builder

clearDisplayName()

public PrivateConnection.Builder clearDisplayName()

The private connection display name.

string display_name = 5;

Returns
TypeDescription
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
TypeDescription
PrivateConnection.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

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

clearName()

public PrivateConnection.Builder clearName()

The name of the resource.

string name = 1;

Returns
TypeDescription
PrivateConnection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PrivateConnection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PrivateConnection.Builder

clearVpcPeeringConfig()

public PrivateConnection.Builder clearVpcPeeringConfig()

VPC peering configuration.

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

Returns
TypeDescription
PrivateConnection.Builder

clone()

public PrivateConnection.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getConnectivityCase()

public PrivateConnection.ConnectivityCase getConnectivityCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public PrivateConnection getDefaultInstanceForType()
Returns
TypeDescription
PrivateConnection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The private connection display name.

string display_name = 5;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The private connection display name.

string display_name = 5;

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() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

The name of the resource.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the resource.

string name = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getVpcPeeringConfig()

public VpcPeeringConfig getVpcPeeringConfig()

VPC peering configuration.

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

Returns
TypeDescription
VpcPeeringConfig

The vpcPeeringConfig.

getVpcPeeringConfigBuilder()

public VpcPeeringConfig.Builder getVpcPeeringConfigBuilder()

VPC peering configuration.

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

Returns
TypeDescription
VpcPeeringConfig.Builder

getVpcPeeringConfigOrBuilder()

public VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder()

VPC peering configuration.

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

Returns
TypeDescription
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
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.

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
TypeDescription
boolean

Whether the updateTime field is set.

hasVpcPeeringConfig()

public boolean hasVpcPeeringConfig()

VPC peering configuration.

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

Returns
TypeDescription
boolean

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

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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
PrivateConnection.Builder

mergeFrom(PrivateConnection other)

public PrivateConnection.Builder mergeFrom(PrivateConnection other)
Parameter
NameDescription
otherPrivateConnection
Returns
TypeDescription
PrivateConnection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrivateConnection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
PrivateConnection.Builder

mergeVpcPeeringConfig(VpcPeeringConfig value)

public PrivateConnection.Builder mergeVpcPeeringConfig(VpcPeeringConfig value)

VPC peering configuration.

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

Parameter
NameDescription
valueVpcPeeringConfig
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
PrivateConnection.Builder

setDisplayName(String value)

public PrivateConnection.Builder setDisplayName(String value)

The private connection display name.

string display_name = 5;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
PrivateConnection.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public PrivateConnection.Builder setName(String value)

The name of the resource.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
PrivateConnection.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PrivateConnection.Builder setNameBytes(ByteString value)

The name of the resource.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuePrivateConnection.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
PrivateConnection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PrivateConnection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
PrivateConnection.Builder

setVpcPeeringConfig(VpcPeeringConfig value)

public PrivateConnection.Builder setVpcPeeringConfig(VpcPeeringConfig value)

VPC peering configuration.

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

Parameter
NameDescription
valueVpcPeeringConfig
Returns
TypeDescription
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
NameDescription
builderForValueVpcPeeringConfig.Builder
Returns
TypeDescription
PrivateConnection.Builder