Class Agent.Card.Builder (0.2.0)

public static final class Agent.Card.Builder extends GeneratedMessage.Builder<Agent.Card.Builder> implements Agent.CardOrBuilder

Full Agent Card payload, often obtained from the A2A Agent Card.

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

Implements

Agent.CardOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

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

clearContent()

public Agent.Card.Builder clearContent()

Output only. The content of the agent card.

.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Card.Builder

clearType()

public Agent.Card.Builder clearType()

Output only. The type of agent card.

.google.cloud.agentregistry.v1.Agent.Card.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Card.Builder

This builder for chaining.

getContent()

public Struct getContent()

Output only. The content of the agent card.

.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Struct

The content.

getContentBuilder()

public Struct.Builder getContentBuilder()

Output only. The content of the agent card.

.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getContentOrBuilder()

public StructOrBuilder getContentOrBuilder()

Output only. The content of the agent card.

.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StructOrBuilder

getDefaultInstanceForType()

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

getDescriptorForType()

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

getType()

public Agent.Card.Type getType()

Output only. The type of agent card.

.google.cloud.agentregistry.v1.Agent.Card.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Card.Type

The type.

getTypeValue()

public int getTypeValue()

Output only. The type of agent card.

.google.cloud.agentregistry.v1.Agent.Card.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

hasContent()

public boolean hasContent()

Output only. The content of the agent card.

.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the content field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeContent(Struct value)

public Agent.Card.Builder mergeContent(Struct value)

Output only. The content of the agent card.

.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Struct
Returns
Type Description
Agent.Card.Builder

mergeFrom(Agent.Card other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setContent(Struct value)

public Agent.Card.Builder setContent(Struct value)

Output only. The content of the agent card.

.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Struct
Returns
Type Description
Agent.Card.Builder

setContent(Struct.Builder builderForValue)

public Agent.Card.Builder setContent(Struct.Builder builderForValue)

Output only. The content of the agent card.

.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Agent.Card.Builder

setType(Agent.Card.Type value)

public Agent.Card.Builder setType(Agent.Card.Type value)

Output only. The type of agent card.

.google.cloud.agentregistry.v1.Agent.Card.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Agent.Card.Type

The type to set.

Returns
Type Description
Agent.Card.Builder

This builder for chaining.

setTypeValue(int value)

public Agent.Card.Builder setTypeValue(int value)

Output only. The type of agent card.

.google.cloud.agentregistry.v1.Agent.Card.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
Agent.Card.Builder

This builder for chaining.