Class CompanionAgent (4.105.0)

public final class CompanionAgent extends GeneratedMessage implements CompanionAgentOrBuilder

Companion agent.

Protobuf type google.cloud.dialogflow.v2.CompanionAgent

Static Fields

CES_TOOL_SPECS_FIELD_NUMBER

public static final int CES_TOOL_SPECS_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

SKILL_CONFIGS_FIELD_NUMBER

public static final int SKILL_CONFIGS_FIELD_NUMBER
Field Value
Type Description
int

TOOLSET_TOOLS_FIELD_NUMBER

public static final int TOOLSET_TOOLS_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CompanionAgent getDefaultInstance()
Returns
Type Description
CompanionAgent

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CompanionAgent.Builder newBuilder()
Returns
Type Description
CompanionAgent.Builder

newBuilder(CompanionAgent prototype)

public static CompanionAgent.Builder newBuilder(CompanionAgent prototype)
Parameter
Name Description
prototype CompanionAgent
Returns
Type Description
CompanionAgent.Builder

parseDelimitedFrom(InputStream input)

public static CompanionAgent parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CompanionAgent
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CompanionAgent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompanionAgent
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CompanionAgent parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CompanionAgent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CompanionAgent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompanionAgent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CompanionAgent parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CompanionAgent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CompanionAgent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompanionAgent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CompanionAgent parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CompanionAgent
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CompanionAgent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompanionAgent
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CompanionAgent parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CompanionAgent
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CompanionAgent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompanionAgent
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CompanionAgent parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CompanionAgent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CompanionAgent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompanionAgent
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CompanionAgent> parser()
Returns
Type Description
Parser<CompanionAgent>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCesToolSpecs(int index)

public CesToolSpec getCesToolSpecs(int index)

Optional. List of CES tool specs that the companion agent can choose from.

repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CesToolSpec

getCesToolSpecsCount()

public int getCesToolSpecsCount()

Optional. List of CES tool specs that the companion agent can choose from.

repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getCesToolSpecsList()

public List<CesToolSpec> getCesToolSpecsList()

Optional. List of CES tool specs that the companion agent can choose from.

repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<CesToolSpec>

getCesToolSpecsOrBuilder(int index)

public CesToolSpecOrBuilder getCesToolSpecsOrBuilder(int index)

Optional. List of CES tool specs that the companion agent can choose from.

repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CesToolSpecOrBuilder

getCesToolSpecsOrBuilderList()

public List<? extends CesToolSpecOrBuilder> getCesToolSpecsOrBuilderList()

Optional. List of CES tool specs that the companion agent can choose from.

repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2.CesToolSpecOrBuilder>

getCreateTime()

public Timestamp getCreateTime()

Output only. Creation time of this companion agent.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Creation time of this companion agent.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public CompanionAgent getDefaultInstanceForType()
Returns
Type Description
CompanionAgent

getDescription()

public String getDescription()

Optional. Description for the companion agent.

string description = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description for the companion agent.

string description = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDisplayName()

public String getDisplayName()

Optional. Display name for the companion agent. Character limit is 63.

string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. Display name for the companion agent. Character limit is 63.

string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Identifier. The unique identifier of the companion agent. Format: projects/{project}/locations/{location}/companionAgents/{companion_agent}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The unique identifier of the companion agent. Format: projects/{project}/locations/{location}/companionAgents/{companion_agent}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<CompanionAgent> getParserForType()
Returns
Type Description
Parser<CompanionAgent>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSkillConfigs(int index)

public CompanionAgent.SkillConfig getSkillConfigs(int index)

Optional. List of skill configs for the companion agent. Allows at most one instance of each SkillConfig type.

repeated .google.cloud.dialogflow.v2.CompanionAgent.SkillConfig skill_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CompanionAgent.SkillConfig

getSkillConfigsCount()

public int getSkillConfigsCount()

Optional. List of skill configs for the companion agent. Allows at most one instance of each SkillConfig type.

repeated .google.cloud.dialogflow.v2.CompanionAgent.SkillConfig skill_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getSkillConfigsList()

public List<CompanionAgent.SkillConfig> getSkillConfigsList()

Optional. List of skill configs for the companion agent. Allows at most one instance of each SkillConfig type.

repeated .google.cloud.dialogflow.v2.CompanionAgent.SkillConfig skill_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<SkillConfig>

getSkillConfigsOrBuilder(int index)

public CompanionAgent.SkillConfigOrBuilder getSkillConfigsOrBuilder(int index)

Optional. List of skill configs for the companion agent. Allows at most one instance of each SkillConfig type.

repeated .google.cloud.dialogflow.v2.CompanionAgent.SkillConfig skill_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CompanionAgent.SkillConfigOrBuilder

getSkillConfigsOrBuilderList()

public List<? extends CompanionAgent.SkillConfigOrBuilder> getSkillConfigsOrBuilderList()

Optional. List of skill configs for the companion agent. Allows at most one instance of each SkillConfig type.

repeated .google.cloud.dialogflow.v2.CompanionAgent.SkillConfig skill_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2.CompanionAgent.SkillConfigOrBuilder>

getToolsetTools(int index)

public ToolsetTool getToolsetTools(int index)

Optional. List of CES toolset specs that the companion agent can choose from.

repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ToolsetTool

getToolsetToolsCount()

public int getToolsetToolsCount()

Optional. List of CES toolset specs that the companion agent can choose from.

repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getToolsetToolsList()

public List<ToolsetTool> getToolsetToolsList()

Optional. List of CES toolset specs that the companion agent can choose from.

repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ToolsetTool>

getToolsetToolsOrBuilder(int index)

public ToolsetToolOrBuilder getToolsetToolsOrBuilder(int index)

Optional. List of CES toolset specs that the companion agent can choose from.

repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ToolsetToolOrBuilder

getToolsetToolsOrBuilderList()

public List<? extends ToolsetToolOrBuilder> getToolsetToolsOrBuilderList()

Optional. List of CES toolset specs that the companion agent can choose from.

repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2.ToolsetToolOrBuilder>

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Update time of this companion agent.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update time of this companion agent.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Creation time of this companion agent.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Update time of this companion agent.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CompanionAgent.Builder newBuilderForType()
Returns
Type Description
CompanionAgent.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected CompanionAgent.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CompanionAgent.Builder
Overrides

toBuilder()

public CompanionAgent.Builder toBuilder()
Returns
Type Description
CompanionAgent.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException