Class BackupFile.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BackupFile.Builder>
com.google.cloud.redis.cluster.v1beta1.BackupFile.Builder
All Implemented Interfaces:
BackupFileOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BackupFile

public static final class BackupFile.Builder extends com.google.protobuf.GeneratedMessage.Builder<BackupFile.Builder> implements BackupFileOrBuilder
 Backup is consisted of multiple backup files.
 
Protobuf type google.cloud.redis.cluster.v1beta1.BackupFile
  • Method Details

    • getDescriptor

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

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

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

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

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

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

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

      public BackupFile.Builder mergeFrom(BackupFile other)
    • isInitialized

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

      public BackupFile.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<BackupFile.Builder>
      Throws:
      IOException
    • getFileName

      public String getFileName()
       Output only. e.g: <shard-id>.rdb
       
      string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFileName in interface BackupFileOrBuilder
      Returns:
      The fileName.
    • getFileNameBytes

      public com.google.protobuf.ByteString getFileNameBytes()
       Output only. e.g: <shard-id>.rdb
       
      string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFileNameBytes in interface BackupFileOrBuilder
      Returns:
      The bytes for fileName.
    • setFileName

      public BackupFile.Builder setFileName(String value)
       Output only. e.g: <shard-id>.rdb
       
      string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The fileName to set.
      Returns:
      This builder for chaining.
    • clearFileName

      public BackupFile.Builder clearFileName()
       Output only. e.g: <shard-id>.rdb
       
      string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setFileNameBytes

      public BackupFile.Builder setFileNameBytes(com.google.protobuf.ByteString value)
       Output only. e.g: <shard-id>.rdb
       
      string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for fileName to set.
      Returns:
      This builder for chaining.
    • getSizeBytes

      public long getSizeBytes()
       Output only. Size of the backup file in bytes.
       
      int64 size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSizeBytes in interface BackupFileOrBuilder
      Returns:
      The sizeBytes.
    • setSizeBytes

      public BackupFile.Builder setSizeBytes(long value)
       Output only. Size of the backup file in bytes.
       
      int64 size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The sizeBytes to set.
      Returns:
      This builder for chaining.
    • clearSizeBytes

      public BackupFile.Builder clearSizeBytes()
       Output only. Size of the backup file in bytes.
       
      int64 size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time when the backup file was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface BackupFileOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time when the backup file was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface BackupFileOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public BackupFile.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the backup file was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public BackupFile.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the backup file was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public BackupFile.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the backup file was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public BackupFile.Builder clearCreateTime()
       Output only. The time when the backup file was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

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

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time when the backup file was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface BackupFileOrBuilder