Class Instance.PscInstanceInfo (0.88.0)

public static final class Instance.PscInstanceInfo extends GeneratedMessage implements Instance.PscInstanceInfoOrBuilder

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

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

Static Fields

EFFECTIVE_PSC_AUTO_CONNECTION_POLICY_FIELD_NUMBER

public static final int EFFECTIVE_PSC_AUTO_CONNECTION_POLICY_FIELD_NUMBER
Field Value
Type Description
int

EFFECTIVE_PSC_AUTO_DNS_ENABLED_FIELD_NUMBER

public static final int EFFECTIVE_PSC_AUTO_DNS_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

PSC_AUTO_DNS_NAMES_FIELD_NUMBER

public static final int PSC_AUTO_DNS_NAMES_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_CONNECTION_POLICY_FIELD_NUMBER

public static final int SERVICE_CONNECTION_POLICY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Instance.PscInstanceInfo getDefaultInstance()
Returns
Type Description
Instance.PscInstanceInfo

getDescriptor()

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

newBuilder()

public static Instance.PscInstanceInfo.Builder newBuilder()
Returns
Type Description
Instance.PscInstanceInfo.Builder

newBuilder(Instance.PscInstanceInfo prototype)

public static Instance.PscInstanceInfo.Builder newBuilder(Instance.PscInstanceInfo prototype)
Parameter
Name Description
prototype Instance.PscInstanceInfo
Returns
Type Description
Instance.PscInstanceInfo.Builder

parseDelimitedFrom(InputStream input)

public static Instance.PscInstanceInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Instance.PscInstanceInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.PscInstanceInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.PscInstanceInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Instance.PscInstanceInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Instance.PscInstanceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Instance.PscInstanceInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.PscInstanceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Instance.PscInstanceInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Instance.PscInstanceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Instance.PscInstanceInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.PscInstanceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Instance.PscInstanceInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Instance.PscInstanceInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.PscInstanceInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.PscInstanceInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Instance.PscInstanceInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Instance.PscInstanceInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.PscInstanceInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.PscInstanceInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Instance.PscInstanceInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Instance.PscInstanceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Instance.PscInstanceInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.PscInstanceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Instance.PscInstanceInfo> parser()
Returns
Type Description
Parser<PscInstanceInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<Instance.PscInstanceInfo> getParserForType()
Returns
Type Description
Parser<PscInstanceInfo>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Instance.PscInstanceInfo.Builder newBuilderForType()
Returns
Type Description
Instance.PscInstanceInfo.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Instance.PscInstanceInfo.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Instance.PscInstanceInfo.Builder
Overrides

toBuilder()

public Instance.PscInstanceInfo.Builder toBuilder()
Returns
Type Description
Instance.PscInstanceInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException