Class Agent.Skill (0.2.0)

public static final class Agent.Skill extends GeneratedMessage implements Agent.SkillOrBuilder

Represents the skills of an Agent.

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

Static Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

EXAMPLES_FIELD_NUMBER

public static final int EXAMPLES_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

TAGS_FIELD_NUMBER

public static final int TAGS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Agent.Skill getDefaultInstance()
Returns
Type Description
Agent.Skill

getDescriptor()

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

newBuilder()

public static Agent.Skill.Builder newBuilder()
Returns
Type Description
Agent.Skill.Builder

newBuilder(Agent.Skill prototype)

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

parseDelimitedFrom(InputStream input)

public static Agent.Skill parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Agent.Skill
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Agent.Skill parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Agent.Skill
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Agent.Skill parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Agent.Skill
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Agent.Skill parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Agent.Skill
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Agent.Skill parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Agent.Skill
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Agent.Skill> parser()
Returns
Type Description
Parser<Skill>

Methods

equals(Object obj)

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

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.

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.

getParserForType()

public Parser<Agent.Skill> getParserForType()
Returns
Type Description
Parser<Skill>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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 Agent.Skill.Builder newBuilderForType()
Returns
Type Description
Agent.Skill.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public Agent.Skill.Builder toBuilder()
Returns
Type Description
Agent.Skill.Builder

writeTo(CodedOutputStream output)

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