- 4.59.0 (latest)
- 4.58.0
- 4.57.0
- 4.55.0
- 4.54.0
- 4.53.0
- 4.52.0
- 4.51.0
- 4.50.0
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.45.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.33.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.21.0
- 4.20.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.1
- 4.8.6
- 4.7.5
- 4.6.0
- 4.5.11
- 4.4.0
- 4.3.1
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ImportDocumentTemplate.BuilderImplements
ImportDocumentTemplateOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllKnowledgeTypes(Iterable<? extends Document.KnowledgeType> values)
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];
Name | Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2.Document.KnowledgeType> The knowledgeTypes to add. |
Type | Description |
ImportDocumentTemplate.Builder |
This builder for chaining. |
addAllKnowledgeTypesValue(Iterable<Integer> values)
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];
Name | Description |
values |
Iterable<Integer> The enum numeric values on the wire for knowledgeTypes to add. |
Type | Description |
ImportDocumentTemplate.Builder |
This builder for chaining. |
addKnowledgeTypes(Document.KnowledgeType value)
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];
Name | Description |
value |
Document.KnowledgeType The knowledgeTypes to add. |
Type | Description |
ImportDocumentTemplate.Builder |
This builder for chaining. |
addKnowledgeTypesValue(int value)
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];
Name | Description |
value |
int The enum numeric value on the wire for knowledgeTypes to add. |
Type | Description |
ImportDocumentTemplate.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImportDocumentTemplate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
ImportDocumentTemplate.Builder |
build()
public ImportDocumentTemplate build()
Type | Description |
ImportDocumentTemplate |
buildPartial()
public ImportDocumentTemplate buildPartial()
Type | Description |
ImportDocumentTemplate |
clear()
public ImportDocumentTemplate.Builder clear()
Type | Description |
ImportDocumentTemplate.Builder |
clearField(Descriptors.FieldDescriptor field)
public ImportDocumentTemplate.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field |
FieldDescriptor |
Type | Description |
ImportDocumentTemplate.Builder |
clearKnowledgeTypes()
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];
Type | Description |
ImportDocumentTemplate.Builder |
This builder for chaining. |
clearMetadata()
public ImportDocumentTemplate.Builder clearMetadata()
Type | Description |
ImportDocumentTemplate.Builder |
clearMimeType()
public ImportDocumentTemplate.Builder clearMimeType()
Required. The MIME type of the document.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ImportDocumentTemplate.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ImportDocumentTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof |
OneofDescriptor |
Type | Description |
ImportDocumentTemplate.Builder |
clone()
public ImportDocumentTemplate.Builder clone()
Type | Description |
ImportDocumentTemplate.Builder |
containsMetadata(String key)
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;
Name | Description |
key |
String |
Type | Description |
boolean |
getDefaultInstanceForType()
public ImportDocumentTemplate getDefaultInstanceForType()
Type | Description |
ImportDocumentTemplate |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getKnowledgeTypes(int index)
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];
Name | Description |
index |
int The index of the element to return. |
Type | Description |
Document.KnowledgeType |
The knowledgeTypes at the given index. |
getKnowledgeTypesCount()
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];
Type | Description |
int |
The count of knowledgeTypes. |
getKnowledgeTypesList()
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];
Type | Description |
List<KnowledgeType> |
A list containing the knowledgeTypes. |
getKnowledgeTypesValue(int index)
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];
Name | Description |
index |
int The index of the value to return. |
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.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for knowledgeTypes. |
getMetadata()
public Map<String,String> getMetadata()
Use #getMetadataMap() instead.
Type | Description |
Map<String,String> |
getMetadataCount()
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;
Type | Description |
int |
getMetadataMap()
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;
Type | Description |
Map<String,String> |
getMetadataOrDefault(String key, String defaultValue)
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;
Name | Description |
key |
String |
defaultValue |
String |
Type | Description |
String |
getMetadataOrThrow(String key)
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;
Name | Description |
key |
String |
Type | Description |
String |
getMimeType()
public String getMimeType()
Required. The MIME type of the document.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
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];
Type | Description |
ByteString |
The bytes for mimeType. |
getMutableMetadata()
public Map<String,String> getMutableMetadata()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number |
int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number |
int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ImportDocumentTemplate other)
public ImportDocumentTemplate.Builder mergeFrom(ImportDocumentTemplate other)
Name | Description |
other |
ImportDocumentTemplate |
Type | Description |
ImportDocumentTemplate.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ImportDocumentTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
ImportDocumentTemplate.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ImportDocumentTemplate.Builder mergeFrom(Message other)
Name | Description |
other |
Message |
Type | Description |
ImportDocumentTemplate.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImportDocumentTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
ImportDocumentTemplate.Builder |
putAllMetadata(Map<String,String> values)
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;
Name | Description |
values |
Map<String,String> |
Type | Description |
ImportDocumentTemplate.Builder |
putMetadata(String key, String value)
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;
Name | Description |
key |
String |
value |
String |
Type | Description |
ImportDocumentTemplate.Builder |
removeMetadata(String key)
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;
Name | Description |
key |
String |
Type | Description |
ImportDocumentTemplate.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ImportDocumentTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
ImportDocumentTemplate.Builder |
setKnowledgeTypes(int index, Document.KnowledgeType value)
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];
Name | Description |
index |
int The index to set the value at. |
value |
Document.KnowledgeType The knowledgeTypes to set. |
Type | Description |
ImportDocumentTemplate.Builder |
This builder for chaining. |
setKnowledgeTypesValue(int index, int value)
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];
Name | Description |
index |
int The index to set the value at. |
value |
int The enum numeric value on the wire for knowledgeTypes to set. |
Type | Description |
ImportDocumentTemplate.Builder |
This builder for chaining. |
setMimeType(String value)
public ImportDocumentTemplate.Builder setMimeType(String value)
Required. The MIME type of the document.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value |
String The mimeType to set. |
Type | Description |
ImportDocumentTemplate.Builder |
This builder for chaining. |
setMimeTypeBytes(ByteString value)
public ImportDocumentTemplate.Builder setMimeTypeBytes(ByteString value)
Required. The MIME type of the document.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value |
ByteString The bytes for mimeType to set. |
Type | Description |
ImportDocumentTemplate.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImportDocumentTemplate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Type | Description |
ImportDocumentTemplate.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ImportDocumentTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
ImportDocumentTemplate.Builder |