public final class ImportDocumentTemplate extends GeneratedMessageV3 implements ImportDocumentTemplateOrBuilder
The template used for importing documents.
Protobuf type google.cloud.dialogflow.v2beta1.ImportDocumentTemplate
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
KNOWLEDGE_TYPES_FIELD_NUMBER
public static final int KNOWLEDGE_TYPES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int METADATA_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
MIME_TYPE_FIELD_NUMBER
public static final int MIME_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static ImportDocumentTemplate getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ImportDocumentTemplate.Builder newBuilder()
newBuilder(ImportDocumentTemplate prototype)
public static ImportDocumentTemplate.Builder newBuilder(ImportDocumentTemplate prototype)
public static ImportDocumentTemplate parseDelimitedFrom(InputStream input)
public static ImportDocumentTemplate parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ImportDocumentTemplate parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ImportDocumentTemplate parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ImportDocumentTemplate parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ImportDocumentTemplate parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ImportDocumentTemplate parseFrom(CodedInputStream input)
public static ImportDocumentTemplate parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ImportDocumentTemplate parseFrom(InputStream input)
public static ImportDocumentTemplate parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ImportDocumentTemplate parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ImportDocumentTemplate parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ImportDocumentTemplate> parser()
Methods
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;
Parameter |
Name |
Description |
key |
String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public ImportDocumentTemplate getDefaultInstanceForType()
getKnowledgeTypes(int index)
public Document.KnowledgeType getKnowledgeTypes(int index)
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
getKnowledgeTypesCount()
public int getKnowledgeTypesCount()
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The count of knowledgeTypes.
|
getKnowledgeTypesList()
public List<Document.KnowledgeType> getKnowledgeTypesList()
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
getKnowledgeTypesValue(int index)
public int getKnowledgeTypesValue(int index)
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
int |
The enum numeric value on the wire of knowledgeTypes at the given index.
|
getKnowledgeTypesValueList()
public List<Integer> getKnowledgeTypesValueList()
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
List<Integer> |
A list containing the enum numeric values on the wire for knowledgeTypes.
|
public Map<String,String> getMetadata()
public int getMetadataCount()
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;
Returns |
Type |
Description |
int |
|
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;
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;
Returns |
Type |
Description |
String |
|
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;
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
getMimeType()
public String getMimeType()
Required. The MIME type of the document.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The mimeType.
|
getMimeTypeBytes()
public ByteString getMimeTypeBytes()
Required. The MIME type of the document.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for mimeType.
|
getParserForType()
public Parser<ImportDocumentTemplate> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ImportDocumentTemplate.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ImportDocumentTemplate.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public ImportDocumentTemplate.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides