Package org.a2aproject.sdk.grpc
Class AgentCapabilities.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AgentCapabilities.Builder>
org.a2aproject.sdk.grpc.AgentCapabilities.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,AgentCapabilitiesOrBuilder
- Enclosing class:
- AgentCapabilities
public static final class AgentCapabilities.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AgentCapabilities.Builder>
implements AgentCapabilitiesOrBuilder
Defines optional capabilities supported by an agent.Protobuf type
lf.a2a.v1.AgentCapabilities-
Method Summary
Modifier and TypeMethodDescriptionaddAllExtensions(Iterable<? extends AgentExtension> values) A list of protocol extensions supported by the agent.addExtensions(int index, AgentExtension value) A list of protocol extensions supported by the agent.addExtensions(int index, AgentExtension.Builder builderForValue) A list of protocol extensions supported by the agent.addExtensions(AgentExtension value) A list of protocol extensions supported by the agent.addExtensions(AgentExtension.Builder builderForValue) A list of protocol extensions supported by the agent.A list of protocol extensions supported by the agent.addExtensionsBuilder(int index) A list of protocol extensions supported by the agent.build()clear()Indicates if the agent supports providing an extended agent card when authenticated.A list of protocol extensions supported by the agent.Indicates if the agent supports sending push notifications for asynchronous task updates.Indicates if the agent supports streaming responses.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIndicates if the agent supports providing an extended agent card when authenticated.getExtensions(int index) A list of protocol extensions supported by the agent.getExtensionsBuilder(int index) A list of protocol extensions supported by the agent.A list of protocol extensions supported by the agent.intA list of protocol extensions supported by the agent.A list of protocol extensions supported by the agent.getExtensionsOrBuilder(int index) A list of protocol extensions supported by the agent.List<? extends AgentExtensionOrBuilder>A list of protocol extensions supported by the agent.booleanIndicates if the agent supports sending push notifications for asynchronous task updates.booleanIndicates if the agent supports streaming responses.booleanIndicates if the agent supports providing an extended agent card when authenticated.booleanIndicates if the agent supports sending push notifications for asynchronous task updates.booleanIndicates if the agent supports streaming responses.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(AgentCapabilities other) removeExtensions(int index) A list of protocol extensions supported by the agent.setExtendedAgentCard(boolean value) Indicates if the agent supports providing an extended agent card when authenticated.setExtensions(int index, AgentExtension value) A list of protocol extensions supported by the agent.setExtensions(int index, AgentExtension.Builder builderForValue) A list of protocol extensions supported by the agent.setPushNotifications(boolean value) Indicates if the agent supports sending push notifications for asynchronous task updates.setStreaming(boolean value) Indicates if the agent supports streaming responses.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AgentCapabilities.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AgentCapabilities.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AgentCapabilities.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AgentCapabilities.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AgentCapabilities.Builder>
-
mergeFrom
public AgentCapabilities.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AgentCapabilities.Builder>- Throws:
IOException
-
hasStreaming
public boolean hasStreaming()Indicates if the agent supports streaming responses.
optional bool streaming = 1;- Specified by:
hasStreamingin interfaceAgentCapabilitiesOrBuilder- Returns:
- Whether the streaming field is set.
-
getStreaming
public boolean getStreaming()Indicates if the agent supports streaming responses.
optional bool streaming = 1;- Specified by:
getStreamingin interfaceAgentCapabilitiesOrBuilder- Returns:
- The streaming.
-
setStreaming
Indicates if the agent supports streaming responses.
optional bool streaming = 1;- Parameters:
value- The streaming to set.- Returns:
- This builder for chaining.
-
clearStreaming
Indicates if the agent supports streaming responses.
optional bool streaming = 1;- Returns:
- This builder for chaining.
-
hasPushNotifications
public boolean hasPushNotifications()Indicates if the agent supports sending push notifications for asynchronous task updates.
optional bool push_notifications = 2;- Specified by:
hasPushNotificationsin interfaceAgentCapabilitiesOrBuilder- Returns:
- Whether the pushNotifications field is set.
-
getPushNotifications
public boolean getPushNotifications()Indicates if the agent supports sending push notifications for asynchronous task updates.
optional bool push_notifications = 2;- Specified by:
getPushNotificationsin interfaceAgentCapabilitiesOrBuilder- Returns:
- The pushNotifications.
-
setPushNotifications
Indicates if the agent supports sending push notifications for asynchronous task updates.
optional bool push_notifications = 2;- Parameters:
value- The pushNotifications to set.- Returns:
- This builder for chaining.
-
clearPushNotifications
Indicates if the agent supports sending push notifications for asynchronous task updates.
optional bool push_notifications = 2;- Returns:
- This builder for chaining.
-
getExtensionsList
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3;- Specified by:
getExtensionsListin interfaceAgentCapabilitiesOrBuilder
-
getExtensionsCount
public int getExtensionsCount()A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3;- Specified by:
getExtensionsCountin interfaceAgentCapabilitiesOrBuilder
-
getExtensions
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3;- Specified by:
getExtensionsin interfaceAgentCapabilitiesOrBuilder
-
setExtensions
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3; -
setExtensions
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3; -
addExtensions
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3; -
addExtensions
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3; -
addExtensions
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3; -
addExtensions
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3; -
addAllExtensions
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3; -
clearExtensions
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3; -
removeExtensions
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3; -
getExtensionsBuilder
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3; -
getExtensionsOrBuilder
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3;- Specified by:
getExtensionsOrBuilderin interfaceAgentCapabilitiesOrBuilder
-
getExtensionsOrBuilderList
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3;- Specified by:
getExtensionsOrBuilderListin interfaceAgentCapabilitiesOrBuilder
-
addExtensionsBuilder
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3; -
addExtensionsBuilder
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3; -
getExtensionsBuilderList
A list of protocol extensions supported by the agent.
repeated .lf.a2a.v1.AgentExtension extensions = 3; -
hasExtendedAgentCard
public boolean hasExtendedAgentCard()Indicates if the agent supports providing an extended agent card when authenticated.
optional bool extended_agent_card = 4;- Specified by:
hasExtendedAgentCardin interfaceAgentCapabilitiesOrBuilder- Returns:
- Whether the extendedAgentCard field is set.
-
getExtendedAgentCard
public boolean getExtendedAgentCard()Indicates if the agent supports providing an extended agent card when authenticated.
optional bool extended_agent_card = 4;- Specified by:
getExtendedAgentCardin interfaceAgentCapabilitiesOrBuilder- Returns:
- The extendedAgentCard.
-
setExtendedAgentCard
Indicates if the agent supports providing an extended agent card when authenticated.
optional bool extended_agent_card = 4;- Parameters:
value- The extendedAgentCard to set.- Returns:
- This builder for chaining.
-
clearExtendedAgentCard
Indicates if the agent supports providing an extended agent card when authenticated.
optional bool extended_agent_card = 4;- Returns:
- This builder for chaining.
-