Class FirestoreSource.Builder

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

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

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

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

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

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

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

      public FirestoreSource.Builder mergeFrom(FirestoreSource other)
    • isInitialized

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

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

      public String getProjectId()
       The project ID that the Cloud SQL source is in with 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 FirestoreSourceOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       The project ID that the Cloud SQL source is in with 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 FirestoreSourceOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public FirestoreSource.Builder setProjectId(String value)
       The project ID that the Cloud SQL source is in with 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 FirestoreSource.Builder clearProjectId()
       The project ID that the Cloud SQL source is in with 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 FirestoreSource.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       The project ID that the Cloud SQL source is in with 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.
    • getDatabaseId

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

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

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

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

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

      public String getCollectionId()
       Required. The Firestore collection (or entity) to copy the data from with a
       length limit of 1,500 characters.
       
      string collection_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCollectionId in interface FirestoreSourceOrBuilder
      Returns:
      The collectionId.
    • getCollectionIdBytes

      public com.google.protobuf.ByteString getCollectionIdBytes()
       Required. The Firestore collection (or entity) to copy the data from with a
       length limit of 1,500 characters.
       
      string collection_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCollectionIdBytes in interface FirestoreSourceOrBuilder
      Returns:
      The bytes for collectionId.
    • setCollectionId

      public FirestoreSource.Builder setCollectionId(String value)
       Required. The Firestore collection (or entity) to copy the data from with a
       length limit of 1,500 characters.
       
      string collection_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The collectionId to set.
      Returns:
      This builder for chaining.
    • clearCollectionId

      public FirestoreSource.Builder clearCollectionId()
       Required. The Firestore collection (or entity) to copy the data from with a
       length limit of 1,500 characters.
       
      string collection_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCollectionIdBytes

      public FirestoreSource.Builder setCollectionIdBytes(com.google.protobuf.ByteString value)
       Required. The Firestore collection (or entity) to copy the data from with a
       length limit of 1,500 characters.
       
      string collection_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for collectionId 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
       Firestore export to a specific Cloud Storage directory.
      
       Ensure that the Firestore service account has the necessary Cloud
       Storage Admin permissions to access the specified Cloud Storage directory.
       
      string gcs_staging_dir = 4;
      Specified by:
      getGcsStagingDir in interface FirestoreSourceOrBuilder
      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
       Firestore export to a specific Cloud Storage directory.
      
       Ensure that the Firestore service account has the necessary Cloud
       Storage Admin permissions to access the specified Cloud Storage directory.
       
      string gcs_staging_dir = 4;
      Specified by:
      getGcsStagingDirBytes in interface FirestoreSourceOrBuilder
      Returns:
      The bytes for gcsStagingDir.
    • setGcsStagingDir

      public FirestoreSource.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
       Firestore export to a specific Cloud Storage directory.
      
       Ensure that the Firestore service account has the necessary Cloud
       Storage Admin permissions to access the specified Cloud Storage directory.
       
      string gcs_staging_dir = 4;
      Parameters:
      value - The gcsStagingDir to set.
      Returns:
      This builder for chaining.
    • clearGcsStagingDir

      public FirestoreSource.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
       Firestore export to a specific Cloud Storage directory.
      
       Ensure that the Firestore service account has the necessary Cloud
       Storage Admin permissions to access the specified Cloud Storage directory.
       
      string gcs_staging_dir = 4;
      Returns:
      This builder for chaining.
    • setGcsStagingDirBytes

      public FirestoreSource.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
       Firestore export to a specific Cloud Storage directory.
      
       Ensure that the Firestore service account has the necessary Cloud
       Storage Admin permissions to access the specified Cloud Storage directory.
       
      string gcs_staging_dir = 4;
      Parameters:
      value - The bytes for gcsStagingDir to set.
      Returns:
      This builder for chaining.