Class PrivateConnection.Builder (1.45.0)

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

The PrivateConnection resource is used to establish private connectivity between Datastream and a customer's network.

Protobuf type google.cloud.datastream.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

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

Required. Display name.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

clearError()

public PrivateConnection.Builder clearError()

Output only. In case of error, the details of the error in a user-friendly format.

.google.cloud.datastream.v1.Error 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()

Output only. The resource's name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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.datastream.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 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 Config.

.google.cloud.datastream.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)

Labels.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

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

Required. Display name.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. Display name.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getError()

public Error getError()

Output only. In case of error, the details of the error in a user-friendly format.

.google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Error

The error.

getErrorBuilder()

public Error.Builder getErrorBuilder()

Output only. In case of error, the details of the error in a user-friendly format.

.google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Error.Builder

getErrorOrBuilder()

public ErrorOrBuilder getErrorOrBuilder()

Output only. In case of error, the details of the error in a user-friendly format.

.google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ErrorOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels.

map<string, string> labels = 4;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels.

map<string, string> labels = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels.

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

Output only. The resource's name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource's name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getState()

public PrivateConnection.State getState()

Output only. The state of the Private Connection.

.google.cloud.datastream.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.datastream.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 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 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 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 Config.

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

Returns
Type Description
VpcPeeringConfig

The vpcPeeringConfig.

getVpcPeeringConfigBuilder()

public VpcPeeringConfig.Builder getVpcPeeringConfigBuilder()

VPC Peering Config.

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

Returns
Type Description
VpcPeeringConfig.Builder

getVpcPeeringConfigOrBuilder()

public VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder()

VPC Peering Config.

.google.cloud.datastream.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. In case of error, the details of the error in a user-friendly format.

.google.cloud.datastream.v1.Error 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 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 Config.

.google.cloud.datastream.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(Error value)

public PrivateConnection.Builder mergeError(Error value)

Output only. In case of error, the details of the error in a user-friendly format.

.google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Error
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 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 Config.

.google.cloud.datastream.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)

Labels.

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)

Labels.

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)

Labels.

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)

Required. Display name.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

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)

Required. Display name.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setError(Error value)

public PrivateConnection.Builder setError(Error value)

Output only. In case of error, the details of the error in a user-friendly format.

.google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Error
Returns
Type Description
PrivateConnection.Builder

setError(Error.Builder builderForValue)

public PrivateConnection.Builder setError(Error.Builder builderForValue)

Output only. In case of error, the details of the error in a user-friendly format.

.google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Error.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)

Output only. The resource's name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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)

Output only. The resource's name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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.datastream.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.datastream.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 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 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 Config.

.google.cloud.datastream.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 Config.

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

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