Class ImportDocumentsRequest.Builder (4.7.5)

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

Request message for Documents.ImportDocuments.

Protobuf type google.cloud.dialogflow.v2beta1.ImportDocumentsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportDocumentsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportDocumentsRequest.Builder
Overrides

build()

public ImportDocumentsRequest build()
Returns
TypeDescription
ImportDocumentsRequest

buildPartial()

public ImportDocumentsRequest buildPartial()
Returns
TypeDescription
ImportDocumentsRequest

clear()

public ImportDocumentsRequest.Builder clear()
Returns
TypeDescription
ImportDocumentsRequest.Builder
Overrides

clearDocumentTemplate()

public ImportDocumentsRequest.Builder clearDocumentTemplate()

Required. Document template used for importing all the documents.

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

Returns
TypeDescription
ImportDocumentsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public ImportDocumentsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImportDocumentsRequest.Builder
Overrides

clearGcsSource()

public ImportDocumentsRequest.Builder clearGcsSource()

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.v2beta1.GcsSources gcs_source = 2;

Returns
TypeDescription
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
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportDocumentsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

clearSource()

public ImportDocumentsRequest.Builder clearSource()
Returns
TypeDescription
ImportDocumentsRequest.Builder

clone()

public ImportDocumentsRequest.Builder clone()
Returns
TypeDescription
ImportDocumentsRequest.Builder
Overrides

getDefaultInstanceForType()

public ImportDocumentsRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportDocumentsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDocumentTemplate()

public ImportDocumentTemplate getDocumentTemplate()

Required. Document template used for importing all the documents.

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

Returns
TypeDescription
ImportDocumentTemplate

The documentTemplate.

getDocumentTemplateBuilder()

public ImportDocumentTemplate.Builder getDocumentTemplateBuilder()

Required. Document template used for importing all the documents.

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

Returns
TypeDescription
ImportDocumentTemplate.Builder

getDocumentTemplateOrBuilder()

public ImportDocumentTemplateOrBuilder getDocumentTemplateOrBuilder()

Required. Document template used for importing all the documents.

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

Returns
TypeDescription
ImportDocumentTemplateOrBuilder

getGcsSource()

public GcsSources getGcsSource()

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.v2beta1.GcsSources gcs_source = 2;

Returns
TypeDescription
GcsSources

The gcsSource.

getGcsSourceBuilder()

public GcsSources.Builder getGcsSourceBuilder()

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.v2beta1.GcsSources gcs_source = 2;

Returns
TypeDescription
GcsSources.Builder

getGcsSourceOrBuilder()

public GcsSourcesOrBuilder getGcsSourceOrBuilder()

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.v2beta1.GcsSources gcs_source = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

getSourceCase()

public ImportDocumentsRequest.SourceCase getSourceCase()
Returns
TypeDescription
ImportDocumentsRequest.SourceCase

hasDocumentTemplate()

public boolean hasDocumentTemplate()

Required. Document template used for importing all the documents.

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

Returns
TypeDescription
boolean

Whether the documentTemplate field is set.

hasGcsSource()

public boolean hasGcsSource()

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.v2beta1.GcsSources gcs_source = 2;

Returns
TypeDescription
boolean

Whether the gcsSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDocumentTemplate(ImportDocumentTemplate value)

public ImportDocumentsRequest.Builder mergeDocumentTemplate(ImportDocumentTemplate value)

Required. Document template used for importing all the documents.

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

Parameter
NameDescription
valueImportDocumentTemplate
Returns
TypeDescription
ImportDocumentsRequest.Builder

mergeFrom(ImportDocumentsRequest other)

public ImportDocumentsRequest.Builder mergeFrom(ImportDocumentsRequest other)
Parameter
NameDescription
otherImportDocumentsRequest
Returns
TypeDescription
ImportDocumentsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportDocumentsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportDocumentsRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImportDocumentsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImportDocumentsRequest.Builder
Overrides

mergeGcsSource(GcsSources value)

public ImportDocumentsRequest.Builder mergeGcsSource(GcsSources value)

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.v2beta1.GcsSources gcs_source = 2;

Parameter
NameDescription
valueGcsSources
Returns
TypeDescription
ImportDocumentsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportDocumentsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportDocumentsRequest.Builder
Overrides

setDocumentTemplate(ImportDocumentTemplate value)

public ImportDocumentsRequest.Builder setDocumentTemplate(ImportDocumentTemplate value)

Required. Document template used for importing all the documents.

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

Parameter
NameDescription
valueImportDocumentTemplate
Returns
TypeDescription
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.v2beta1.ImportDocumentTemplate document_template = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueImportDocumentTemplate.Builder
Returns
TypeDescription
ImportDocumentsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ImportDocumentsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportDocumentsRequest.Builder
Overrides

setGcsSource(GcsSources value)

public ImportDocumentsRequest.Builder setGcsSource(GcsSources value)

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.v2beta1.GcsSources gcs_source = 2;

Parameter
NameDescription
valueGcsSources
Returns
TypeDescription
ImportDocumentsRequest.Builder

setGcsSource(GcsSources.Builder builderForValue)

public ImportDocumentsRequest.Builder setGcsSource(GcsSources.Builder builderForValue)

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.v2beta1.GcsSources gcs_source = 2;

Parameter
NameDescription
builderForValueGcsSources.Builder
Returns
TypeDescription
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
NameDescription
valueboolean

The importGcsCustomMetadata to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImportDocumentsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportDocumentsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportDocumentsRequest.Builder
Overrides