Class ContinuousBackupSource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ContinuousBackupSource.Builder>
com.google.cloud.alloydb.v1beta.ContinuousBackupSource.Builder
All Implemented Interfaces:
ContinuousBackupSourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ContinuousBackupSource

public static final class ContinuousBackupSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<ContinuousBackupSource.Builder> implements ContinuousBackupSourceOrBuilder
 Message describing a ContinuousBackupSource.
 
Protobuf type google.cloud.alloydb.v1beta.ContinuousBackupSource
  • 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<ContinuousBackupSource.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<ContinuousBackupSource.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<ContinuousBackupSource.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public ContinuousBackupSource.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<ContinuousBackupSource.Builder>
      Throws:
      IOException
    • getCluster

      public String getCluster()
       Required. The source cluster from which to restore. This cluster must have
       continuous backup enabled for this operation to succeed. For the required
       format, see the comment on the Cluster.name field.
       
      string cluster = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCluster in interface ContinuousBackupSourceOrBuilder
      Returns:
      The cluster.
    • getClusterBytes

      public com.google.protobuf.ByteString getClusterBytes()
       Required. The source cluster from which to restore. This cluster must have
       continuous backup enabled for this operation to succeed. For the required
       format, see the comment on the Cluster.name field.
       
      string cluster = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClusterBytes in interface ContinuousBackupSourceOrBuilder
      Returns:
      The bytes for cluster.
    • setCluster

      public ContinuousBackupSource.Builder setCluster(String value)
       Required. The source cluster from which to restore. This cluster must have
       continuous backup enabled for this operation to succeed. For the required
       format, see the comment on the Cluster.name field.
       
      string cluster = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The cluster to set.
      Returns:
      This builder for chaining.
    • clearCluster

      public ContinuousBackupSource.Builder clearCluster()
       Required. The source cluster from which to restore. This cluster must have
       continuous backup enabled for this operation to succeed. For the required
       format, see the comment on the Cluster.name field.
       
      string cluster = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setClusterBytes

      public ContinuousBackupSource.Builder setClusterBytes(com.google.protobuf.ByteString value)
       Required. The source cluster from which to restore. This cluster must have
       continuous backup enabled for this operation to succeed. For the required
       format, see the comment on the Cluster.name field.
       
      string cluster = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for cluster to set.
      Returns:
      This builder for chaining.
    • hasPointInTime

      public boolean hasPointInTime()
       Required. The point in time to restore to.
       
      .google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasPointInTime in interface ContinuousBackupSourceOrBuilder
      Returns:
      Whether the pointInTime field is set.
    • getPointInTime

      public com.google.protobuf.Timestamp getPointInTime()
       Required. The point in time to restore to.
       
      .google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPointInTime in interface ContinuousBackupSourceOrBuilder
      Returns:
      The pointInTime.
    • setPointInTime

      public ContinuousBackupSource.Builder setPointInTime(com.google.protobuf.Timestamp value)
       Required. The point in time to restore to.
       
      .google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED];
    • setPointInTime

      public ContinuousBackupSource.Builder setPointInTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Required. The point in time to restore to.
       
      .google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergePointInTime

      public ContinuousBackupSource.Builder mergePointInTime(com.google.protobuf.Timestamp value)
       Required. The point in time to restore to.
       
      .google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearPointInTime

      public ContinuousBackupSource.Builder clearPointInTime()
       Required. The point in time to restore to.
       
      .google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED];
    • getPointInTimeBuilder

      public com.google.protobuf.Timestamp.Builder getPointInTimeBuilder()
       Required. The point in time to restore to.
       
      .google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED];
    • getPointInTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getPointInTimeOrBuilder()
       Required. The point in time to restore to.
       
      .google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPointInTimeOrBuilder in interface ContinuousBackupSourceOrBuilder