public static final class ImportDocumentTemplate.Builder extends GeneratedMessageV3.Builder<ImportDocumentTemplate.Builder> implements ImportDocumentTemplateOrBuilder
The template used for importing documents.Protobuf type
google.cloud.dialogflow.v2.ImportDocumentTemplate
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<ImportDocumentTemplate.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<ImportDocumentTemplate.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ImportDocumentTemplate.Builder>
public ImportDocumentTemplate.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ImportDocumentTemplate.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ImportDocumentTemplate.Builder>
public ImportDocumentTemplate getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ImportDocumentTemplate build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ImportDocumentTemplate buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ImportDocumentTemplate.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ImportDocumentTemplate.Builder>
public ImportDocumentTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ImportDocumentTemplate.Builder>
public ImportDocumentTemplate.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ImportDocumentTemplate.Builder>
public ImportDocumentTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ImportDocumentTemplate.Builder>
public ImportDocumentTemplate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ImportDocumentTemplate.Builder>
public ImportDocumentTemplate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ImportDocumentTemplate.Builder>
public ImportDocumentTemplate.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ImportDocumentTemplate.Builder>
public ImportDocumentTemplate.Builder mergeFrom(ImportDocumentTemplate other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ImportDocumentTemplate.Builder>
public ImportDocumentTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ImportDocumentTemplate.Builder>
IOException
public String getMimeType()
Required. The MIME type of the document.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
getMimeType
in interface ImportDocumentTemplateOrBuilder
public ByteString getMimeTypeBytes()
Required. The MIME type of the document.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
getMimeTypeBytes
in interface ImportDocumentTemplateOrBuilder
public ImportDocumentTemplate.Builder setMimeType(String value)
Required. The MIME type of the document.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The mimeType to set.public ImportDocumentTemplate.Builder clearMimeType()
Required. The MIME type of the document.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
public ImportDocumentTemplate.Builder setMimeTypeBytes(ByteString value)
Required. The MIME type of the document.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for mimeType to set.public List<Document.KnowledgeType> getKnowledgeTypesList()
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
getKnowledgeTypesList
in interface ImportDocumentTemplateOrBuilder
public int getKnowledgeTypesCount()
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
getKnowledgeTypesCount
in interface ImportDocumentTemplateOrBuilder
public Document.KnowledgeType getKnowledgeTypes(int index)
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
getKnowledgeTypes
in interface ImportDocumentTemplateOrBuilder
index
- The index of the element to return.public ImportDocumentTemplate.Builder setKnowledgeTypes(int index, Document.KnowledgeType value)
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
index
- The index to set the value at.value
- The knowledgeTypes to set.public ImportDocumentTemplate.Builder addKnowledgeTypes(Document.KnowledgeType value)
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
value
- The knowledgeTypes to add.public ImportDocumentTemplate.Builder addAllKnowledgeTypes(Iterable<? extends Document.KnowledgeType> values)
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
values
- The knowledgeTypes to add.public ImportDocumentTemplate.Builder clearKnowledgeTypes()
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
public List<Integer> getKnowledgeTypesValueList()
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
getKnowledgeTypesValueList
in interface ImportDocumentTemplateOrBuilder
public int getKnowledgeTypesValue(int index)
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
getKnowledgeTypesValue
in interface ImportDocumentTemplateOrBuilder
index
- The index of the value to return.public ImportDocumentTemplate.Builder setKnowledgeTypesValue(int index, int value)
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
index
- The index to set the value at.value
- The enum numeric value on the wire for knowledgeTypes to set.public ImportDocumentTemplate.Builder addKnowledgeTypesValue(int value)
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
value
- The enum numeric value on the wire for knowledgeTypes to add.public ImportDocumentTemplate.Builder addAllKnowledgeTypesValue(Iterable<Integer> values)
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
values
- The enum numeric values on the wire for knowledgeTypes to add.public int getMetadataCount()
ImportDocumentTemplateOrBuilder
Metadata for the document. The metadata supports arbitrary key-value pairs. Suggested use cases include storing a document's title, an external URL distinct from the document's content_uri, etc. The max size of a `key` or a `value` of the metadata is 1024 bytes.
map<string, string> metadata = 3;
getMetadataCount
in interface ImportDocumentTemplateOrBuilder
public boolean containsMetadata(String key)
Metadata for the document. The metadata supports arbitrary key-value pairs. Suggested use cases include storing a document's title, an external URL distinct from the document's content_uri, etc. The max size of a `key` or a `value` of the metadata is 1024 bytes.
map<string, string> metadata = 3;
containsMetadata
in interface ImportDocumentTemplateOrBuilder
@Deprecated public Map<String,String> getMetadata()
getMetadataMap()
instead.getMetadata
in interface ImportDocumentTemplateOrBuilder
public Map<String,String> getMetadataMap()
Metadata for the document. The metadata supports arbitrary key-value pairs. Suggested use cases include storing a document's title, an external URL distinct from the document's content_uri, etc. The max size of a `key` or a `value` of the metadata is 1024 bytes.
map<string, string> metadata = 3;
getMetadataMap
in interface ImportDocumentTemplateOrBuilder
public String getMetadataOrDefault(String key, String defaultValue)
Metadata for the document. The metadata supports arbitrary key-value pairs. Suggested use cases include storing a document's title, an external URL distinct from the document's content_uri, etc. The max size of a `key` or a `value` of the metadata is 1024 bytes.
map<string, string> metadata = 3;
getMetadataOrDefault
in interface ImportDocumentTemplateOrBuilder
public String getMetadataOrThrow(String key)
Metadata for the document. The metadata supports arbitrary key-value pairs. Suggested use cases include storing a document's title, an external URL distinct from the document's content_uri, etc. The max size of a `key` or a `value` of the metadata is 1024 bytes.
map<string, string> metadata = 3;
getMetadataOrThrow
in interface ImportDocumentTemplateOrBuilder
public ImportDocumentTemplate.Builder clearMetadata()
public ImportDocumentTemplate.Builder removeMetadata(String key)
Metadata for the document. The metadata supports arbitrary key-value pairs. Suggested use cases include storing a document's title, an external URL distinct from the document's content_uri, etc. The max size of a `key` or a `value` of the metadata is 1024 bytes.
map<string, string> metadata = 3;
@Deprecated public Map<String,String> getMutableMetadata()
public ImportDocumentTemplate.Builder putMetadata(String key, String value)
Metadata for the document. The metadata supports arbitrary key-value pairs. Suggested use cases include storing a document's title, an external URL distinct from the document's content_uri, etc. The max size of a `key` or a `value` of the metadata is 1024 bytes.
map<string, string> metadata = 3;
public ImportDocumentTemplate.Builder putAllMetadata(Map<String,String> values)
Metadata for the document. The metadata supports arbitrary key-value pairs. Suggested use cases include storing a document's title, an external URL distinct from the document's content_uri, etc. The max size of a `key` or a `value` of the metadata is 1024 bytes.
map<string, string> metadata = 3;
public final ImportDocumentTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ImportDocumentTemplate.Builder>
public final ImportDocumentTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ImportDocumentTemplate.Builder>
Copyright © 2022 Google LLC. All rights reserved.