Class AgentSkill.Builder (0.27.0)

public static final class AgentSkill.Builder extends GeneratedMessage.Builder<AgentSkill.Builder> implements AgentSkillOrBuilder

AgentSkill represents a unit of action/solution that the agent can perform.

Protobuf type google.cloud.geminidataanalytics.v1beta.AgentSkill

Implements

AgentSkillOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllExamples(Iterable<String> values)

public AgentSkill.Builder addAllExamples(Iterable<String> values)

Optional. A set of example queries that this skill is designed to address.

repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The examples to add.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

addAllInputModes(Iterable<String> values)

public AgentSkill.Builder addAllInputModes(Iterable<String> values)

Optional. Possible input modalities supported.

repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The inputModes to add.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

addAllOutputModes(Iterable<String> values)

public AgentSkill.Builder addAllOutputModes(Iterable<String> values)

Optional. Possible output modalities produced.

repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The outputModes to add.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

addAllSecurity(Iterable<? extends Security> values)

public AgentSkill.Builder addAllSecurity(Iterable<? extends Security> values)

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Parameter
Name Description
values Iterable<? extends com.google.cloud.geminidataanalytics.v1beta.Security>
Returns
Type Description
AgentSkill.Builder

addAllTags(Iterable<String> values)

public AgentSkill.Builder addAllTags(Iterable<String> values)

Optional. A set of tags for the skill to enhance categorization/utilization.

repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The tags to add.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

addExamples(String value)

public AgentSkill.Builder addExamples(String value)

Optional. A set of example queries that this skill is designed to address.

repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The examples to add.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

addExamplesBytes(ByteString value)

public AgentSkill.Builder addExamplesBytes(ByteString value)

Optional. A set of example queries that this skill is designed to address.

repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the examples to add.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

addInputModes(String value)

public AgentSkill.Builder addInputModes(String value)

Optional. Possible input modalities supported.

repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The inputModes to add.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

addInputModesBytes(ByteString value)

public AgentSkill.Builder addInputModesBytes(ByteString value)

Optional. Possible input modalities supported.

repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the inputModes to add.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

addOutputModes(String value)

public AgentSkill.Builder addOutputModes(String value)

Optional. Possible output modalities produced.

repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The outputModes to add.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

addOutputModesBytes(ByteString value)

public AgentSkill.Builder addOutputModesBytes(ByteString value)

Optional. Possible output modalities produced.

repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the outputModes to add.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

addSecurity(Security value)

public AgentSkill.Builder addSecurity(Security value)

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Parameter
Name Description
value Security
Returns
Type Description
AgentSkill.Builder

addSecurity(Security.Builder builderForValue)

public AgentSkill.Builder addSecurity(Security.Builder builderForValue)

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Parameter
Name Description
builderForValue Security.Builder
Returns
Type Description
AgentSkill.Builder

addSecurity(int index, Security value)

public AgentSkill.Builder addSecurity(int index, Security value)

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Parameters
Name Description
index int
value Security
Returns
Type Description
AgentSkill.Builder

addSecurity(int index, Security.Builder builderForValue)

public AgentSkill.Builder addSecurity(int index, Security.Builder builderForValue)

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Parameters
Name Description
index int
builderForValue Security.Builder
Returns
Type Description
AgentSkill.Builder

addSecurityBuilder()

public Security.Builder addSecurityBuilder()

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Returns
Type Description
Security.Builder

addSecurityBuilder(int index)

public Security.Builder addSecurityBuilder(int index)

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Parameter
Name Description
index int
Returns
Type Description
Security.Builder

addTags(String value)

public AgentSkill.Builder addTags(String value)

Optional. A set of tags for the skill to enhance categorization/utilization.

repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The tags to add.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

addTagsBytes(ByteString value)

public AgentSkill.Builder addTagsBytes(ByteString value)

Optional. A set of tags for the skill to enhance categorization/utilization.

repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the tags to add.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

build()

public AgentSkill build()
Returns
Type Description
AgentSkill

buildPartial()

public AgentSkill buildPartial()
Returns
Type Description
AgentSkill

clear()

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

clearDescription()

public AgentSkill.Builder clearDescription()

Optional. A human readable description of the skill details and behaviors.

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

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

clearExamples()

public AgentSkill.Builder clearExamples()

Optional. A set of example queries that this skill is designed to address.

repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

clearId()

public AgentSkill.Builder clearId()

Optional. Unique identifier of the skill within this agent.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

clearInputModes()

public AgentSkill.Builder clearInputModes()

Optional. Possible input modalities supported.

repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

clearName()

public AgentSkill.Builder clearName()

Optional. A human readable name for the skill.

string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

clearOutputModes()

public AgentSkill.Builder clearOutputModes()

Optional. Possible output modalities produced.

repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

clearSecurity()

public AgentSkill.Builder clearSecurity()

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Returns
Type Description
AgentSkill.Builder

clearTags()

public AgentSkill.Builder clearTags()

Optional. A set of tags for the skill to enhance categorization/utilization.

repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

getDefaultInstanceForType()

public AgentSkill getDefaultInstanceForType()
Returns
Type Description
AgentSkill

getDescription()

public String getDescription()

Optional. A human readable description of the skill details and behaviors.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A human readable description of the skill details and behaviors.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getExamples(int index)

public String getExamples(int index)

Optional. A set of example queries that this skill is designed to address.

repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The examples at the given index.

getExamplesBytes(int index)

public ByteString getExamplesBytes(int index)

Optional. A set of example queries that this skill is designed to address.

repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the examples at the given index.

getExamplesCount()

public int getExamplesCount()

Optional. A set of example queries that this skill is designed to address.

repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of examples.

getExamplesList()

public ProtocolStringList getExamplesList()

Optional. A set of example queries that this skill is designed to address.

repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the examples.

getId()

public String getId()

Optional. Unique identifier of the skill within this agent.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Optional. Unique identifier of the skill within this agent.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for id.

getInputModes(int index)

public String getInputModes(int index)

Optional. Possible input modalities supported.

repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The inputModes at the given index.

getInputModesBytes(int index)

public ByteString getInputModesBytes(int index)

Optional. Possible input modalities supported.

repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the inputModes at the given index.

getInputModesCount()

public int getInputModesCount()

Optional. Possible input modalities supported.

repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of inputModes.

getInputModesList()

public ProtocolStringList getInputModesList()

Optional. Possible input modalities supported.

repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the inputModes.

getName()

public String getName()

Optional. A human readable name for the skill.

string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. A human readable name for the skill.

string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for name.

getOutputModes(int index)

public String getOutputModes(int index)

Optional. Possible output modalities produced.

repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The outputModes at the given index.

getOutputModesBytes(int index)

public ByteString getOutputModesBytes(int index)

Optional. Possible output modalities produced.

repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the outputModes at the given index.

getOutputModesCount()

public int getOutputModesCount()

Optional. Possible output modalities produced.

repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of outputModes.

getOutputModesList()

public ProtocolStringList getOutputModesList()

Optional. Possible output modalities produced.

repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the outputModes.

getSecurity(int index)

public Security getSecurity(int index)

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Parameter
Name Description
index int
Returns
Type Description
Security

getSecurityBuilder(int index)

public Security.Builder getSecurityBuilder(int index)

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Parameter
Name Description
index int
Returns
Type Description
Security.Builder

getSecurityBuilderList()

public List<Security.Builder> getSecurityBuilderList()

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Returns
Type Description
List<Builder>

getSecurityCount()

public int getSecurityCount()

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Returns
Type Description
int

getSecurityList()

public List<Security> getSecurityList()

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Returns
Type Description
List<Security>

getSecurityOrBuilder(int index)

public SecurityOrBuilder getSecurityOrBuilder(int index)

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Parameter
Name Description
index int
Returns
Type Description
SecurityOrBuilder

getSecurityOrBuilderList()

public List<? extends SecurityOrBuilder> getSecurityOrBuilderList()

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Returns
Type Description
List<? extends com.google.cloud.geminidataanalytics.v1beta.SecurityOrBuilder>

getTags(int index)

public String getTags(int index)

Optional. A set of tags for the skill to enhance categorization/utilization.

repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The tags at the given index.

getTagsBytes(int index)

public ByteString getTagsBytes(int index)

Optional. A set of tags for the skill to enhance categorization/utilization.

repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the tags at the given index.

getTagsCount()

public int getTagsCount()

Optional. A set of tags for the skill to enhance categorization/utilization.

repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of tags.

getTagsList()

public ProtocolStringList getTagsList()

Optional. A set of tags for the skill to enhance categorization/utilization.

repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the tags.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AgentSkill other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeSecurity(int index)

public AgentSkill.Builder removeSecurity(int index)

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Parameter
Name Description
index int
Returns
Type Description
AgentSkill.Builder

setDescription(String value)

public AgentSkill.Builder setDescription(String value)

Optional. A human readable description of the skill details and behaviors.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public AgentSkill.Builder setDescriptionBytes(ByteString value)

Optional. A human readable description of the skill details and behaviors.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

setExamples(int index, String value)

public AgentSkill.Builder setExamples(int index, String value)

Optional. A set of example queries that this skill is designed to address.

repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The examples to set.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

setId(String value)

public AgentSkill.Builder setId(String value)

Optional. Unique identifier of the skill within this agent.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

setIdBytes(ByteString value)

public AgentSkill.Builder setIdBytes(ByteString value)

Optional. Unique identifier of the skill within this agent.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

setInputModes(int index, String value)

public AgentSkill.Builder setInputModes(int index, String value)

Optional. Possible input modalities supported.

repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The inputModes to set.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

setName(String value)

public AgentSkill.Builder setName(String value)

Optional. A human readable name for the skill.

string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AgentSkill.Builder setNameBytes(ByteString value)

Optional. A human readable name for the skill.

string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

setOutputModes(int index, String value)

public AgentSkill.Builder setOutputModes(int index, String value)

Optional. Possible output modalities produced.

repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The outputModes to set.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.

setSecurity(int index, Security value)

public AgentSkill.Builder setSecurity(int index, Security value)

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Parameters
Name Description
index int
value Security
Returns
Type Description
AgentSkill.Builder

setSecurity(int index, Security.Builder builderForValue)

public AgentSkill.Builder setSecurity(int index, Security.Builder builderForValue)

Security schemes necessary for the agent to leverage this skill.

repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8;

Parameters
Name Description
index int
builderForValue Security.Builder
Returns
Type Description
AgentSkill.Builder

setTags(int index, String value)

public AgentSkill.Builder setTags(int index, String value)

Optional. A set of tags for the skill to enhance categorization/utilization.

repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The tags to set.

Returns
Type Description
AgentSkill.Builder

This builder for chaining.