Class Backup.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
com.google.cloud.filestore.v1.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.GeneratedMessage.Builder<Backup.Builder> implements BackupOrBuilder
 A Filestore backup.
 
Protobuf type google.cloud.filestore.v1.Backup
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
    • internalGetFieldAccessorTable

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

      public Backup.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.GeneratedMessage.Builder<Backup.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.GeneratedMessage.Builder<Backup.Builder>
    • getDefaultInstanceForType

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

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

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

      public Backup.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<Backup.Builder>
    • mergeFrom

      public Backup.Builder mergeFrom(Backup other)
    • isInitialized

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

      public Backup.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<Backup.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. The resource name of the backup, in the format
       `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface BackupOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The resource name of the backup, in the format
       `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface BackupOrBuilder
      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_number}/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_number}/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_number}/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 interface BackupOrBuilder
      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 interface BackupOrBuilder
      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.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface BackupOrBuilder
      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.v1.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.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface BackupOrBuilder
      Returns:
      The state.
    • setState

      public Backup.Builder setState(Backup.State value)
       Output only. The backup state.
       
      .google.cloud.filestore.v1.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.v1.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 interface BackupOrBuilder
      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 interface BackupOrBuilder
      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 interface BackupOrBuilder
    • 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 interface BackupOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Resource labels to represent user provided metadata.
       
      map<string, string> labels = 5;
      Specified by:
      containsLabels in interface BackupOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface BackupOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Resource labels to represent user provided metadata.
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsMap in interface BackupOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Resource labels to represent user provided metadata.
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsOrDefault in interface BackupOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Resource labels to represent user provided metadata.
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsOrThrow in interface BackupOrBuilder
    • 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 interface BackupOrBuilder
      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 interface BackupOrBuilder
      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_number}/locations/{location_id}/instances/{instance_id}`,
       used to create this backup.
       
      string source_instance = 8 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSourceInstance in interface BackupOrBuilder
      Returns:
      The sourceInstance.
    • getSourceInstanceBytes

      public com.google.protobuf.ByteString getSourceInstanceBytes()
       The resource name of the source Filestore instance, in the format
       `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
       used to create this backup.
       
      string source_instance = 8 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSourceInstanceBytes in interface BackupOrBuilder
      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_number}/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_number}/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_number}/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 interface BackupOrBuilder
      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 interface BackupOrBuilder
      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.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceInstanceTierValue in interface BackupOrBuilder
      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.v1.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.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceInstanceTier in interface BackupOrBuilder
      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.v1.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.v1.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. This may be different than storage bytes, since sequential
       backups of the same disk will share storage.
       
      int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDownloadBytes in interface BackupOrBuilder
      Returns:
      The downloadBytes.
    • setDownloadBytes

      public Backup.Builder setDownloadBytes(long value)
       Output only. Amount of bytes that will be downloaded if the backup is
       restored. This may be different than storage bytes, since sequential
       backups of the same disk will share storage.
       
      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. This may be different than storage bytes, since sequential
       backups of the same disk will share storage.
       
      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 interface BackupOrBuilder
      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 interface BackupOrBuilder
      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 interface BackupOrBuilder
    • getSatisfiesPzi

      public boolean getSatisfiesPzi()
       Output only. Reserved for future use.
       
      bool satisfies_pzi = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSatisfiesPzi in interface BackupOrBuilder
      Returns:
      The satisfiesPzi.
    • setSatisfiesPzi

      public Backup.Builder setSatisfiesPzi(boolean value)
       Output only. Reserved for future use.
       
      bool satisfies_pzi = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The satisfiesPzi to set.
      Returns:
      This builder for chaining.
    • clearSatisfiesPzi

      public Backup.Builder clearSatisfiesPzi()
       Output only. Reserved for future use.
       
      bool satisfies_pzi = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getKmsKey

      public String getKmsKey()
       Immutable. KMS key name used for data encryption.
       
      string kms_key = 13 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getKmsKey in interface BackupOrBuilder
      Returns:
      The kmsKey.
    • getKmsKeyBytes

      public com.google.protobuf.ByteString getKmsKeyBytes()
       Immutable. KMS key name used for data encryption.
       
      string kms_key = 13 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getKmsKeyBytes in interface BackupOrBuilder
      Returns:
      The bytes for kmsKey.
    • setKmsKey

      public Backup.Builder setKmsKey(String value)
       Immutable. KMS key name used for data encryption.
       
      string kms_key = 13 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The kmsKey to set.
      Returns:
      This builder for chaining.
    • clearKmsKey

      public Backup.Builder clearKmsKey()
       Immutable. KMS key name used for data encryption.
       
      string kms_key = 13 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setKmsKeyBytes

      public Backup.Builder setKmsKeyBytes(com.google.protobuf.ByteString value)
       Immutable. KMS key name used for data encryption.
       
      string kms_key = 13 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for kmsKey to set.
      Returns:
      This builder for chaining.
    • getTagsCount

      public int getTagsCount()
      Description copied from interface: BackupOrBuilder
       Optional. Input only. Immutable. Tag key-value pairs bound to this
       resource. Each key must be a namespaced name and each value a short name.
       Example:
       "123456789012/environment" : "production",
       "123456789013/costCenter" : "marketing"
       See the documentation for more information:
       - Namespaced name:
       https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key
       - Short name:
       https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
       
      map<string, string> tags = 15 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsCount in interface BackupOrBuilder
    • containsTags

      public boolean containsTags(String key)
       Optional. Input only. Immutable. Tag key-value pairs bound to this
       resource. Each key must be a namespaced name and each value a short name.
       Example:
       "123456789012/environment" : "production",
       "123456789013/costCenter" : "marketing"
       See the documentation for more information:
       - Namespaced name:
       https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key
       - Short name:
       https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
       
      map<string, string> tags = 15 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsTags in interface BackupOrBuilder
    • getTags

      @Deprecated public Map<String,String> getTags()
      Deprecated.
      Use getTagsMap() instead.
      Specified by:
      getTags in interface BackupOrBuilder
    • getTagsMap

      public Map<String,String> getTagsMap()
       Optional. Input only. Immutable. Tag key-value pairs bound to this
       resource. Each key must be a namespaced name and each value a short name.
       Example:
       "123456789012/environment" : "production",
       "123456789013/costCenter" : "marketing"
       See the documentation for more information:
       - Namespaced name:
       https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key
       - Short name:
       https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
       
      map<string, string> tags = 15 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsMap in interface BackupOrBuilder
    • getTagsOrDefault

      public String getTagsOrDefault(String key, String defaultValue)
       Optional. Input only. Immutable. Tag key-value pairs bound to this
       resource. Each key must be a namespaced name and each value a short name.
       Example:
       "123456789012/environment" : "production",
       "123456789013/costCenter" : "marketing"
       See the documentation for more information:
       - Namespaced name:
       https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key
       - Short name:
       https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
       
      map<string, string> tags = 15 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsOrDefault in interface BackupOrBuilder
    • getTagsOrThrow

      public String getTagsOrThrow(String key)
       Optional. Input only. Immutable. Tag key-value pairs bound to this
       resource. Each key must be a namespaced name and each value a short name.
       Example:
       "123456789012/environment" : "production",
       "123456789013/costCenter" : "marketing"
       See the documentation for more information:
       - Namespaced name:
       https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key
       - Short name:
       https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
       
      map<string, string> tags = 15 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsOrThrow in interface BackupOrBuilder
    • clearTags

      public Backup.Builder clearTags()
    • removeTags

      public Backup.Builder removeTags(String key)
       Optional. Input only. Immutable. Tag key-value pairs bound to this
       resource. Each key must be a namespaced name and each value a short name.
       Example:
       "123456789012/environment" : "production",
       "123456789013/costCenter" : "marketing"
       See the documentation for more information:
       - Namespaced name:
       https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key
       - Short name:
       https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
       
      map<string, string> tags = 15 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
    • getMutableTags

      @Deprecated public Map<String,String> getMutableTags()
      Deprecated.
      Use alternate mutation accessors instead.
    • putTags

      public Backup.Builder putTags(String key, String value)
       Optional. Input only. Immutable. Tag key-value pairs bound to this
       resource. Each key must be a namespaced name and each value a short name.
       Example:
       "123456789012/environment" : "production",
       "123456789013/costCenter" : "marketing"
       See the documentation for more information:
       - Namespaced name:
       https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key
       - Short name:
       https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
       
      map<string, string> tags = 15 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
    • putAllTags

      public Backup.Builder putAllTags(Map<String,String> values)
       Optional. Input only. Immutable. Tag key-value pairs bound to this
       resource. Each key must be a namespaced name and each value a short name.
       Example:
       "123456789012/environment" : "production",
       "123456789013/costCenter" : "marketing"
       See the documentation for more information:
       - Namespaced name:
       https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key
       - Short name:
       https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
       
      map<string, string> tags = 15 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
    • getFileSystemProtocolValue

      public int getFileSystemProtocolValue()
       Output only. The file system protocol of the source Filestore instance that
       this backup is created from.
       
      .google.cloud.filestore.v1.Instance.FileProtocol file_system_protocol = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFileSystemProtocolValue in interface BackupOrBuilder
      Returns:
      The enum numeric value on the wire for fileSystemProtocol.
    • setFileSystemProtocolValue

      public Backup.Builder setFileSystemProtocolValue(int value)
       Output only. The file system protocol of the source Filestore instance that
       this backup is created from.
       
      .google.cloud.filestore.v1.Instance.FileProtocol file_system_protocol = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for fileSystemProtocol to set.
      Returns:
      This builder for chaining.
    • getFileSystemProtocol

      public Instance.FileProtocol getFileSystemProtocol()
       Output only. The file system protocol of the source Filestore instance that
       this backup is created from.
       
      .google.cloud.filestore.v1.Instance.FileProtocol file_system_protocol = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFileSystemProtocol in interface BackupOrBuilder
      Returns:
      The fileSystemProtocol.
    • setFileSystemProtocol

      public Backup.Builder setFileSystemProtocol(Instance.FileProtocol value)
       Output only. The file system protocol of the source Filestore instance that
       this backup is created from.
       
      .google.cloud.filestore.v1.Instance.FileProtocol file_system_protocol = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The fileSystemProtocol to set.
      Returns:
      This builder for chaining.
    • clearFileSystemProtocol

      public Backup.Builder clearFileSystemProtocol()
       Output only. The file system protocol of the source Filestore instance that
       this backup is created from.
       
      .google.cloud.filestore.v1.Instance.FileProtocol file_system_protocol = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.