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](https://cloud.google.com/dialogflow/docs/how/knowledge-bases). Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.Protobuf type
google.cloud.dialogflow.v2beta1.KnowledgeBase
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<KnowledgeBase.Builder>
public KnowledgeBase.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<KnowledgeBase.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<KnowledgeBase.Builder>
public KnowledgeBase getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public KnowledgeBase build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public KnowledgeBase buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public KnowledgeBase.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<KnowledgeBase.Builder>
public KnowledgeBase.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<KnowledgeBase.Builder>
public KnowledgeBase.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<KnowledgeBase.Builder>
public KnowledgeBase.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<KnowledgeBase.Builder>
public KnowledgeBase.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<KnowledgeBase.Builder>
public KnowledgeBase.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<KnowledgeBase.Builder>
public KnowledgeBase.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<KnowledgeBase.Builder>
public KnowledgeBase.Builder mergeFrom(KnowledgeBase other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<KnowledgeBase.Builder>
public KnowledgeBase.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<KnowledgeBase.Builder>
IOException
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;
getName
in interface KnowledgeBaseOrBuilder
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;
getNameBytes
in interface KnowledgeBaseOrBuilder
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;
value
- The name to set.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;
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;
value
- The bytes for name to set.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];
getDisplayName
in interface KnowledgeBaseOrBuilder
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];
getDisplayNameBytes
in interface KnowledgeBaseOrBuilder
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];
value
- The displayName to set.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];
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];
value
- The bytes for displayName to set.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;
getLanguageCode
in interface KnowledgeBaseOrBuilder
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;
getLanguageCodeBytes
in interface KnowledgeBaseOrBuilder
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;
value
- The languageCode to set.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;
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;
value
- The bytes for languageCode to set.public final KnowledgeBase.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<KnowledgeBase.Builder>
public final KnowledgeBase.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<KnowledgeBase.Builder>
Copyright © 2022 Google LLC. All rights reserved.