- 4.58.0 (latest)
- 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 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
KnowledgeBaseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
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 |
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 | String The 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 | ByteString The 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 | String The 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 | ByteString The 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 | String The 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 | ByteString The 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 |