public static final class KnowledgeBase.Builder extends GeneratedMessageV3.Builder<KnowledgeBase.Builder> implements KnowledgeBaseOrBuilder A knowledge base represents a collection of knowledge documents that you
provide to Dialogflow. Your knowledge documents contain information that may
be useful during conversations with end-users. Some Dialogflow features use
knowledge bases when looking for a response to an end-user input.
For more information, see the knowledge base
guide.
Note: The projects.agent.knowledgeBases resource is deprecated;
only use projects.knowledgeBases.
Protobuf type google.cloud.dialogflow.v2beta1.KnowledgeBase
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > KnowledgeBase.BuilderImplements
KnowledgeBaseOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public KnowledgeBase.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| KnowledgeBase.Builder |
build()
public KnowledgeBase build()| Type | Description |
| KnowledgeBase |
buildPartial()
public KnowledgeBase buildPartial()| Type | Description |
| KnowledgeBase |
clear()
public KnowledgeBase.Builder clear()| Type | Description |
| KnowledgeBase.Builder |
clearDisplayName()
public KnowledgeBase.Builder clearDisplayName()Required. The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| KnowledgeBase.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public KnowledgeBase.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| KnowledgeBase.Builder |
clearLanguageCode()
public KnowledgeBase.Builder clearLanguageCode()Language which represents the KnowledgeBase. When the KnowledgeBase is created/updated, this is populated for all non en-us languages. If not populated, the default language en-us applies.
string language_code = 4;
| Type | Description |
| KnowledgeBase.Builder | This builder for chaining. |
clearName()
public KnowledgeBase.Builder clearName() The knowledge base resource name.
The name must be empty when creating a knowledge base.
Format: projects/<Project ID>/locations/<Location
ID>/knowledgeBases/<Knowledge Base ID>.
string name = 1;
| Type | Description |
| KnowledgeBase.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public KnowledgeBase.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| KnowledgeBase.Builder |
clone()
public KnowledgeBase.Builder clone()| Type | Description |
| KnowledgeBase.Builder |
getDefaultInstanceForType()
public KnowledgeBase getDefaultInstanceForType()| Type | Description |
| KnowledgeBase |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getDisplayName()
public String getDisplayName()Required. The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| String | The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()Required. The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| ByteString | The bytes for displayName. |
getLanguageCode()
public String getLanguageCode()Language which represents the KnowledgeBase. When the KnowledgeBase is created/updated, this is populated for all non en-us languages. If not populated, the default language en-us applies.
string language_code = 4;
| Type | Description |
| String | The languageCode. |
getLanguageCodeBytes()
public ByteString getLanguageCodeBytes()Language which represents the KnowledgeBase. When the KnowledgeBase is created/updated, this is populated for all non en-us languages. If not populated, the default language en-us applies.
string language_code = 4;
| Type | Description |
| ByteString | The bytes for languageCode. |
getName()
public String getName() The knowledge base resource name.
The name must be empty when creating a knowledge base.
Format: projects/<Project ID>/locations/<Location
ID>/knowledgeBases/<Knowledge Base ID>.
string name = 1;
| Type | Description |
| String | The name. |
getNameBytes()
public ByteString getNameBytes() The knowledge base resource name.
The name must be empty when creating a knowledge base.
Format: projects/<Project ID>/locations/<Location
ID>/knowledgeBases/<Knowledge Base ID>.
string name = 1;
| Type | Description |
| ByteString | The bytes for name. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeFrom(KnowledgeBase other)
public KnowledgeBase.Builder mergeFrom(KnowledgeBase other)| Name | Description |
| other | KnowledgeBase |
| Type | Description |
| KnowledgeBase.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public KnowledgeBase.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| KnowledgeBase.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public KnowledgeBase.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| KnowledgeBase.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final KnowledgeBase.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| KnowledgeBase.Builder |
setDisplayName(String value)
public KnowledgeBase.Builder setDisplayName(String value)Required. The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| value | StringThe displayName to set. |
| Type | Description |
| KnowledgeBase.Builder | This builder for chaining. |
setDisplayNameBytes(ByteString value)
public KnowledgeBase.Builder setDisplayNameBytes(ByteString value)Required. The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| value | ByteStringThe bytes for displayName to set. |
| Type | Description |
| KnowledgeBase.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public KnowledgeBase.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| KnowledgeBase.Builder |
setLanguageCode(String value)
public KnowledgeBase.Builder setLanguageCode(String value)Language which represents the KnowledgeBase. When the KnowledgeBase is created/updated, this is populated for all non en-us languages. If not populated, the default language en-us applies.
string language_code = 4;
| Name | Description |
| value | StringThe languageCode to set. |
| Type | Description |
| KnowledgeBase.Builder | This builder for chaining. |
setLanguageCodeBytes(ByteString value)
public KnowledgeBase.Builder setLanguageCodeBytes(ByteString value)Language which represents the KnowledgeBase. When the KnowledgeBase is created/updated, this is populated for all non en-us languages. If not populated, the default language en-us applies.
string language_code = 4;
| Name | Description |
| value | ByteStringThe bytes for languageCode to set. |
| Type | Description |
| KnowledgeBase.Builder | This builder for chaining. |
setName(String value)
public KnowledgeBase.Builder setName(String value) The knowledge base resource name.
The name must be empty when creating a knowledge base.
Format: projects/<Project ID>/locations/<Location
ID>/knowledgeBases/<Knowledge Base ID>.
string name = 1;
| Name | Description |
| value | StringThe name to set. |
| Type | Description |
| KnowledgeBase.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public KnowledgeBase.Builder setNameBytes(ByteString value) The knowledge base resource name.
The name must be empty when creating a knowledge base.
Format: projects/<Project ID>/locations/<Location
ID>/knowledgeBases/<Knowledge Base ID>.
string name = 1;
| Name | Description |
| value | ByteStringThe bytes for name to set. |
| Type | Description |
| KnowledgeBase.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public KnowledgeBase.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| KnowledgeBase.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final KnowledgeBase.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| KnowledgeBase.Builder |