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
     A Memorystore for Redis instance.
     
    Protobuf type google.cloud.redis.v1.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()
         Required. Unique name of the resource in this scope including project and
         location using the form:
             `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
        
         Note: Redis instances are managed and addressed at regional level so
         location_id here refers to a GCP region; however, users may choose which
         specific zone (or collection of zones for cross-zone instances) an instance
         should be provisioned in. Refer to
         [location_id][google.cloud.redis.v1.Instance.location_id] and
         [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id]
         fields for more details.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getName in interface InstanceOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. Unique name of the resource in this scope including project and
         location using the form:
             `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
        
         Note: Redis instances are managed and addressed at regional level so
         location_id here refers to a GCP region; however, users may choose which
         specific zone (or collection of zones for cross-zone instances) an instance
         should be provisioned in. Refer to
         [location_id][google.cloud.redis.v1.Instance.location_id] and
         [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id]
         fields for more details.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNameBytes in interface InstanceOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Instance.Builder setName​(String value)
         Required. Unique name of the resource in this scope including project and
         location using the form:
             `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
        
         Note: Redis instances are managed and addressed at regional level so
         location_id here refers to a GCP region; however, users may choose which
         specific zone (or collection of zones for cross-zone instances) an instance
         should be provisioned in. Refer to
         [location_id][google.cloud.redis.v1.Instance.location_id] and
         [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id]
         fields for more details.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Instance.Builder clearName()
         Required. Unique name of the resource in this scope including project and
         location using the form:
             `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
        
         Note: Redis instances are managed and addressed at regional level so
         location_id here refers to a GCP region; however, users may choose which
         specific zone (or collection of zones for cross-zone instances) an instance
         should be provisioned in. Refer to
         [location_id][google.cloud.redis.v1.Instance.location_id] and
         [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id]
         fields for more details.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Instance.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. Unique name of the resource in this scope including project and
         location using the form:
             `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
        
         Note: Redis instances are managed and addressed at regional level so
         location_id here refers to a GCP region; however, users may choose which
         specific zone (or collection of zones for cross-zone instances) an instance
         should be provisioned in. Refer to
         [location_id][google.cloud.redis.v1.Instance.location_id] and
         [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id]
         fields for more details.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDisplayName

        public String getDisplayName()
         An arbitrary and optional user-provided name for the instance.
         
        string display_name = 2;
        Specified by:
        getDisplayName in interface InstanceOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         An arbitrary and optional user-provided 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)
         An arbitrary and optional user-provided name for the instance.
         
        string display_name = 2;
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public Instance.Builder clearDisplayName()
         An arbitrary and optional user-provided name for the instance.
         
        string display_name = 2;
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public Instance.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         An arbitrary and optional user-provided name for the instance.
         
        string display_name = 2;
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: InstanceOrBuilder
         Resource labels to represent user provided metadata
         
        map<string, string> labels = 3;
        Specified by:
        getLabelsCount in interface InstanceOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Resource labels to represent user provided metadata
         
        map<string, string> labels = 3;
        Specified by:
        containsLabels in interface InstanceOrBuilder
      • removeLabels

        public Instance.Builder removeLabels​(String key)
         Resource labels to represent user provided metadata
         
        map<string, string> labels = 3;
      • getMutableLabels

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

        public Instance.Builder putLabels​(String key,
                                          String value)
         Resource labels to represent user provided metadata
         
        map<string, string> labels = 3;
      • putAllLabels

        public Instance.Builder putAllLabels​(Map<String,​String> values)
         Resource labels to represent user provided metadata
         
        map<string, string> labels = 3;
      • getLocationId

        public String getLocationId()
         Optional. The zone where the instance will be provisioned. If not provided,
         the service will choose a zone from the specified region for the instance.
         For standard tier, additional nodes will be added across multiple zones for
         protection against zonal failures. If specified, at least one node will be
         provisioned in this zone.
         
        string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLocationId in interface InstanceOrBuilder
        Returns:
        The locationId.
      • getLocationIdBytes

        public com.google.protobuf.ByteString getLocationIdBytes()
         Optional. The zone where the instance will be provisioned. If not provided,
         the service will choose a zone from the specified region for the instance.
         For standard tier, additional nodes will be added across multiple zones for
         protection against zonal failures. If specified, at least one node will be
         provisioned in this zone.
         
        string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLocationIdBytes in interface InstanceOrBuilder
        Returns:
        The bytes for locationId.
      • setLocationId

        public Instance.Builder setLocationId​(String value)
         Optional. The zone where the instance will be provisioned. If not provided,
         the service will choose a zone from the specified region for the instance.
         For standard tier, additional nodes will be added across multiple zones for
         protection against zonal failures. If specified, at least one node will be
         provisioned in this zone.
         
        string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The locationId to set.
        Returns:
        This builder for chaining.
      • clearLocationId

        public Instance.Builder clearLocationId()
         Optional. The zone where the instance will be provisioned. If not provided,
         the service will choose a zone from the specified region for the instance.
         For standard tier, additional nodes will be added across multiple zones for
         protection against zonal failures. If specified, at least one node will be
         provisioned in this zone.
         
        string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setLocationIdBytes

        public Instance.Builder setLocationIdBytes​(com.google.protobuf.ByteString value)
         Optional. The zone where the instance will be provisioned. If not provided,
         the service will choose a zone from the specified region for the instance.
         For standard tier, additional nodes will be added across multiple zones for
         protection against zonal failures. If specified, at least one node will be
         provisioned in this zone.
         
        string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for locationId to set.
        Returns:
        This builder for chaining.
      • getAlternativeLocationId

        public String getAlternativeLocationId()
         Optional. If specified, at least one node will be provisioned in this zone
         in addition to the zone specified in location_id. Only applicable to
         standard tier. If provided, it must be a different zone from the one
         provided in [location_id]. Additional nodes beyond the first 2 will be
         placed in zones selected by the service.
         
        string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAlternativeLocationId in interface InstanceOrBuilder
        Returns:
        The alternativeLocationId.
      • getAlternativeLocationIdBytes

        public com.google.protobuf.ByteString getAlternativeLocationIdBytes()
         Optional. If specified, at least one node will be provisioned in this zone
         in addition to the zone specified in location_id. Only applicable to
         standard tier. If provided, it must be a different zone from the one
         provided in [location_id]. Additional nodes beyond the first 2 will be
         placed in zones selected by the service.
         
        string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAlternativeLocationIdBytes in interface InstanceOrBuilder
        Returns:
        The bytes for alternativeLocationId.
      • setAlternativeLocationId

        public Instance.Builder setAlternativeLocationId​(String value)
         Optional. If specified, at least one node will be provisioned in this zone
         in addition to the zone specified in location_id. Only applicable to
         standard tier. If provided, it must be a different zone from the one
         provided in [location_id]. Additional nodes beyond the first 2 will be
         placed in zones selected by the service.
         
        string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The alternativeLocationId to set.
        Returns:
        This builder for chaining.
      • clearAlternativeLocationId

        public Instance.Builder clearAlternativeLocationId()
         Optional. If specified, at least one node will be provisioned in this zone
         in addition to the zone specified in location_id. Only applicable to
         standard tier. If provided, it must be a different zone from the one
         provided in [location_id]. Additional nodes beyond the first 2 will be
         placed in zones selected by the service.
         
        string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setAlternativeLocationIdBytes

        public Instance.Builder setAlternativeLocationIdBytes​(com.google.protobuf.ByteString value)
         Optional. If specified, at least one node will be provisioned in this zone
         in addition to the zone specified in location_id. Only applicable to
         standard tier. If provided, it must be a different zone from the one
         provided in [location_id]. Additional nodes beyond the first 2 will be
         placed in zones selected by the service.
         
        string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for alternativeLocationId to set.
        Returns:
        This builder for chaining.
      • getRedisVersion

        public String getRedisVersion()
         Optional. The version of Redis software.
         If not provided, latest supported version will be used. Currently, the
         supported values are:
        
          *   `REDIS_3_2` for Redis 3.2 compatibility
          *   `REDIS_4_0` for Redis 4.0 compatibility (default)
          *   `REDIS_5_0` for Redis 5.0 compatibility
          *   `REDIS_6_X` for Redis 6.x compatibility
         
        string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRedisVersion in interface InstanceOrBuilder
        Returns:
        The redisVersion.
      • getRedisVersionBytes

        public com.google.protobuf.ByteString getRedisVersionBytes()
         Optional. The version of Redis software.
         If not provided, latest supported version will be used. Currently, the
         supported values are:
        
          *   `REDIS_3_2` for Redis 3.2 compatibility
          *   `REDIS_4_0` for Redis 4.0 compatibility (default)
          *   `REDIS_5_0` for Redis 5.0 compatibility
          *   `REDIS_6_X` for Redis 6.x compatibility
         
        string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRedisVersionBytes in interface InstanceOrBuilder
        Returns:
        The bytes for redisVersion.
      • setRedisVersion

        public Instance.Builder setRedisVersion​(String value)
         Optional. The version of Redis software.
         If not provided, latest supported version will be used. Currently, the
         supported values are:
        
          *   `REDIS_3_2` for Redis 3.2 compatibility
          *   `REDIS_4_0` for Redis 4.0 compatibility (default)
          *   `REDIS_5_0` for Redis 5.0 compatibility
          *   `REDIS_6_X` for Redis 6.x compatibility
         
        string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The redisVersion to set.
        Returns:
        This builder for chaining.
      • clearRedisVersion

        public Instance.Builder clearRedisVersion()
         Optional. The version of Redis software.
         If not provided, latest supported version will be used. Currently, the
         supported values are:
        
          *   `REDIS_3_2` for Redis 3.2 compatibility
          *   `REDIS_4_0` for Redis 4.0 compatibility (default)
          *   `REDIS_5_0` for Redis 5.0 compatibility
          *   `REDIS_6_X` for Redis 6.x compatibility
         
        string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setRedisVersionBytes

        public Instance.Builder setRedisVersionBytes​(com.google.protobuf.ByteString value)
         Optional. The version of Redis software.
         If not provided, latest supported version will be used. Currently, the
         supported values are:
        
          *   `REDIS_3_2` for Redis 3.2 compatibility
          *   `REDIS_4_0` for Redis 4.0 compatibility (default)
          *   `REDIS_5_0` for Redis 5.0 compatibility
          *   `REDIS_6_X` for Redis 6.x compatibility
         
        string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for redisVersion to set.
        Returns:
        This builder for chaining.
      • getReservedIpRange

        public String getReservedIpRange()
         Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
         that are reserved for this instance. Range must
         be unique and non-overlapping with existing subnets in an authorized
         network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP
         address ranges associated with this private service access connection.
         If not provided, the service will choose an unused /29 block, for
         example, 10.0.0.0/29 or 192.168.0.0/29.  For READ_REPLICAS_ENABLED
         the default block size is /28.
         
        string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getReservedIpRange in interface InstanceOrBuilder
        Returns:
        The reservedIpRange.
      • getReservedIpRangeBytes

        public com.google.protobuf.ByteString getReservedIpRangeBytes()
         Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
         that are reserved for this instance. Range must
         be unique and non-overlapping with existing subnets in an authorized
         network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP
         address ranges associated with this private service access connection.
         If not provided, the service will choose an unused /29 block, for
         example, 10.0.0.0/29 or 192.168.0.0/29.  For READ_REPLICAS_ENABLED
         the default block size is /28.
         
        string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getReservedIpRangeBytes in interface InstanceOrBuilder
        Returns:
        The bytes for reservedIpRange.
      • setReservedIpRange

        public Instance.Builder setReservedIpRange​(String value)
         Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
         that are reserved for this instance. Range must
         be unique and non-overlapping with existing subnets in an authorized
         network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP
         address ranges associated with this private service access connection.
         If not provided, the service will choose an unused /29 block, for
         example, 10.0.0.0/29 or 192.168.0.0/29.  For READ_REPLICAS_ENABLED
         the default block size is /28.
         
        string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The reservedIpRange to set.
        Returns:
        This builder for chaining.
      • clearReservedIpRange

        public Instance.Builder clearReservedIpRange()
         Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
         that are reserved for this instance. Range must
         be unique and non-overlapping with existing subnets in an authorized
         network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP
         address ranges associated with this private service access connection.
         If not provided, the service will choose an unused /29 block, for
         example, 10.0.0.0/29 or 192.168.0.0/29.  For READ_REPLICAS_ENABLED
         the default block size is /28.
         
        string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setReservedIpRangeBytes

        public Instance.Builder setReservedIpRangeBytes​(com.google.protobuf.ByteString value)
         Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
         that are reserved for this instance. Range must
         be unique and non-overlapping with existing subnets in an authorized
         network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP
         address ranges associated with this private service access connection.
         If not provided, the service will choose an unused /29 block, for
         example, 10.0.0.0/29 or 192.168.0.0/29.  For READ_REPLICAS_ENABLED
         the default block size is /28.
         
        string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for reservedIpRange to set.
        Returns:
        This builder for chaining.
      • getSecondaryIpRange

        public String getSecondaryIpRange()
         Optional. Additional IP range for node placement. Required when enabling
         read replicas on an existing instance. For DIRECT_PEERING mode value must
         be a CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode
         value must be the name of an allocated address range associated with the
         private service access connection, or "auto".
         
        string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSecondaryIpRange in interface InstanceOrBuilder
        Returns:
        The secondaryIpRange.
      • getSecondaryIpRangeBytes

        public com.google.protobuf.ByteString getSecondaryIpRangeBytes()
         Optional. Additional IP range for node placement. Required when enabling
         read replicas on an existing instance. For DIRECT_PEERING mode value must
         be a CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode
         value must be the name of an allocated address range associated with the
         private service access connection, or "auto".
         
        string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSecondaryIpRangeBytes in interface InstanceOrBuilder
        Returns:
        The bytes for secondaryIpRange.
      • setSecondaryIpRange

        public Instance.Builder setSecondaryIpRange​(String value)
         Optional. Additional IP range for node placement. Required when enabling
         read replicas on an existing instance. For DIRECT_PEERING mode value must
         be a CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode
         value must be the name of an allocated address range associated with the
         private service access connection, or "auto".
         
        string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The secondaryIpRange to set.
        Returns:
        This builder for chaining.
      • clearSecondaryIpRange

        public Instance.Builder clearSecondaryIpRange()
         Optional. Additional IP range for node placement. Required when enabling
         read replicas on an existing instance. For DIRECT_PEERING mode value must
         be a CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode
         value must be the name of an allocated address range associated with the
         private service access connection, or "auto".
         
        string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setSecondaryIpRangeBytes

        public Instance.Builder setSecondaryIpRangeBytes​(com.google.protobuf.ByteString value)
         Optional. Additional IP range for node placement. Required when enabling
         read replicas on an existing instance. For DIRECT_PEERING mode value must
         be a CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode
         value must be the name of an allocated address range associated with the
         private service access connection, or "auto".
         
        string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for secondaryIpRange to set.
        Returns:
        This builder for chaining.
      • getHost

        public String getHost()
         Output only. Hostname or IP address of the exposed Redis endpoint used by
         clients to connect to the service.
         
        string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getHost in interface InstanceOrBuilder
        Returns:
        The host.
      • getHostBytes

        public com.google.protobuf.ByteString getHostBytes()
         Output only. Hostname or IP address of the exposed Redis endpoint used by
         clients to connect to the service.
         
        string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getHostBytes in interface InstanceOrBuilder
        Returns:
        The bytes for host.
      • setHost

        public Instance.Builder setHost​(String value)
         Output only. Hostname or IP address of the exposed Redis endpoint used by
         clients to connect to the service.
         
        string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The host to set.
        Returns:
        This builder for chaining.
      • clearHost

        public Instance.Builder clearHost()
         Output only. Hostname or IP address of the exposed Redis endpoint used by
         clients to connect to the service.
         
        string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setHostBytes

        public Instance.Builder setHostBytes​(com.google.protobuf.ByteString value)
         Output only. Hostname or IP address of the exposed Redis endpoint used by
         clients to connect to the service.
         
        string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for host to set.
        Returns:
        This builder for chaining.
      • getPort

        public int getPort()
         Output only. The port number of the exposed Redis endpoint.
         
        int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPort in interface InstanceOrBuilder
        Returns:
        The port.
      • setPort

        public Instance.Builder setPort​(int value)
         Output only. The port number of the exposed Redis endpoint.
         
        int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The port to set.
        Returns:
        This builder for chaining.
      • clearPort

        public Instance.Builder clearPort()
         Output only. The port number of the exposed Redis endpoint.
         
        int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getCurrentLocationId

        public String getCurrentLocationId()
         Output only. The current zone where the Redis primary node is located. In
         basic tier, this will always be the same as [location_id]. In
         standard tier, this can be the zone of any node in the instance.
         
        string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCurrentLocationId in interface InstanceOrBuilder
        Returns:
        The currentLocationId.
      • getCurrentLocationIdBytes

        public com.google.protobuf.ByteString getCurrentLocationIdBytes()
         Output only. The current zone where the Redis primary node is located. In
         basic tier, this will always be the same as [location_id]. In
         standard tier, this can be the zone of any node in the instance.
         
        string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCurrentLocationIdBytes in interface InstanceOrBuilder
        Returns:
        The bytes for currentLocationId.
      • setCurrentLocationId

        public Instance.Builder setCurrentLocationId​(String value)
         Output only. The current zone where the Redis primary node is located. In
         basic tier, this will always be the same as [location_id]. In
         standard tier, this can be the zone of any node in the instance.
         
        string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The currentLocationId to set.
        Returns:
        This builder for chaining.
      • clearCurrentLocationId

        public Instance.Builder clearCurrentLocationId()
         Output only. The current zone where the Redis primary node is located. In
         basic tier, this will always be the same as [location_id]. In
         standard tier, this can be the zone of any node in the instance.
         
        string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setCurrentLocationIdBytes

        public Instance.Builder setCurrentLocationIdBytes​(com.google.protobuf.ByteString value)
         Output only. The current zone where the Redis primary node is located. In
         basic tier, this will always be the same as [location_id]. In
         standard tier, this can be the zone of any node in the instance.
         
        string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for currentLocationId to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time the instance was created.
         
        .google.protobuf.Timestamp create_time = 13 [(.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. The time the instance was created.
         
        .google.protobuf.Timestamp create_time = 13 [(.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. The time the instance was created.
         
        .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Instance.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time the instance was created.
         
        .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Instance.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time the instance was created.
         
        .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Instance.Builder clearCreateTime()
         Output only. The time the instance was created.
         
        .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The time the instance was created.
         
        .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time the instance was created.
         
        .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface InstanceOrBuilder
      • getStateValue

        public int getStateValue()
         Output only. The current state of this instance.
         
        .google.cloud.redis.v1.Instance.State state = 14 [(.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 state of this instance.
         
        .google.cloud.redis.v1.Instance.State state = 14 [(.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 state of this instance.
         
        .google.cloud.redis.v1.Instance.State state = 14 [(.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 state of this instance.
         
        .google.cloud.redis.v1.Instance.State state = 14 [(.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 state of this instance.
         
        .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getStatusMessage

        public String getStatusMessage()
         Output only. Additional information about the current status of this
         instance, if available.
         
        string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatusMessage in interface InstanceOrBuilder
        Returns:
        The statusMessage.
      • getStatusMessageBytes

        public com.google.protobuf.ByteString getStatusMessageBytes()
         Output only. Additional information about the current status of this
         instance, if available.
         
        string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatusMessageBytes in interface InstanceOrBuilder
        Returns:
        The bytes for statusMessage.
      • setStatusMessage

        public Instance.Builder setStatusMessage​(String value)
         Output only. Additional information about the current status of this
         instance, if available.
         
        string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The statusMessage to set.
        Returns:
        This builder for chaining.
      • clearStatusMessage

        public Instance.Builder clearStatusMessage()
         Output only. Additional information about the current status of this
         instance, if available.
         
        string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setStatusMessageBytes

        public Instance.Builder setStatusMessageBytes​(com.google.protobuf.ByteString value)
         Output only. Additional information about the current status of this
         instance, if available.
         
        string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for statusMessage to set.
        Returns:
        This builder for chaining.
      • getRedisConfigsCount

        public int getRedisConfigsCount()
        Description copied from interface: InstanceOrBuilder
         Optional. Redis configuration parameters, according to
         http://redis.io/topics/config. Currently, the only supported parameters
         are:
        
          Redis version 3.2 and newer:
        
          *   maxmemory-policy
          *   notify-keyspace-events
        
          Redis version 4.0 and newer:
        
          *   activedefrag
          *   lfu-decay-time
          *   lfu-log-factor
          *   maxmemory-gb
        
          Redis version 5.0 and newer:
        
          *   stream-node-max-bytes
          *   stream-node-max-entries
         
        map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRedisConfigsCount in interface InstanceOrBuilder
      • containsRedisConfigs

        public boolean containsRedisConfigs​(String key)
         Optional. Redis configuration parameters, according to
         http://redis.io/topics/config. Currently, the only supported parameters
         are:
        
          Redis version 3.2 and newer:
        
          *   maxmemory-policy
          *   notify-keyspace-events
        
          Redis version 4.0 and newer:
        
          *   activedefrag
          *   lfu-decay-time
          *   lfu-log-factor
          *   maxmemory-gb
        
          Redis version 5.0 and newer:
        
          *   stream-node-max-bytes
          *   stream-node-max-entries
         
        map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsRedisConfigs in interface InstanceOrBuilder
      • getRedisConfigsMap

        public Map<String,​String> getRedisConfigsMap()
         Optional. Redis configuration parameters, according to
         http://redis.io/topics/config. Currently, the only supported parameters
         are:
        
          Redis version 3.2 and newer:
        
          *   maxmemory-policy
          *   notify-keyspace-events
        
          Redis version 4.0 and newer:
        
          *   activedefrag
          *   lfu-decay-time
          *   lfu-log-factor
          *   maxmemory-gb
        
          Redis version 5.0 and newer:
        
          *   stream-node-max-bytes
          *   stream-node-max-entries
         
        map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRedisConfigsMap in interface InstanceOrBuilder
      • getRedisConfigsOrDefault

        public String getRedisConfigsOrDefault​(String key,
                                               String defaultValue)
         Optional. Redis configuration parameters, according to
         http://redis.io/topics/config. Currently, the only supported parameters
         are:
        
          Redis version 3.2 and newer:
        
          *   maxmemory-policy
          *   notify-keyspace-events
        
          Redis version 4.0 and newer:
        
          *   activedefrag
          *   lfu-decay-time
          *   lfu-log-factor
          *   maxmemory-gb
        
          Redis version 5.0 and newer:
        
          *   stream-node-max-bytes
          *   stream-node-max-entries
         
        map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRedisConfigsOrDefault in interface InstanceOrBuilder
      • getRedisConfigsOrThrow

        public String getRedisConfigsOrThrow​(String key)
         Optional. Redis configuration parameters, according to
         http://redis.io/topics/config. Currently, the only supported parameters
         are:
        
          Redis version 3.2 and newer:
        
          *   maxmemory-policy
          *   notify-keyspace-events
        
          Redis version 4.0 and newer:
        
          *   activedefrag
          *   lfu-decay-time
          *   lfu-log-factor
          *   maxmemory-gb
        
          Redis version 5.0 and newer:
        
          *   stream-node-max-bytes
          *   stream-node-max-entries
         
        map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRedisConfigsOrThrow in interface InstanceOrBuilder
      • removeRedisConfigs

        public Instance.Builder removeRedisConfigs​(String key)
         Optional. Redis configuration parameters, according to
         http://redis.io/topics/config. Currently, the only supported parameters
         are:
        
          Redis version 3.2 and newer:
        
          *   maxmemory-policy
          *   notify-keyspace-events
        
          Redis version 4.0 and newer:
        
          *   activedefrag
          *   lfu-decay-time
          *   lfu-log-factor
          *   maxmemory-gb
        
          Redis version 5.0 and newer:
        
          *   stream-node-max-bytes
          *   stream-node-max-entries
         
        map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
      • getMutableRedisConfigs

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

        public Instance.Builder putRedisConfigs​(String key,
                                                String value)
         Optional. Redis configuration parameters, according to
         http://redis.io/topics/config. Currently, the only supported parameters
         are:
        
          Redis version 3.2 and newer:
        
          *   maxmemory-policy
          *   notify-keyspace-events
        
          Redis version 4.0 and newer:
        
          *   activedefrag
          *   lfu-decay-time
          *   lfu-log-factor
          *   maxmemory-gb
        
          Redis version 5.0 and newer:
        
          *   stream-node-max-bytes
          *   stream-node-max-entries
         
        map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
      • putAllRedisConfigs

        public Instance.Builder putAllRedisConfigs​(Map<String,​String> values)
         Optional. Redis configuration parameters, according to
         http://redis.io/topics/config. Currently, the only supported parameters
         are:
        
          Redis version 3.2 and newer:
        
          *   maxmemory-policy
          *   notify-keyspace-events
        
          Redis version 4.0 and newer:
        
          *   activedefrag
          *   lfu-decay-time
          *   lfu-log-factor
          *   maxmemory-gb
        
          Redis version 5.0 and newer:
        
          *   stream-node-max-bytes
          *   stream-node-max-entries
         
        map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
      • getTierValue

        public int getTierValue()
         Required. The service tier of the instance.
         
        .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTierValue in interface InstanceOrBuilder
        Returns:
        The enum numeric value on the wire for tier.
      • setTierValue

        public Instance.Builder setTierValue​(int value)
         Required. The service tier of the instance.
         
        .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The enum numeric value on the wire for tier to set.
        Returns:
        This builder for chaining.
      • getTier

        public Instance.Tier getTier()
         Required. The service tier of the instance.
         
        .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTier in interface InstanceOrBuilder
        Returns:
        The tier.
      • setTier

        public Instance.Builder setTier​(Instance.Tier value)
         Required. The service tier of the instance.
         
        .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The tier to set.
        Returns:
        This builder for chaining.
      • clearTier

        public Instance.Builder clearTier()
         Required. The service tier of the instance.
         
        .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • getMemorySizeGb

        public int getMemorySizeGb()
         Required. Redis memory size in GiB.
         
        int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMemorySizeGb in interface InstanceOrBuilder
        Returns:
        The memorySizeGb.
      • setMemorySizeGb

        public Instance.Builder setMemorySizeGb​(int value)
         Required. Redis memory size in GiB.
         
        int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The memorySizeGb to set.
        Returns:
        This builder for chaining.
      • clearMemorySizeGb

        public Instance.Builder clearMemorySizeGb()
         Required. Redis memory size in GiB.
         
        int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • getAuthorizedNetwork

        public String getAuthorizedNetwork()
         Optional. The full name of the Google Compute Engine
         [network](https://cloud.google.com/vpc/docs/vpc) to which the
         instance is connected. If left unspecified, the `default` network
         will be used.
         
        string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAuthorizedNetwork in interface InstanceOrBuilder
        Returns:
        The authorizedNetwork.
      • getAuthorizedNetworkBytes

        public com.google.protobuf.ByteString getAuthorizedNetworkBytes()
         Optional. The full name of the Google Compute Engine
         [network](https://cloud.google.com/vpc/docs/vpc) to which the
         instance is connected. If left unspecified, the `default` network
         will be used.
         
        string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAuthorizedNetworkBytes in interface InstanceOrBuilder
        Returns:
        The bytes for authorizedNetwork.
      • setAuthorizedNetwork

        public Instance.Builder setAuthorizedNetwork​(String value)
         Optional. The full name of the Google Compute Engine
         [network](https://cloud.google.com/vpc/docs/vpc) to which the
         instance is connected. If left unspecified, the `default` network
         will be used.
         
        string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The authorizedNetwork to set.
        Returns:
        This builder for chaining.
      • clearAuthorizedNetwork

        public Instance.Builder clearAuthorizedNetwork()
         Optional. The full name of the Google Compute Engine
         [network](https://cloud.google.com/vpc/docs/vpc) to which the
         instance is connected. If left unspecified, the `default` network
         will be used.
         
        string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setAuthorizedNetworkBytes

        public Instance.Builder setAuthorizedNetworkBytes​(com.google.protobuf.ByteString value)
         Optional. The full name of the Google Compute Engine
         [network](https://cloud.google.com/vpc/docs/vpc) to which the
         instance is connected. If left unspecified, the `default` network
         will be used.
         
        string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for authorizedNetwork to set.
        Returns:
        This builder for chaining.
      • getPersistenceIamIdentity

        public String getPersistenceIamIdentity()
         Output only. Cloud IAM identity used by import / export operations to
         transfer data to/from Cloud Storage. Format is
         "serviceAccount:<service_account_email>". The value may change over time
         for a given instance so should be checked before each import/export
         operation.
         
        string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPersistenceIamIdentity in interface InstanceOrBuilder
        Returns:
        The persistenceIamIdentity.
      • getPersistenceIamIdentityBytes

        public com.google.protobuf.ByteString getPersistenceIamIdentityBytes()
         Output only. Cloud IAM identity used by import / export operations to
         transfer data to/from Cloud Storage. Format is
         "serviceAccount:<service_account_email>". The value may change over time
         for a given instance so should be checked before each import/export
         operation.
         
        string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPersistenceIamIdentityBytes in interface InstanceOrBuilder
        Returns:
        The bytes for persistenceIamIdentity.
      • setPersistenceIamIdentity

        public Instance.Builder setPersistenceIamIdentity​(String value)
         Output only. Cloud IAM identity used by import / export operations to
         transfer data to/from Cloud Storage. Format is
         "serviceAccount:<service_account_email>". The value may change over time
         for a given instance so should be checked before each import/export
         operation.
         
        string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The persistenceIamIdentity to set.
        Returns:
        This builder for chaining.
      • clearPersistenceIamIdentity

        public Instance.Builder clearPersistenceIamIdentity()
         Output only. Cloud IAM identity used by import / export operations to
         transfer data to/from Cloud Storage. Format is
         "serviceAccount:<service_account_email>". The value may change over time
         for a given instance so should be checked before each import/export
         operation.
         
        string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setPersistenceIamIdentityBytes

        public Instance.Builder setPersistenceIamIdentityBytes​(com.google.protobuf.ByteString value)
         Output only. Cloud IAM identity used by import / export operations to
         transfer data to/from Cloud Storage. Format is
         "serviceAccount:<service_account_email>". The value may change over time
         for a given instance so should be checked before each import/export
         operation.
         
        string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for persistenceIamIdentity to set.
        Returns:
        This builder for chaining.
      • getConnectModeValue

        public int getConnectModeValue()
         Optional. The network connect mode of the Redis instance.
         If not provided, the connect mode defaults to DIRECT_PEERING.
         
        .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getConnectModeValue in interface InstanceOrBuilder
        Returns:
        The enum numeric value on the wire for connectMode.
      • setConnectModeValue

        public Instance.Builder setConnectModeValue​(int value)
         Optional. The network connect mode of the Redis instance.
         If not provided, the connect mode defaults to DIRECT_PEERING.
         
        .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for connectMode to set.
        Returns:
        This builder for chaining.
      • getConnectMode

        public Instance.ConnectMode getConnectMode()
         Optional. The network connect mode of the Redis instance.
         If not provided, the connect mode defaults to DIRECT_PEERING.
         
        .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getConnectMode in interface InstanceOrBuilder
        Returns:
        The connectMode.
      • setConnectMode

        public Instance.Builder setConnectMode​(Instance.ConnectMode value)
         Optional. The network connect mode of the Redis instance.
         If not provided, the connect mode defaults to DIRECT_PEERING.
         
        .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The connectMode to set.
        Returns:
        This builder for chaining.
      • clearConnectMode

        public Instance.Builder clearConnectMode()
         Optional. The network connect mode of the Redis instance.
         If not provided, the connect mode defaults to DIRECT_PEERING.
         
        .google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getAuthEnabled

        public boolean getAuthEnabled()
         Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If
         set to "true" AUTH is enabled on the instance. Default value is "false"
         meaning AUTH is disabled.
         
        bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAuthEnabled in interface InstanceOrBuilder
        Returns:
        The authEnabled.
      • setAuthEnabled

        public Instance.Builder setAuthEnabled​(boolean value)
         Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If
         set to "true" AUTH is enabled on the instance. Default value is "false"
         meaning AUTH is disabled.
         
        bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The authEnabled to set.
        Returns:
        This builder for chaining.
      • clearAuthEnabled

        public Instance.Builder clearAuthEnabled()
         Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If
         set to "true" AUTH is enabled on the instance. Default value is "false"
         meaning AUTH is disabled.
         
        bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getServerCaCertsList

        public List<TlsCertificate> getServerCaCertsList()
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getServerCaCertsList in interface InstanceOrBuilder
      • getServerCaCertsCount

        public int getServerCaCertsCount()
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getServerCaCertsCount in interface InstanceOrBuilder
      • getServerCaCerts

        public TlsCertificate getServerCaCerts​(int index)
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getServerCaCerts in interface InstanceOrBuilder
      • setServerCaCerts

        public Instance.Builder setServerCaCerts​(int index,
                                                 TlsCertificate value)
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setServerCaCerts

        public Instance.Builder setServerCaCerts​(int index,
                                                 TlsCertificate.Builder builderForValue)
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addServerCaCerts

        public Instance.Builder addServerCaCerts​(TlsCertificate value)
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addServerCaCerts

        public Instance.Builder addServerCaCerts​(int index,
                                                 TlsCertificate value)
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addServerCaCerts

        public Instance.Builder addServerCaCerts​(TlsCertificate.Builder builderForValue)
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addServerCaCerts

        public Instance.Builder addServerCaCerts​(int index,
                                                 TlsCertificate.Builder builderForValue)
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAllServerCaCerts

        public Instance.Builder addAllServerCaCerts​(Iterable<? extends TlsCertificate> values)
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearServerCaCerts

        public Instance.Builder clearServerCaCerts()
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • removeServerCaCerts

        public Instance.Builder removeServerCaCerts​(int index)
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getServerCaCertsBuilder

        public TlsCertificate.Builder getServerCaCertsBuilder​(int index)
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getServerCaCertsOrBuilder

        public TlsCertificateOrBuilder getServerCaCertsOrBuilder​(int index)
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getServerCaCertsOrBuilder in interface InstanceOrBuilder
      • getServerCaCertsOrBuilderList

        public List<? extends TlsCertificateOrBuilder> getServerCaCertsOrBuilderList()
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getServerCaCertsOrBuilderList in interface InstanceOrBuilder
      • addServerCaCertsBuilder

        public TlsCertificate.Builder addServerCaCertsBuilder()
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addServerCaCertsBuilder

        public TlsCertificate.Builder addServerCaCertsBuilder​(int index)
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getServerCaCertsBuilderList

        public List<TlsCertificate.Builder> getServerCaCertsBuilderList()
         Output only. List of server CA certificates for the instance.
         
        repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getTransitEncryptionModeValue

        public int getTransitEncryptionModeValue()
         Optional. The TLS mode of the Redis instance.
         If not provided, TLS is disabled for the instance.
         
        .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTransitEncryptionModeValue in interface InstanceOrBuilder
        Returns:
        The enum numeric value on the wire for transitEncryptionMode.
      • setTransitEncryptionModeValue

        public Instance.Builder setTransitEncryptionModeValue​(int value)
         Optional. The TLS mode of the Redis instance.
         If not provided, TLS is disabled for the instance.
         
        .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for transitEncryptionMode to set.
        Returns:
        This builder for chaining.
      • getTransitEncryptionMode

        public Instance.TransitEncryptionMode getTransitEncryptionMode()
         Optional. The TLS mode of the Redis instance.
         If not provided, TLS is disabled for the instance.
         
        .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTransitEncryptionMode in interface InstanceOrBuilder
        Returns:
        The transitEncryptionMode.
      • setTransitEncryptionMode

        public Instance.Builder setTransitEncryptionMode​(Instance.TransitEncryptionMode value)
         Optional. The TLS mode of the Redis instance.
         If not provided, TLS is disabled for the instance.
         
        .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The transitEncryptionMode to set.
        Returns:
        This builder for chaining.
      • clearTransitEncryptionMode

        public Instance.Builder clearTransitEncryptionMode()
         Optional. The TLS mode of the Redis instance.
         If not provided, TLS is disabled for the instance.
         
        .google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • hasMaintenancePolicy

        public boolean hasMaintenancePolicy()
         Optional. The maintenance policy for the instance. If not provided,
         maintenance events can be performed at any time.
         
        .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasMaintenancePolicy in interface InstanceOrBuilder
        Returns:
        Whether the maintenancePolicy field is set.
      • getMaintenancePolicy

        public MaintenancePolicy getMaintenancePolicy()
         Optional. The maintenance policy for the instance. If not provided,
         maintenance events can be performed at any time.
         
        .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getMaintenancePolicy in interface InstanceOrBuilder
        Returns:
        The maintenancePolicy.
      • setMaintenancePolicy

        public Instance.Builder setMaintenancePolicy​(MaintenancePolicy value)
         Optional. The maintenance policy for the instance. If not provided,
         maintenance events can be performed at any time.
         
        .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
      • setMaintenancePolicy

        public Instance.Builder setMaintenancePolicy​(MaintenancePolicy.Builder builderForValue)
         Optional. The maintenance policy for the instance. If not provided,
         maintenance events can be performed at any time.
         
        .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
      • mergeMaintenancePolicy

        public Instance.Builder mergeMaintenancePolicy​(MaintenancePolicy value)
         Optional. The maintenance policy for the instance. If not provided,
         maintenance events can be performed at any time.
         
        .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
      • clearMaintenancePolicy

        public Instance.Builder clearMaintenancePolicy()
         Optional. The maintenance policy for the instance. If not provided,
         maintenance events can be performed at any time.
         
        .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
      • getMaintenancePolicyBuilder

        public MaintenancePolicy.Builder getMaintenancePolicyBuilder()
         Optional. The maintenance policy for the instance. If not provided,
         maintenance events can be performed at any time.
         
        .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
      • getMaintenancePolicyOrBuilder

        public MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder()
         Optional. The maintenance policy for the instance. If not provided,
         maintenance events can be performed at any time.
         
        .google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getMaintenancePolicyOrBuilder in interface InstanceOrBuilder
      • hasMaintenanceSchedule

        public boolean hasMaintenanceSchedule()
         Output only. Date and time of upcoming maintenance events which have been
         scheduled.
         
        .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasMaintenanceSchedule in interface InstanceOrBuilder
        Returns:
        Whether the maintenanceSchedule field is set.
      • getMaintenanceSchedule

        public MaintenanceSchedule getMaintenanceSchedule()
         Output only. Date and time of upcoming maintenance events which have been
         scheduled.
         
        .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMaintenanceSchedule in interface InstanceOrBuilder
        Returns:
        The maintenanceSchedule.
      • setMaintenanceSchedule

        public Instance.Builder setMaintenanceSchedule​(MaintenanceSchedule value)
         Output only. Date and time of upcoming maintenance events which have been
         scheduled.
         
        .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setMaintenanceSchedule

        public Instance.Builder setMaintenanceSchedule​(MaintenanceSchedule.Builder builderForValue)
         Output only. Date and time of upcoming maintenance events which have been
         scheduled.
         
        .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeMaintenanceSchedule

        public Instance.Builder mergeMaintenanceSchedule​(MaintenanceSchedule value)
         Output only. Date and time of upcoming maintenance events which have been
         scheduled.
         
        .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearMaintenanceSchedule

        public Instance.Builder clearMaintenanceSchedule()
         Output only. Date and time of upcoming maintenance events which have been
         scheduled.
         
        .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getMaintenanceScheduleBuilder

        public MaintenanceSchedule.Builder getMaintenanceScheduleBuilder()
         Output only. Date and time of upcoming maintenance events which have been
         scheduled.
         
        .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getMaintenanceScheduleOrBuilder

        public MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder()
         Output only. Date and time of upcoming maintenance events which have been
         scheduled.
         
        .google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMaintenanceScheduleOrBuilder in interface InstanceOrBuilder
      • getReplicaCount

        public int getReplicaCount()
         Optional. The number of replica nodes. The valid range for the Standard
         Tier with read replicas enabled is [1-5] and defaults to 2. If read
         replicas are not enabled for a Standard Tier instance, the only valid value
         is 1 and the default is 1. The valid value for basic tier is 0 and the
         default is also 0.
         
        int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getReplicaCount in interface InstanceOrBuilder
        Returns:
        The replicaCount.
      • setReplicaCount

        public Instance.Builder setReplicaCount​(int value)
         Optional. The number of replica nodes. The valid range for the Standard
         Tier with read replicas enabled is [1-5] and defaults to 2. If read
         replicas are not enabled for a Standard Tier instance, the only valid value
         is 1 and the default is 1. The valid value for basic tier is 0 and the
         default is also 0.
         
        int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The replicaCount to set.
        Returns:
        This builder for chaining.
      • clearReplicaCount

        public Instance.Builder clearReplicaCount()
         Optional. The number of replica nodes. The valid range for the Standard
         Tier with read replicas enabled is [1-5] and defaults to 2. If read
         replicas are not enabled for a Standard Tier instance, the only valid value
         is 1 and the default is 1. The valid value for basic tier is 0 and the
         default is also 0.
         
        int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getNodesList

        public List<NodeInfo> getNodesList()
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNodesList in interface InstanceOrBuilder
      • getNodesCount

        public int getNodesCount()
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNodesCount in interface InstanceOrBuilder
      • getNodes

        public NodeInfo getNodes​(int index)
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNodes in interface InstanceOrBuilder
      • setNodes

        public Instance.Builder setNodes​(int index,
                                         NodeInfo value)
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setNodes

        public Instance.Builder setNodes​(int index,
                                         NodeInfo.Builder builderForValue)
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addNodes

        public Instance.Builder addNodes​(NodeInfo value)
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addNodes

        public Instance.Builder addNodes​(int index,
                                         NodeInfo value)
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addNodes

        public Instance.Builder addNodes​(NodeInfo.Builder builderForValue)
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addNodes

        public Instance.Builder addNodes​(int index,
                                         NodeInfo.Builder builderForValue)
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAllNodes

        public Instance.Builder addAllNodes​(Iterable<? extends NodeInfo> values)
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearNodes

        public Instance.Builder clearNodes()
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • removeNodes

        public Instance.Builder removeNodes​(int index)
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getNodesBuilder

        public NodeInfo.Builder getNodesBuilder​(int index)
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getNodesOrBuilder

        public NodeInfoOrBuilder getNodesOrBuilder​(int index)
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNodesOrBuilder in interface InstanceOrBuilder
      • addNodesBuilder

        public NodeInfo.Builder addNodesBuilder()
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addNodesBuilder

        public NodeInfo.Builder addNodesBuilder​(int index)
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getNodesBuilderList

        public List<NodeInfo.Builder> getNodesBuilderList()
         Output only. Info per node.
         
        repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getReadEndpoint

        public String getReadEndpoint()
         Output only. Hostname or IP address of the exposed readonly Redis
         endpoint. Standard tier only. Targets all healthy replica nodes in
         instance. Replication is asynchronous and replica nodes will exhibit some
         lag behind the primary. Write requests must target 'host'.
         
        string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getReadEndpoint in interface InstanceOrBuilder
        Returns:
        The readEndpoint.
      • getReadEndpointBytes

        public com.google.protobuf.ByteString getReadEndpointBytes()
         Output only. Hostname or IP address of the exposed readonly Redis
         endpoint. Standard tier only. Targets all healthy replica nodes in
         instance. Replication is asynchronous and replica nodes will exhibit some
         lag behind the primary. Write requests must target 'host'.
         
        string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getReadEndpointBytes in interface InstanceOrBuilder
        Returns:
        The bytes for readEndpoint.
      • setReadEndpoint

        public Instance.Builder setReadEndpoint​(String value)
         Output only. Hostname or IP address of the exposed readonly Redis
         endpoint. Standard tier only. Targets all healthy replica nodes in
         instance. Replication is asynchronous and replica nodes will exhibit some
         lag behind the primary. Write requests must target 'host'.
         
        string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The readEndpoint to set.
        Returns:
        This builder for chaining.
      • clearReadEndpoint

        public Instance.Builder clearReadEndpoint()
         Output only. Hostname or IP address of the exposed readonly Redis
         endpoint. Standard tier only. Targets all healthy replica nodes in
         instance. Replication is asynchronous and replica nodes will exhibit some
         lag behind the primary. Write requests must target 'host'.
         
        string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setReadEndpointBytes

        public Instance.Builder setReadEndpointBytes​(com.google.protobuf.ByteString value)
         Output only. Hostname or IP address of the exposed readonly Redis
         endpoint. Standard tier only. Targets all healthy replica nodes in
         instance. Replication is asynchronous and replica nodes will exhibit some
         lag behind the primary. Write requests must target 'host'.
         
        string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for readEndpoint to set.
        Returns:
        This builder for chaining.
      • getReadEndpointPort

        public int getReadEndpointPort()
         Output only. The port number of the exposed readonly redis
         endpoint. Standard tier only. Write requests should target 'port'.
         
        int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getReadEndpointPort in interface InstanceOrBuilder
        Returns:
        The readEndpointPort.
      • setReadEndpointPort

        public Instance.Builder setReadEndpointPort​(int value)
         Output only. The port number of the exposed readonly redis
         endpoint. Standard tier only. Write requests should target 'port'.
         
        int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The readEndpointPort to set.
        Returns:
        This builder for chaining.
      • clearReadEndpointPort

        public Instance.Builder clearReadEndpointPort()
         Output only. The port number of the exposed readonly redis
         endpoint. Standard tier only. Write requests should target 'port'.
         
        int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getReadReplicasModeValue

        public int getReadReplicasModeValue()
         Optional. Read replicas mode for the instance. Defaults to
         READ_REPLICAS_DISABLED.
         
        .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getReadReplicasModeValue in interface InstanceOrBuilder
        Returns:
        The enum numeric value on the wire for readReplicasMode.
      • setReadReplicasModeValue

        public Instance.Builder setReadReplicasModeValue​(int value)
         Optional. Read replicas mode for the instance. Defaults to
         READ_REPLICAS_DISABLED.
         
        .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for readReplicasMode to set.
        Returns:
        This builder for chaining.
      • getReadReplicasMode

        public Instance.ReadReplicasMode getReadReplicasMode()
         Optional. Read replicas mode for the instance. Defaults to
         READ_REPLICAS_DISABLED.
         
        .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getReadReplicasMode in interface InstanceOrBuilder
        Returns:
        The readReplicasMode.
      • setReadReplicasMode

        public Instance.Builder setReadReplicasMode​(Instance.ReadReplicasMode value)
         Optional. Read replicas mode for the instance. Defaults to
         READ_REPLICAS_DISABLED.
         
        .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The readReplicasMode to set.
        Returns:
        This builder for chaining.
      • clearReadReplicasMode

        public Instance.Builder clearReadReplicasMode()
         Optional. Read replicas mode for the instance. Defaults to
         READ_REPLICAS_DISABLED.
         
        .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getCustomerManagedKey

        public String getCustomerManagedKey()
         Optional. The KMS key reference that the customer provides when trying to
         create the instance.
         
        string customer_managed_key = 36 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCustomerManagedKey in interface InstanceOrBuilder
        Returns:
        The customerManagedKey.
      • getCustomerManagedKeyBytes

        public com.google.protobuf.ByteString getCustomerManagedKeyBytes()
         Optional. The KMS key reference that the customer provides when trying to
         create the instance.
         
        string customer_managed_key = 36 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCustomerManagedKeyBytes in interface InstanceOrBuilder
        Returns:
        The bytes for customerManagedKey.
      • setCustomerManagedKey

        public Instance.Builder setCustomerManagedKey​(String value)
         Optional. The KMS key reference that the customer provides when trying to
         create the instance.
         
        string customer_managed_key = 36 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The customerManagedKey to set.
        Returns:
        This builder for chaining.
      • clearCustomerManagedKey

        public Instance.Builder clearCustomerManagedKey()
         Optional. The KMS key reference that the customer provides when trying to
         create the instance.
         
        string customer_managed_key = 36 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setCustomerManagedKeyBytes

        public Instance.Builder setCustomerManagedKeyBytes​(com.google.protobuf.ByteString value)
         Optional. The KMS key reference that the customer provides when trying to
         create the instance.
         
        string customer_managed_key = 36 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for customerManagedKey to set.
        Returns:
        This builder for chaining.
      • hasPersistenceConfig

        public boolean hasPersistenceConfig()
         Optional. Persistence configuration parameters
         
        .google.cloud.redis.v1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasPersistenceConfig in interface InstanceOrBuilder
        Returns:
        Whether the persistenceConfig field is set.
      • getPersistenceConfig

        public PersistenceConfig getPersistenceConfig()
         Optional. Persistence configuration parameters
         
        .google.cloud.redis.v1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPersistenceConfig in interface InstanceOrBuilder
        Returns:
        The persistenceConfig.
      • setPersistenceConfig

        public Instance.Builder setPersistenceConfig​(PersistenceConfig value)
         Optional. Persistence configuration parameters
         
        .google.cloud.redis.v1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
      • setPersistenceConfig

        public Instance.Builder setPersistenceConfig​(PersistenceConfig.Builder builderForValue)
         Optional. Persistence configuration parameters
         
        .google.cloud.redis.v1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
      • mergePersistenceConfig

        public Instance.Builder mergePersistenceConfig​(PersistenceConfig value)
         Optional. Persistence configuration parameters
         
        .google.cloud.redis.v1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
      • clearPersistenceConfig

        public Instance.Builder clearPersistenceConfig()
         Optional. Persistence configuration parameters
         
        .google.cloud.redis.v1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
      • getPersistenceConfigBuilder

        public PersistenceConfig.Builder getPersistenceConfigBuilder()
         Optional. Persistence configuration parameters
         
        .google.cloud.redis.v1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
      • getSuspensionReasonsList

        public List<Instance.SuspensionReason> getSuspensionReasonsList()
         Optional. reasons that causes instance in "SUSPENDED" state.
         
        repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSuspensionReasonsList in interface InstanceOrBuilder
        Returns:
        A list containing the suspensionReasons.
      • getSuspensionReasonsCount

        public int getSuspensionReasonsCount()
         Optional. reasons that causes instance in "SUSPENDED" state.
         
        repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSuspensionReasonsCount in interface InstanceOrBuilder
        Returns:
        The count of suspensionReasons.
      • getSuspensionReasons

        public Instance.SuspensionReason getSuspensionReasons​(int index)
         Optional. reasons that causes instance in "SUSPENDED" state.
         
        repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSuspensionReasons in interface InstanceOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The suspensionReasons at the given index.
      • setSuspensionReasons

        public Instance.Builder setSuspensionReasons​(int index,
                                                     Instance.SuspensionReason value)
         Optional. reasons that causes instance in "SUSPENDED" state.
         
        repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The suspensionReasons to set.
        Returns:
        This builder for chaining.
      • addSuspensionReasons

        public Instance.Builder addSuspensionReasons​(Instance.SuspensionReason value)
         Optional. reasons that causes instance in "SUSPENDED" state.
         
        repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The suspensionReasons to add.
        Returns:
        This builder for chaining.
      • addAllSuspensionReasons

        public Instance.Builder addAllSuspensionReasons​(Iterable<? extends Instance.SuspensionReason> values)
         Optional. reasons that causes instance in "SUSPENDED" state.
         
        repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The suspensionReasons to add.
        Returns:
        This builder for chaining.
      • clearSuspensionReasons

        public Instance.Builder clearSuspensionReasons()
         Optional. reasons that causes instance in "SUSPENDED" state.
         
        repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getSuspensionReasonsValueList

        public List<Integer> getSuspensionReasonsValueList()
         Optional. reasons that causes instance in "SUSPENDED" state.
         
        repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSuspensionReasonsValueList in interface InstanceOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for suspensionReasons.
      • getSuspensionReasonsValue

        public int getSuspensionReasonsValue​(int index)
         Optional. reasons that causes instance in "SUSPENDED" state.
         
        repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSuspensionReasonsValue in interface InstanceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of suspensionReasons at the given index.
      • setSuspensionReasonsValue

        public Instance.Builder setSuspensionReasonsValue​(int index,
                                                          int value)
         Optional. reasons that causes instance in "SUSPENDED" state.
         
        repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for suspensionReasons to set.
        Returns:
        This builder for chaining.
      • addSuspensionReasonsValue

        public Instance.Builder addSuspensionReasonsValue​(int value)
         Optional. reasons that causes instance in "SUSPENDED" state.
         
        repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for suspensionReasons to add.
        Returns:
        This builder for chaining.
      • addAllSuspensionReasonsValue

        public Instance.Builder addAllSuspensionReasonsValue​(Iterable<Integer> values)
         Optional. reasons that causes instance in "SUSPENDED" state.
         
        repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The enum numeric values on the wire for suspensionReasons to add.
        Returns:
        This builder for chaining.
      • getMaintenanceVersion

        public String getMaintenanceVersion()
         Optional. The self service update maintenance version.
         The version is date based such as "20210712_00_00".
         
        string maintenance_version = 39 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getMaintenanceVersion in interface InstanceOrBuilder
        Returns:
        The maintenanceVersion.
      • getMaintenanceVersionBytes

        public com.google.protobuf.ByteString getMaintenanceVersionBytes()
         Optional. The self service update maintenance version.
         The version is date based such as "20210712_00_00".
         
        string maintenance_version = 39 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getMaintenanceVersionBytes in interface InstanceOrBuilder
        Returns:
        The bytes for maintenanceVersion.
      • setMaintenanceVersion

        public Instance.Builder setMaintenanceVersion​(String value)
         Optional. The self service update maintenance version.
         The version is date based such as "20210712_00_00".
         
        string maintenance_version = 39 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The maintenanceVersion to set.
        Returns:
        This builder for chaining.
      • clearMaintenanceVersion

        public Instance.Builder clearMaintenanceVersion()
         Optional. The self service update maintenance version.
         The version is date based such as "20210712_00_00".
         
        string maintenance_version = 39 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setMaintenanceVersionBytes

        public Instance.Builder setMaintenanceVersionBytes​(com.google.protobuf.ByteString value)
         Optional. The self service update maintenance version.
         The version is date based such as "20210712_00_00".
         
        string maintenance_version = 39 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for maintenanceVersion to set.
        Returns:
        This builder for chaining.
      • getAvailableMaintenanceVersionsList

        public com.google.protobuf.ProtocolStringList getAvailableMaintenanceVersionsList()
         Optional. The available maintenance versions that an instance could update
         to.
         
        repeated string available_maintenance_versions = 40 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAvailableMaintenanceVersionsList in interface InstanceOrBuilder
        Returns:
        A list containing the availableMaintenanceVersions.
      • getAvailableMaintenanceVersionsCount

        public int getAvailableMaintenanceVersionsCount()
         Optional. The available maintenance versions that an instance could update
         to.
         
        repeated string available_maintenance_versions = 40 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAvailableMaintenanceVersionsCount in interface InstanceOrBuilder
        Returns:
        The count of availableMaintenanceVersions.
      • getAvailableMaintenanceVersions

        public String getAvailableMaintenanceVersions​(int index)
         Optional. The available maintenance versions that an instance could update
         to.
         
        repeated string available_maintenance_versions = 40 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAvailableMaintenanceVersions in interface InstanceOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The availableMaintenanceVersions at the given index.
      • getAvailableMaintenanceVersionsBytes

        public com.google.protobuf.ByteString getAvailableMaintenanceVersionsBytes​(int index)
         Optional. The available maintenance versions that an instance could update
         to.
         
        repeated string available_maintenance_versions = 40 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAvailableMaintenanceVersionsBytes in interface InstanceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the availableMaintenanceVersions at the given index.
      • setAvailableMaintenanceVersions

        public Instance.Builder setAvailableMaintenanceVersions​(int index,
                                                                String value)
         Optional. The available maintenance versions that an instance could update
         to.
         
        repeated string available_maintenance_versions = 40 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The availableMaintenanceVersions to set.
        Returns:
        This builder for chaining.
      • addAvailableMaintenanceVersions

        public Instance.Builder addAvailableMaintenanceVersions​(String value)
         Optional. The available maintenance versions that an instance could update
         to.
         
        repeated string available_maintenance_versions = 40 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The availableMaintenanceVersions to add.
        Returns:
        This builder for chaining.
      • addAllAvailableMaintenanceVersions

        public Instance.Builder addAllAvailableMaintenanceVersions​(Iterable<String> values)
         Optional. The available maintenance versions that an instance could update
         to.
         
        repeated string available_maintenance_versions = 40 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The availableMaintenanceVersions to add.
        Returns:
        This builder for chaining.
      • clearAvailableMaintenanceVersions

        public Instance.Builder clearAvailableMaintenanceVersions()
         Optional. The available maintenance versions that an instance could update
         to.
         
        repeated string available_maintenance_versions = 40 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • addAvailableMaintenanceVersionsBytes

        public Instance.Builder addAvailableMaintenanceVersionsBytes​(com.google.protobuf.ByteString value)
         Optional. The available maintenance versions that an instance could update
         to.
         
        repeated string available_maintenance_versions = 40 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes of the availableMaintenanceVersions to add.
        Returns:
        This builder for chaining.
      • 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>