Class BackupClusterRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BackupClusterRequest.Builder>
com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest.Builder
- All Implemented Interfaces:
BackupClusterRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BackupClusterRequest
public static final class BackupClusterRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BackupClusterRequest.Builder>
implements BackupClusterRequestOrBuilder
Request for [BackupCluster].Protobuf type
google.cloud.redis.cluster.v1beta1.BackupClusterRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Required.clearTtl()Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.DurationgetTtl()Optional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.booleanOptional.booleanhasTtl()Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(BackupClusterRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTtl(com.google.protobuf.Duration value) Optional.setBackupId(String value) Optional.setBackupIdBytes(com.google.protobuf.ByteString value) Optional.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setTtl(com.google.protobuf.Duration value) Optional.setTtl(com.google.protobuf.Duration.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BackupClusterRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BackupClusterRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BackupClusterRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BackupClusterRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BackupClusterRequest.Builder>
-
mergeFrom
public BackupClusterRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BackupClusterRequest.Builder>- Throws:
IOException
-
getName
Required. Redis cluster resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a GCP region.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceBackupClusterRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. Redis cluster resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a GCP region.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceBackupClusterRequestOrBuilder- Returns:
- The bytes for name.
-
setName
Required. Redis cluster resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a GCP region.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. Redis cluster resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a GCP region.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
Required. Redis cluster resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a GCP region.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasTtl
public boolean hasTtl()Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.
.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTtlin interfaceBackupClusterRequestOrBuilder- Returns:
- Whether the ttl field is set.
-
getTtl
public com.google.protobuf.Duration getTtl()Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.
.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTtlin interfaceBackupClusterRequestOrBuilder- Returns:
- The ttl.
-
setTtl
Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.
.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setTtl
Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.
.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; -
mergeTtl
Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.
.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearTtl
Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.
.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getTtlBuilder
public com.google.protobuf.Duration.Builder getTtlBuilder()Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.
.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getTtlOrBuilder
public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.
.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTtlOrBuilderin interfaceBackupClusterRequestOrBuilder
-
hasBackupId
public boolean hasBackupId()Optional. The id of the backup to be created. If not specified, the default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasBackupIdin interfaceBackupClusterRequestOrBuilder- Returns:
- Whether the backupId field is set.
-
getBackupId
Optional. The id of the backup to be created. If not specified, the default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBackupIdin interfaceBackupClusterRequestOrBuilder- Returns:
- The backupId.
-
getBackupIdBytes
public com.google.protobuf.ByteString getBackupIdBytes()Optional. The id of the backup to be created. If not specified, the default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBackupIdBytesin interfaceBackupClusterRequestOrBuilder- Returns:
- The bytes for backupId.
-
setBackupId
Optional. The id of the backup to be created. If not specified, the default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The backupId to set.- Returns:
- This builder for chaining.
-
clearBackupId
Optional. The id of the backup to be created. If not specified, the default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setBackupIdBytes
Optional. The id of the backup to be created. If not specified, the default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for backupId to set.- Returns:
- This builder for chaining.
-