Class CloudSQLBackupRunSource.Builder

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

public static final class CloudSQLBackupRunSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<CloudSQLBackupRunSource.Builder> implements CloudSQLBackupRunSourceOrBuilder
 The source CloudSQL backup resource.
 
Protobuf type google.cloud.alloydb.v1beta.CloudSQLBackupRunSource
  • 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<CloudSQLBackupRunSource.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<CloudSQLBackupRunSource.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<CloudSQLBackupRunSource.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CloudSQLBackupRunSource.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<CloudSQLBackupRunSource.Builder>
      Throws:
      IOException
    • getProject

      public String getProject()
       The project ID of the source CloudSQL instance. This should be the same as
       the AlloyDB cluster's project.
       
      string project = 1;
      Specified by:
      getProject in interface CloudSQLBackupRunSourceOrBuilder
      Returns:
      The project.
    • getProjectBytes

      public com.google.protobuf.ByteString getProjectBytes()
       The project ID of the source CloudSQL instance. This should be the same as
       the AlloyDB cluster's project.
       
      string project = 1;
      Specified by:
      getProjectBytes in interface CloudSQLBackupRunSourceOrBuilder
      Returns:
      The bytes for project.
    • setProject

      public CloudSQLBackupRunSource.Builder setProject(String value)
       The project ID of the source CloudSQL instance. This should be the same as
       the AlloyDB cluster's project.
       
      string project = 1;
      Parameters:
      value - The project to set.
      Returns:
      This builder for chaining.
    • clearProject

      public CloudSQLBackupRunSource.Builder clearProject()
       The project ID of the source CloudSQL instance. This should be the same as
       the AlloyDB cluster's project.
       
      string project = 1;
      Returns:
      This builder for chaining.
    • setProjectBytes

      public CloudSQLBackupRunSource.Builder setProjectBytes(com.google.protobuf.ByteString value)
       The project ID of the source CloudSQL instance. This should be the same as
       the AlloyDB cluster's project.
       
      string project = 1;
      Parameters:
      value - The bytes for project to set.
      Returns:
      This builder for chaining.
    • getInstanceId

      public String getInstanceId()
       Required. The CloudSQL instance ID.
       
      string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstanceId in interface CloudSQLBackupRunSourceOrBuilder
      Returns:
      The instanceId.
    • getInstanceIdBytes

      public com.google.protobuf.ByteString getInstanceIdBytes()
       Required. The CloudSQL instance ID.
       
      string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstanceIdBytes in interface CloudSQLBackupRunSourceOrBuilder
      Returns:
      The bytes for instanceId.
    • setInstanceId

      public CloudSQLBackupRunSource.Builder setInstanceId(String value)
       Required. The CloudSQL instance ID.
       
      string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The instanceId to set.
      Returns:
      This builder for chaining.
    • clearInstanceId

      public CloudSQLBackupRunSource.Builder clearInstanceId()
       Required. The CloudSQL instance ID.
       
      string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setInstanceIdBytes

      public CloudSQLBackupRunSource.Builder setInstanceIdBytes(com.google.protobuf.ByteString value)
       Required. The CloudSQL instance ID.
       
      string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for instanceId to set.
      Returns:
      This builder for chaining.
    • getBackupRunId

      public long getBackupRunId()
       Required. The CloudSQL backup run ID.
       
      int64 backup_run_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBackupRunId in interface CloudSQLBackupRunSourceOrBuilder
      Returns:
      The backupRunId.
    • setBackupRunId

      public CloudSQLBackupRunSource.Builder setBackupRunId(long value)
       Required. The CloudSQL backup run ID.
       
      int64 backup_run_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The backupRunId to set.
      Returns:
      This builder for chaining.
    • clearBackupRunId

      public CloudSQLBackupRunSource.Builder clearBackupRunId()
       Required. The CloudSQL backup run ID.
       
      int64 backup_run_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.