Class Engine.ChatEngineConfig (0.33.0)

public static final class Engine.ChatEngineConfig extends GeneratedMessageV3 implements Engine.ChatEngineConfigOrBuilder

Configurations for a Chat Engine.

Protobuf type google.cloud.discoveryengine.v1.Engine.ChatEngineConfig

Static Fields

AGENT_CREATION_CONFIG_FIELD_NUMBER

public static final int AGENT_CREATION_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int DIALOGFLOW_AGENT_TO_LINK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Engine.ChatEngineConfig getDefaultInstance()
Returns
TypeDescription
Engine.ChatEngineConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Engine.ChatEngineConfig.Builder newBuilder()
Returns
TypeDescription
Engine.ChatEngineConfig.Builder

newBuilder(Engine.ChatEngineConfig prototype)

public static Engine.ChatEngineConfig.Builder newBuilder(Engine.ChatEngineConfig prototype)
Parameter
NameDescription
prototypeEngine.ChatEngineConfig
Returns
TypeDescription
Engine.ChatEngineConfig.Builder

parseDelimitedFrom(InputStream input)

public static Engine.ChatEngineConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Engine.ChatEngineConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Engine.ChatEngineConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Engine.ChatEngineConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Engine.ChatEngineConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Engine.ChatEngineConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Engine.ChatEngineConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Engine.ChatEngineConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Engine.ChatEngineConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Engine.ChatEngineConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Engine.ChatEngineConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Engine.ChatEngineConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Engine.ChatEngineConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Engine.ChatEngineConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Engine.ChatEngineConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Engine.ChatEngineConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Engine.ChatEngineConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Engine.ChatEngineConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Engine.ChatEngineConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Engine.ChatEngineConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Engine.ChatEngineConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Engine.ChatEngineConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Engine.ChatEngineConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Engine.ChatEngineConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Engine.ChatEngineConfig> parser()
Returns
TypeDescription
Parser<ChatEngineConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAgentCreationConfig()

public Engine.ChatEngineConfig.AgentCreationConfig getAgentCreationConfig()

The configurationt generate the Dialogflow agent that is associated to this Engine.

Note that these configurations are one-time consumed by and passed to Dialogflow service. It means they cannot be retrieved using EngineService.GetEngine or EngineService.ListEngines API after engine creation.

.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1;

Returns
TypeDescription
Engine.ChatEngineConfig.AgentCreationConfig

The agentCreationConfig.

getAgentCreationConfigOrBuilder()

public Engine.ChatEngineConfig.AgentCreationConfigOrBuilder getAgentCreationConfigOrBuilder()

The configurationt generate the Dialogflow agent that is associated to this Engine.

Note that these configurations are one-time consumed by and passed to Dialogflow service. It means they cannot be retrieved using EngineService.GetEngine or EngineService.ListEngines API after engine creation.

.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1;

Returns
TypeDescription
Engine.ChatEngineConfig.AgentCreationConfigOrBuilder

getDefaultInstanceForType()

public Engine.ChatEngineConfig getDefaultInstanceForType()
Returns
TypeDescription
Engine.ChatEngineConfig
public String getDialogflowAgentToLink()

The resource name of an exist Dialogflow agent to link to this Chat Engine. Customers can either provide agent_creation_config to create agent or provide an agent name that links the agent with the Chat engine.

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

Note that the dialogflow_agent_to_link are one-time consumed by and passed to Dialogflow service. It means they cannot be retrieved using EngineService.GetEngine or EngineService.ListEngines API after engine creation. Please use ChatEngineMetadata.dialogflow_agent for actual agent association after Engine is created.

string dialogflow_agent_to_link = 2;

Returns
TypeDescription
String

The dialogflowAgentToLink.

getDialogflowAgentToLinkBytes()

public ByteString getDialogflowAgentToLinkBytes()

The resource name of an exist Dialogflow agent to link to this Chat Engine. Customers can either provide agent_creation_config to create agent or provide an agent name that links the agent with the Chat engine.

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

Note that the dialogflow_agent_to_link are one-time consumed by and passed to Dialogflow service. It means they cannot be retrieved using EngineService.GetEngine or EngineService.ListEngines API after engine creation. Please use ChatEngineMetadata.dialogflow_agent for actual agent association after Engine is created.

string dialogflow_agent_to_link = 2;

Returns
TypeDescription
ByteString

The bytes for dialogflowAgentToLink.

getParserForType()

public Parser<Engine.ChatEngineConfig> getParserForType()
Returns
TypeDescription
Parser<ChatEngineConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasAgentCreationConfig()

public boolean hasAgentCreationConfig()

The configurationt generate the Dialogflow agent that is associated to this Engine.

Note that these configurations are one-time consumed by and passed to Dialogflow service. It means they cannot be retrieved using EngineService.GetEngine or EngineService.ListEngines API after engine creation.

.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1;

Returns
TypeDescription
boolean

Whether the agentCreationConfig field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Engine.ChatEngineConfig.Builder newBuilderForType()
Returns
TypeDescription
Engine.ChatEngineConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Engine.ChatEngineConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Engine.ChatEngineConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Engine.ChatEngineConfig.Builder toBuilder()
Returns
TypeDescription
Engine.ChatEngineConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException