Package com.google.cloud.dialogflow.v2
Interface ImportDocumentsRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ImportDocumentsRequest,ImportDocumentsRequest.Builder
@Generated
public interface ImportDocumentsRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRequired.Required.Optional.Optional.booleanWhether to import custom metadata from Google Cloud Storage.Required.com.google.protobuf.ByteStringRequired.booleanRequired.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getParent
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:
- The parent.
-
getParentBytes
com.google.protobuf.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:
- The bytes for parent.
-
hasGcsSource
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:
- Whether the gcsSource field is set.
-
getGcsSource
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:
- The gcsSource.
-
getGcsSourceOrBuilder
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]; -
hasDocumentTemplate
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:
- Whether the documentTemplate field is set.
-
getDocumentTemplate
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:
- The documentTemplate.
-
getDocumentTemplateOrBuilder
ImportDocumentTemplateOrBuilder getDocumentTemplateOrBuilder()Required. Document template used for importing all the documents.
.google.cloud.dialogflow.v2.ImportDocumentTemplate document_template = 3 [(.google.api.field_behavior) = REQUIRED]; -
getImportGcsCustomMetadata
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:
- The importGcsCustomMetadata.
-
getSourceCase
ImportDocumentsRequest.SourceCase getSourceCase()
-