Class AlloyDbSource.Builder

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

public static final class AlloyDbSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<AlloyDbSource.Builder> implements AlloyDbSourceOrBuilder
 AlloyDB source import data from.
 
Protobuf type google.cloud.discoveryengine.v1beta.AlloyDbSource
  • 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<AlloyDbSource.Builder>
    • clear

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

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

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

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

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

      public AlloyDbSource.Builder mergeFrom(AlloyDbSource other)
    • isInitialized

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

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

      public String getProjectId()
       The project ID that contains the AlloyDB 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 AlloyDbSourceOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       The project ID that contains the AlloyDB 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 AlloyDbSourceOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public AlloyDbSource.Builder setProjectId(String value)
       The project ID that contains the AlloyDB 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 AlloyDbSource.Builder clearProjectId()
       The project ID that contains the AlloyDB 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 AlloyDbSource.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       The project ID that contains the AlloyDB 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.
    • getLocationId

      public String getLocationId()
       Required. The AlloyDB location to copy the data from with a length limit of
       256 characters.
       
      string location_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLocationId in interface AlloyDbSourceOrBuilder
      Returns:
      The locationId.
    • getLocationIdBytes

      public com.google.protobuf.ByteString getLocationIdBytes()
       Required. The AlloyDB location to copy the data from with a length limit of
       256 characters.
       
      string location_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLocationIdBytes in interface AlloyDbSourceOrBuilder
      Returns:
      The bytes for locationId.
    • setLocationId

      public AlloyDbSource.Builder setLocationId(String value)
       Required. The AlloyDB location to copy the data from with a length limit of
       256 characters.
       
      string location_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The locationId to set.
      Returns:
      This builder for chaining.
    • clearLocationId

      public AlloyDbSource.Builder clearLocationId()
       Required. The AlloyDB location to copy the data from with a length limit of
       256 characters.
       
      string location_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setLocationIdBytes

      public AlloyDbSource.Builder setLocationIdBytes(com.google.protobuf.ByteString value)
       Required. The AlloyDB location to copy the data from with a length limit of
       256 characters.
       
      string location_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for locationId to set.
      Returns:
      This builder for chaining.
    • getClusterId

      public String getClusterId()
       Required. The AlloyDB cluster to copy the data from with a length limit of
       256 characters.
       
      string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClusterId in interface AlloyDbSourceOrBuilder
      Returns:
      The clusterId.
    • getClusterIdBytes

      public com.google.protobuf.ByteString getClusterIdBytes()
       Required. The AlloyDB cluster to copy the data from with a length limit of
       256 characters.
       
      string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClusterIdBytes in interface AlloyDbSourceOrBuilder
      Returns:
      The bytes for clusterId.
    • setClusterId

      public AlloyDbSource.Builder setClusterId(String value)
       Required. The AlloyDB cluster to copy the data from with a length limit of
       256 characters.
       
      string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The clusterId to set.
      Returns:
      This builder for chaining.
    • clearClusterId

      public AlloyDbSource.Builder clearClusterId()
       Required. The AlloyDB cluster to copy the data from with a length limit of
       256 characters.
       
      string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setClusterIdBytes

      public AlloyDbSource.Builder setClusterIdBytes(com.google.protobuf.ByteString value)
       Required. The AlloyDB cluster to copy the data from with a length limit of
       256 characters.
       
      string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for clusterId to set.
      Returns:
      This builder for chaining.
    • getDatabaseId

      public String getDatabaseId()
       Required. The AlloyDB database to copy the data from with a length limit of
       256 characters.
       
      string database_id = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDatabaseId in interface AlloyDbSourceOrBuilder
      Returns:
      The databaseId.
    • getDatabaseIdBytes

      public com.google.protobuf.ByteString getDatabaseIdBytes()
       Required. The AlloyDB database to copy the data from with a length limit of
       256 characters.
       
      string database_id = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDatabaseIdBytes in interface AlloyDbSourceOrBuilder
      Returns:
      The bytes for databaseId.
    • setDatabaseId

      public AlloyDbSource.Builder setDatabaseId(String value)
       Required. The AlloyDB database to copy the data from with a length limit of
       256 characters.
       
      string database_id = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The databaseId to set.
      Returns:
      This builder for chaining.
    • clearDatabaseId

      public AlloyDbSource.Builder clearDatabaseId()
       Required. The AlloyDB database to copy the data from with a length limit of
       256 characters.
       
      string database_id = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDatabaseIdBytes

      public AlloyDbSource.Builder setDatabaseIdBytes(com.google.protobuf.ByteString value)
       Required. The AlloyDB database to copy the data from with a length limit of
       256 characters.
       
      string database_id = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for databaseId to set.
      Returns:
      This builder for chaining.
    • getTableId

      public String getTableId()
       Required. The AlloyDB table to copy the data from with a length limit of
       256 characters.
       
      string table_id = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTableId in interface AlloyDbSourceOrBuilder
      Returns:
      The tableId.
    • getTableIdBytes

      public com.google.protobuf.ByteString getTableIdBytes()
       Required. The AlloyDB table to copy the data from with a length limit of
       256 characters.
       
      string table_id = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTableIdBytes in interface AlloyDbSourceOrBuilder
      Returns:
      The bytes for tableId.
    • setTableId

      public AlloyDbSource.Builder setTableId(String value)
       Required. The AlloyDB table to copy the data from with a length limit of
       256 characters.
       
      string table_id = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The tableId to set.
      Returns:
      This builder for chaining.
    • clearTableId

      public AlloyDbSource.Builder clearTableId()
       Required. The AlloyDB table to copy the data from with a length limit of
       256 characters.
       
      string table_id = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTableIdBytes

      public AlloyDbSource.Builder setTableIdBytes(com.google.protobuf.ByteString value)
       Required. The AlloyDB table to copy the data from with a length limit of
       256 characters.
       
      string table_id = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for tableId to set.
      Returns:
      This builder for chaining.
    • getGcsStagingDir

      public String getGcsStagingDir()
       Intermediate Cloud Storage directory used for the import with a length
       limit of 2,000 characters. Can be specified if one wants to have the
       AlloyDB export to a specific Cloud Storage directory.
      
       Ensure that the AlloyDB service account has the necessary Cloud
       Storage Admin permissions to access the specified Cloud Storage directory.
       
      string gcs_staging_dir = 6;
      Specified by:
      getGcsStagingDir in interface AlloyDbSourceOrBuilder
      Returns:
      The gcsStagingDir.
    • getGcsStagingDirBytes

      public com.google.protobuf.ByteString getGcsStagingDirBytes()
       Intermediate Cloud Storage directory used for the import with a length
       limit of 2,000 characters. Can be specified if one wants to have the
       AlloyDB export to a specific Cloud Storage directory.
      
       Ensure that the AlloyDB service account has the necessary Cloud
       Storage Admin permissions to access the specified Cloud Storage directory.
       
      string gcs_staging_dir = 6;
      Specified by:
      getGcsStagingDirBytes in interface AlloyDbSourceOrBuilder
      Returns:
      The bytes for gcsStagingDir.
    • setGcsStagingDir

      public AlloyDbSource.Builder setGcsStagingDir(String value)
       Intermediate Cloud Storage directory used for the import with a length
       limit of 2,000 characters. Can be specified if one wants to have the
       AlloyDB export to a specific Cloud Storage directory.
      
       Ensure that the AlloyDB service account has the necessary Cloud
       Storage Admin permissions to access the specified Cloud Storage directory.
       
      string gcs_staging_dir = 6;
      Parameters:
      value - The gcsStagingDir to set.
      Returns:
      This builder for chaining.
    • clearGcsStagingDir

      public AlloyDbSource.Builder clearGcsStagingDir()
       Intermediate Cloud Storage directory used for the import with a length
       limit of 2,000 characters. Can be specified if one wants to have the
       AlloyDB export to a specific Cloud Storage directory.
      
       Ensure that the AlloyDB service account has the necessary Cloud
       Storage Admin permissions to access the specified Cloud Storage directory.
       
      string gcs_staging_dir = 6;
      Returns:
      This builder for chaining.
    • setGcsStagingDirBytes

      public AlloyDbSource.Builder setGcsStagingDirBytes(com.google.protobuf.ByteString value)
       Intermediate Cloud Storage directory used for the import with a length
       limit of 2,000 characters. Can be specified if one wants to have the
       AlloyDB export to a specific Cloud Storage directory.
      
       Ensure that the AlloyDB service account has the necessary Cloud
       Storage Admin permissions to access the specified Cloud Storage directory.
       
      string gcs_staging_dir = 6;
      Parameters:
      value - The bytes for gcsStagingDir to set.
      Returns:
      This builder for chaining.