Class Instance.PscInstanceInfo.Builder (0.88.0)

public static final class Instance.PscInstanceInfo.Builder extends GeneratedMessage.Builder<Instance.PscInstanceInfo.Builder> implements Instance.PscInstanceInfoOrBuilder

Information about the Private Service Connect (PSC) for the instance.

Protobuf type google.cloud.alloydb.v1beta.Instance.PscInstanceInfo

Static Methods

getDescriptor()

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

Methods

addAllPscAutoDnsNames(Iterable<String> values)

public Instance.PscInstanceInfo.Builder addAllPscAutoDnsNames(Iterable<String> values)

Output only. Specifies the auto DNS names for the instance.

repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The pscAutoDnsNames to add.

Returns
Type Description
Instance.PscInstanceInfo.Builder

This builder for chaining.

addPscAutoDnsNames(String value)

public Instance.PscInstanceInfo.Builder addPscAutoDnsNames(String value)

Output only. Specifies the auto DNS names for the instance.

repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The pscAutoDnsNames to add.

Returns
Type Description
Instance.PscInstanceInfo.Builder

This builder for chaining.

addPscAutoDnsNamesBytes(ByteString value)

public Instance.PscInstanceInfo.Builder addPscAutoDnsNamesBytes(ByteString value)

Output only. Specifies the auto DNS names for the instance.

repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the pscAutoDnsNames to add.

Returns
Type Description
Instance.PscInstanceInfo.Builder

This builder for chaining.

build()

public Instance.PscInstanceInfo build()
Returns
Type Description
Instance.PscInstanceInfo

buildPartial()

public Instance.PscInstanceInfo buildPartial()
Returns
Type Description
Instance.PscInstanceInfo

clear()

public Instance.PscInstanceInfo.Builder clear()
Returns
Type Description
Instance.PscInstanceInfo.Builder
Overrides

clearEffectivePscAutoConnectionPolicy()

public Instance.PscInstanceInfo.Builder clearEffectivePscAutoConnectionPolicy()

Output only. Indicates if the PSC auto connection policy is enabled for the instance. For older instances, this will be off by default, but for newer instances, this will be auto-enabled.

bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.PscInstanceInfo.Builder

This builder for chaining.

clearEffectivePscAutoDnsEnabled()

public Instance.PscInstanceInfo.Builder clearEffectivePscAutoDnsEnabled()

Output only. The effective state of the PSC auto DNS for the instance.

bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.PscInstanceInfo.Builder

This builder for chaining.

clearPscAutoDnsNames()

public Instance.PscInstanceInfo.Builder clearPscAutoDnsNames()

Output only. Specifies the auto DNS names for the instance.

repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.PscInstanceInfo.Builder

This builder for chaining.

clearServiceConnectionPolicy()

public Instance.PscInstanceInfo.Builder clearServiceConnectionPolicy()

Output only. The PSC service connection policy name. The format is "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"

string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.PscInstanceInfo.Builder

This builder for chaining.

getDefaultInstanceForType()

public Instance.PscInstanceInfo getDefaultInstanceForType()
Returns
Type Description
Instance.PscInstanceInfo

getDescriptorForType()

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

getEffectivePscAutoConnectionPolicy()

public boolean getEffectivePscAutoConnectionPolicy()

Output only. Indicates if the PSC auto connection policy is enabled for the instance. For older instances, this will be off by default, but for newer instances, this will be auto-enabled.

bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The effectivePscAutoConnectionPolicy.

getEffectivePscAutoDnsEnabled()

public boolean getEffectivePscAutoDnsEnabled()

Output only. The effective state of the PSC auto DNS for the instance.

bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The effectivePscAutoDnsEnabled.

getPscAutoDnsNames(int index)

public String getPscAutoDnsNames(int index)

Output only. Specifies the auto DNS names for the instance.

repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The pscAutoDnsNames at the given index.

getPscAutoDnsNamesBytes(int index)

public ByteString getPscAutoDnsNamesBytes(int index)

Output only. Specifies the auto DNS names for the instance.

repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the pscAutoDnsNames at the given index.

getPscAutoDnsNamesCount()

public int getPscAutoDnsNamesCount()

Output only. Specifies the auto DNS names for the instance.

repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of pscAutoDnsNames.

getPscAutoDnsNamesList()

public ProtocolStringList getPscAutoDnsNamesList()

Output only. Specifies the auto DNS names for the instance.

repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the pscAutoDnsNames.

getServiceConnectionPolicy()

public String getServiceConnectionPolicy()

Output only. The PSC service connection policy name. The format is "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"

string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The serviceConnectionPolicy.

getServiceConnectionPolicyBytes()

public ByteString getServiceConnectionPolicyBytes()

Output only. The PSC service connection policy name. The format is "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"

string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for serviceConnectionPolicy.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Instance.PscInstanceInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEffectivePscAutoConnectionPolicy(boolean value)

public Instance.PscInstanceInfo.Builder setEffectivePscAutoConnectionPolicy(boolean value)

Output only. Indicates if the PSC auto connection policy is enabled for the instance. For older instances, this will be off by default, but for newer instances, this will be auto-enabled.

bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The effectivePscAutoConnectionPolicy to set.

Returns
Type Description
Instance.PscInstanceInfo.Builder

This builder for chaining.

setEffectivePscAutoDnsEnabled(boolean value)

public Instance.PscInstanceInfo.Builder setEffectivePscAutoDnsEnabled(boolean value)

Output only. The effective state of the PSC auto DNS for the instance.

bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The effectivePscAutoDnsEnabled to set.

Returns
Type Description
Instance.PscInstanceInfo.Builder

This builder for chaining.

setPscAutoDnsNames(int index, String value)

public Instance.PscInstanceInfo.Builder setPscAutoDnsNames(int index, String value)

Output only. Specifies the auto DNS names for the instance.

repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The pscAutoDnsNames to set.

Returns
Type Description
Instance.PscInstanceInfo.Builder

This builder for chaining.

setServiceConnectionPolicy(String value)

public Instance.PscInstanceInfo.Builder setServiceConnectionPolicy(String value)

Output only. The PSC service connection policy name. The format is "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"

string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The serviceConnectionPolicy to set.

Returns
Type Description
Instance.PscInstanceInfo.Builder

This builder for chaining.

setServiceConnectionPolicyBytes(ByteString value)

public Instance.PscInstanceInfo.Builder setServiceConnectionPolicyBytes(ByteString value)

Output only. The PSC service connection policy name. The format is "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"

string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for serviceConnectionPolicy to set.

Returns
Type Description
Instance.PscInstanceInfo.Builder

This builder for chaining.