Class ImportDocumentsRequest.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
      • clear

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

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

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

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

        public ImportDocumentsRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
      • clearField

        public ImportDocumentsRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
      • clearOneof

        public ImportDocumentsRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
      • setRepeatedField

        public ImportDocumentsRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
      • addRepeatedField

        public ImportDocumentsRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
      • isInitialized

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

        public ImportDocumentsRequest.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<ImportDocumentsRequest.Builder>
        Throws:
        IOException
      • hasInlineSource

        public boolean hasInlineSource()
         The Inline source for the input content for documents.
         
        .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;
        Specified by:
        hasInlineSource in interface ImportDocumentsRequestOrBuilder
        Returns:
        Whether the inlineSource field is set.
      • clearInlineSource

        public ImportDocumentsRequest.Builder clearInlineSource()
         The Inline source for the input content for documents.
         
        .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;
      • getInlineSourceBuilder

        public ImportDocumentsRequest.InlineSource.Builder getInlineSourceBuilder()
         The Inline source for the input content for documents.
         
        .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;
      • hasGcsSource

        public boolean hasGcsSource()
         Cloud Storage location for the input content.
         
        .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
        Specified by:
        hasGcsSource in interface ImportDocumentsRequestOrBuilder
        Returns:
        Whether the gcsSource field is set.
      • setGcsSource

        public ImportDocumentsRequest.Builder setGcsSource​(GcsSource value)
         Cloud Storage location for the input content.
         
        .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
      • mergeGcsSource

        public ImportDocumentsRequest.Builder mergeGcsSource​(GcsSource value)
         Cloud Storage location for the input content.
         
        .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
      • clearGcsSource

        public ImportDocumentsRequest.Builder clearGcsSource()
         Cloud Storage location for the input content.
         
        .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
      • getGcsSourceBuilder

        public GcsSource.Builder getGcsSourceBuilder()
         Cloud Storage location for the input content.
         
        .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
      • hasBigquerySource

        public boolean hasBigquerySource()
         BigQuery input source.
         
        .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
        Specified by:
        hasBigquerySource in interface ImportDocumentsRequestOrBuilder
        Returns:
        Whether the bigquerySource field is set.
      • clearBigquerySource

        public ImportDocumentsRequest.Builder clearBigquerySource()
         BigQuery input source.
         
        .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
      • getBigquerySourceBuilder

        public BigQuerySource.Builder getBigquerySourceBuilder()
         BigQuery input source.
         
        .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
      • getParent

        public String getParent()
         Required. The parent branch resource name, such as
         `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
         Requires create/update permission.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface ImportDocumentsRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The parent branch resource name, such as
         `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
         Requires create/update permission.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface ImportDocumentsRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public ImportDocumentsRequest.Builder setParent​(String value)
         Required. The parent branch resource name, such as
         `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
         Requires create/update permission.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public ImportDocumentsRequest.Builder clearParent()
         Required. The parent branch resource name, such as
         `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
         Requires create/update permission.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public ImportDocumentsRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The parent branch resource name, such as
         `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
         Requires create/update permission.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • hasErrorConfig

        public boolean hasErrorConfig()
         The desired location of errors incurred during the Import.
         
        .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;
        Specified by:
        hasErrorConfig in interface ImportDocumentsRequestOrBuilder
        Returns:
        Whether the errorConfig field is set.
      • mergeErrorConfig

        public ImportDocumentsRequest.Builder mergeErrorConfig​(ImportErrorConfig value)
         The desired location of errors incurred during the Import.
         
        .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;
      • clearErrorConfig

        public ImportDocumentsRequest.Builder clearErrorConfig()
         The desired location of errors incurred during the Import.
         
        .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;
      • getErrorConfigBuilder

        public ImportErrorConfig.Builder getErrorConfigBuilder()
         The desired location of errors incurred during the Import.
         
        .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;
      • getReconciliationModeValue

        public int getReconciliationModeValue()
         The mode of reconciliation between existing documents and the documents to
         be imported. Defaults to
         [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
         
        .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;
        Specified by:
        getReconciliationModeValue in interface ImportDocumentsRequestOrBuilder
        Returns:
        The enum numeric value on the wire for reconciliationMode.
      • setReconciliationModeValue

        public ImportDocumentsRequest.Builder setReconciliationModeValue​(int value)
         The mode of reconciliation between existing documents and the documents to
         be imported. Defaults to
         [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
         
        .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;
        Parameters:
        value - The enum numeric value on the wire for reconciliationMode to set.
        Returns:
        This builder for chaining.
      • getReconciliationMode

        public ImportDocumentsRequest.ReconciliationMode getReconciliationMode()
         The mode of reconciliation between existing documents and the documents to
         be imported. Defaults to
         [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
         
        .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;
        Specified by:
        getReconciliationMode in interface ImportDocumentsRequestOrBuilder
        Returns:
        The reconciliationMode.
      • setReconciliationMode

        public ImportDocumentsRequest.Builder setReconciliationMode​(ImportDocumentsRequest.ReconciliationMode value)
         The mode of reconciliation between existing documents and the documents to
         be imported. Defaults to
         [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
         
        .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;
        Parameters:
        value - The reconciliationMode to set.
        Returns:
        This builder for chaining.
      • clearReconciliationMode

        public ImportDocumentsRequest.Builder clearReconciliationMode()
         The mode of reconciliation between existing documents and the documents to
         be imported. Defaults to
         [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
         
        .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;
        Returns:
        This builder for chaining.
      • getAutoGenerateIds

        public boolean getAutoGenerateIds()
         Whether to automatically generate IDs for the documents if absent.
        
         If set to `true`,
         [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s are
         automatically generated based on the hash of the payload, where IDs may not
         be consistent during multiple imports. In which case
         [ReconciliationMode.FULL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.FULL]
         is highly recommended to avoid duplicate contents. If unset or set to
         `false`, [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s
         have to be specified using
         [id_field][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.id_field],
         otherwise, documents without IDs fail to be imported.
        
         Only set this field when using
         [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] or
         [BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource], and
         when
         [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
         or
         [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
         is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
         
        bool auto_generate_ids = 8;
        Specified by:
        getAutoGenerateIds in interface ImportDocumentsRequestOrBuilder
        Returns:
        The autoGenerateIds.
      • setAutoGenerateIds

        public ImportDocumentsRequest.Builder setAutoGenerateIds​(boolean value)
         Whether to automatically generate IDs for the documents if absent.
        
         If set to `true`,
         [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s are
         automatically generated based on the hash of the payload, where IDs may not
         be consistent during multiple imports. In which case
         [ReconciliationMode.FULL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.FULL]
         is highly recommended to avoid duplicate contents. If unset or set to
         `false`, [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s
         have to be specified using
         [id_field][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.id_field],
         otherwise, documents without IDs fail to be imported.
        
         Only set this field when using
         [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] or
         [BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource], and
         when
         [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
         or
         [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
         is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
         
        bool auto_generate_ids = 8;
        Parameters:
        value - The autoGenerateIds to set.
        Returns:
        This builder for chaining.
      • clearAutoGenerateIds

        public ImportDocumentsRequest.Builder clearAutoGenerateIds()
         Whether to automatically generate IDs for the documents if absent.
        
         If set to `true`,
         [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s are
         automatically generated based on the hash of the payload, where IDs may not
         be consistent during multiple imports. In which case
         [ReconciliationMode.FULL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.FULL]
         is highly recommended to avoid duplicate contents. If unset or set to
         `false`, [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s
         have to be specified using
         [id_field][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.id_field],
         otherwise, documents without IDs fail to be imported.
        
         Only set this field when using
         [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] or
         [BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource], and
         when
         [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
         or
         [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
         is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
         
        bool auto_generate_ids = 8;
        Returns:
        This builder for chaining.
      • getIdField

        public String getIdField()
         The field in the Cloud Storage and BigQuery sources that indicates the
         unique IDs of the documents.
        
         For [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] it is the
         key of the JSON field. For instance, `my_id` for JSON `{"my_id":
         "some_uuid"}`. For
         [BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource] it is
         the column name of the BigQuery table where the unique ids are stored.
        
         The values of the JSON field or the BigQuery column are used as the
         [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s. The JSON
         field or the BigQuery column must be of string type, and the values must be
         set as valid strings conform to
         [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
         Otherwise, documents without valid IDs fail to be imported.
        
         Only set this field when using
         [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] or
         [BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource], and
         when
         [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
         or
         [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
         is `custom`. And only set this field when
         [auto_generate_ids][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.auto_generate_ids]
         is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
        
         If it is unset, a default value `_id` is used when importing from the
         allowed data sources.
         
        string id_field = 9;
        Specified by:
        getIdField in interface ImportDocumentsRequestOrBuilder
        Returns:
        The idField.
      • getIdFieldBytes

        public com.google.protobuf.ByteString getIdFieldBytes()
         The field in the Cloud Storage and BigQuery sources that indicates the
         unique IDs of the documents.
        
         For [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] it is the
         key of the JSON field. For instance, `my_id` for JSON `{"my_id":
         "some_uuid"}`. For
         [BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource] it is
         the column name of the BigQuery table where the unique ids are stored.
        
         The values of the JSON field or the BigQuery column are used as the
         [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s. The JSON
         field or the BigQuery column must be of string type, and the values must be
         set as valid strings conform to
         [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
         Otherwise, documents without valid IDs fail to be imported.
        
         Only set this field when using
         [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] or
         [BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource], and
         when
         [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
         or
         [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
         is `custom`. And only set this field when
         [auto_generate_ids][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.auto_generate_ids]
         is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
        
         If it is unset, a default value `_id` is used when importing from the
         allowed data sources.
         
        string id_field = 9;
        Specified by:
        getIdFieldBytes in interface ImportDocumentsRequestOrBuilder
        Returns:
        The bytes for idField.
      • setIdField

        public ImportDocumentsRequest.Builder setIdField​(String value)
         The field in the Cloud Storage and BigQuery sources that indicates the
         unique IDs of the documents.
        
         For [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] it is the
         key of the JSON field. For instance, `my_id` for JSON `{"my_id":
         "some_uuid"}`. For
         [BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource] it is
         the column name of the BigQuery table where the unique ids are stored.
        
         The values of the JSON field or the BigQuery column are used as the
         [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s. The JSON
         field or the BigQuery column must be of string type, and the values must be
         set as valid strings conform to
         [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
         Otherwise, documents without valid IDs fail to be imported.
        
         Only set this field when using
         [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] or
         [BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource], and
         when
         [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
         or
         [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
         is `custom`. And only set this field when
         [auto_generate_ids][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.auto_generate_ids]
         is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
        
         If it is unset, a default value `_id` is used when importing from the
         allowed data sources.
         
        string id_field = 9;
        Parameters:
        value - The idField to set.
        Returns:
        This builder for chaining.
      • clearIdField

        public ImportDocumentsRequest.Builder clearIdField()
         The field in the Cloud Storage and BigQuery sources that indicates the
         unique IDs of the documents.
        
         For [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] it is the
         key of the JSON field. For instance, `my_id` for JSON `{"my_id":
         "some_uuid"}`. For
         [BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource] it is
         the column name of the BigQuery table where the unique ids are stored.
        
         The values of the JSON field or the BigQuery column are used as the
         [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s. The JSON
         field or the BigQuery column must be of string type, and the values must be
         set as valid strings conform to
         [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
         Otherwise, documents without valid IDs fail to be imported.
        
         Only set this field when using
         [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] or
         [BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource], and
         when
         [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
         or
         [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
         is `custom`. And only set this field when
         [auto_generate_ids][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.auto_generate_ids]
         is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
        
         If it is unset, a default value `_id` is used when importing from the
         allowed data sources.
         
        string id_field = 9;
        Returns:
        This builder for chaining.
      • setIdFieldBytes

        public ImportDocumentsRequest.Builder setIdFieldBytes​(com.google.protobuf.ByteString value)
         The field in the Cloud Storage and BigQuery sources that indicates the
         unique IDs of the documents.
        
         For [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] it is the
         key of the JSON field. For instance, `my_id` for JSON `{"my_id":
         "some_uuid"}`. For
         [BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource] it is
         the column name of the BigQuery table where the unique ids are stored.
        
         The values of the JSON field or the BigQuery column are used as the
         [Document.id][google.cloud.discoveryengine.v1beta.Document.id]s. The JSON
         field or the BigQuery column must be of string type, and the values must be
         set as valid strings conform to
         [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
         Otherwise, documents without valid IDs fail to be imported.
        
         Only set this field when using
         [GcsSource][google.cloud.discoveryengine.v1beta.GcsSource] or
         [BigQuerySource][google.cloud.discoveryengine.v1beta.BigQuerySource], and
         when
         [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
         or
         [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
         is `custom`. And only set this field when
         [auto_generate_ids][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.auto_generate_ids]
         is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
        
         If it is unset, a default value `_id` is used when importing from the
         allowed data sources.
         
        string id_field = 9;
        Parameters:
        value - The bytes for idField to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ImportDocumentsRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>
      • mergeUnknownFields

        public final ImportDocumentsRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder>