public final class Instance extends com.google.protobuf.GeneratedMessageV3 implements InstanceOrBuilder
An Instance is a computing unit that an end customer can connect to. It's the main unit of computing resources in AlloyDB.Protobuf type
google.cloud.alloydb.v1.Instance| Modifier and Type | Class and Description |
|---|---|
static class |
Instance.AvailabilityType
The Availability type of an instance.
|
static class |
Instance.Builder
An Instance is a computing unit that an end customer can connect to.
|
static class |
Instance.ClientConnectionConfig
Client connection configuration
Protobuf type
google.cloud.alloydb.v1.Instance.ClientConnectionConfig |
static interface |
Instance.ClientConnectionConfigOrBuilder |
static class |
Instance.InstanceNetworkConfig
Metadata related to instance-level network configuration.
|
static interface |
Instance.InstanceNetworkConfigOrBuilder |
static class |
Instance.InstanceType
Type of an Instance
Protobuf enum
google.cloud.alloydb.v1.Instance.InstanceType |
static class |
Instance.MachineConfig
MachineConfig describes the configuration of a machine.
|
static interface |
Instance.MachineConfigOrBuilder |
static class |
Instance.Node
Details of a single node in the instance.
|
static interface |
Instance.NodeOrBuilder |
static class |
Instance.ObservabilityInstanceConfig
Observability Instance specific configuration.
|
static interface |
Instance.ObservabilityInstanceConfigOrBuilder |
static class |
Instance.PscAutoConnectionConfig
Configuration for setting up PSC service automation.
|
static interface |
Instance.PscAutoConnectionConfigOrBuilder |
static class |
Instance.PscInstanceConfig
PscInstanceConfig contains PSC related configuration at an
instance level.
|
static interface |
Instance.PscInstanceConfigOrBuilder |
static class |
Instance.PscInterfaceConfig
Configuration for setting up a PSC interface to enable outbound
connectivity.
|
static interface |
Instance.PscInterfaceConfigOrBuilder |
static class |
Instance.QueryInsightsInstanceConfig
QueryInsights Instance specific configuration.
|
static interface |
Instance.QueryInsightsInstanceConfigOrBuilder |
static class |
Instance.ReadPoolConfig
Configuration for a read pool instance.
|
static interface |
Instance.ReadPoolConfigOrBuilder |
static class |
Instance.State
Instance State
Protobuf enum
google.cloud.alloydb.v1.Instance.State |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAnnotations(String key)
Annotations to allow client tools to store small amount of arbitrary data.
|
boolean |
containsDatabaseFlags(String key)
Database flags.
|
boolean |
containsLabels(String key)
Labels as key value pairs
map<string, string> labels = 7; |
boolean |
equals(Object obj) |
Map<String,String> |
getAnnotations()
Deprecated.
|
int |
getAnnotationsCount()
Annotations to allow client tools to store small amount of arbitrary data.
|
Map<String,String> |
getAnnotationsMap()
Annotations to allow client tools to store small amount of arbitrary data.
|
String |
getAnnotationsOrDefault(String key,
String defaultValue)
Annotations to allow client tools to store small amount of arbitrary data.
|
String |
getAnnotationsOrThrow(String key)
Annotations to allow client tools to store small amount of arbitrary data.
|
Instance.AvailabilityType |
getAvailabilityType()
Availability type of an Instance.
|
int |
getAvailabilityTypeValue()
Availability type of an Instance.
|
Instance.ClientConnectionConfig |
getClientConnectionConfig()
Optional.
|
Instance.ClientConnectionConfigOrBuilder |
getClientConnectionConfigOrBuilder()
Optional.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
Map<String,String> |
getDatabaseFlags()
Deprecated.
|
int |
getDatabaseFlagsCount()
Database flags.
|
Map<String,String> |
getDatabaseFlagsMap()
Database flags.
|
String |
getDatabaseFlagsOrDefault(String key,
String defaultValue)
Database flags.
|
String |
getDatabaseFlagsOrThrow(String key)
Database flags.
|
static Instance |
getDefaultInstance() |
Instance |
getDefaultInstanceForType() |
com.google.protobuf.Timestamp |
getDeleteTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getDeleteTimeOrBuilder()
Output only.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayName()
User-settable and human-readable display name for the Instance.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
User-settable and human-readable display name for the Instance.
|
String |
getEtag()
For Resource freshness validation (https://google.aip.dev/154)
string etag = 17; |
com.google.protobuf.ByteString |
getEtagBytes()
For Resource freshness validation (https://google.aip.dev/154)
string etag = 17; |
String |
getGceZone()
The Compute Engine zone that the instance should serve from, per
https://cloud.google.com/compute/docs/regions-zones
This can ONLY be specified for ZONAL instances.
|
com.google.protobuf.ByteString |
getGceZoneBytes()
The Compute Engine zone that the instance should serve from, per
https://cloud.google.com/compute/docs/regions-zones
This can ONLY be specified for ZONAL instances.
|
Instance.InstanceType |
getInstanceType()
Required.
|
int |
getInstanceTypeValue()
Required.
|
String |
getIpAddress()
Output only.
|
com.google.protobuf.ByteString |
getIpAddressBytes()
Output only.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Labels as key value pairs
map<string, string> labels = 7; |
Map<String,String> |
getLabelsMap()
Labels as key value pairs
map<string, string> labels = 7; |
String |
getLabelsOrDefault(String key,
String defaultValue)
Labels as key value pairs
map<string, string> labels = 7; |
String |
getLabelsOrThrow(String key)
Labels as key value pairs
map<string, string> labels = 7; |
Instance.MachineConfig |
getMachineConfig()
Configurations for the machines that host the underlying
database engine.
|
Instance.MachineConfigOrBuilder |
getMachineConfigOrBuilder()
Configurations for the machines that host the underlying
database engine.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
Instance.InstanceNetworkConfig |
getNetworkConfig()
Optional.
|
Instance.InstanceNetworkConfigOrBuilder |
getNetworkConfigOrBuilder()
Optional.
|
Instance.Node |
getNodes(int index)
Output only.
|
int |
getNodesCount()
Output only.
|
List<Instance.Node> |
getNodesList()
Output only.
|
Instance.NodeOrBuilder |
getNodesOrBuilder(int index)
Output only.
|
List<? extends Instance.NodeOrBuilder> |
getNodesOrBuilderList()
Output only.
|
Instance.ObservabilityInstanceConfig |
getObservabilityConfig()
Configuration for observability.
|
Instance.ObservabilityInstanceConfigOrBuilder |
getObservabilityConfigOrBuilder()
Configuration for observability.
|
String |
getOutboundPublicIpAddresses(int index)
Output only.
|
com.google.protobuf.ByteString |
getOutboundPublicIpAddressesBytes(int index)
Output only.
|
int |
getOutboundPublicIpAddressesCount()
Output only.
|
com.google.protobuf.ProtocolStringList |
getOutboundPublicIpAddressesList()
Output only.
|
com.google.protobuf.Parser<Instance> |
getParserForType() |
Instance.PscInstanceConfig |
getPscInstanceConfig()
Optional.
|
Instance.PscInstanceConfigOrBuilder |
getPscInstanceConfigOrBuilder()
Optional.
|
String |
getPublicIpAddress()
Output only.
|
com.google.protobuf.ByteString |
getPublicIpAddressBytes()
Output only.
|
Instance.QueryInsightsInstanceConfig |
getQueryInsightsConfig()
Configuration for query insights.
|
Instance.QueryInsightsInstanceConfigOrBuilder |
getQueryInsightsConfigOrBuilder()
Configuration for query insights.
|
Instance.ReadPoolConfig |
getReadPoolConfig()
Read pool instance configuration.
|
Instance.ReadPoolConfigOrBuilder |
getReadPoolConfigOrBuilder()
Read pool instance configuration.
|
boolean |
getReconciling()
Output only.
|
boolean |
getSatisfiesPzs()
Output only.
|
int |
getSerializedSize() |
Instance.State |
getState()
Output only.
|
int |
getStateValue()
Output only.
|
String |
getUid()
Output only.
|
com.google.protobuf.ByteString |
getUidBytes()
Output only.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
Instance.Node |
getWritableNode()
Output only.
|
Instance.NodeOrBuilder |
getWritableNodeOrBuilder()
Output only.
|
boolean |
hasClientConnectionConfig()
Optional.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasDeleteTime()
Output only.
|
int |
hashCode() |
boolean |
hasMachineConfig()
Configurations for the machines that host the underlying
database engine.
|
boolean |
hasNetworkConfig()
Optional.
|
boolean |
hasObservabilityConfig()
Configuration for observability.
|
boolean |
hasPscInstanceConfig()
Optional.
|
boolean |
hasQueryInsightsConfig()
Configuration for query insights.
|
boolean |
hasReadPoolConfig()
Read pool instance configuration.
|
boolean |
hasUpdateTime()
Output only.
|
boolean |
hasWritableNode()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static Instance.Builder |
newBuilder() |
static Instance.Builder |
newBuilder(Instance prototype) |
Instance.Builder |
newBuilderForType() |
protected Instance.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Instance |
parseDelimitedFrom(InputStream input) |
static Instance |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Instance |
parseFrom(byte[] data) |
static Instance |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Instance |
parseFrom(ByteBuffer data) |
static Instance |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Instance |
parseFrom(com.google.protobuf.ByteString data) |
static Instance |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Instance |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Instance |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Instance |
parseFrom(InputStream input) |
static Instance |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Instance> |
parser() |
Instance.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final int DELETE_TIME_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int INSTANCE_TYPE_FIELD_NUMBER
public static final int MACHINE_CONFIG_FIELD_NUMBER
public static final int AVAILABILITY_TYPE_FIELD_NUMBER
public static final int GCE_ZONE_FIELD_NUMBER
public static final int DATABASE_FLAGS_FIELD_NUMBER
public static final int WRITABLE_NODE_FIELD_NUMBER
public static final int NODES_FIELD_NUMBER
public static final int QUERY_INSIGHTS_CONFIG_FIELD_NUMBER
public static final int OBSERVABILITY_CONFIG_FIELD_NUMBER
public static final int READ_POOL_CONFIG_FIELD_NUMBER
public static final int IP_ADDRESS_FIELD_NUMBER
public static final int PUBLIC_IP_ADDRESS_FIELD_NUMBER
public static final int RECONCILING_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
public static final int CLIENT_CONNECTION_CONFIG_FIELD_NUMBER
public static final int SATISFIES_PZS_FIELD_NUMBER
public static final int PSC_INSTANCE_CONFIG_FIELD_NUMBER
public static final int NETWORK_CONFIG_FIELD_NUMBER
public static final int OUTBOUND_PUBLIC_IP_ADDRESSES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Output only. The name of the instance resource with the format:
* projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
where the cluster and instance ID segments should satisfy the regex
expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
lowercase letters, numbers, and dashes, starting with a letter, and ending
with a letter or number. For more details see https://google.aip.dev/122.
The prefix of the instance resource name is the name of the parent
resource:
* projects/{project}/locations/{region}/clusters/{cluster_id}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The name of the instance resource with the format:
* projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
where the cluster and instance ID segments should satisfy the regex
expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
lowercase letters, numbers, and dashes, starting with a letter, and ending
with a letter or number. For more details see https://google.aip.dev/122.
The prefix of the instance resource name is the name of the parent
resource:
* projects/{project}/locations/{region}/clusters/{cluster_id}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface InstanceOrBuilderpublic String getDisplayName()
User-settable and human-readable display name for the Instance.
string display_name = 2;getDisplayName in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
User-settable and human-readable display name for the Instance.
string display_name = 2;getDisplayNameBytes in interface InstanceOrBuilderpublic String getUid()
Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];getUid in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getUidBytes()
Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];getUidBytes in interface InstanceOrBuilderpublic boolean hasCreateTime()
Output only. Create time stamp
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface InstanceOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. Create time stamp
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface InstanceOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Create time stamp
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface InstanceOrBuilderpublic boolean hasUpdateTime()
Output only. Update time stamp
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface InstanceOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. Update time stamp
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface InstanceOrBuilderpublic com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Update time stamp
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder in interface InstanceOrBuilderpublic boolean hasDeleteTime()
Output only. Delete time stamp
.google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasDeleteTime in interface InstanceOrBuilderpublic com.google.protobuf.Timestamp getDeleteTime()
Output only. Delete time stamp
.google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDeleteTime in interface InstanceOrBuilderpublic com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
Output only. Delete time stamp
.google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDeleteTimeOrBuilder in interface InstanceOrBuilderpublic int getLabelsCount()
InstanceOrBuilderLabels as key value pairs
map<string, string> labels = 7;getLabelsCount in interface InstanceOrBuilderpublic boolean containsLabels(String key)
Labels as key value pairs
map<string, string> labels = 7;containsLabels in interface InstanceOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface InstanceOrBuilderpublic Map<String,String> getLabelsMap()
Labels as key value pairs
map<string, string> labels = 7;getLabelsMap in interface InstanceOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs
map<string, string> labels = 7;getLabelsOrDefault in interface InstanceOrBuilderpublic String getLabelsOrThrow(String key)
Labels as key value pairs
map<string, string> labels = 7;getLabelsOrThrow in interface InstanceOrBuilderpublic int getStateValue()
Output only. The current serving state of the instance.
.google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface InstanceOrBuilderpublic Instance.State getState()
Output only. The current serving state of the instance.
.google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState in interface InstanceOrBuilderpublic int getInstanceTypeValue()
Required. The type of the instance. Specified at creation time.
.google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
getInstanceTypeValue in interface InstanceOrBuilderpublic Instance.InstanceType getInstanceType()
Required. The type of the instance. Specified at creation time.
.google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
getInstanceType in interface InstanceOrBuilderpublic boolean hasMachineConfig()
Configurations for the machines that host the underlying database engine.
.google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10;hasMachineConfig in interface InstanceOrBuilderpublic Instance.MachineConfig getMachineConfig()
Configurations for the machines that host the underlying database engine.
.google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10;getMachineConfig in interface InstanceOrBuilderpublic Instance.MachineConfigOrBuilder getMachineConfigOrBuilder()
Configurations for the machines that host the underlying database engine.
.google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10;getMachineConfigOrBuilder in interface InstanceOrBuilderpublic int getAvailabilityTypeValue()
Availability type of an Instance. If empty, defaults to REGIONAL for primary instances. For read pools, availability_type is always UNSPECIFIED. Instances in the read pools are evenly distributed across available zones within the region (i.e. read pools with more than one node will have a node in at least two zones).
.google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11;getAvailabilityTypeValue in interface InstanceOrBuilderpublic Instance.AvailabilityType getAvailabilityType()
Availability type of an Instance. If empty, defaults to REGIONAL for primary instances. For read pools, availability_type is always UNSPECIFIED. Instances in the read pools are evenly distributed across available zones within the region (i.e. read pools with more than one node will have a node in at least two zones).
.google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11;getAvailabilityType in interface InstanceOrBuilderpublic String getGceZone()
The Compute Engine zone that the instance should serve from, per https://cloud.google.com/compute/docs/regions-zones This can ONLY be specified for ZONAL instances. If present for a REGIONAL instance, an error will be thrown. If this is absent for a ZONAL instance, instance is created in a random zone with available capacity.
string gce_zone = 12;getGceZone in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getGceZoneBytes()
The Compute Engine zone that the instance should serve from, per https://cloud.google.com/compute/docs/regions-zones This can ONLY be specified for ZONAL instances. If present for a REGIONAL instance, an error will be thrown. If this is absent for a ZONAL instance, instance is created in a random zone with available capacity.
string gce_zone = 12;getGceZoneBytes in interface InstanceOrBuilderpublic int getDatabaseFlagsCount()
InstanceOrBuilderDatabase flags. Set at the instance level. They are copied from the primary instance on secondary instance creation. Flags that have restrictions default to the value at primary instance on read instances during creation. Read instances can set new flags or override existing flags that are relevant for reads, for example, for enabling columnar cache on a read instance. Flags set on read instance might or might not be present on the primary instance. This is a list of "key": "value" pairs. "key": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. "value": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.
map<string, string> database_flags = 13;getDatabaseFlagsCount in interface InstanceOrBuilderpublic boolean containsDatabaseFlags(String key)
Database flags. Set at the instance level. They are copied from the primary instance on secondary instance creation. Flags that have restrictions default to the value at primary instance on read instances during creation. Read instances can set new flags or override existing flags that are relevant for reads, for example, for enabling columnar cache on a read instance. Flags set on read instance might or might not be present on the primary instance. This is a list of "key": "value" pairs. "key": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. "value": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.
map<string, string> database_flags = 13;containsDatabaseFlags in interface InstanceOrBuilder@Deprecated public Map<String,String> getDatabaseFlags()
getDatabaseFlagsMap() instead.getDatabaseFlags in interface InstanceOrBuilderpublic Map<String,String> getDatabaseFlagsMap()
Database flags. Set at the instance level. They are copied from the primary instance on secondary instance creation. Flags that have restrictions default to the value at primary instance on read instances during creation. Read instances can set new flags or override existing flags that are relevant for reads, for example, for enabling columnar cache on a read instance. Flags set on read instance might or might not be present on the primary instance. This is a list of "key": "value" pairs. "key": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. "value": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.
map<string, string> database_flags = 13;getDatabaseFlagsMap in interface InstanceOrBuilderpublic String getDatabaseFlagsOrDefault(String key, String defaultValue)
Database flags. Set at the instance level. They are copied from the primary instance on secondary instance creation. Flags that have restrictions default to the value at primary instance on read instances during creation. Read instances can set new flags or override existing flags that are relevant for reads, for example, for enabling columnar cache on a read instance. Flags set on read instance might or might not be present on the primary instance. This is a list of "key": "value" pairs. "key": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. "value": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.
map<string, string> database_flags = 13;getDatabaseFlagsOrDefault in interface InstanceOrBuilderpublic String getDatabaseFlagsOrThrow(String key)
Database flags. Set at the instance level. They are copied from the primary instance on secondary instance creation. Flags that have restrictions default to the value at primary instance on read instances during creation. Read instances can set new flags or override existing flags that are relevant for reads, for example, for enabling columnar cache on a read instance. Flags set on read instance might or might not be present on the primary instance. This is a list of "key": "value" pairs. "key": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. "value": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.
map<string, string> database_flags = 13;getDatabaseFlagsOrThrow in interface InstanceOrBuilderpublic boolean hasWritableNode()
Output only. This is set for the read-write VM of the PRIMARY instance only.
.google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasWritableNode in interface InstanceOrBuilderpublic Instance.Node getWritableNode()
Output only. This is set for the read-write VM of the PRIMARY instance only.
.google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
getWritableNode in interface InstanceOrBuilderpublic Instance.NodeOrBuilder getWritableNodeOrBuilder()
Output only. This is set for the read-write VM of the PRIMARY instance only.
.google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
getWritableNodeOrBuilder in interface InstanceOrBuilderpublic List<Instance.Node> getNodesList()
Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance.
repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNodesList in interface InstanceOrBuilderpublic List<? extends Instance.NodeOrBuilder> getNodesOrBuilderList()
Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance.
repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNodesOrBuilderList in interface InstanceOrBuilderpublic int getNodesCount()
Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance.
repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNodesCount in interface InstanceOrBuilderpublic Instance.Node getNodes(int index)
Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance.
repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNodes in interface InstanceOrBuilderpublic Instance.NodeOrBuilder getNodesOrBuilder(int index)
Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance.
repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNodesOrBuilder in interface InstanceOrBuilderpublic boolean hasQueryInsightsConfig()
Configuration for query insights.
.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
hasQueryInsightsConfig in interface InstanceOrBuilderpublic Instance.QueryInsightsInstanceConfig getQueryInsightsConfig()
Configuration for query insights.
.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
getQueryInsightsConfig in interface InstanceOrBuilderpublic Instance.QueryInsightsInstanceConfigOrBuilder getQueryInsightsConfigOrBuilder()
Configuration for query insights.
.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
getQueryInsightsConfigOrBuilder in interface InstanceOrBuilderpublic boolean hasObservabilityConfig()
Configuration for observability.
.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26;
hasObservabilityConfig in interface InstanceOrBuilderpublic Instance.ObservabilityInstanceConfig getObservabilityConfig()
Configuration for observability.
.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26;
getObservabilityConfig in interface InstanceOrBuilderpublic Instance.ObservabilityInstanceConfigOrBuilder getObservabilityConfigOrBuilder()
Configuration for observability.
.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26;
getObservabilityConfigOrBuilder in interface InstanceOrBuilderpublic boolean hasReadPoolConfig()
Read pool instance configuration. This is required if the value of instanceType is READ_POOL.
.google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14;hasReadPoolConfig in interface InstanceOrBuilderpublic Instance.ReadPoolConfig getReadPoolConfig()
Read pool instance configuration. This is required if the value of instanceType is READ_POOL.
.google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14;getReadPoolConfig in interface InstanceOrBuilderpublic Instance.ReadPoolConfigOrBuilder getReadPoolConfigOrBuilder()
Read pool instance configuration. This is required if the value of instanceType is READ_POOL.
.google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14;getReadPoolConfigOrBuilder in interface InstanceOrBuilderpublic String getIpAddress()
Output only. The IP address for the Instance. This is the connection endpoint for an end-user application.
string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];getIpAddress in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getIpAddressBytes()
Output only. The IP address for the Instance. This is the connection endpoint for an end-user application.
string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];getIpAddressBytes in interface InstanceOrBuilderpublic String getPublicIpAddress()
Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application.
string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
getPublicIpAddress in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getPublicIpAddressBytes()
Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application.
string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
getPublicIpAddressBytes in interface InstanceOrBuilderpublic boolean getReconciling()
Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Instance does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.
bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];getReconciling in interface InstanceOrBuilderpublic String getEtag()
For Resource freshness validation (https://google.aip.dev/154)
string etag = 17;getEtag in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getEtagBytes()
For Resource freshness validation (https://google.aip.dev/154)
string etag = 17;getEtagBytes in interface InstanceOrBuilderpublic int getAnnotationsCount()
InstanceOrBuilderAnnotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
map<string, string> annotations = 18;getAnnotationsCount in interface InstanceOrBuilderpublic boolean containsAnnotations(String key)
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
map<string, string> annotations = 18;containsAnnotations in interface InstanceOrBuilder@Deprecated public Map<String,String> getAnnotations()
getAnnotationsMap() instead.getAnnotations in interface InstanceOrBuilderpublic Map<String,String> getAnnotationsMap()
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
map<string, string> annotations = 18;getAnnotationsMap in interface InstanceOrBuilderpublic String getAnnotationsOrDefault(String key, String defaultValue)
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
map<string, string> annotations = 18;getAnnotationsOrDefault in interface InstanceOrBuilderpublic String getAnnotationsOrThrow(String key)
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
map<string, string> annotations = 18;getAnnotationsOrThrow in interface InstanceOrBuilderpublic boolean hasClientConnectionConfig()
Optional. Client connection specific configurations
.google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL];
hasClientConnectionConfig in interface InstanceOrBuilderpublic Instance.ClientConnectionConfig getClientConnectionConfig()
Optional. Client connection specific configurations
.google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL];
getClientConnectionConfig in interface InstanceOrBuilderpublic Instance.ClientConnectionConfigOrBuilder getClientConnectionConfigOrBuilder()
Optional. Client connection specific configurations
.google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL];
getClientConnectionConfigOrBuilder in interface InstanceOrBuilderpublic boolean getSatisfiesPzs()
Output only. Reserved for future use.
bool satisfies_pzs = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];getSatisfiesPzs in interface InstanceOrBuilderpublic boolean hasPscInstanceConfig()
Optional. The configuration for Private Service Connect (PSC) for the instance.
.google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL];
hasPscInstanceConfig in interface InstanceOrBuilderpublic Instance.PscInstanceConfig getPscInstanceConfig()
Optional. The configuration for Private Service Connect (PSC) for the instance.
.google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL];
getPscInstanceConfig in interface InstanceOrBuilderpublic Instance.PscInstanceConfigOrBuilder getPscInstanceConfigOrBuilder()
Optional. The configuration for Private Service Connect (PSC) for the instance.
.google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL];
getPscInstanceConfigOrBuilder in interface InstanceOrBuilderpublic boolean hasNetworkConfig()
Optional. Instance-level network configuration.
.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL];
hasNetworkConfig in interface InstanceOrBuilderpublic Instance.InstanceNetworkConfig getNetworkConfig()
Optional. Instance-level network configuration.
.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL];
getNetworkConfig in interface InstanceOrBuilderpublic Instance.InstanceNetworkConfigOrBuilder getNetworkConfigOrBuilder()
Optional. Instance-level network configuration.
.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL];
getNetworkConfigOrBuilder in interface InstanceOrBuilderpublic com.google.protobuf.ProtocolStringList getOutboundPublicIpAddressesList()
Output only. All outbound public IP addresses configured for the instance.
repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
getOutboundPublicIpAddressesList in interface InstanceOrBuilderpublic int getOutboundPublicIpAddressesCount()
Output only. All outbound public IP addresses configured for the instance.
repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
getOutboundPublicIpAddressesCount in interface InstanceOrBuilderpublic String getOutboundPublicIpAddresses(int index)
Output only. All outbound public IP addresses configured for the instance.
repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
getOutboundPublicIpAddresses in interface InstanceOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getOutboundPublicIpAddressesBytes(int index)
Output only. All outbound public IP addresses configured for the instance.
repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
getOutboundPublicIpAddressesBytes in interface InstanceOrBuilderindex - The index of the value to return.public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Instance parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Instance parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Instance parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Instance parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Instance parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Instance parseFrom(InputStream input) throws IOException
IOExceptionpublic static Instance parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Instance parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Instance parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Instance parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Instance parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Instance.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Instance.Builder newBuilder()
public static Instance.Builder newBuilder(Instance prototype)
public Instance.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Instance.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Instance getDefaultInstance()
public static com.google.protobuf.Parser<Instance> parser()
public com.google.protobuf.Parser<Instance> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Instance getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.