Class PrivateConnection.Builder (1.40.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
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

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

Required. Display name.

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

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

Output only. The resource's name.

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

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

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

Labels.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
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()

Required. Display name.

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

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. Display name.

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

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

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels.

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

Output only. The resource's name.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource's name.

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

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

getVpcPeeringConfig()

public VpcPeeringConfig getVpcPeeringConfig()

VPC Peering Config.

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

Returns
TypeDescription
VpcPeeringConfig

The vpcPeeringConfig.

getVpcPeeringConfigBuilder()

public VpcPeeringConfig.Builder getVpcPeeringConfigBuilder()

VPC Peering Config.

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

Returns
TypeDescription
VpcPeeringConfig.Builder

getVpcPeeringConfigOrBuilder()

public VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder()

VPC Peering Config.

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

Whether the updateTime field is set.

hasVpcPeeringConfig()

public boolean hasVpcPeeringConfig()

VPC Peering Config.

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

Returns
TypeDescription
boolean

Whether the vpcPeeringConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

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(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
NameDescription
valueError
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 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 Config.

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

Labels.

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)

Labels.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
PrivateConnection.Builder

removeLabels(String key)

public PrivateConnection.Builder removeLabels(String key)

Labels.

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)

Required. Display name.

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

Parameter
NameDescription
valueString

The displayName to set.

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

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
valueError
Returns
TypeDescription
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
NameDescription
builderForValueError.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)

Output only. The resource's name.

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

Parameter
NameDescription
valueString

The name to set.

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

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

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

Parameter
NameDescription
builderForValueVpcPeeringConfig.Builder
Returns
TypeDescription
PrivateConnection.Builder