Class GenerativeSettings.KnowledgeConnectorSettings
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings
-
- All Implemented Interfaces:
GenerativeSettings.KnowledgeConnectorSettingsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- GenerativeSettings
public static final class GenerativeSettings.KnowledgeConnectorSettings extends com.google.protobuf.GeneratedMessageV3 implements GenerativeSettings.KnowledgeConnectorSettingsOrBuilder
Settings for knowledge connector. These parameters are used for LLM prompt like "You are <agent>. You are a helpful and verbose <agent_identity> at <business>, <business_description>. Your task is to help humans on <agent_scope>".
Protobuf typegoogle.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerativeSettings.KnowledgeConnectorSettings.BuilderSettings for knowledge connector.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAGENT_FIELD_NUMBERstatic intAGENT_IDENTITY_FIELD_NUMBERstatic intAGENT_SCOPE_FIELD_NUMBERstatic intBUSINESS_DESCRIPTION_FIELD_NUMBERstatic intBUSINESS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAgent()Name of the virtual agent.com.google.protobuf.ByteStringgetAgentBytes()Name of the virtual agent.StringgetAgentIdentity()Identity of the agent, e.g.com.google.protobuf.ByteStringgetAgentIdentityBytes()Identity of the agent, e.g.StringgetAgentScope()Agent scope, e.g.com.google.protobuf.ByteStringgetAgentScopeBytes()Agent scope, e.g.StringgetBusiness()Name of the company, organization or other entity that the agent represents.com.google.protobuf.ByteStringgetBusinessBytes()Name of the company, organization or other entity that the agent represents.StringgetBusinessDescription()Company description, used for LLM prompt, e.g.com.google.protobuf.ByteStringgetBusinessDescriptionBytes()Company description, used for LLM prompt, e.g.static GenerativeSettings.KnowledgeConnectorSettingsgetDefaultInstance()GenerativeSettings.KnowledgeConnectorSettingsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<GenerativeSettings.KnowledgeConnectorSettings>getParserForType()intgetSerializedSize()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static GenerativeSettings.KnowledgeConnectorSettings.BuildernewBuilder()static GenerativeSettings.KnowledgeConnectorSettings.BuildernewBuilder(GenerativeSettings.KnowledgeConnectorSettings prototype)GenerativeSettings.KnowledgeConnectorSettings.BuildernewBuilderForType()protected GenerativeSettings.KnowledgeConnectorSettings.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static GenerativeSettings.KnowledgeConnectorSettingsparseDelimitedFrom(InputStream input)static GenerativeSettings.KnowledgeConnectorSettingsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GenerativeSettings.KnowledgeConnectorSettingsparseFrom(byte[] data)static GenerativeSettings.KnowledgeConnectorSettingsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GenerativeSettings.KnowledgeConnectorSettingsparseFrom(com.google.protobuf.ByteString data)static GenerativeSettings.KnowledgeConnectorSettingsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GenerativeSettings.KnowledgeConnectorSettingsparseFrom(com.google.protobuf.CodedInputStream input)static GenerativeSettings.KnowledgeConnectorSettingsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GenerativeSettings.KnowledgeConnectorSettingsparseFrom(InputStream input)static GenerativeSettings.KnowledgeConnectorSettingsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GenerativeSettings.KnowledgeConnectorSettingsparseFrom(ByteBuffer data)static GenerativeSettings.KnowledgeConnectorSettingsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<GenerativeSettings.KnowledgeConnectorSettings>parser()GenerativeSettings.KnowledgeConnectorSettings.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
BUSINESS_FIELD_NUMBER
public static final int BUSINESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AGENT_FIELD_NUMBER
public static final int AGENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AGENT_IDENTITY_FIELD_NUMBER
public static final int AGENT_IDENTITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BUSINESS_DESCRIPTION_FIELD_NUMBER
public static final int BUSINESS_DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AGENT_SCOPE_FIELD_NUMBER
public static final int AGENT_SCOPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getBusiness
public String getBusiness()
Name of the company, organization or other entity that the agent represents. Used for knowledge connector LLM prompt and for knowledge search.
string business = 1;- Specified by:
getBusinessin interfaceGenerativeSettings.KnowledgeConnectorSettingsOrBuilder- Returns:
- The business.
-
getBusinessBytes
public com.google.protobuf.ByteString getBusinessBytes()
Name of the company, organization or other entity that the agent represents. Used for knowledge connector LLM prompt and for knowledge search.
string business = 1;- Specified by:
getBusinessBytesin interfaceGenerativeSettings.KnowledgeConnectorSettingsOrBuilder- Returns:
- The bytes for business.
-
getAgent
public String getAgent()
Name of the virtual agent. Used for LLM prompt. Can be left empty.
string agent = 2;- Specified by:
getAgentin interfaceGenerativeSettings.KnowledgeConnectorSettingsOrBuilder- Returns:
- The agent.
-
getAgentBytes
public com.google.protobuf.ByteString getAgentBytes()
Name of the virtual agent. Used for LLM prompt. Can be left empty.
string agent = 2;- Specified by:
getAgentBytesin interfaceGenerativeSettings.KnowledgeConnectorSettingsOrBuilder- Returns:
- The bytes for agent.
-
getAgentIdentity
public String getAgentIdentity()
Identity of the agent, e.g. "virtual agent", "AI assistant".
string agent_identity = 3;- Specified by:
getAgentIdentityin interfaceGenerativeSettings.KnowledgeConnectorSettingsOrBuilder- Returns:
- The agentIdentity.
-
getAgentIdentityBytes
public com.google.protobuf.ByteString getAgentIdentityBytes()
Identity of the agent, e.g. "virtual agent", "AI assistant".
string agent_identity = 3;- Specified by:
getAgentIdentityBytesin interfaceGenerativeSettings.KnowledgeConnectorSettingsOrBuilder- Returns:
- The bytes for agentIdentity.
-
getBusinessDescription
public String getBusinessDescription()
Company description, used for LLM prompt, e.g. "a family company selling freshly roasted coffee beans".
string business_description = 4;- Specified by:
getBusinessDescriptionin interfaceGenerativeSettings.KnowledgeConnectorSettingsOrBuilder- Returns:
- The businessDescription.
-
getBusinessDescriptionBytes
public com.google.protobuf.ByteString getBusinessDescriptionBytes()
Company description, used for LLM prompt, e.g. "a family company selling freshly roasted coffee beans".
string business_description = 4;- Specified by:
getBusinessDescriptionBytesin interfaceGenerativeSettings.KnowledgeConnectorSettingsOrBuilder- Returns:
- The bytes for businessDescription.
-
getAgentScope
public String getAgentScope()
Agent scope, e.g. "Example company website", "internal Example company website for employees", "manual of car owner".
string agent_scope = 5;- Specified by:
getAgentScopein interfaceGenerativeSettings.KnowledgeConnectorSettingsOrBuilder- Returns:
- The agentScope.
-
getAgentScopeBytes
public com.google.protobuf.ByteString getAgentScopeBytes()
Agent scope, e.g. "Example company website", "internal Example company website for employees", "manual of car owner".
string agent_scope = 5;- Specified by:
getAgentScopeBytesin interfaceGenerativeSettings.KnowledgeConnectorSettingsOrBuilder- Returns:
- The bytes for agentScope.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GenerativeSettings.KnowledgeConnectorSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerativeSettings.KnowledgeConnectorSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerativeSettings.KnowledgeConnectorSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerativeSettings.KnowledgeConnectorSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerativeSettings.KnowledgeConnectorSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerativeSettings.KnowledgeConnectorSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerativeSettings.KnowledgeConnectorSettings parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GenerativeSettings.KnowledgeConnectorSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GenerativeSettings.KnowledgeConnectorSettings parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GenerativeSettings.KnowledgeConnectorSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static GenerativeSettings.KnowledgeConnectorSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GenerativeSettings.KnowledgeConnectorSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public GenerativeSettings.KnowledgeConnectorSettings.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static GenerativeSettings.KnowledgeConnectorSettings.Builder newBuilder()
-
newBuilder
public static GenerativeSettings.KnowledgeConnectorSettings.Builder newBuilder(GenerativeSettings.KnowledgeConnectorSettings prototype)
-
toBuilder
public GenerativeSettings.KnowledgeConnectorSettings.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GenerativeSettings.KnowledgeConnectorSettings.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static GenerativeSettings.KnowledgeConnectorSettings getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<GenerativeSettings.KnowledgeConnectorSettings> parser()
-
getParserForType
public com.google.protobuf.Parser<GenerativeSettings.KnowledgeConnectorSettings> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public GenerativeSettings.KnowledgeConnectorSettings getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-