Class Cluster.PscConfig.Builder (0.72.0)

public static final class Cluster.PscConfig.Builder extends GeneratedMessage.Builder<Cluster.PscConfig.Builder> implements Cluster.PscConfigOrBuilder

PscConfig contains PSC related configuration at a cluster level.

Protobuf type google.cloud.alloydb.v1beta.Cluster.PscConfig

Static Methods

getDescriptor()

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

Methods

build()

public Cluster.PscConfig build()
Returns
Type Description
Cluster.PscConfig

buildPartial()

public Cluster.PscConfig buildPartial()
Returns
Type Description
Cluster.PscConfig

clear()

public Cluster.PscConfig.Builder clear()
Returns
Type Description
Cluster.PscConfig.Builder
Overrides

clearPscEnabled()

public Cluster.PscConfig.Builder clearPscEnabled()

Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.

bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Cluster.PscConfig.Builder

This builder for chaining.

clearServiceOwnedProjectNumber()

public Cluster.PscConfig.Builder clearServiceOwnedProjectNumber()

Output only. The project number that needs to be allowlisted on the network attachment to enable outbound connectivity.

int64 service_owned_project_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Cluster.PscConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public Cluster.PscConfig getDefaultInstanceForType()
Returns
Type Description
Cluster.PscConfig

getDescriptorForType()

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

getPscEnabled()

public boolean getPscEnabled()

Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.

bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The pscEnabled.

getServiceOwnedProjectNumber()

public long getServiceOwnedProjectNumber()

Output only. The project number that needs to be allowlisted on the network attachment to enable outbound connectivity.

int64 service_owned_project_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The serviceOwnedProjectNumber.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Cluster.PscConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPscEnabled(boolean value)

public Cluster.PscConfig.Builder setPscEnabled(boolean value)

Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.

bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The pscEnabled to set.

Returns
Type Description
Cluster.PscConfig.Builder

This builder for chaining.

setServiceOwnedProjectNumber(long value)

public Cluster.PscConfig.Builder setServiceOwnedProjectNumber(long value)

Output only. The project number that needs to be allowlisted on the network attachment to enable outbound connectivity.

int64 service_owned_project_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The serviceOwnedProjectNumber to set.

Returns
Type Description
Cluster.PscConfig.Builder

This builder for chaining.