Class SpannerSource.Builder

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

public static final class SpannerSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<SpannerSource.Builder> implements SpannerSourceOrBuilder
 The Spanner source for importing data
 
Protobuf type google.cloud.discoveryengine.v1beta.SpannerSource
  • 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<SpannerSource.Builder>
    • clear

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

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

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

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

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

      public SpannerSource.Builder mergeFrom(SpannerSource other)
    • isInitialized

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

      public SpannerSource.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<SpannerSource.Builder>
      Throws:
      IOException
    • getProjectId

      public String getProjectId()
       The project ID that contains the Spanner source. Has a length limit of 128
       characters. If not specified, inherits the project ID from the parent
       request.
       
      string project_id = 1;
      Specified by:
      getProjectId in interface SpannerSourceOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       The project ID that contains the Spanner source. Has a length limit of 128
       characters. If not specified, inherits the project ID from the parent
       request.
       
      string project_id = 1;
      Specified by:
      getProjectIdBytes in interface SpannerSourceOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public SpannerSource.Builder setProjectId(String value)
       The project ID that contains the Spanner source. Has a length limit of 128
       characters. If not specified, inherits the project ID from the parent
       request.
       
      string project_id = 1;
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public SpannerSource.Builder clearProjectId()
       The project ID that contains the Spanner source. Has a length limit of 128
       characters. If not specified, inherits the project ID from the parent
       request.
       
      string project_id = 1;
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public SpannerSource.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       The project ID that contains the Spanner source. Has a length limit of 128
       characters. If not specified, inherits the project ID from the parent
       request.
       
      string project_id = 1;
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getInstanceId

      public String getInstanceId()
       Required. The instance ID of the source Spanner table.
       
      string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstanceId in interface SpannerSourceOrBuilder
      Returns:
      The instanceId.
    • getInstanceIdBytes

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

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

      public SpannerSource.Builder clearInstanceId()
       Required. The instance ID of the source Spanner table.
       
      string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setInstanceIdBytes

      public SpannerSource.Builder setInstanceIdBytes(com.google.protobuf.ByteString value)
       Required. The instance ID of the source Spanner table.
       
      string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for instanceId to set.
      Returns:
      This builder for chaining.
    • getDatabaseId

      public String getDatabaseId()
       Required. The database ID of the source Spanner table.
       
      string database_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDatabaseId in interface SpannerSourceOrBuilder
      Returns:
      The databaseId.
    • getDatabaseIdBytes

      public com.google.protobuf.ByteString getDatabaseIdBytes()
       Required. The database ID of the source Spanner table.
       
      string database_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDatabaseIdBytes in interface SpannerSourceOrBuilder
      Returns:
      The bytes for databaseId.
    • setDatabaseId

      public SpannerSource.Builder setDatabaseId(String value)
       Required. The database ID of the source Spanner table.
       
      string database_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The databaseId to set.
      Returns:
      This builder for chaining.
    • clearDatabaseId

      public SpannerSource.Builder clearDatabaseId()
       Required. The database ID of the source Spanner table.
       
      string database_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDatabaseIdBytes

      public SpannerSource.Builder setDatabaseIdBytes(com.google.protobuf.ByteString value)
       Required. The database ID of the source Spanner table.
       
      string database_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for databaseId to set.
      Returns:
      This builder for chaining.
    • getTableId

      public String getTableId()
       Required. The table name of the Spanner database that needs to be imported.
       
      string table_id = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTableId in interface SpannerSourceOrBuilder
      Returns:
      The tableId.
    • getTableIdBytes

      public com.google.protobuf.ByteString getTableIdBytes()
       Required. The table name of the Spanner database that needs to be imported.
       
      string table_id = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTableIdBytes in interface SpannerSourceOrBuilder
      Returns:
      The bytes for tableId.
    • setTableId

      public SpannerSource.Builder setTableId(String value)
       Required. The table name of the Spanner database that needs to be imported.
       
      string table_id = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The tableId to set.
      Returns:
      This builder for chaining.
    • clearTableId

      public SpannerSource.Builder clearTableId()
       Required. The table name of the Spanner database that needs to be imported.
       
      string table_id = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTableIdBytes

      public SpannerSource.Builder setTableIdBytes(com.google.protobuf.ByteString value)
       Required. The table name of the Spanner database that needs to be imported.
       
      string table_id = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for tableId to set.
      Returns:
      This builder for chaining.
    • getEnableDataBoost

      public boolean getEnableDataBoost()
       Whether to apply data boost on Spanner export. Enabling this option will
       incur additional cost. More info can be found
       [here](https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas).
       
      bool enable_data_boost = 5;
      Specified by:
      getEnableDataBoost in interface SpannerSourceOrBuilder
      Returns:
      The enableDataBoost.
    • setEnableDataBoost

      public SpannerSource.Builder setEnableDataBoost(boolean value)
       Whether to apply data boost on Spanner export. Enabling this option will
       incur additional cost. More info can be found
       [here](https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas).
       
      bool enable_data_boost = 5;
      Parameters:
      value - The enableDataBoost to set.
      Returns:
      This builder for chaining.
    • clearEnableDataBoost

      public SpannerSource.Builder clearEnableDataBoost()
       Whether to apply data boost on Spanner export. Enabling this option will
       incur additional cost. More info can be found
       [here](https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas).
       
      bool enable_data_boost = 5;
      Returns:
      This builder for chaining.