Class CompanionAgent.Builder (4.105.0)

public static final class CompanionAgent.Builder extends GeneratedMessage.Builder<CompanionAgent.Builder> implements CompanionAgentOrBuilder

Companion agent.

Protobuf type google.cloud.dialogflow.v2.CompanionAgent

Static Methods

getDescriptor()

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

Methods

addAllCesToolSpecs(Iterable<? extends CesToolSpec> values)

public CompanionAgent.Builder addAllCesToolSpecs(Iterable<? extends CesToolSpec> values)

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
values Iterable<? extends com.google.cloud.dialogflow.v2.CesToolSpec>
Returns
Type Description
CompanionAgent.Builder

addAllSkillConfigs(Iterable<? extends CompanionAgent.SkillConfig> values)

public CompanionAgent.Builder addAllSkillConfigs(Iterable<? extends CompanionAgent.SkillConfig> values)

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
values Iterable<? extends com.google.cloud.dialogflow.v2.CompanionAgent.SkillConfig>
Returns
Type Description
CompanionAgent.Builder

addAllToolsetTools(Iterable<? extends ToolsetTool> values)

public CompanionAgent.Builder addAllToolsetTools(Iterable<? extends ToolsetTool> values)

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
values Iterable<? extends com.google.cloud.dialogflow.v2.ToolsetTool>
Returns
Type Description
CompanionAgent.Builder

addCesToolSpecs(CesToolSpec value)

public CompanionAgent.Builder addCesToolSpecs(CesToolSpec value)

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
value CesToolSpec
Returns
Type Description
CompanionAgent.Builder

addCesToolSpecs(CesToolSpec.Builder builderForValue)

public CompanionAgent.Builder addCesToolSpecs(CesToolSpec.Builder builderForValue)

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
builderForValue CesToolSpec.Builder
Returns
Type Description
CompanionAgent.Builder

addCesToolSpecs(int index, CesToolSpec value)

public CompanionAgent.Builder addCesToolSpecs(int index, CesToolSpec value)

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];

Parameters
Name Description
index int
value CesToolSpec
Returns
Type Description
CompanionAgent.Builder

addCesToolSpecs(int index, CesToolSpec.Builder builderForValue)

public CompanionAgent.Builder addCesToolSpecs(int index, CesToolSpec.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue CesToolSpec.Builder
Returns
Type Description
CompanionAgent.Builder

addCesToolSpecsBuilder()

public CesToolSpec.Builder addCesToolSpecsBuilder()

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
CesToolSpec.Builder

addCesToolSpecsBuilder(int index)

public CesToolSpec.Builder addCesToolSpecsBuilder(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.Builder

addSkillConfigs(CompanionAgent.SkillConfig value)

public CompanionAgent.Builder addSkillConfigs(CompanionAgent.SkillConfig value)

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
value CompanionAgent.SkillConfig
Returns
Type Description
CompanionAgent.Builder

addSkillConfigs(CompanionAgent.SkillConfig.Builder builderForValue)

public CompanionAgent.Builder addSkillConfigs(CompanionAgent.SkillConfig.Builder builderForValue)

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
builderForValue CompanionAgent.SkillConfig.Builder
Returns
Type Description
CompanionAgent.Builder

addSkillConfigs(int index, CompanionAgent.SkillConfig value)

public CompanionAgent.Builder addSkillConfigs(int index, CompanionAgent.SkillConfig value)

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];

Parameters
Name Description
index int
value CompanionAgent.SkillConfig
Returns
Type Description
CompanionAgent.Builder

addSkillConfigs(int index, CompanionAgent.SkillConfig.Builder builderForValue)

public CompanionAgent.Builder addSkillConfigs(int index, CompanionAgent.SkillConfig.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue CompanionAgent.SkillConfig.Builder
Returns
Type Description
CompanionAgent.Builder

addSkillConfigsBuilder()

public CompanionAgent.SkillConfig.Builder addSkillConfigsBuilder()

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
CompanionAgent.SkillConfig.Builder

addSkillConfigsBuilder(int index)

public CompanionAgent.SkillConfig.Builder addSkillConfigsBuilder(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.Builder

addToolsetTools(ToolsetTool value)

public CompanionAgent.Builder addToolsetTools(ToolsetTool value)

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
value ToolsetTool
Returns
Type Description
CompanionAgent.Builder

addToolsetTools(ToolsetTool.Builder builderForValue)

public CompanionAgent.Builder addToolsetTools(ToolsetTool.Builder builderForValue)

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
builderForValue ToolsetTool.Builder
Returns
Type Description
CompanionAgent.Builder

addToolsetTools(int index, ToolsetTool value)

public CompanionAgent.Builder addToolsetTools(int index, ToolsetTool value)

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];

Parameters
Name Description
index int
value ToolsetTool
Returns
Type Description
CompanionAgent.Builder

addToolsetTools(int index, ToolsetTool.Builder builderForValue)

public CompanionAgent.Builder addToolsetTools(int index, ToolsetTool.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue ToolsetTool.Builder
Returns
Type Description
CompanionAgent.Builder

addToolsetToolsBuilder()

public ToolsetTool.Builder addToolsetToolsBuilder()

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
ToolsetTool.Builder

addToolsetToolsBuilder(int index)

public ToolsetTool.Builder addToolsetToolsBuilder(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.Builder

build()

public CompanionAgent build()
Returns
Type Description
CompanionAgent

buildPartial()

public CompanionAgent buildPartial()
Returns
Type Description
CompanionAgent

clear()

public CompanionAgent.Builder clear()
Returns
Type Description
CompanionAgent.Builder
Overrides

clearCesToolSpecs()

public CompanionAgent.Builder clearCesToolSpecs()

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
CompanionAgent.Builder

clearCreateTime()

public CompanionAgent.Builder clearCreateTime()

Output only. Creation time of this companion agent.

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

Returns
Type Description
CompanionAgent.Builder

clearDescription()

public CompanionAgent.Builder clearDescription()

Optional. Description for the companion agent.

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

Returns
Type Description
CompanionAgent.Builder

This builder for chaining.

clearDisplayName()

public CompanionAgent.Builder clearDisplayName()

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

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

Returns
Type Description
CompanionAgent.Builder

This builder for chaining.

clearName()

public CompanionAgent.Builder clearName()

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
CompanionAgent.Builder

This builder for chaining.

clearSkillConfigs()

public CompanionAgent.Builder clearSkillConfigs()

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
CompanionAgent.Builder

clearToolsetTools()

public CompanionAgent.Builder clearToolsetTools()

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
CompanionAgent.Builder

clearUpdateTime()

public CompanionAgent.Builder clearUpdateTime()

Output only. Update time of this companion agent.

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

Returns
Type Description
CompanionAgent.Builder

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

getCesToolSpecsBuilder(int index)

public CesToolSpec.Builder getCesToolSpecsBuilder(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.Builder

getCesToolSpecsBuilderList()

public List<CesToolSpec.Builder> getCesToolSpecsBuilderList()

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<Builder>

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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Creation time of this companion agent.

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

Returns
Type Description
Builder

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.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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

getSkillConfigsBuilder(int index)

public CompanionAgent.SkillConfig.Builder getSkillConfigsBuilder(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.Builder

getSkillConfigsBuilderList()

public List<CompanionAgent.SkillConfig.Builder> getSkillConfigsBuilderList()

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<Builder>

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

getToolsetToolsBuilder(int index)

public ToolsetTool.Builder getToolsetToolsBuilder(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.Builder

getToolsetToolsBuilderList()

public List<ToolsetTool.Builder> getToolsetToolsBuilderList()

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<Builder>

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.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Update time of this companion agent.

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

Returns
Type Description
Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public CompanionAgent.Builder mergeCreateTime(Timestamp value)

Output only. Creation time of this companion agent.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
CompanionAgent.Builder

mergeFrom(CompanionAgent other)

public CompanionAgent.Builder mergeFrom(CompanionAgent other)
Parameter
Name Description
other CompanionAgent
Returns
Type Description
CompanionAgent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CompanionAgent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompanionAgent.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CompanionAgent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CompanionAgent.Builder
Overrides

mergeUpdateTime(Timestamp value)

public CompanionAgent.Builder mergeUpdateTime(Timestamp value)

Output only. Update time of this companion agent.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
CompanionAgent.Builder

removeCesToolSpecs(int index)

public CompanionAgent.Builder removeCesToolSpecs(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
CompanionAgent.Builder

removeSkillConfigs(int index)

public CompanionAgent.Builder removeSkillConfigs(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.Builder

removeToolsetTools(int index)

public CompanionAgent.Builder removeToolsetTools(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
CompanionAgent.Builder

setCesToolSpecs(int index, CesToolSpec value)

public CompanionAgent.Builder setCesToolSpecs(int index, CesToolSpec value)

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];

Parameters
Name Description
index int
value CesToolSpec
Returns
Type Description
CompanionAgent.Builder

setCesToolSpecs(int index, CesToolSpec.Builder builderForValue)

public CompanionAgent.Builder setCesToolSpecs(int index, CesToolSpec.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue CesToolSpec.Builder
Returns
Type Description
CompanionAgent.Builder

setCreateTime(Timestamp value)

public CompanionAgent.Builder setCreateTime(Timestamp value)

Output only. Creation time of this companion agent.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
CompanionAgent.Builder

setCreateTime(Timestamp.Builder builderForValue)

public CompanionAgent.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Creation time of this companion agent.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CompanionAgent.Builder

setDescription(String value)

public CompanionAgent.Builder setDescription(String value)

Optional. Description for the companion agent.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
CompanionAgent.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public CompanionAgent.Builder setDescriptionBytes(ByteString value)

Optional. Description for the companion agent.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
CompanionAgent.Builder

This builder for chaining.

setDisplayName(String value)

public CompanionAgent.Builder setDisplayName(String value)

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

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
CompanionAgent.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public CompanionAgent.Builder setDisplayNameBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
CompanionAgent.Builder

This builder for chaining.

setName(String value)

public CompanionAgent.Builder setName(String value)

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

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
CompanionAgent.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CompanionAgent.Builder setNameBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
CompanionAgent.Builder

This builder for chaining.

setSkillConfigs(int index, CompanionAgent.SkillConfig value)

public CompanionAgent.Builder setSkillConfigs(int index, CompanionAgent.SkillConfig value)

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];

Parameters
Name Description
index int
value CompanionAgent.SkillConfig
Returns
Type Description
CompanionAgent.Builder

setSkillConfigs(int index, CompanionAgent.SkillConfig.Builder builderForValue)

public CompanionAgent.Builder setSkillConfigs(int index, CompanionAgent.SkillConfig.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue CompanionAgent.SkillConfig.Builder
Returns
Type Description
CompanionAgent.Builder

setToolsetTools(int index, ToolsetTool value)

public CompanionAgent.Builder setToolsetTools(int index, ToolsetTool value)

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];

Parameters
Name Description
index int
value ToolsetTool
Returns
Type Description
CompanionAgent.Builder

setToolsetTools(int index, ToolsetTool.Builder builderForValue)

public CompanionAgent.Builder setToolsetTools(int index, ToolsetTool.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue ToolsetTool.Builder
Returns
Type Description
CompanionAgent.Builder

setUpdateTime(Timestamp value)

public CompanionAgent.Builder setUpdateTime(Timestamp value)

Output only. Update time of this companion agent.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
CompanionAgent.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public CompanionAgent.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Update time of this companion agent.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CompanionAgent.Builder