Class ExportClusterRequest.SqlExportOptions.Builder

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

public static final class ExportClusterRequest.SqlExportOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExportClusterRequest.SqlExportOptions.Builder> implements ExportClusterRequest.SqlExportOptionsOrBuilder
 Options for exporting data in SQL format.
 
Protobuf type google.cloud.alloydb.v1beta.ExportClusterRequest.SqlExportOptions
  • 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<ExportClusterRequest.SqlExportOptions.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<ExportClusterRequest.SqlExportOptions.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<ExportClusterRequest.SqlExportOptions.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ExportClusterRequest.SqlExportOptions.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<ExportClusterRequest.SqlExportOptions.Builder>
      Throws:
      IOException
    • getTablesList

      public com.google.protobuf.ProtocolStringList getTablesList()
       Optional. Tables to export from.
       
      repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTablesList in interface ExportClusterRequest.SqlExportOptionsOrBuilder
      Returns:
      A list containing the tables.
    • getTablesCount

      public int getTablesCount()
       Optional. Tables to export from.
       
      repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTablesCount in interface ExportClusterRequest.SqlExportOptionsOrBuilder
      Returns:
      The count of tables.
    • getTables

      public String getTables(int index)
       Optional. Tables to export from.
       
      repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTables in interface ExportClusterRequest.SqlExportOptionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tables at the given index.
    • getTablesBytes

      public com.google.protobuf.ByteString getTablesBytes(int index)
       Optional. Tables to export from.
       
      repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTablesBytes in interface ExportClusterRequest.SqlExportOptionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tables at the given index.
    • setTables

      public ExportClusterRequest.SqlExportOptions.Builder setTables(int index, String value)
       Optional. Tables to export from.
       
      repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The tables to set.
      Returns:
      This builder for chaining.
    • addTables

       Optional. Tables to export from.
       
      repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The tables to add.
      Returns:
      This builder for chaining.
    • addAllTables

       Optional. Tables to export from.
       
      repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The tables to add.
      Returns:
      This builder for chaining.
    • clearTables

       Optional. Tables to export from.
       
      repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addTablesBytes

      public ExportClusterRequest.SqlExportOptions.Builder addTablesBytes(com.google.protobuf.ByteString value)
       Optional. Tables to export from.
       
      repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the tables to add.
      Returns:
      This builder for chaining.
    • hasSchemaOnly

      public boolean hasSchemaOnly()
       Optional. If true, only export the schema.
       
      optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSchemaOnly in interface ExportClusterRequest.SqlExportOptionsOrBuilder
      Returns:
      Whether the schemaOnly field is set.
    • getSchemaOnly

      public boolean getSchemaOnly()
       Optional. If true, only export the schema.
       
      optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSchemaOnly in interface ExportClusterRequest.SqlExportOptionsOrBuilder
      Returns:
      The schemaOnly.
    • setSchemaOnly

      public ExportClusterRequest.SqlExportOptions.Builder setSchemaOnly(boolean value)
       Optional. If true, only export the schema.
       
      optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The schemaOnly to set.
      Returns:
      This builder for chaining.
    • clearSchemaOnly

       Optional. If true, only export the schema.
       
      optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasCleanTargetObjects

      public boolean hasCleanTargetObjects()
       Optional. If true, output commands to DROP all the dumped database
       objects prior to outputting the commands for creating them.
       
      optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCleanTargetObjects in interface ExportClusterRequest.SqlExportOptionsOrBuilder
      Returns:
      Whether the cleanTargetObjects field is set.
    • getCleanTargetObjects

      public boolean getCleanTargetObjects()
       Optional. If true, output commands to DROP all the dumped database
       objects prior to outputting the commands for creating them.
       
      optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCleanTargetObjects in interface ExportClusterRequest.SqlExportOptionsOrBuilder
      Returns:
      The cleanTargetObjects.
    • setCleanTargetObjects

      public ExportClusterRequest.SqlExportOptions.Builder setCleanTargetObjects(boolean value)
       Optional. If true, output commands to DROP all the dumped database
       objects prior to outputting the commands for creating them.
       
      optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The cleanTargetObjects to set.
      Returns:
      This builder for chaining.
    • clearCleanTargetObjects

      public ExportClusterRequest.SqlExportOptions.Builder clearCleanTargetObjects()
       Optional. If true, output commands to DROP all the dumped database
       objects prior to outputting the commands for creating them.
       
      optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasIfExistTargetObjects

      public boolean hasIfExistTargetObjects()
       Optional. If true, use DROP ... IF EXISTS commands to check for the
       object's existence before dropping it in clean_target_objects mode.
       
      optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasIfExistTargetObjects in interface ExportClusterRequest.SqlExportOptionsOrBuilder
      Returns:
      Whether the ifExistTargetObjects field is set.
    • getIfExistTargetObjects

      public boolean getIfExistTargetObjects()
       Optional. If true, use DROP ... IF EXISTS commands to check for the
       object's existence before dropping it in clean_target_objects mode.
       
      optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIfExistTargetObjects in interface ExportClusterRequest.SqlExportOptionsOrBuilder
      Returns:
      The ifExistTargetObjects.
    • setIfExistTargetObjects

      public ExportClusterRequest.SqlExportOptions.Builder setIfExistTargetObjects(boolean value)
       Optional. If true, use DROP ... IF EXISTS commands to check for the
       object's existence before dropping it in clean_target_objects mode.
       
      optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The ifExistTargetObjects to set.
      Returns:
      This builder for chaining.
    • clearIfExistTargetObjects

      public ExportClusterRequest.SqlExportOptions.Builder clearIfExistTargetObjects()
       Optional. If true, use DROP ... IF EXISTS commands to check for the
       object's existence before dropping it in clean_target_objects mode.
       
      optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.