Class Agent.Skill.Builder (0.2.0)

public static final class Agent.Skill.Builder extends GeneratedMessage.Builder<Agent.Skill.Builder> implements Agent.SkillOrBuilder

Represents the skills of an Agent.

Protobuf type google.cloud.agentregistry.v1.Agent.Skill

Static Methods

getDescriptor()

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

Methods

addAllExamples(Iterable<String> values)

public Agent.Skill.Builder addAllExamples(Iterable<String> values)

Output only. Example prompts or scenarios this skill can handle.

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

Parameter
Name Description
values Iterable<String>

The examples to add.

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

addAllTags(Iterable<String> values)

public Agent.Skill.Builder addAllTags(Iterable<String> values)

Output only. Keywords describing the skill.

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

Parameter
Name Description
values Iterable<String>

The tags to add.

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

addExamples(String value)

public Agent.Skill.Builder addExamples(String value)

Output only. Example prompts or scenarios this skill can handle.

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

Parameter
Name Description
value String

The examples to add.

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

addExamplesBytes(ByteString value)

public Agent.Skill.Builder addExamplesBytes(ByteString value)

Output only. Example prompts or scenarios this skill can handle.

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

Parameter
Name Description
value ByteString

The bytes of the examples to add.

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

addTags(String value)

public Agent.Skill.Builder addTags(String value)

Output only. Keywords describing the skill.

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

Parameter
Name Description
value String

The tags to add.

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

addTagsBytes(ByteString value)

public Agent.Skill.Builder addTagsBytes(ByteString value)

Output only. Keywords describing the skill.

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

Parameter
Name Description
value ByteString

The bytes of the tags to add.

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

build()

public Agent.Skill build()
Returns
Type Description
Agent.Skill

buildPartial()

public Agent.Skill buildPartial()
Returns
Type Description
Agent.Skill

clear()

public Agent.Skill.Builder clear()
Returns
Type Description
Agent.Skill.Builder
Overrides

clearDescription()

public Agent.Skill.Builder clearDescription()

Output only. A more detailed description of the skill.

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

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

clearExamples()

public Agent.Skill.Builder clearExamples()

Output only. Example prompts or scenarios this skill can handle.

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

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

clearId()

public Agent.Skill.Builder clearId()

Output only. A unique identifier for the agent's skill.

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

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

clearName()

public Agent.Skill.Builder clearName()

Output only. A human-readable name for the agent's skill.

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

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

clearTags()

public Agent.Skill.Builder clearTags()

Output only. Keywords describing the skill.

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

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

getDefaultInstanceForType()

public Agent.Skill getDefaultInstanceForType()
Returns
Type Description
Agent.Skill

getDescription()

public String getDescription()

Output only. A more detailed description of the skill.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. A more detailed description of the skill.

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

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)

Output only. Example prompts or scenarios this skill can handle.

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

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)

Output only. Example prompts or scenarios this skill can handle.

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

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()

Output only. Example prompts or scenarios this skill can handle.

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

Returns
Type Description
int

The count of examples.

getExamplesList()

public ProtocolStringList getExamplesList()

Output only. Example prompts or scenarios this skill can handle.

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

Returns
Type Description
ProtocolStringList

A list containing the examples.

getId()

public String getId()

Output only. A unique identifier for the agent's skill.

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

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. A unique identifier for the agent's skill.

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

Returns
Type Description
ByteString

The bytes for id.

getName()

public String getName()

Output only. A human-readable name for the agent's skill.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. A human-readable name for the agent's skill.

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

Returns
Type Description
ByteString

The bytes for name.

getTags(int index)

public String getTags(int index)

Output only. Keywords describing the skill.

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

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)

Output only. Keywords describing the skill.

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

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()

Output only. Keywords describing the skill.

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

Returns
Type Description
int

The count of tags.

getTagsList()

public ProtocolStringList getTagsList()

Output only. Keywords describing the skill.

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

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(Agent.Skill other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDescription(String value)

public Agent.Skill.Builder setDescription(String value)

Output only. A more detailed description of the skill.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Agent.Skill.Builder setDescriptionBytes(ByteString value)

Output only. A more detailed description of the skill.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

setExamples(int index, String value)

public Agent.Skill.Builder setExamples(int index, String value)

Output only. Example prompts or scenarios this skill can handle.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The examples to set.

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

setId(String value)

public Agent.Skill.Builder setId(String value)

Output only. A unique identifier for the agent's skill.

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

Parameter
Name Description
value String

The id to set.

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Agent.Skill.Builder setIdBytes(ByteString value)

Output only. A unique identifier for the agent's skill.

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

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

setName(String value)

public Agent.Skill.Builder setName(String value)

Output only. A human-readable name for the agent's skill.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Agent.Skill.Builder setNameBytes(ByteString value)

Output only. A human-readable name for the agent's skill.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.

setTags(int index, String value)

public Agent.Skill.Builder setTags(int index, String value)

Output only. Keywords describing the skill.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The tags to set.

Returns
Type Description
Agent.Skill.Builder

This builder for chaining.