Class Backup.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
-
- com.google.cloud.filestore.v1beta1.Backup.Builder
-
- All Implemented Interfaces:
BackupOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Backup
public static final class Backup.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder> implements BackupOrBuilder
A Filestore backup.
Protobuf typegoogle.cloud.filestore.v1beta1.Backup
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Backup.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Backup
build()
Backup
buildPartial()
Backup.Builder
clear()
Backup.Builder
clearCapacityGb()
Output only.Backup.Builder
clearCreateTime()
Output only.Backup.Builder
clearDescription()
A description of the backup with 2048 characters or less.Backup.Builder
clearDownloadBytes()
Output only.Backup.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Backup.Builder
clearKmsKeyName()
Immutable.Backup.Builder
clearLabels()
Backup.Builder
clearName()
Output only.Backup.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Backup.Builder
clearSatisfiesPzs()
Output only.Backup.Builder
clearSourceFileShare()
Name of the file share in the source Filestore instance that the backup is created from.Backup.Builder
clearSourceInstance()
The resource name of the source Filestore instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`, used to create this backup.Backup.Builder
clearSourceInstanceTier()
Output only.Backup.Builder
clearState()
Output only.Backup.Builder
clearStorageBytes()
Output only.Backup.Builder
clone()
boolean
containsLabels(String key)
Resource labels to represent user provided metadata.long
getCapacityGb()
Output only.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.Backup
getDefaultInstanceForType()
String
getDescription()
A description of the backup with 2048 characters or less.com.google.protobuf.ByteString
getDescriptionBytes()
A description of the backup with 2048 characters or less.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getDownloadBytes()
Output only.String
getKmsKeyName()
Immutable.com.google.protobuf.ByteString
getKmsKeyNameBytes()
Immutable.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Resource labels to represent user provided metadata.Map<String,String>
getLabelsMap()
Resource labels to represent user provided metadata.String
getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadata.String
getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.Map<String,String>
getMutableLabels()
Deprecated.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.BoolValue
getSatisfiesPzs()
Output only.com.google.protobuf.BoolValue.Builder
getSatisfiesPzsBuilder()
Output only.com.google.protobuf.BoolValueOrBuilder
getSatisfiesPzsOrBuilder()
Output only.String
getSourceFileShare()
Name of the file share in the source Filestore instance that the backup is created from.com.google.protobuf.ByteString
getSourceFileShareBytes()
Name of the file share in the source Filestore instance that the backup is created from.String
getSourceInstance()
The resource name of the source Filestore instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`, used to create this backup.com.google.protobuf.ByteString
getSourceInstanceBytes()
The resource name of the source Filestore instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`, used to create this backup.Instance.Tier
getSourceInstanceTier()
Output only.int
getSourceInstanceTierValue()
Output only.Backup.State
getState()
Output only.int
getStateValue()
Output only.long
getStorageBytes()
Output only.boolean
hasCreateTime()
Output only.boolean
hasSatisfiesPzs()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
Backup.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.Backup.Builder
mergeFrom(Backup other)
Backup.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Backup.Builder
mergeFrom(com.google.protobuf.Message other)
Backup.Builder
mergeSatisfiesPzs(com.google.protobuf.BoolValue value)
Output only.Backup.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Backup.Builder
putAllLabels(Map<String,String> values)
Resource labels to represent user provided metadata.Backup.Builder
putLabels(String key, String value)
Resource labels to represent user provided metadata.Backup.Builder
removeLabels(String key)
Resource labels to represent user provided metadata.Backup.Builder
setCapacityGb(long value)
Output only.Backup.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.Backup.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Backup.Builder
setDescription(String value)
A description of the backup with 2048 characters or less.Backup.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
A description of the backup with 2048 characters or less.Backup.Builder
setDownloadBytes(long value)
Output only.Backup.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Backup.Builder
setKmsKeyName(String value)
Immutable.Backup.Builder
setKmsKeyNameBytes(com.google.protobuf.ByteString value)
Immutable.Backup.Builder
setName(String value)
Output only.Backup.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.Backup.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Backup.Builder
setSatisfiesPzs(com.google.protobuf.BoolValue value)
Output only.Backup.Builder
setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForValue)
Output only.Backup.Builder
setSourceFileShare(String value)
Name of the file share in the source Filestore instance that the backup is created from.Backup.Builder
setSourceFileShareBytes(com.google.protobuf.ByteString value)
Name of the file share in the source Filestore instance that the backup is created from.Backup.Builder
setSourceInstance(String value)
The resource name of the source Filestore instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`, used to create this backup.Backup.Builder
setSourceInstanceBytes(com.google.protobuf.ByteString value)
The resource name of the source Filestore instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`, used to create this backup.Backup.Builder
setSourceInstanceTier(Instance.Tier value)
Output only.Backup.Builder
setSourceInstanceTierValue(int value)
Output only.Backup.Builder
setState(Backup.State value)
Output only.Backup.Builder
setStateValue(int value)
Output only.Backup.Builder
setStorageBytes(long value)
Output only.Backup.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
-
clear
public Backup.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
-
getDefaultInstanceForType
public Backup getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Backup build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Backup buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Backup.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
-
setField
public Backup.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
-
clearField
public Backup.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
-
clearOneof
public Backup.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
-
setRepeatedField
public Backup.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
-
addRepeatedField
public Backup.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
-
mergeFrom
public Backup.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Backup.Builder>
-
mergeFrom
public Backup.Builder mergeFrom(Backup other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
-
mergeFrom
public Backup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Backup.Builder>
- Throws:
IOException
-
getName
public String getName()
Output only. The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in interfaceBackupOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNameBytes
in interfaceBackupOrBuilder
- Returns:
- The bytes for name.
-
setName
public Backup.Builder setName(String value)
Output only. The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Backup.Builder clearName()
Output only. The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setNameBytes
public Backup.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 2;
- Specified by:
getDescription
in interfaceBackupOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 2;
- Specified by:
getDescriptionBytes
in interfaceBackupOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public Backup.Builder setDescription(String value)
A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 2;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Backup.Builder clearDescription()
A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 2;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Backup.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 2;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()
Output only. The backup state.
.google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateValue
in interfaceBackupOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public Backup.Builder setStateValue(int value)
Output only. The backup state.
.google.cloud.filestore.v1beta1.Backup.State state = 3 [(.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 Backup.State getState()
Output only. The backup state.
.google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getState
in interfaceBackupOrBuilder
- Returns:
- The state.
-
setState
public Backup.Builder setState(Backup.State value)
Output only. The backup state.
.google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
clearState
public Backup.Builder clearState()
Output only. The backup state.
.google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceBackupOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceBackupOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public Backup.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public Backup.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public Backup.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public Backup.Builder clearCreateTime()
Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceBackupOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:BackupOrBuilder
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
- Specified by:
getLabelsCount
in interfaceBackupOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
- Specified by:
containsLabels
in interfaceBackupOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceBackupOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
- Specified by:
getLabelsMap
in interfaceBackupOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
- Specified by:
getLabelsOrDefault
in interfaceBackupOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
- Specified by:
getLabelsOrThrow
in interfaceBackupOrBuilder
-
clearLabels
public Backup.Builder clearLabels()
-
removeLabels
public Backup.Builder removeLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Backup.Builder putLabels(String key, String value)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
-
putAllLabels
public Backup.Builder putAllLabels(Map<String,String> values)
Resource labels to represent user provided metadata.
map<string, string> labels = 5;
-
getCapacityGb
public long getCapacityGb()
Output only. Capacity of the source file share when the backup was created.
int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCapacityGb
in interfaceBackupOrBuilder
- Returns:
- The capacityGb.
-
setCapacityGb
public Backup.Builder setCapacityGb(long value)
Output only. Capacity of the source file share when the backup was created.
int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The capacityGb to set.- Returns:
- This builder for chaining.
-
clearCapacityGb
public Backup.Builder clearCapacityGb()
Output only. Capacity of the source file share when the backup was created.
int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getStorageBytes
public long getStorageBytes()
Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.
int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStorageBytes
in interfaceBackupOrBuilder
- Returns:
- The storageBytes.
-
setStorageBytes
public Backup.Builder setStorageBytes(long value)
Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.
int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The storageBytes to set.- Returns:
- This builder for chaining.
-
clearStorageBytes
public Backup.Builder clearStorageBytes()
Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.
int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getSourceInstance
public String getSourceInstance()
The resource name of the source Filestore instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`, used to create this backup.
string source_instance = 8 [(.google.api.resource_reference) = { ... }
- Specified by:
getSourceInstance
in interfaceBackupOrBuilder
- Returns:
- The sourceInstance.
-
getSourceInstanceBytes
public com.google.protobuf.ByteString getSourceInstanceBytes()
The resource name of the source Filestore instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`, used to create this backup.
string source_instance = 8 [(.google.api.resource_reference) = { ... }
- Specified by:
getSourceInstanceBytes
in interfaceBackupOrBuilder
- Returns:
- The bytes for sourceInstance.
-
setSourceInstance
public Backup.Builder setSourceInstance(String value)
The resource name of the source Filestore instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`, used to create this backup.
string source_instance = 8 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The sourceInstance to set.- Returns:
- This builder for chaining.
-
clearSourceInstance
public Backup.Builder clearSourceInstance()
The resource name of the source Filestore instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`, used to create this backup.
string source_instance = 8 [(.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setSourceInstanceBytes
public Backup.Builder setSourceInstanceBytes(com.google.protobuf.ByteString value)
The resource name of the source Filestore instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`, used to create this backup.
string source_instance = 8 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for sourceInstance to set.- Returns:
- This builder for chaining.
-
getSourceFileShare
public String getSourceFileShare()
Name of the file share in the source Filestore instance that the backup is created from.
string source_file_share = 9;
- Specified by:
getSourceFileShare
in interfaceBackupOrBuilder
- Returns:
- The sourceFileShare.
-
getSourceFileShareBytes
public com.google.protobuf.ByteString getSourceFileShareBytes()
Name of the file share in the source Filestore instance that the backup is created from.
string source_file_share = 9;
- Specified by:
getSourceFileShareBytes
in interfaceBackupOrBuilder
- Returns:
- The bytes for sourceFileShare.
-
setSourceFileShare
public Backup.Builder setSourceFileShare(String value)
Name of the file share in the source Filestore instance that the backup is created from.
string source_file_share = 9;
- Parameters:
value
- The sourceFileShare to set.- Returns:
- This builder for chaining.
-
clearSourceFileShare
public Backup.Builder clearSourceFileShare()
Name of the file share in the source Filestore instance that the backup is created from.
string source_file_share = 9;
- Returns:
- This builder for chaining.
-
setSourceFileShareBytes
public Backup.Builder setSourceFileShareBytes(com.google.protobuf.ByteString value)
Name of the file share in the source Filestore instance that the backup is created from.
string source_file_share = 9;
- Parameters:
value
- The bytes for sourceFileShare to set.- Returns:
- This builder for chaining.
-
getSourceInstanceTierValue
public int getSourceInstanceTierValue()
Output only. The service tier of the source Filestore instance that this backup is created from.
.google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSourceInstanceTierValue
in interfaceBackupOrBuilder
- Returns:
- The enum numeric value on the wire for sourceInstanceTier.
-
setSourceInstanceTierValue
public Backup.Builder setSourceInstanceTierValue(int value)
Output only. The service tier of the source Filestore instance that this backup is created from.
.google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The enum numeric value on the wire for sourceInstanceTier to set.- Returns:
- This builder for chaining.
-
getSourceInstanceTier
public Instance.Tier getSourceInstanceTier()
Output only. The service tier of the source Filestore instance that this backup is created from.
.google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSourceInstanceTier
in interfaceBackupOrBuilder
- Returns:
- The sourceInstanceTier.
-
setSourceInstanceTier
public Backup.Builder setSourceInstanceTier(Instance.Tier value)
Output only. The service tier of the source Filestore instance that this backup is created from.
.google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The sourceInstanceTier to set.- Returns:
- This builder for chaining.
-
clearSourceInstanceTier
public Backup.Builder clearSourceInstanceTier()
Output only. The service tier of the source Filestore instance that this backup is created from.
.google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getDownloadBytes
public long getDownloadBytes()
Output only. Amount of bytes that will be downloaded if the backup is restored
int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDownloadBytes
in interfaceBackupOrBuilder
- Returns:
- The downloadBytes.
-
setDownloadBytes
public Backup.Builder setDownloadBytes(long value)
Output only. Amount of bytes that will be downloaded if the backup is restored
int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The downloadBytes to set.- Returns:
- This builder for chaining.
-
clearDownloadBytes
public Backup.Builder clearDownloadBytes()
Output only. Amount of bytes that will be downloaded if the backup is restored
int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
hasSatisfiesPzs
public boolean hasSatisfiesPzs()
Output only. Reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasSatisfiesPzs
in interfaceBackupOrBuilder
- Returns:
- Whether the satisfiesPzs field is set.
-
getSatisfiesPzs
public com.google.protobuf.BoolValue getSatisfiesPzs()
Output only. Reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSatisfiesPzs
in interfaceBackupOrBuilder
- Returns:
- The satisfiesPzs.
-
setSatisfiesPzs
public Backup.Builder setSatisfiesPzs(com.google.protobuf.BoolValue value)
Output only. Reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setSatisfiesPzs
public Backup.Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForValue)
Output only. Reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeSatisfiesPzs
public Backup.Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value)
Output only. Reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearSatisfiesPzs
public Backup.Builder clearSatisfiesPzs()
Output only. Reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getSatisfiesPzsBuilder
public com.google.protobuf.BoolValue.Builder getSatisfiesPzsBuilder()
Output only. Reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getSatisfiesPzsOrBuilder
public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder()
Output only. Reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSatisfiesPzsOrBuilder
in interfaceBackupOrBuilder
-
getKmsKeyName
public String getKmsKeyName()
Immutable. KMS key name used for data encryption.
string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getKmsKeyName
in interfaceBackupOrBuilder
- Returns:
- The kmsKeyName.
-
getKmsKeyNameBytes
public com.google.protobuf.ByteString getKmsKeyNameBytes()
Immutable. KMS key name used for data encryption.
string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getKmsKeyNameBytes
in interfaceBackupOrBuilder
- Returns:
- The bytes for kmsKeyName.
-
setKmsKeyName
public Backup.Builder setKmsKeyName(String value)
Immutable. KMS key name used for data encryption.
string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE];
- Parameters:
value
- The kmsKeyName to set.- Returns:
- This builder for chaining.
-
clearKmsKeyName
public Backup.Builder clearKmsKeyName()
Immutable. KMS key name used for data encryption.
string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE];
- Returns:
- This builder for chaining.
-
setKmsKeyNameBytes
public Backup.Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value)
Immutable. KMS key name used for data encryption.
string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE];
- Parameters:
value
- The bytes for kmsKeyName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Backup.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
-
mergeUnknownFields
public final Backup.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
-
-