Class ImportDocumentsRequest.Builder (4.49.0)

public static final class ImportDocumentsRequest.Builder extends GeneratedMessageV3.Builder<ImportDocumentsRequest.Builder> implements ImportDocumentsRequestOrBuilder

Request message for Documents.ImportDocuments.

Protobuf type google.cloud.dialogflow.v2.ImportDocumentsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportDocumentsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportDocumentsRequest.Builder
Overrides

build()

public ImportDocumentsRequest build()
Returns
Type Description
ImportDocumentsRequest

buildPartial()

public ImportDocumentsRequest buildPartial()
Returns
Type Description
ImportDocumentsRequest

clear()

public ImportDocumentsRequest.Builder clear()
Returns
Type Description
ImportDocumentsRequest.Builder
Overrides

clearDocumentTemplate()

public ImportDocumentsRequest.Builder clearDocumentTemplate()

Required. Document template used for importing all the documents.

.google.cloud.dialogflow.v2.ImportDocumentTemplate document_template = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportDocumentsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public ImportDocumentsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ImportDocumentsRequest.Builder
Overrides

clearGcsSource()

public ImportDocumentsRequest.Builder clearGcsSource()

Optional. The Google Cloud Storage location for the documents. The path can include a wildcard.

These URIs may have the forms gs://<bucket-name>/<object-name>. gs://<bucket-name>/<object-path>/*.<extension>.

.google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportDocumentsRequest.Builder

clearImportGcsCustomMetadata()

public ImportDocumentsRequest.Builder clearImportGcsCustomMetadata()

Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.

bool import_gcs_custom_metadata = 4;

Returns
Type Description
ImportDocumentsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportDocumentsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ImportDocumentsRequest.Builder
Overrides

clearParent()

public ImportDocumentsRequest.Builder clearParent()

Required. The knowledge base to import documents into. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ImportDocumentsRequest.Builder

This builder for chaining.

clearSource()

public ImportDocumentsRequest.Builder clearSource()
Returns
Type Description
ImportDocumentsRequest.Builder

clone()

public ImportDocumentsRequest.Builder clone()
Returns
Type Description
ImportDocumentsRequest.Builder
Overrides

getDefaultInstanceForType()

public ImportDocumentsRequest getDefaultInstanceForType()
Returns
Type Description
ImportDocumentsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDocumentTemplate()

public ImportDocumentTemplate getDocumentTemplate()

Required. Document template used for importing all the documents.

.google.cloud.dialogflow.v2.ImportDocumentTemplate document_template = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportDocumentTemplate

The documentTemplate.

getDocumentTemplateBuilder()

public ImportDocumentTemplate.Builder getDocumentTemplateBuilder()

Required. Document template used for importing all the documents.

.google.cloud.dialogflow.v2.ImportDocumentTemplate document_template = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportDocumentTemplate.Builder

getDocumentTemplateOrBuilder()

public ImportDocumentTemplateOrBuilder getDocumentTemplateOrBuilder()

Required. Document template used for importing all the documents.

.google.cloud.dialogflow.v2.ImportDocumentTemplate document_template = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportDocumentTemplateOrBuilder

getGcsSource()

public GcsSources getGcsSource()

Optional. The Google Cloud Storage location for the documents. The path can include a wildcard.

These URIs may have the forms gs://<bucket-name>/<object-name>. gs://<bucket-name>/<object-path>/*.<extension>.

.google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GcsSources

The gcsSource.

getGcsSourceBuilder()

public GcsSources.Builder getGcsSourceBuilder()

Optional. The Google Cloud Storage location for the documents. The path can include a wildcard.

These URIs may have the forms gs://<bucket-name>/<object-name>. gs://<bucket-name>/<object-path>/*.<extension>.

.google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GcsSources.Builder

getGcsSourceOrBuilder()

public GcsSourcesOrBuilder getGcsSourceOrBuilder()

Optional. The Google Cloud Storage location for the documents. The path can include a wildcard.

These URIs may have the forms gs://<bucket-name>/<object-name>. gs://<bucket-name>/<object-path>/*.<extension>.

.google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GcsSourcesOrBuilder

getImportGcsCustomMetadata()

public boolean getImportGcsCustomMetadata()

Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.

bool import_gcs_custom_metadata = 4;

Returns
Type Description
boolean

The importGcsCustomMetadata.

getParent()

public String getParent()

Required. The knowledge base to import documents into. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The knowledge base to import documents into. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getSourceCase()

public ImportDocumentsRequest.SourceCase getSourceCase()
Returns
Type Description
ImportDocumentsRequest.SourceCase

hasDocumentTemplate()

public boolean hasDocumentTemplate()

Required. Document template used for importing all the documents.

.google.cloud.dialogflow.v2.ImportDocumentTemplate document_template = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the documentTemplate field is set.

hasGcsSource()

public boolean hasGcsSource()

Optional. The Google Cloud Storage location for the documents. The path can include a wildcard.

These URIs may have the forms gs://<bucket-name>/<object-name>. gs://<bucket-name>/<object-path>/*.<extension>.

.google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the gcsSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDocumentTemplate(ImportDocumentTemplate value)

public ImportDocumentsRequest.Builder mergeDocumentTemplate(ImportDocumentTemplate value)

Required. Document template used for importing all the documents.

.google.cloud.dialogflow.v2.ImportDocumentTemplate document_template = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ImportDocumentTemplate
Returns
Type Description
ImportDocumentsRequest.Builder

mergeFrom(ImportDocumentsRequest other)

public ImportDocumentsRequest.Builder mergeFrom(ImportDocumentsRequest other)
Parameter
Name Description
other ImportDocumentsRequest
Returns
Type Description
ImportDocumentsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportDocumentsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportDocumentsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ImportDocumentsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ImportDocumentsRequest.Builder
Overrides

mergeGcsSource(GcsSources value)

public ImportDocumentsRequest.Builder mergeGcsSource(GcsSources value)

Optional. The Google Cloud Storage location for the documents. The path can include a wildcard.

These URIs may have the forms gs://<bucket-name>/<object-name>. gs://<bucket-name>/<object-path>/*.<extension>.

.google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value GcsSources
Returns
Type Description
ImportDocumentsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportDocumentsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportDocumentsRequest.Builder
Overrides

setDocumentTemplate(ImportDocumentTemplate value)

public ImportDocumentsRequest.Builder setDocumentTemplate(ImportDocumentTemplate value)

Required. Document template used for importing all the documents.

.google.cloud.dialogflow.v2.ImportDocumentTemplate document_template = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ImportDocumentTemplate
Returns
Type Description
ImportDocumentsRequest.Builder

setDocumentTemplate(ImportDocumentTemplate.Builder builderForValue)

public ImportDocumentsRequest.Builder setDocumentTemplate(ImportDocumentTemplate.Builder builderForValue)

Required. Document template used for importing all the documents.

.google.cloud.dialogflow.v2.ImportDocumentTemplate document_template = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ImportDocumentTemplate.Builder
Returns
Type Description
ImportDocumentsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ImportDocumentsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportDocumentsRequest.Builder
Overrides

setGcsSource(GcsSources value)

public ImportDocumentsRequest.Builder setGcsSource(GcsSources value)

Optional. The Google Cloud Storage location for the documents. The path can include a wildcard.

These URIs may have the forms gs://<bucket-name>/<object-name>. gs://<bucket-name>/<object-path>/*.<extension>.

.google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value GcsSources
Returns
Type Description
ImportDocumentsRequest.Builder

setGcsSource(GcsSources.Builder builderForValue)

public ImportDocumentsRequest.Builder setGcsSource(GcsSources.Builder builderForValue)

Optional. The Google Cloud Storage location for the documents. The path can include a wildcard.

These URIs may have the forms gs://<bucket-name>/<object-name>. gs://<bucket-name>/<object-path>/*.<extension>.

.google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue GcsSources.Builder
Returns
Type Description
ImportDocumentsRequest.Builder

setImportGcsCustomMetadata(boolean value)

public ImportDocumentsRequest.Builder setImportGcsCustomMetadata(boolean value)

Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.

bool import_gcs_custom_metadata = 4;

Parameter
Name Description
value boolean

The importGcsCustomMetadata to set.

Returns
Type Description
ImportDocumentsRequest.Builder

This builder for chaining.

setParent(String value)

public ImportDocumentsRequest.Builder setParent(String value)

Required. The knowledge base to import documents into. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ImportDocumentsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportDocumentsRequest.Builder setParentBytes(ByteString value)

Required. The knowledge base to import documents into. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ImportDocumentsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImportDocumentsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ImportDocumentsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportDocumentsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportDocumentsRequest.Builder
Overrides