Class Instance.Builder

  • All Implemented Interfaces:
    InstanceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Instance

    public static final class Instance.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
    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.v1beta.Instance
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • clear

        public Instance.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • getDefaultInstanceForType

        public Instance getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Instance build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Instance buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Instance.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • setField

        public Instance.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • clearField

        public Instance.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • clearOneof

        public Instance.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • setRepeatedField

        public Instance.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 int index,
                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • addRepeatedField

        public Instance.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • mergeFrom

        public Instance.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Instance.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • mergeFrom

        public Instance.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Instance.Builder>
        Throws:
        IOException
      • getName

        public 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];
        Specified by:
        getName in interface InstanceOrBuilder
        Returns:
        The name.
      • getNameBytes

        public 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];
        Specified by:
        getNameBytes in interface InstanceOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Instance.Builder setName​(String value)
         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];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Instance.Builder clearName()
         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];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Instance.Builder setNameBytes​(com.google.protobuf.ByteString value)
         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];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDisplayName

        public String getDisplayName()
         User-settable and human-readable display name for the Instance.
         
        string display_name = 2;
        Specified by:
        getDisplayName in interface InstanceOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         User-settable and human-readable display name for the Instance.
         
        string display_name = 2;
        Specified by:
        getDisplayNameBytes in interface InstanceOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public Instance.Builder setDisplayName​(String value)
         User-settable and human-readable display name for the Instance.
         
        string display_name = 2;
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public Instance.Builder clearDisplayName()
         User-settable and human-readable display name for the Instance.
         
        string display_name = 2;
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public Instance.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         User-settable and human-readable display name for the Instance.
         
        string display_name = 2;
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • getUid

        public 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];
        Specified by:
        getUid in interface InstanceOrBuilder
        Returns:
        The uid.
      • getUidBytes

        public 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];
        Specified by:
        getUidBytes in interface InstanceOrBuilder
        Returns:
        The bytes for uid.
      • setUid

        public Instance.Builder setUid​(String value)
         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];
        Parameters:
        value - The uid to set.
        Returns:
        This builder for chaining.
      • clearUid

        public Instance.Builder clearUid()
         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];
        Returns:
        This builder for chaining.
      • setUidBytes

        public Instance.Builder setUidBytes​(com.google.protobuf.ByteString value)
         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];
        Parameters:
        value - The bytes for uid to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Create time stamp
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface InstanceOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. Create time stamp
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface InstanceOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Instance.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Create time stamp
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Instance.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Create time stamp
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Instance.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Create time stamp
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Instance.Builder clearCreateTime()
         Output only. Create time stamp
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. Create time stamp
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. Create time stamp
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface InstanceOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. Update time stamp
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface InstanceOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. Update time stamp
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface InstanceOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public Instance.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. Update time stamp
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public Instance.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Update time stamp
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public Instance.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. Update time stamp
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public Instance.Builder clearUpdateTime()
         Output only. Update time stamp
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. Update time stamp
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. Update time stamp
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface InstanceOrBuilder
      • hasDeleteTime

        public boolean hasDeleteTime()
         Output only. Delete time stamp
         
        .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasDeleteTime in interface InstanceOrBuilder
        Returns:
        Whether the deleteTime field is set.
      • getDeleteTime

        public com.google.protobuf.Timestamp getDeleteTime()
         Output only. Delete time stamp
         
        .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDeleteTime in interface InstanceOrBuilder
        Returns:
        The deleteTime.
      • setDeleteTime

        public Instance.Builder setDeleteTime​(com.google.protobuf.Timestamp value)
         Output only. Delete time stamp
         
        .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setDeleteTime

        public Instance.Builder setDeleteTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Delete time stamp
         
        .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeDeleteTime

        public Instance.Builder mergeDeleteTime​(com.google.protobuf.Timestamp value)
         Output only. Delete time stamp
         
        .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearDeleteTime

        public Instance.Builder clearDeleteTime()
         Output only. Delete time stamp
         
        .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getDeleteTimeBuilder

        public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder()
         Output only. Delete time stamp
         
        .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getDeleteTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
         Output only. Delete time stamp
         
        .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDeleteTimeOrBuilder in interface InstanceOrBuilder
      • removeLabels

        public Instance.Builder removeLabels​(String key)
         Labels as key value pairs
         
        map<string, string> labels = 7;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • getStateValue

        public int getStateValue()
         Output only. The current serving state of the instance.
         
        .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface InstanceOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Instance.Builder setStateValue​(int value)
         Output only. The current serving state of the instance.
         
        .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public Instance.State getState()
         Output only. The current serving state of the instance.
         
        .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface InstanceOrBuilder
        Returns:
        The state.
      • setState

        public Instance.Builder setState​(Instance.State value)
         Output only. The current serving state of the instance.
         
        .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Instance.Builder clearState()
         Output only. The current serving state of the instance.
         
        .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getInstanceTypeValue

        public int getInstanceTypeValue()
         Required. The type of the instance. Specified at creation time.
         
        .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getInstanceTypeValue in interface InstanceOrBuilder
        Returns:
        The enum numeric value on the wire for instanceType.
      • setInstanceTypeValue

        public Instance.Builder setInstanceTypeValue​(int value)
         Required. The type of the instance. Specified at creation time.
         
        .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The enum numeric value on the wire for instanceType to set.
        Returns:
        This builder for chaining.
      • getInstanceType

        public Instance.InstanceType getInstanceType()
         Required. The type of the instance. Specified at creation time.
         
        .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getInstanceType in interface InstanceOrBuilder
        Returns:
        The instanceType.
      • setInstanceType

        public Instance.Builder setInstanceType​(Instance.InstanceType value)
         Required. The type of the instance. Specified at creation time.
         
        .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The instanceType to set.
        Returns:
        This builder for chaining.
      • clearInstanceType

        public Instance.Builder clearInstanceType()
         Required. The type of the instance. Specified at creation time.
         
        .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • hasMachineConfig

        public boolean hasMachineConfig()
         Configurations for the machines that host the underlying
         database engine.
         
        .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
        Specified by:
        hasMachineConfig in interface InstanceOrBuilder
        Returns:
        Whether the machineConfig field is set.
      • getMachineConfig

        public Instance.MachineConfig getMachineConfig()
         Configurations for the machines that host the underlying
         database engine.
         
        .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
        Specified by:
        getMachineConfig in interface InstanceOrBuilder
        Returns:
        The machineConfig.
      • setMachineConfig

        public Instance.Builder setMachineConfig​(Instance.MachineConfig value)
         Configurations for the machines that host the underlying
         database engine.
         
        .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
      • setMachineConfig

        public Instance.Builder setMachineConfig​(Instance.MachineConfig.Builder builderForValue)
         Configurations for the machines that host the underlying
         database engine.
         
        .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
      • mergeMachineConfig

        public Instance.Builder mergeMachineConfig​(Instance.MachineConfig value)
         Configurations for the machines that host the underlying
         database engine.
         
        .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
      • clearMachineConfig

        public Instance.Builder clearMachineConfig()
         Configurations for the machines that host the underlying
         database engine.
         
        .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
      • getMachineConfigBuilder

        public Instance.MachineConfig.Builder getMachineConfigBuilder()
         Configurations for the machines that host the underlying
         database engine.
         
        .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
      • getAvailabilityTypeValue

        public 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.v1beta.Instance.AvailabilityType availability_type = 11;
        Specified by:
        getAvailabilityTypeValue in interface InstanceOrBuilder
        Returns:
        The enum numeric value on the wire for availabilityType.
      • setAvailabilityTypeValue

        public Instance.Builder setAvailabilityTypeValue​(int value)
         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.v1beta.Instance.AvailabilityType availability_type = 11;
        Parameters:
        value - The enum numeric value on the wire for availabilityType to set.
        Returns:
        This builder for chaining.
      • getAvailabilityType

        public 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.v1beta.Instance.AvailabilityType availability_type = 11;
        Specified by:
        getAvailabilityType in interface InstanceOrBuilder
        Returns:
        The availabilityType.
      • setAvailabilityType

        public Instance.Builder setAvailabilityType​(Instance.AvailabilityType value)
         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.v1beta.Instance.AvailabilityType availability_type = 11;
        Parameters:
        value - The availabilityType to set.
        Returns:
        This builder for chaining.
      • clearAvailabilityType

        public Instance.Builder clearAvailabilityType()
         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.v1beta.Instance.AvailabilityType availability_type = 11;
        Returns:
        This builder for chaining.
      • getGceZone

        public 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;
        Specified by:
        getGceZone in interface InstanceOrBuilder
        Returns:
        The gceZone.
      • getGceZoneBytes

        public 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;
        Specified by:
        getGceZoneBytes in interface InstanceOrBuilder
        Returns:
        The bytes for gceZone.
      • setGceZone

        public Instance.Builder setGceZone​(String value)
         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;
        Parameters:
        value - The gceZone to set.
        Returns:
        This builder for chaining.
      • clearGceZone

        public Instance.Builder clearGceZone()
         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;
        Returns:
        This builder for chaining.
      • setGceZoneBytes

        public Instance.Builder setGceZoneBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for gceZone to set.
        Returns:
        This builder for chaining.
      • getDatabaseFlagsCount

        public int getDatabaseFlagsCount()
        Description copied from interface: InstanceOrBuilder
         Database flags. Set at instance level.
          * They are copied from primary instance on read instance creation.
          * Read instances can set new or override existing flags that are relevant
            for reads, e.g. for enabling columnar cache on a read instance. Flags
            set on read instance may or may not be present on primary.
        
        
         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;
        Specified by:
        getDatabaseFlagsCount in interface InstanceOrBuilder
      • containsDatabaseFlags

        public boolean containsDatabaseFlags​(String key)
         Database flags. Set at instance level.
          * They are copied from primary instance on read instance creation.
          * Read instances can set new or override existing flags that are relevant
            for reads, e.g. for enabling columnar cache on a read instance. Flags
            set on read instance may or may not be present on primary.
        
        
         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;
        Specified by:
        containsDatabaseFlags in interface InstanceOrBuilder
      • getDatabaseFlagsMap

        public Map<String,​String> getDatabaseFlagsMap()
         Database flags. Set at instance level.
          * They are copied from primary instance on read instance creation.
          * Read instances can set new or override existing flags that are relevant
            for reads, e.g. for enabling columnar cache on a read instance. Flags
            set on read instance may or may not be present on primary.
        
        
         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;
        Specified by:
        getDatabaseFlagsMap in interface InstanceOrBuilder
      • getDatabaseFlagsOrDefault

        public String getDatabaseFlagsOrDefault​(String key,
                                                String defaultValue)
         Database flags. Set at instance level.
          * They are copied from primary instance on read instance creation.
          * Read instances can set new or override existing flags that are relevant
            for reads, e.g. for enabling columnar cache on a read instance. Flags
            set on read instance may or may not be present on primary.
        
        
         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;
        Specified by:
        getDatabaseFlagsOrDefault in interface InstanceOrBuilder
      • getDatabaseFlagsOrThrow

        public String getDatabaseFlagsOrThrow​(String key)
         Database flags. Set at instance level.
          * They are copied from primary instance on read instance creation.
          * Read instances can set new or override existing flags that are relevant
            for reads, e.g. for enabling columnar cache on a read instance. Flags
            set on read instance may or may not be present on primary.
        
        
         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;
        Specified by:
        getDatabaseFlagsOrThrow in interface InstanceOrBuilder
      • removeDatabaseFlags

        public Instance.Builder removeDatabaseFlags​(String key)
         Database flags. Set at instance level.
          * They are copied from primary instance on read instance creation.
          * Read instances can set new or override existing flags that are relevant
            for reads, e.g. for enabling columnar cache on a read instance. Flags
            set on read instance may or may not be present on primary.
        
        
         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;
      • getMutableDatabaseFlags

        @Deprecated
        public Map<String,​String> getMutableDatabaseFlags()
        Deprecated.
        Use alternate mutation accessors instead.
      • putDatabaseFlags

        public Instance.Builder putDatabaseFlags​(String key,
                                                 String value)
         Database flags. Set at instance level.
          * They are copied from primary instance on read instance creation.
          * Read instances can set new or override existing flags that are relevant
            for reads, e.g. for enabling columnar cache on a read instance. Flags
            set on read instance may or may not be present on primary.
        
        
         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;
      • putAllDatabaseFlags

        public Instance.Builder putAllDatabaseFlags​(Map<String,​String> values)
         Database flags. Set at instance level.
          * They are copied from primary instance on read instance creation.
          * Read instances can set new or override existing flags that are relevant
            for reads, e.g. for enabling columnar cache on a read instance. Flags
            set on read instance may or may not be present on primary.
        
        
         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;
      • hasWritableNode

        public boolean hasWritableNode()
         Output only. This is set for the read-write VM of the PRIMARY instance
         only.
         
        .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasWritableNode in interface InstanceOrBuilder
        Returns:
        Whether the writableNode field is set.
      • getWritableNode

        public Instance.Node getWritableNode()
         Output only. This is set for the read-write VM of the PRIMARY instance
         only.
         
        .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getWritableNode in interface InstanceOrBuilder
        Returns:
        The writableNode.
      • setWritableNode

        public Instance.Builder setWritableNode​(Instance.Node value)
         Output only. This is set for the read-write VM of the PRIMARY instance
         only.
         
        .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setWritableNode

        public Instance.Builder setWritableNode​(Instance.Node.Builder builderForValue)
         Output only. This is set for the read-write VM of the PRIMARY instance
         only.
         
        .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeWritableNode

        public Instance.Builder mergeWritableNode​(Instance.Node value)
         Output only. This is set for the read-write VM of the PRIMARY instance
         only.
         
        .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearWritableNode

        public Instance.Builder clearWritableNode()
         Output only. This is set for the read-write VM of the PRIMARY instance
         only.
         
        .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getWritableNodeBuilder

        public Instance.Node.Builder getWritableNodeBuilder()
         Output only. This is set for the read-write VM of the PRIMARY instance
         only.
         
        .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getWritableNodeOrBuilder

        public Instance.NodeOrBuilder getWritableNodeOrBuilder()
         Output only. This is set for the read-write VM of the PRIMARY instance
         only.
         
        .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getWritableNodeOrBuilder in interface InstanceOrBuilder
      • getNodesList

        public 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.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNodesList in interface InstanceOrBuilder
      • getNodesCount

        public int getNodesCount()
         Output only. List of available read-only VMs in this instance, including
         the standby for a PRIMARY instance.
         
        repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNodesCount in interface InstanceOrBuilder
      • getNodes

        public 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.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNodes in interface InstanceOrBuilder
      • setNodes

        public Instance.Builder setNodes​(int index,
                                         Instance.Node value)
         Output only. List of available read-only VMs in this instance, including
         the standby for a PRIMARY instance.
         
        repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setNodes

        public Instance.Builder setNodes​(int index,
                                         Instance.Node.Builder builderForValue)
         Output only. List of available read-only VMs in this instance, including
         the standby for a PRIMARY instance.
         
        repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addNodes

        public Instance.Builder addNodes​(Instance.Node value)
         Output only. List of available read-only VMs in this instance, including
         the standby for a PRIMARY instance.
         
        repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addNodes

        public Instance.Builder addNodes​(int index,
                                         Instance.Node value)
         Output only. List of available read-only VMs in this instance, including
         the standby for a PRIMARY instance.
         
        repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addNodes

        public Instance.Builder addNodes​(Instance.Node.Builder builderForValue)
         Output only. List of available read-only VMs in this instance, including
         the standby for a PRIMARY instance.
         
        repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addNodes

        public Instance.Builder addNodes​(int index,
                                         Instance.Node.Builder builderForValue)
         Output only. List of available read-only VMs in this instance, including
         the standby for a PRIMARY instance.
         
        repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAllNodes

        public Instance.Builder addAllNodes​(Iterable<? extends Instance.Node> values)
         Output only. List of available read-only VMs in this instance, including
         the standby for a PRIMARY instance.
         
        repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearNodes

        public Instance.Builder clearNodes()
         Output only. List of available read-only VMs in this instance, including
         the standby for a PRIMARY instance.
         
        repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • removeNodes

        public Instance.Builder removeNodes​(int index)
         Output only. List of available read-only VMs in this instance, including
         the standby for a PRIMARY instance.
         
        repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getNodesBuilder

        public Instance.Node.Builder getNodesBuilder​(int index)
         Output only. List of available read-only VMs in this instance, including
         the standby for a PRIMARY instance.
         
        repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getNodesOrBuilder

        public 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.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNodesOrBuilder in interface InstanceOrBuilder
      • getNodesOrBuilderList

        public 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.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNodesOrBuilderList in interface InstanceOrBuilder
      • addNodesBuilder

        public Instance.Node.Builder addNodesBuilder()
         Output only. List of available read-only VMs in this instance, including
         the standby for a PRIMARY instance.
         
        repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addNodesBuilder

        public Instance.Node.Builder addNodesBuilder​(int index)
         Output only. List of available read-only VMs in this instance, including
         the standby for a PRIMARY instance.
         
        repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getNodesBuilderList

        public List<Instance.Node.Builder> getNodesBuilderList()
         Output only. List of available read-only VMs in this instance, including
         the standby for a PRIMARY instance.
         
        repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • hasQueryInsightsConfig

        public boolean hasQueryInsightsConfig()
         Configuration for query insights.
         
        .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
        Specified by:
        hasQueryInsightsConfig in interface InstanceOrBuilder
        Returns:
        Whether the queryInsightsConfig field is set.
      • clearQueryInsightsConfig

        public Instance.Builder clearQueryInsightsConfig()
         Configuration for query insights.
         
        .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
      • getQueryInsightsConfigBuilder

        public Instance.QueryInsightsInstanceConfig.Builder getQueryInsightsConfigBuilder()
         Configuration for query insights.
         
        .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
      • hasReadPoolConfig

        public boolean hasReadPoolConfig()
         Read pool specific config.
         
        .google.cloud.alloydb.v1beta.Instance.ReadPoolConfig read_pool_config = 14;
        Specified by:
        hasReadPoolConfig in interface InstanceOrBuilder
        Returns:
        Whether the readPoolConfig field is set.
      • setReadPoolConfig

        public Instance.Builder setReadPoolConfig​(Instance.ReadPoolConfig value)
         Read pool specific config.
         
        .google.cloud.alloydb.v1beta.Instance.ReadPoolConfig read_pool_config = 14;
      • mergeReadPoolConfig

        public Instance.Builder mergeReadPoolConfig​(Instance.ReadPoolConfig value)
         Read pool specific config.
         
        .google.cloud.alloydb.v1beta.Instance.ReadPoolConfig read_pool_config = 14;
      • clearReadPoolConfig

        public Instance.Builder clearReadPoolConfig()
         Read pool specific config.
         
        .google.cloud.alloydb.v1beta.Instance.ReadPoolConfig read_pool_config = 14;
      • getReadPoolConfigBuilder

        public Instance.ReadPoolConfig.Builder getReadPoolConfigBuilder()
         Read pool specific config.
         
        .google.cloud.alloydb.v1beta.Instance.ReadPoolConfig read_pool_config = 14;
      • getIpAddress

        public 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];
        Specified by:
        getIpAddress in interface InstanceOrBuilder
        Returns:
        The ipAddress.
      • getIpAddressBytes

        public 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];
        Specified by:
        getIpAddressBytes in interface InstanceOrBuilder
        Returns:
        The bytes for ipAddress.
      • setIpAddress

        public Instance.Builder setIpAddress​(String value)
         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];
        Parameters:
        value - The ipAddress to set.
        Returns:
        This builder for chaining.
      • clearIpAddress

        public Instance.Builder clearIpAddress()
         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];
        Returns:
        This builder for chaining.
      • setIpAddressBytes

        public Instance.Builder setIpAddressBytes​(com.google.protobuf.ByteString value)
         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];
        Parameters:
        value - The bytes for ipAddress to set.
        Returns:
        This builder for chaining.
      • getReconciling

        public 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];
        Specified by:
        getReconciling in interface InstanceOrBuilder
        Returns:
        The reconciling.
      • setReconciling

        public Instance.Builder setReconciling​(boolean value)
         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];
        Parameters:
        value - The reconciling to set.
        Returns:
        This builder for chaining.
      • clearReconciling

        public Instance.Builder clearReconciling()
         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];
        Returns:
        This builder for chaining.
      • getEtag

        public String getEtag()
         For Resource freshness validation (https://google.aip.dev/154)
         
        string etag = 17;
        Specified by:
        getEtag in interface InstanceOrBuilder
        Returns:
        The etag.
      • getEtagBytes

        public com.google.protobuf.ByteString getEtagBytes()
         For Resource freshness validation (https://google.aip.dev/154)
         
        string etag = 17;
        Specified by:
        getEtagBytes in interface InstanceOrBuilder
        Returns:
        The bytes for etag.
      • setEtag

        public Instance.Builder setEtag​(String value)
         For Resource freshness validation (https://google.aip.dev/154)
         
        string etag = 17;
        Parameters:
        value - The etag to set.
        Returns:
        This builder for chaining.
      • clearEtag

        public Instance.Builder clearEtag()
         For Resource freshness validation (https://google.aip.dev/154)
         
        string etag = 17;
        Returns:
        This builder for chaining.
      • setEtagBytes

        public Instance.Builder setEtagBytes​(com.google.protobuf.ByteString value)
         For Resource freshness validation (https://google.aip.dev/154)
         
        string etag = 17;
        Parameters:
        value - The bytes for etag to set.
        Returns:
        This builder for chaining.
      • getAnnotationsCount

        public int getAnnotationsCount()
        Description copied from interface: InstanceOrBuilder
         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;
        Specified by:
        getAnnotationsCount in interface InstanceOrBuilder
      • containsAnnotations

        public 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;
        Specified by:
        containsAnnotations in interface InstanceOrBuilder
      • getAnnotationsMap

        public 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;
        Specified by:
        getAnnotationsMap in interface InstanceOrBuilder
      • getAnnotationsOrDefault

        public 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;
        Specified by:
        getAnnotationsOrDefault in interface InstanceOrBuilder
      • getAnnotationsOrThrow

        public 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;
        Specified by:
        getAnnotationsOrThrow in interface InstanceOrBuilder
      • removeAnnotations

        public Instance.Builder removeAnnotations​(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;
      • getMutableAnnotations

        @Deprecated
        public Map<String,​String> getMutableAnnotations()
        Deprecated.
        Use alternate mutation accessors instead.
      • putAnnotations

        public Instance.Builder putAnnotations​(String key,
                                               String value)
         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;
      • putAllAnnotations

        public Instance.Builder putAllAnnotations​(Map<String,​String> values)
         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;
      • hasUpdatePolicy

        public boolean hasUpdatePolicy()
         Update policy that will be applied during instance update.
         This field is not persisted when you update the instance.
         To use a non-default update policy, you must
         specify explicitly specify the value in each update request.
         
        .google.cloud.alloydb.v1beta.Instance.UpdatePolicy update_policy = 22;
        Specified by:
        hasUpdatePolicy in interface InstanceOrBuilder
        Returns:
        Whether the updatePolicy field is set.
      • getUpdatePolicy

        public Instance.UpdatePolicy getUpdatePolicy()
         Update policy that will be applied during instance update.
         This field is not persisted when you update the instance.
         To use a non-default update policy, you must
         specify explicitly specify the value in each update request.
         
        .google.cloud.alloydb.v1beta.Instance.UpdatePolicy update_policy = 22;
        Specified by:
        getUpdatePolicy in interface InstanceOrBuilder
        Returns:
        The updatePolicy.
      • setUpdatePolicy

        public Instance.Builder setUpdatePolicy​(Instance.UpdatePolicy value)
         Update policy that will be applied during instance update.
         This field is not persisted when you update the instance.
         To use a non-default update policy, you must
         specify explicitly specify the value in each update request.
         
        .google.cloud.alloydb.v1beta.Instance.UpdatePolicy update_policy = 22;
      • setUpdatePolicy

        public Instance.Builder setUpdatePolicy​(Instance.UpdatePolicy.Builder builderForValue)
         Update policy that will be applied during instance update.
         This field is not persisted when you update the instance.
         To use a non-default update policy, you must
         specify explicitly specify the value in each update request.
         
        .google.cloud.alloydb.v1beta.Instance.UpdatePolicy update_policy = 22;
      • mergeUpdatePolicy

        public Instance.Builder mergeUpdatePolicy​(Instance.UpdatePolicy value)
         Update policy that will be applied during instance update.
         This field is not persisted when you update the instance.
         To use a non-default update policy, you must
         specify explicitly specify the value in each update request.
         
        .google.cloud.alloydb.v1beta.Instance.UpdatePolicy update_policy = 22;
      • clearUpdatePolicy

        public Instance.Builder clearUpdatePolicy()
         Update policy that will be applied during instance update.
         This field is not persisted when you update the instance.
         To use a non-default update policy, you must
         specify explicitly specify the value in each update request.
         
        .google.cloud.alloydb.v1beta.Instance.UpdatePolicy update_policy = 22;
      • getUpdatePolicyBuilder

        public Instance.UpdatePolicy.Builder getUpdatePolicyBuilder()
         Update policy that will be applied during instance update.
         This field is not persisted when you update the instance.
         To use a non-default update policy, you must
         specify explicitly specify the value in each update request.
         
        .google.cloud.alloydb.v1beta.Instance.UpdatePolicy update_policy = 22;
      • getUpdatePolicyOrBuilder

        public Instance.UpdatePolicyOrBuilder getUpdatePolicyOrBuilder()
         Update policy that will be applied during instance update.
         This field is not persisted when you update the instance.
         To use a non-default update policy, you must
         specify explicitly specify the value in each update request.
         
        .google.cloud.alloydb.v1beta.Instance.UpdatePolicy update_policy = 22;
        Specified by:
        getUpdatePolicyOrBuilder in interface InstanceOrBuilder
      • setUnknownFields

        public final Instance.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • mergeUnknownFields

        public final Instance.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>