+ * A2AService defines the gRPC version of the A2A protocol. This has a slightly + * different shape than the JSONRPC version to better conform to AIP-127, + * where appropriate. The nouns are AgentCard, Message, Task and + * TaskPushNotificationConfig. + * - Messages are not a standard resource so there is no get/delete/update/list + * interface, only a send and stream custom methods. + * - Tasks have a get interface and custom cancel and subscribe methods. + * - TaskPushNotificationConfig are a resource whose parent is a task. + * They have get, list and create methods. + * - AgentCard is a static resource with only a get method. + * fields are not present as they don't comply with AIP rules, and the + * optional history_length on the get task method is not present as it also + * violates AIP-127 and AIP-131. + *+ */ +// Temporarily comment this out until https://github.com/grpc/grpc-java/pull/12080 is included in a release +//@javax.annotation.Generated( +// value = "by gRPC proto compiler (version 1.73.0)", +// comments = "Source: a2a.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class A2AServiceGrpc { + + private A2AServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "a2a.v1.A2AService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor
+ * A2AService defines the gRPC version of the A2A protocol. This has a slightly + * different shape than the JSONRPC version to better conform to AIP-127, + * where appropriate. The nouns are AgentCard, Message, Task and + * TaskPushNotificationConfig. + * - Messages are not a standard resource so there is no get/delete/update/list + * interface, only a send and stream custom methods. + * - Tasks have a get interface and custom cancel and subscribe methods. + * - TaskPushNotificationConfig are a resource whose parent is a task. + * They have get, list and create methods. + * - AgentCard is a static resource with only a get method. + * fields are not present as they don't comply with AIP rules, and the + * optional history_length on the get task method is not present as it also + * violates AIP-127 and AIP-131. + *+ */ + public interface AsyncService { + + /** + *
+ * Send a message to the agent. This is a blocking call that will return the + * task once it is completed, or a LRO if requested. + *+ */ + default void sendMessage(io.a2a.grpc.SendMessageRequest request, + io.grpc.stub.StreamObserver
+ * SendStreamingMessage is a streaming call that will return a stream of + * task update events until the Task is in an interrupted or terminal state. + *+ */ + default void sendStreamingMessage(io.a2a.grpc.SendMessageRequest request, + io.grpc.stub.StreamObserver
+ * Get the current state of a task from the agent. + *+ */ + default void getTask(io.a2a.grpc.GetTaskRequest request, + io.grpc.stub.StreamObserver
+ * Cancel a task from the agent. If supported one should expect no + * more task updates for the task. + *+ */ + default void cancelTask(io.a2a.grpc.CancelTaskRequest request, + io.grpc.stub.StreamObserver
+ * TaskSubscription is a streaming call that will return a stream of task + * update events. This attaches the stream to an existing in process task. + * If the task is complete the stream will return the completed task (like + * GetTask) and close the stream. + *+ */ + default void taskSubscription(io.a2a.grpc.TaskSubscriptionRequest request, + io.grpc.stub.StreamObserver
+ * Set a push notification config for a task. + *+ */ + default void createTaskPushNotificationConfig(io.a2a.grpc.CreateTaskPushNotificationConfigRequest request, + io.grpc.stub.StreamObserver
+ * Get a push notification config for a task. + *+ */ + default void getTaskPushNotificationConfig(io.a2a.grpc.GetTaskPushNotificationConfigRequest request, + io.grpc.stub.StreamObserver
+ * Get a list of push notifications configured for a task. + *+ */ + default void listTaskPushNotificationConfig(io.a2a.grpc.ListTaskPushNotificationConfigRequest request, + io.grpc.stub.StreamObserver
+ * GetAgentCard returns the agent card for the agent. + *+ */ + default void getAgentCard(io.a2a.grpc.GetAgentCardRequest request, + io.grpc.stub.StreamObserver
+ * Delete a push notification config for a task. + *+ */ + default void deleteTaskPushNotificationConfig(io.a2a.grpc.DeleteTaskPushNotificationConfigRequest request, + io.grpc.stub.StreamObserver
+ * A2AService defines the gRPC version of the A2A protocol. This has a slightly + * different shape than the JSONRPC version to better conform to AIP-127, + * where appropriate. The nouns are AgentCard, Message, Task and + * TaskPushNotificationConfig. + * - Messages are not a standard resource so there is no get/delete/update/list + * interface, only a send and stream custom methods. + * - Tasks have a get interface and custom cancel and subscribe methods. + * - TaskPushNotificationConfig are a resource whose parent is a task. + * They have get, list and create methods. + * - AgentCard is a static resource with only a get method. + * fields are not present as they don't comply with AIP rules, and the + * optional history_length on the get task method is not present as it also + * violates AIP-127 and AIP-131. + *+ */ + public static abstract class A2AServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return A2AServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service A2AService. + *
+ * A2AService defines the gRPC version of the A2A protocol. This has a slightly + * different shape than the JSONRPC version to better conform to AIP-127, + * where appropriate. The nouns are AgentCard, Message, Task and + * TaskPushNotificationConfig. + * - Messages are not a standard resource so there is no get/delete/update/list + * interface, only a send and stream custom methods. + * - Tasks have a get interface and custom cancel and subscribe methods. + * - TaskPushNotificationConfig are a resource whose parent is a task. + * They have get, list and create methods. + * - AgentCard is a static resource with only a get method. + * fields are not present as they don't comply with AIP rules, and the + * optional history_length on the get task method is not present as it also + * violates AIP-127 and AIP-131. + *+ */ + public static final class A2AServiceStub + extends io.grpc.stub.AbstractAsyncStub
+ * Send a message to the agent. This is a blocking call that will return the + * task once it is completed, or a LRO if requested. + *+ */ + public void sendMessage(io.a2a.grpc.SendMessageRequest request, + io.grpc.stub.StreamObserver
+ * SendStreamingMessage is a streaming call that will return a stream of + * task update events until the Task is in an interrupted or terminal state. + *+ */ + public void sendStreamingMessage(io.a2a.grpc.SendMessageRequest request, + io.grpc.stub.StreamObserver
+ * Get the current state of a task from the agent. + *+ */ + public void getTask(io.a2a.grpc.GetTaskRequest request, + io.grpc.stub.StreamObserver
+ * Cancel a task from the agent. If supported one should expect no + * more task updates for the task. + *+ */ + public void cancelTask(io.a2a.grpc.CancelTaskRequest request, + io.grpc.stub.StreamObserver
+ * TaskSubscription is a streaming call that will return a stream of task + * update events. This attaches the stream to an existing in process task. + * If the task is complete the stream will return the completed task (like + * GetTask) and close the stream. + *+ */ + public void taskSubscription(io.a2a.grpc.TaskSubscriptionRequest request, + io.grpc.stub.StreamObserver
+ * Set a push notification config for a task. + *+ */ + public void createTaskPushNotificationConfig(io.a2a.grpc.CreateTaskPushNotificationConfigRequest request, + io.grpc.stub.StreamObserver
+ * Get a push notification config for a task. + *+ */ + public void getTaskPushNotificationConfig(io.a2a.grpc.GetTaskPushNotificationConfigRequest request, + io.grpc.stub.StreamObserver
+ * Get a list of push notifications configured for a task. + *+ */ + public void listTaskPushNotificationConfig(io.a2a.grpc.ListTaskPushNotificationConfigRequest request, + io.grpc.stub.StreamObserver
+ * GetAgentCard returns the agent card for the agent. + *+ */ + public void getAgentCard(io.a2a.grpc.GetAgentCardRequest request, + io.grpc.stub.StreamObserver
+ * Delete a push notification config for a task. + *+ */ + public void deleteTaskPushNotificationConfig(io.a2a.grpc.DeleteTaskPushNotificationConfigRequest request, + io.grpc.stub.StreamObserver
+ * A2AService defines the gRPC version of the A2A protocol. This has a slightly + * different shape than the JSONRPC version to better conform to AIP-127, + * where appropriate. The nouns are AgentCard, Message, Task and + * TaskPushNotificationConfig. + * - Messages are not a standard resource so there is no get/delete/update/list + * interface, only a send and stream custom methods. + * - Tasks have a get interface and custom cancel and subscribe methods. + * - TaskPushNotificationConfig are a resource whose parent is a task. + * They have get, list and create methods. + * - AgentCard is a static resource with only a get method. + * fields are not present as they don't comply with AIP rules, and the + * optional history_length on the get task method is not present as it also + * violates AIP-127 and AIP-131. + *+ */ + public static final class A2AServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub
+ * Send a message to the agent. This is a blocking call that will return the + * task once it is completed, or a LRO if requested. + *+ */ + public io.a2a.grpc.SendMessageResponse sendMessage(io.a2a.grpc.SendMessageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSendMessageMethod(), getCallOptions(), request); + } + + /** + *
+ * SendStreamingMessage is a streaming call that will return a stream of + * task update events until the Task is in an interrupted or terminal state. + *+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall, io.a2a.grpc.StreamResponse> + sendStreamingMessage(io.a2a.grpc.SendMessageRequest request) { + return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( + getChannel(), getSendStreamingMessageMethod(), getCallOptions(), request); + } + + /** + *
+ * Get the current state of a task from the agent. + *+ */ + public io.a2a.grpc.Task getTask(io.a2a.grpc.GetTaskRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTaskMethod(), getCallOptions(), request); + } + + /** + *
+ * Cancel a task from the agent. If supported one should expect no + * more task updates for the task. + *+ */ + public io.a2a.grpc.Task cancelTask(io.a2a.grpc.CancelTaskRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelTaskMethod(), getCallOptions(), request); + } + + /** + *
+ * TaskSubscription is a streaming call that will return a stream of task + * update events. This attaches the stream to an existing in process task. + * If the task is complete the stream will return the completed task (like + * GetTask) and close the stream. + *+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall, io.a2a.grpc.StreamResponse> + taskSubscription(io.a2a.grpc.TaskSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( + getChannel(), getTaskSubscriptionMethod(), getCallOptions(), request); + } + + /** + *
+ * Set a push notification config for a task. + *+ */ + public io.a2a.grpc.TaskPushNotificationConfig createTaskPushNotificationConfig(io.a2a.grpc.CreateTaskPushNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTaskPushNotificationConfigMethod(), getCallOptions(), request); + } + + /** + *
+ * Get a push notification config for a task. + *+ */ + public io.a2a.grpc.TaskPushNotificationConfig getTaskPushNotificationConfig(io.a2a.grpc.GetTaskPushNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTaskPushNotificationConfigMethod(), getCallOptions(), request); + } + + /** + *
+ * Get a list of push notifications configured for a task. + *+ */ + public io.a2a.grpc.ListTaskPushNotificationConfigResponse listTaskPushNotificationConfig(io.a2a.grpc.ListTaskPushNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTaskPushNotificationConfigMethod(), getCallOptions(), request); + } + + /** + *
+ * GetAgentCard returns the agent card for the agent. + *+ */ + public io.a2a.grpc.AgentCard getAgentCard(io.a2a.grpc.GetAgentCardRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAgentCardMethod(), getCallOptions(), request); + } + + /** + *
+ * Delete a push notification config for a task. + *+ */ + public com.google.protobuf.Empty deleteTaskPushNotificationConfig(io.a2a.grpc.DeleteTaskPushNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTaskPushNotificationConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service A2AService. + *
+ * A2AService defines the gRPC version of the A2A protocol. This has a slightly + * different shape than the JSONRPC version to better conform to AIP-127, + * where appropriate. The nouns are AgentCard, Message, Task and + * TaskPushNotificationConfig. + * - Messages are not a standard resource so there is no get/delete/update/list + * interface, only a send and stream custom methods. + * - Tasks have a get interface and custom cancel and subscribe methods. + * - TaskPushNotificationConfig are a resource whose parent is a task. + * They have get, list and create methods. + * - AgentCard is a static resource with only a get method. + * fields are not present as they don't comply with AIP rules, and the + * optional history_length on the get task method is not present as it also + * violates AIP-127 and AIP-131. + *+ */ + public static final class A2AServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub
+ * Send a message to the agent. This is a blocking call that will return the + * task once it is completed, or a LRO if requested. + *+ */ + public io.a2a.grpc.SendMessageResponse sendMessage(io.a2a.grpc.SendMessageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSendMessageMethod(), getCallOptions(), request); + } + + /** + *
+ * SendStreamingMessage is a streaming call that will return a stream of + * task update events until the Task is in an interrupted or terminal state. + *+ */ + public java.util.Iterator
+ * Get the current state of a task from the agent. + *+ */ + public io.a2a.grpc.Task getTask(io.a2a.grpc.GetTaskRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTaskMethod(), getCallOptions(), request); + } + + /** + *
+ * Cancel a task from the agent. If supported one should expect no + * more task updates for the task. + *+ */ + public io.a2a.grpc.Task cancelTask(io.a2a.grpc.CancelTaskRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelTaskMethod(), getCallOptions(), request); + } + + /** + *
+ * TaskSubscription is a streaming call that will return a stream of task + * update events. This attaches the stream to an existing in process task. + * If the task is complete the stream will return the completed task (like + * GetTask) and close the stream. + *+ */ + public java.util.Iterator
+ * Set a push notification config for a task. + *+ */ + public io.a2a.grpc.TaskPushNotificationConfig createTaskPushNotificationConfig(io.a2a.grpc.CreateTaskPushNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTaskPushNotificationConfigMethod(), getCallOptions(), request); + } + + /** + *
+ * Get a push notification config for a task. + *+ */ + public io.a2a.grpc.TaskPushNotificationConfig getTaskPushNotificationConfig(io.a2a.grpc.GetTaskPushNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTaskPushNotificationConfigMethod(), getCallOptions(), request); + } + + /** + *
+ * Get a list of push notifications configured for a task. + *+ */ + public io.a2a.grpc.ListTaskPushNotificationConfigResponse listTaskPushNotificationConfig(io.a2a.grpc.ListTaskPushNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTaskPushNotificationConfigMethod(), getCallOptions(), request); + } + + /** + *
+ * GetAgentCard returns the agent card for the agent. + *+ */ + public io.a2a.grpc.AgentCard getAgentCard(io.a2a.grpc.GetAgentCardRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAgentCardMethod(), getCallOptions(), request); + } + + /** + *
+ * Delete a push notification config for a task. + *+ */ + public com.google.protobuf.Empty deleteTaskPushNotificationConfig(io.a2a.grpc.DeleteTaskPushNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTaskPushNotificationConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service A2AService. + *
+ * A2AService defines the gRPC version of the A2A protocol. This has a slightly + * different shape than the JSONRPC version to better conform to AIP-127, + * where appropriate. The nouns are AgentCard, Message, Task and + * TaskPushNotificationConfig. + * - Messages are not a standard resource so there is no get/delete/update/list + * interface, only a send and stream custom methods. + * - Tasks have a get interface and custom cancel and subscribe methods. + * - TaskPushNotificationConfig are a resource whose parent is a task. + * They have get, list and create methods. + * - AgentCard is a static resource with only a get method. + * fields are not present as they don't comply with AIP rules, and the + * optional history_length on the get task method is not present as it also + * violates AIP-127 and AIP-131. + *+ */ + public static final class A2AServiceFutureStub + extends io.grpc.stub.AbstractFutureStub
+ * Send a message to the agent. This is a blocking call that will return the + * task once it is completed, or a LRO if requested. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Get the current state of a task from the agent. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Cancel a task from the agent. If supported one should expect no + * more task updates for the task. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Set a push notification config for a task. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Get a push notification config for a task. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Get a list of push notifications configured for a task. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * GetAgentCard returns the agent card for the agent. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Delete a push notification config for a task. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Description of this security scheme. + *+ * + *
string description = 1 [json_name = "description"];
+ * @return The description.
+ */
+ @java.lang.Override
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Description of this security scheme. + *+ * + *
string description = 1 [json_name = "description"];
+ * @return The bytes for description.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LOCATION_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object location_ = "";
+ /**
+ * + * Location of the API key, valid values are "query", "header", or "cookie" + *+ * + *
string location = 2 [json_name = "location"];
+ * @return The location.
+ */
+ @java.lang.Override
+ public java.lang.String getLocation() {
+ java.lang.Object ref = location_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ location_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Location of the API key, valid values are "query", "header", or "cookie" + *+ * + *
string location = 2 [json_name = "location"];
+ * @return The bytes for location.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getLocationBytes() {
+ java.lang.Object ref = location_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ location_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * + * Name of the header, query or cookie parameter to be used. + *+ * + *
string name = 3 [json_name = "name"];
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Name of the header, query or cookie parameter to be used. + *+ * + *
string name = 3 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, description_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, location_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, name_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, description_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, location_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, name_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.a2a.grpc.APIKeySecurityScheme)) {
+ return super.equals(obj);
+ }
+ io.a2a.grpc.APIKeySecurityScheme other = (io.a2a.grpc.APIKeySecurityScheme) obj;
+
+ if (!getDescription()
+ .equals(other.getDescription())) return false;
+ if (!getLocation()
+ .equals(other.getLocation())) return false;
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ hash = (37 * hash) + LOCATION_FIELD_NUMBER;
+ hash = (53 * hash) + getLocation().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.a2a.grpc.APIKeySecurityScheme parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.APIKeySecurityScheme parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.APIKeySecurityScheme parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.APIKeySecurityScheme parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.APIKeySecurityScheme parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.APIKeySecurityScheme parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.APIKeySecurityScheme parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.APIKeySecurityScheme parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.a2a.grpc.APIKeySecurityScheme parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.a2a.grpc.APIKeySecurityScheme parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.a2a.grpc.APIKeySecurityScheme parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.APIKeySecurityScheme parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.a2a.grpc.APIKeySecurityScheme prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code a2a.v1.APIKeySecurityScheme}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder+ * Description of this security scheme. + *+ * + *
string description = 1 [json_name = "description"];
+ * @return The description.
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Description of this security scheme. + *+ * + *
string description = 1 [json_name = "description"];
+ * @return The bytes for description.
+ */
+ public com.google.protobuf.ByteString
+ getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Description of this security scheme. + *+ * + *
string description = 1 [json_name = "description"];
+ * @param value The description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescription(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ description_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Description of this security scheme. + *+ * + *
string description = 1 [json_name = "description"];
+ * @return This builder for chaining.
+ */
+ public Builder clearDescription() {
+ description_ = getDefaultInstance().getDescription();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Description of this security scheme. + *+ * + *
string description = 1 [json_name = "description"];
+ * @param value The bytes for description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ description_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object location_ = "";
+ /**
+ * + * Location of the API key, valid values are "query", "header", or "cookie" + *+ * + *
string location = 2 [json_name = "location"];
+ * @return The location.
+ */
+ public java.lang.String getLocation() {
+ java.lang.Object ref = location_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ location_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Location of the API key, valid values are "query", "header", or "cookie" + *+ * + *
string location = 2 [json_name = "location"];
+ * @return The bytes for location.
+ */
+ public com.google.protobuf.ByteString
+ getLocationBytes() {
+ java.lang.Object ref = location_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ location_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Location of the API key, valid values are "query", "header", or "cookie" + *+ * + *
string location = 2 [json_name = "location"];
+ * @param value The location to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLocation(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ location_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Location of the API key, valid values are "query", "header", or "cookie" + *+ * + *
string location = 2 [json_name = "location"];
+ * @return This builder for chaining.
+ */
+ public Builder clearLocation() {
+ location_ = getDefaultInstance().getLocation();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Location of the API key, valid values are "query", "header", or "cookie" + *+ * + *
string location = 2 [json_name = "location"];
+ * @param value The bytes for location to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLocationBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ location_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * + * Name of the header, query or cookie parameter to be used. + *+ * + *
string name = 3 [json_name = "name"];
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Name of the header, query or cookie parameter to be used. + *+ * + *
string name = 3 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Name of the header, query or cookie parameter to be used. + *+ * + *
string name = 3 [json_name = "name"];
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Name of the header, query or cookie parameter to be used. + *+ * + *
string name = 3 [json_name = "name"];
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Name of the header, query or cookie parameter to be used. + *+ * + *
string name = 3 [json_name = "name"];
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:a2a.v1.APIKeySecurityScheme)
+ }
+
+ // @@protoc_insertion_point(class_scope:a2a.v1.APIKeySecurityScheme)
+ private static final io.a2a.grpc.APIKeySecurityScheme DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.a2a.grpc.APIKeySecurityScheme();
+ }
+
+ public static io.a2a.grpc.APIKeySecurityScheme getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Description of this security scheme. + *+ * + *
string description = 1 [json_name = "description"];
+ * @return The description.
+ */
+ java.lang.String getDescription();
+ /**
+ * + * Description of this security scheme. + *+ * + *
string description = 1 [json_name = "description"];
+ * @return The bytes for description.
+ */
+ com.google.protobuf.ByteString
+ getDescriptionBytes();
+
+ /**
+ * + * Location of the API key, valid values are "query", "header", or "cookie" + *+ * + *
string location = 2 [json_name = "location"];
+ * @return The location.
+ */
+ java.lang.String getLocation();
+ /**
+ * + * Location of the API key, valid values are "query", "header", or "cookie" + *+ * + *
string location = 2 [json_name = "location"];
+ * @return The bytes for location.
+ */
+ com.google.protobuf.ByteString
+ getLocationBytes();
+
+ /**
+ * + * Name of the header, query or cookie parameter to be used. + *+ * + *
string name = 3 [json_name = "name"];
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * + * Name of the header, query or cookie parameter to be used. + *+ * + *
string name = 3 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+}
diff --git a/grpc/src/main/java/io/a2a/grpc/AgentCapabilities.java b/grpc/src/main/java/io/a2a/grpc/AgentCapabilities.java
new file mode 100644
index 000000000..ca67660d7
--- /dev/null
+++ b/grpc/src/main/java/io/a2a/grpc/AgentCapabilities.java
@@ -0,0 +1,986 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: a2a.proto
+// Protobuf Java Version: 4.31.1
+
+package io.a2a.grpc;
+
+/**
+ * + * Defines the A2A feature set supported by the agent + *+ * + * Protobuf type {@code a2a.v1.AgentCapabilities} + */ +@com.google.protobuf.Generated +public final class AgentCapabilities extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:a2a.v1.AgentCapabilities) + AgentCapabilitiesOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 1, + /* suffix= */ "", + AgentCapabilities.class.getName()); + } + // Use AgentCapabilities.newBuilder() to construct. + private AgentCapabilities(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + private AgentCapabilities() { + extensions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.a2a.grpc.A2A.internal_static_a2a_v1_AgentCapabilities_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.a2a.grpc.A2A.internal_static_a2a_v1_AgentCapabilities_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.a2a.grpc.AgentCapabilities.class, io.a2a.grpc.AgentCapabilities.Builder.class); + } + + public static final int STREAMING_FIELD_NUMBER = 1; + private boolean streaming_ = false; + /** + *
+ * If the agent will support streaming responses + *+ * + *
bool streaming = 1 [json_name = "streaming"];
+ * @return The streaming.
+ */
+ @java.lang.Override
+ public boolean getStreaming() {
+ return streaming_;
+ }
+
+ public static final int PUSH_NOTIFICATIONS_FIELD_NUMBER = 2;
+ private boolean pushNotifications_ = false;
+ /**
+ * + * If the agent can send push notifications to the clients webhook + *+ * + *
bool push_notifications = 2 [json_name = "pushNotifications"];
+ * @return The pushNotifications.
+ */
+ @java.lang.Override
+ public boolean getPushNotifications() {
+ return pushNotifications_;
+ }
+
+ public static final int EXTENSIONS_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private java.util.List+ * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ @java.lang.Override
+ public java.util.List+ * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ @java.lang.Override
+ public java.util.List extends io.a2a.grpc.AgentExtensionOrBuilder>
+ getExtensionsOrBuilderList() {
+ return extensions_;
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ @java.lang.Override
+ public int getExtensionsCount() {
+ return extensions_.size();
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ @java.lang.Override
+ public io.a2a.grpc.AgentExtension getExtensions(int index) {
+ return extensions_.get(index);
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ @java.lang.Override
+ public io.a2a.grpc.AgentExtensionOrBuilder getExtensionsOrBuilder(
+ int index) {
+ return extensions_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (streaming_ != false) {
+ output.writeBool(1, streaming_);
+ }
+ if (pushNotifications_ != false) {
+ output.writeBool(2, pushNotifications_);
+ }
+ for (int i = 0; i < extensions_.size(); i++) {
+ output.writeMessage(3, extensions_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (streaming_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, streaming_);
+ }
+ if (pushNotifications_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, pushNotifications_);
+ }
+ for (int i = 0; i < extensions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, extensions_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.a2a.grpc.AgentCapabilities)) {
+ return super.equals(obj);
+ }
+ io.a2a.grpc.AgentCapabilities other = (io.a2a.grpc.AgentCapabilities) obj;
+
+ if (getStreaming()
+ != other.getStreaming()) return false;
+ if (getPushNotifications()
+ != other.getPushNotifications()) return false;
+ if (!getExtensionsList()
+ .equals(other.getExtensionsList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + STREAMING_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getStreaming());
+ hash = (37 * hash) + PUSH_NOTIFICATIONS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getPushNotifications());
+ if (getExtensionsCount() > 0) {
+ hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getExtensionsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.a2a.grpc.AgentCapabilities parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AgentCapabilities parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentCapabilities parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AgentCapabilities parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentCapabilities parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AgentCapabilities parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentCapabilities parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.AgentCapabilities parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.a2a.grpc.AgentCapabilities parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.a2a.grpc.AgentCapabilities parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentCapabilities parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.AgentCapabilities parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.a2a.grpc.AgentCapabilities prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Defines the A2A feature set supported by the agent + *+ * + * Protobuf type {@code a2a.v1.AgentCapabilities} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
+ * If the agent will support streaming responses + *+ * + *
bool streaming = 1 [json_name = "streaming"];
+ * @return The streaming.
+ */
+ @java.lang.Override
+ public boolean getStreaming() {
+ return streaming_;
+ }
+ /**
+ * + * If the agent will support streaming responses + *+ * + *
bool streaming = 1 [json_name = "streaming"];
+ * @param value The streaming to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStreaming(boolean value) {
+
+ streaming_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * If the agent will support streaming responses + *+ * + *
bool streaming = 1 [json_name = "streaming"];
+ * @return This builder for chaining.
+ */
+ public Builder clearStreaming() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ streaming_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean pushNotifications_ ;
+ /**
+ * + * If the agent can send push notifications to the clients webhook + *+ * + *
bool push_notifications = 2 [json_name = "pushNotifications"];
+ * @return The pushNotifications.
+ */
+ @java.lang.Override
+ public boolean getPushNotifications() {
+ return pushNotifications_;
+ }
+ /**
+ * + * If the agent can send push notifications to the clients webhook + *+ * + *
bool push_notifications = 2 [json_name = "pushNotifications"];
+ * @param value The pushNotifications to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPushNotifications(boolean value) {
+
+ pushNotifications_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * If the agent can send push notifications to the clients webhook + *+ * + *
bool push_notifications = 2 [json_name = "pushNotifications"];
+ * @return This builder for chaining.
+ */
+ public Builder clearPushNotifications() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ pushNotifications_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public java.util.List+ * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public int getExtensionsCount() {
+ if (extensionsBuilder_ == null) {
+ return extensions_.size();
+ } else {
+ return extensionsBuilder_.getCount();
+ }
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public io.a2a.grpc.AgentExtension getExtensions(int index) {
+ if (extensionsBuilder_ == null) {
+ return extensions_.get(index);
+ } else {
+ return extensionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public Builder setExtensions(
+ int index, io.a2a.grpc.AgentExtension value) {
+ if (extensionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExtensionsIsMutable();
+ extensions_.set(index, value);
+ onChanged();
+ } else {
+ extensionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public Builder setExtensions(
+ int index, io.a2a.grpc.AgentExtension.Builder builderForValue) {
+ if (extensionsBuilder_ == null) {
+ ensureExtensionsIsMutable();
+ extensions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ extensionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public Builder addExtensions(io.a2a.grpc.AgentExtension value) {
+ if (extensionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExtensionsIsMutable();
+ extensions_.add(value);
+ onChanged();
+ } else {
+ extensionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public Builder addExtensions(
+ int index, io.a2a.grpc.AgentExtension value) {
+ if (extensionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExtensionsIsMutable();
+ extensions_.add(index, value);
+ onChanged();
+ } else {
+ extensionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public Builder addExtensions(
+ io.a2a.grpc.AgentExtension.Builder builderForValue) {
+ if (extensionsBuilder_ == null) {
+ ensureExtensionsIsMutable();
+ extensions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ extensionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public Builder addExtensions(
+ int index, io.a2a.grpc.AgentExtension.Builder builderForValue) {
+ if (extensionsBuilder_ == null) {
+ ensureExtensionsIsMutable();
+ extensions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ extensionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public Builder addAllExtensions(
+ java.lang.Iterable extends io.a2a.grpc.AgentExtension> values) {
+ if (extensionsBuilder_ == null) {
+ ensureExtensionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, extensions_);
+ onChanged();
+ } else {
+ extensionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public Builder clearExtensions() {
+ if (extensionsBuilder_ == null) {
+ extensions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ extensionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public Builder removeExtensions(int index) {
+ if (extensionsBuilder_ == null) {
+ ensureExtensionsIsMutable();
+ extensions_.remove(index);
+ onChanged();
+ } else {
+ extensionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public io.a2a.grpc.AgentExtension.Builder getExtensionsBuilder(
+ int index) {
+ return internalGetExtensionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public io.a2a.grpc.AgentExtensionOrBuilder getExtensionsOrBuilder(
+ int index) {
+ if (extensionsBuilder_ == null) {
+ return extensions_.get(index); } else {
+ return extensionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public java.util.List extends io.a2a.grpc.AgentExtensionOrBuilder>
+ getExtensionsOrBuilderList() {
+ if (extensionsBuilder_ != null) {
+ return extensionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(extensions_);
+ }
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public io.a2a.grpc.AgentExtension.Builder addExtensionsBuilder() {
+ return internalGetExtensionsFieldBuilder().addBuilder(
+ io.a2a.grpc.AgentExtension.getDefaultInstance());
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public io.a2a.grpc.AgentExtension.Builder addExtensionsBuilder(
+ int index) {
+ return internalGetExtensionsFieldBuilder().addBuilder(
+ index, io.a2a.grpc.AgentExtension.getDefaultInstance());
+ }
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ public java.util.List+ * If the agent will support streaming responses + *+ * + *
bool streaming = 1 [json_name = "streaming"];
+ * @return The streaming.
+ */
+ boolean getStreaming();
+
+ /**
+ * + * If the agent can send push notifications to the clients webhook + *+ * + *
bool push_notifications = 2 [json_name = "pushNotifications"];
+ * @return The pushNotifications.
+ */
+ boolean getPushNotifications();
+
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ java.util.List+ * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ io.a2a.grpc.AgentExtension getExtensions(int index);
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ int getExtensionsCount();
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ java.util.List extends io.a2a.grpc.AgentExtensionOrBuilder>
+ getExtensionsOrBuilderList();
+ /**
+ * + * Extensions supported by this agent. + *+ * + *
repeated .a2a.v1.AgentExtension extensions = 3 [json_name = "extensions"];
+ */
+ io.a2a.grpc.AgentExtensionOrBuilder getExtensionsOrBuilder(
+ int index);
+}
diff --git a/grpc/src/main/java/io/a2a/grpc/AgentCard.java b/grpc/src/main/java/io/a2a/grpc/AgentCard.java
new file mode 100644
index 000000000..8327b6376
--- /dev/null
+++ b/grpc/src/main/java/io/a2a/grpc/AgentCard.java
@@ -0,0 +1,4410 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: a2a.proto
+// Protobuf Java Version: 4.31.1
+
+package io.a2a.grpc;
+
+/**
+ * + * AgentCard conveys key information: + * - Overall details (version, name, description, uses) + * - Skills; a set of actions/solutions the agent can perform + * - Default modalities/content types supported by the agent. + * - Authentication requirements + *+ * + * Protobuf type {@code a2a.v1.AgentCard} + */ +@com.google.protobuf.Generated +public final class AgentCard extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:a2a.v1.AgentCard) + AgentCardOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 1, + /* suffix= */ "", + AgentCard.class.getName()); + } + // Use AgentCard.newBuilder() to construct. + private AgentCard(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + private AgentCard() { + protocolVersion_ = ""; + name_ = ""; + description_ = ""; + url_ = ""; + preferredTransport_ = ""; + additionalInterfaces_ = java.util.Collections.emptyList(); + version_ = ""; + documentationUrl_ = ""; + security_ = java.util.Collections.emptyList(); + defaultInputModes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + defaultOutputModes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + skills_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.a2a.grpc.A2A.internal_static_a2a_v1_AgentCard_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetSecuritySchemes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.a2a.grpc.A2A.internal_static_a2a_v1_AgentCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.a2a.grpc.AgentCard.class, io.a2a.grpc.AgentCard.Builder.class); + } + + private int bitField0_; + public static final int PROTOCOL_VERSION_FIELD_NUMBER = 16; + @SuppressWarnings("serial") + private volatile java.lang.Object protocolVersion_ = ""; + /** + *
+ * The version of the A2A protocol this agent supports. + *+ * + *
string protocol_version = 16 [json_name = "protocolVersion"];
+ * @return The protocolVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getProtocolVersion() {
+ java.lang.Object ref = protocolVersion_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ protocolVersion_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The version of the A2A protocol this agent supports. + *+ * + *
string protocol_version = 16 [json_name = "protocolVersion"];
+ * @return The bytes for protocolVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getProtocolVersionBytes() {
+ java.lang.Object ref = protocolVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ protocolVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * + * A human readable name for the agent. + * Example: "Recipe Agent" + *+ * + *
string name = 1 [json_name = "name"];
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * A human readable name for the agent. + * Example: "Recipe Agent" + *+ * + *
string name = 1 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object description_ = "";
+ /**
+ * + * A description of the agent's domain of action/solution space. + * Example: "Agent that helps users with recipes and cooking." + *+ * + *
string description = 2 [json_name = "description"];
+ * @return The description.
+ */
+ @java.lang.Override
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * A description of the agent's domain of action/solution space. + * Example: "Agent that helps users with recipes and cooking." + *+ * + *
string description = 2 [json_name = "description"];
+ * @return The bytes for description.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int URL_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object url_ = "";
+ /**
+ * + * A URL to the address the agent is hosted at. This represents the + * preferred endpoint as declared by the agent. + *+ * + *
string url = 3 [json_name = "url"];
+ * @return The url.
+ */
+ @java.lang.Override
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ url_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * A URL to the address the agent is hosted at. This represents the + * preferred endpoint as declared by the agent. + *+ * + *
string url = 3 [json_name = "url"];
+ * @return The bytes for url.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PREFERRED_TRANSPORT_FIELD_NUMBER = 14;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object preferredTransport_ = "";
+ /**
+ * + * The transport of the preferred endpoint. If empty, defaults to JSONRPC. + *+ * + *
string preferred_transport = 14 [json_name = "preferredTransport"];
+ * @return The preferredTransport.
+ */
+ @java.lang.Override
+ public java.lang.String getPreferredTransport() {
+ java.lang.Object ref = preferredTransport_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ preferredTransport_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The transport of the preferred endpoint. If empty, defaults to JSONRPC. + *+ * + *
string preferred_transport = 14 [json_name = "preferredTransport"];
+ * @return The bytes for preferredTransport.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPreferredTransportBytes() {
+ java.lang.Object ref = preferredTransport_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ preferredTransport_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ADDITIONAL_INTERFACES_FIELD_NUMBER = 15;
+ @SuppressWarnings("serial")
+ private java.util.List+ * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ @java.lang.Override
+ public java.util.List+ * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ @java.lang.Override
+ public java.util.List extends io.a2a.grpc.AgentInterfaceOrBuilder>
+ getAdditionalInterfacesOrBuilderList() {
+ return additionalInterfaces_;
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ @java.lang.Override
+ public int getAdditionalInterfacesCount() {
+ return additionalInterfaces_.size();
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ @java.lang.Override
+ public io.a2a.grpc.AgentInterface getAdditionalInterfaces(int index) {
+ return additionalInterfaces_.get(index);
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ @java.lang.Override
+ public io.a2a.grpc.AgentInterfaceOrBuilder getAdditionalInterfacesOrBuilder(
+ int index) {
+ return additionalInterfaces_.get(index);
+ }
+
+ public static final int PROVIDER_FIELD_NUMBER = 4;
+ private io.a2a.grpc.AgentProvider provider_;
+ /**
+ * + * The service provider of the agent. + *+ * + *
.a2a.v1.AgentProvider provider = 4 [json_name = "provider"];
+ * @return Whether the provider field is set.
+ */
+ @java.lang.Override
+ public boolean hasProvider() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * + * The service provider of the agent. + *+ * + *
.a2a.v1.AgentProvider provider = 4 [json_name = "provider"];
+ * @return The provider.
+ */
+ @java.lang.Override
+ public io.a2a.grpc.AgentProvider getProvider() {
+ return provider_ == null ? io.a2a.grpc.AgentProvider.getDefaultInstance() : provider_;
+ }
+ /**
+ * + * The service provider of the agent. + *+ * + *
.a2a.v1.AgentProvider provider = 4 [json_name = "provider"];
+ */
+ @java.lang.Override
+ public io.a2a.grpc.AgentProviderOrBuilder getProviderOrBuilder() {
+ return provider_ == null ? io.a2a.grpc.AgentProvider.getDefaultInstance() : provider_;
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object version_ = "";
+ /**
+ * + * The version of the agent. + * Example: "1.0.0" + *+ * + *
string version = 5 [json_name = "version"];
+ * @return The version.
+ */
+ @java.lang.Override
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ version_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The version of the agent. + * Example: "1.0.0" + *+ * + *
string version = 5 [json_name = "version"];
+ * @return The bytes for version.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DOCUMENTATION_URL_FIELD_NUMBER = 6;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object documentationUrl_ = "";
+ /**
+ * + * A url to provide additional documentation about the agent. + *+ * + *
string documentation_url = 6 [json_name = "documentationUrl"];
+ * @return The documentationUrl.
+ */
+ @java.lang.Override
+ public java.lang.String getDocumentationUrl() {
+ java.lang.Object ref = documentationUrl_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ documentationUrl_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * A url to provide additional documentation about the agent. + *+ * + *
string documentation_url = 6 [json_name = "documentationUrl"];
+ * @return The bytes for documentationUrl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDocumentationUrlBytes() {
+ java.lang.Object ref = documentationUrl_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ documentationUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CAPABILITIES_FIELD_NUMBER = 7;
+ private io.a2a.grpc.AgentCapabilities capabilities_;
+ /**
+ * + * A2A Capability set supported by the agent. + *+ * + *
.a2a.v1.AgentCapabilities capabilities = 7 [json_name = "capabilities"];
+ * @return Whether the capabilities field is set.
+ */
+ @java.lang.Override
+ public boolean hasCapabilities() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * + * A2A Capability set supported by the agent. + *+ * + *
.a2a.v1.AgentCapabilities capabilities = 7 [json_name = "capabilities"];
+ * @return The capabilities.
+ */
+ @java.lang.Override
+ public io.a2a.grpc.AgentCapabilities getCapabilities() {
+ return capabilities_ == null ? io.a2a.grpc.AgentCapabilities.getDefaultInstance() : capabilities_;
+ }
+ /**
+ * + * A2A Capability set supported by the agent. + *+ * + *
.a2a.v1.AgentCapabilities capabilities = 7 [json_name = "capabilities"];
+ */
+ @java.lang.Override
+ public io.a2a.grpc.AgentCapabilitiesOrBuilder getCapabilitiesOrBuilder() {
+ return capabilities_ == null ? io.a2a.grpc.AgentCapabilities.getDefaultInstance() : capabilities_;
+ }
+
+ public static final int SECURITY_SCHEMES_FIELD_NUMBER = 8;
+ private static final class SecuritySchemesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, io.a2a.grpc.SecurityScheme> defaultEntry =
+ com.google.protobuf.MapEntry
+ .+ * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ @java.lang.Override
+ public boolean containsSecuritySchemes(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetSecuritySchemes().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getSecuritySchemesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ @java.lang.Override
+ public java.util.Map+ * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ @java.lang.Override
+ public /* nullable */
+io.a2a.grpc.SecurityScheme getSecuritySchemesOrDefault(
+ java.lang.String key,
+ /* nullable */
+io.a2a.grpc.SecurityScheme defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map+ * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ @java.lang.Override
+ public io.a2a.grpc.SecurityScheme getSecuritySchemesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map+ * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ @java.lang.Override
+ public java.util.List+ * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ @java.lang.Override
+ public java.util.List extends io.a2a.grpc.SecurityOrBuilder>
+ getSecurityOrBuilderList() {
+ return security_;
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ @java.lang.Override
+ public int getSecurityCount() {
+ return security_.size();
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ @java.lang.Override
+ public io.a2a.grpc.Security getSecurity(int index) {
+ return security_.get(index);
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ @java.lang.Override
+ public io.a2a.grpc.SecurityOrBuilder getSecurityOrBuilder(
+ int index) {
+ return security_.get(index);
+ }
+
+ public static final int DEFAULT_INPUT_MODES_FIELD_NUMBER = 10;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList defaultInputModes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @return A list containing the defaultInputModes.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getDefaultInputModesList() {
+ return defaultInputModes_;
+ }
+ /**
+ * + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @return The count of defaultInputModes.
+ */
+ public int getDefaultInputModesCount() {
+ return defaultInputModes_.size();
+ }
+ /**
+ * + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @param index The index of the element to return.
+ * @return The defaultInputModes at the given index.
+ */
+ public java.lang.String getDefaultInputModes(int index) {
+ return defaultInputModes_.get(index);
+ }
+ /**
+ * + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @param index The index of the value to return.
+ * @return The bytes of the defaultInputModes at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getDefaultInputModesBytes(int index) {
+ return defaultInputModes_.getByteString(index);
+ }
+
+ public static final int DEFAULT_OUTPUT_MODES_FIELD_NUMBER = 11;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList defaultOutputModes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * + * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @return A list containing the defaultOutputModes.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getDefaultOutputModesList() {
+ return defaultOutputModes_;
+ }
+ /**
+ * + * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @return The count of defaultOutputModes.
+ */
+ public int getDefaultOutputModesCount() {
+ return defaultOutputModes_.size();
+ }
+ /**
+ * + * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @param index The index of the element to return.
+ * @return The defaultOutputModes at the given index.
+ */
+ public java.lang.String getDefaultOutputModes(int index) {
+ return defaultOutputModes_.get(index);
+ }
+ /**
+ * + * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @param index The index of the value to return.
+ * @return The bytes of the defaultOutputModes at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getDefaultOutputModesBytes(int index) {
+ return defaultOutputModes_.getByteString(index);
+ }
+
+ public static final int SKILLS_FIELD_NUMBER = 12;
+ @SuppressWarnings("serial")
+ private java.util.List+ * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ @java.lang.Override
+ public java.util.List+ * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ @java.lang.Override
+ public java.util.List extends io.a2a.grpc.AgentSkillOrBuilder>
+ getSkillsOrBuilderList() {
+ return skills_;
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ @java.lang.Override
+ public int getSkillsCount() {
+ return skills_.size();
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ @java.lang.Override
+ public io.a2a.grpc.AgentSkill getSkills(int index) {
+ return skills_.get(index);
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ @java.lang.Override
+ public io.a2a.grpc.AgentSkillOrBuilder getSkillsOrBuilder(
+ int index) {
+ return skills_.get(index);
+ }
+
+ public static final int SUPPORTS_AUTHENTICATED_EXTENDED_CARD_FIELD_NUMBER = 13;
+ private boolean supportsAuthenticatedExtendedCard_ = false;
+ /**
+ * + * Whether the agent supports providing an extended agent card when + * the user is authenticated, i.e. is the card from .well-known + * different than the card from GetAgentCard. + *+ * + *
bool supports_authenticated_extended_card = 13 [json_name = "supportsAuthenticatedExtendedCard"];
+ * @return The supportsAuthenticatedExtendedCard.
+ */
+ @java.lang.Override
+ public boolean getSupportsAuthenticatedExtendedCard() {
+ return supportsAuthenticatedExtendedCard_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, description_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, url_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(4, getProvider());
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, version_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(documentationUrl_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 6, documentationUrl_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(7, getCapabilities());
+ }
+ com.google.protobuf.GeneratedMessage
+ .serializeStringMapTo(
+ output,
+ internalGetSecuritySchemes(),
+ SecuritySchemesDefaultEntryHolder.defaultEntry,
+ 8);
+ for (int i = 0; i < security_.size(); i++) {
+ output.writeMessage(9, security_.get(i));
+ }
+ for (int i = 0; i < defaultInputModes_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 10, defaultInputModes_.getRaw(i));
+ }
+ for (int i = 0; i < defaultOutputModes_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 11, defaultOutputModes_.getRaw(i));
+ }
+ for (int i = 0; i < skills_.size(); i++) {
+ output.writeMessage(12, skills_.get(i));
+ }
+ if (supportsAuthenticatedExtendedCard_ != false) {
+ output.writeBool(13, supportsAuthenticatedExtendedCard_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preferredTransport_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 14, preferredTransport_);
+ }
+ for (int i = 0; i < additionalInterfaces_.size(); i++) {
+ output.writeMessage(15, additionalInterfaces_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(protocolVersion_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 16, protocolVersion_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, url_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getProvider());
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, version_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(documentationUrl_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(6, documentationUrl_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, getCapabilities());
+ }
+ for (java.util.Map.Entry+ * AgentCard conveys key information: + * - Overall details (version, name, description, uses) + * - Skills; a set of actions/solutions the agent can perform + * - Default modalities/content types supported by the agent. + * - Authentication requirements + *+ * + * Protobuf type {@code a2a.v1.AgentCard} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
+ * The version of the A2A protocol this agent supports. + *+ * + *
string protocol_version = 16 [json_name = "protocolVersion"];
+ * @return The protocolVersion.
+ */
+ public java.lang.String getProtocolVersion() {
+ java.lang.Object ref = protocolVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ protocolVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The version of the A2A protocol this agent supports. + *+ * + *
string protocol_version = 16 [json_name = "protocolVersion"];
+ * @return The bytes for protocolVersion.
+ */
+ public com.google.protobuf.ByteString
+ getProtocolVersionBytes() {
+ java.lang.Object ref = protocolVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ protocolVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The version of the A2A protocol this agent supports. + *+ * + *
string protocol_version = 16 [json_name = "protocolVersion"];
+ * @param value The protocolVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProtocolVersion(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ protocolVersion_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The version of the A2A protocol this agent supports. + *+ * + *
string protocol_version = 16 [json_name = "protocolVersion"];
+ * @return This builder for chaining.
+ */
+ public Builder clearProtocolVersion() {
+ protocolVersion_ = getDefaultInstance().getProtocolVersion();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The version of the A2A protocol this agent supports. + *+ * + *
string protocol_version = 16 [json_name = "protocolVersion"];
+ * @param value The bytes for protocolVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProtocolVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ protocolVersion_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * + * A human readable name for the agent. + * Example: "Recipe Agent" + *+ * + *
string name = 1 [json_name = "name"];
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * A human readable name for the agent. + * Example: "Recipe Agent" + *+ * + *
string name = 1 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * A human readable name for the agent. + * Example: "Recipe Agent" + *+ * + *
string name = 1 [json_name = "name"];
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A human readable name for the agent. + * Example: "Recipe Agent" + *+ * + *
string name = 1 [json_name = "name"];
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A human readable name for the agent. + * Example: "Recipe Agent" + *+ * + *
string name = 1 [json_name = "name"];
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ * + * A description of the agent's domain of action/solution space. + * Example: "Agent that helps users with recipes and cooking." + *+ * + *
string description = 2 [json_name = "description"];
+ * @return The description.
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * A description of the agent's domain of action/solution space. + * Example: "Agent that helps users with recipes and cooking." + *+ * + *
string description = 2 [json_name = "description"];
+ * @return The bytes for description.
+ */
+ public com.google.protobuf.ByteString
+ getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * A description of the agent's domain of action/solution space. + * Example: "Agent that helps users with recipes and cooking." + *+ * + *
string description = 2 [json_name = "description"];
+ * @param value The description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescription(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ description_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A description of the agent's domain of action/solution space. + * Example: "Agent that helps users with recipes and cooking." + *+ * + *
string description = 2 [json_name = "description"];
+ * @return This builder for chaining.
+ */
+ public Builder clearDescription() {
+ description_ = getDefaultInstance().getDescription();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A description of the agent's domain of action/solution space. + * Example: "Agent that helps users with recipes and cooking." + *+ * + *
string description = 2 [json_name = "description"];
+ * @param value The bytes for description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ description_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object url_ = "";
+ /**
+ * + * A URL to the address the agent is hosted at. This represents the + * preferred endpoint as declared by the agent. + *+ * + *
string url = 3 [json_name = "url"];
+ * @return The url.
+ */
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ url_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * A URL to the address the agent is hosted at. This represents the + * preferred endpoint as declared by the agent. + *+ * + *
string url = 3 [json_name = "url"];
+ * @return The bytes for url.
+ */
+ public com.google.protobuf.ByteString
+ getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * A URL to the address the agent is hosted at. This represents the + * preferred endpoint as declared by the agent. + *+ * + *
string url = 3 [json_name = "url"];
+ * @param value The url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrl(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ url_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A URL to the address the agent is hosted at. This represents the + * preferred endpoint as declared by the agent. + *+ * + *
string url = 3 [json_name = "url"];
+ * @return This builder for chaining.
+ */
+ public Builder clearUrl() {
+ url_ = getDefaultInstance().getUrl();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A URL to the address the agent is hosted at. This represents the + * preferred endpoint as declared by the agent. + *+ * + *
string url = 3 [json_name = "url"];
+ * @param value The bytes for url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ url_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object preferredTransport_ = "";
+ /**
+ * + * The transport of the preferred endpoint. If empty, defaults to JSONRPC. + *+ * + *
string preferred_transport = 14 [json_name = "preferredTransport"];
+ * @return The preferredTransport.
+ */
+ public java.lang.String getPreferredTransport() {
+ java.lang.Object ref = preferredTransport_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ preferredTransport_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The transport of the preferred endpoint. If empty, defaults to JSONRPC. + *+ * + *
string preferred_transport = 14 [json_name = "preferredTransport"];
+ * @return The bytes for preferredTransport.
+ */
+ public com.google.protobuf.ByteString
+ getPreferredTransportBytes() {
+ java.lang.Object ref = preferredTransport_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ preferredTransport_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The transport of the preferred endpoint. If empty, defaults to JSONRPC. + *+ * + *
string preferred_transport = 14 [json_name = "preferredTransport"];
+ * @param value The preferredTransport to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPreferredTransport(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ preferredTransport_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The transport of the preferred endpoint. If empty, defaults to JSONRPC. + *+ * + *
string preferred_transport = 14 [json_name = "preferredTransport"];
+ * @return This builder for chaining.
+ */
+ public Builder clearPreferredTransport() {
+ preferredTransport_ = getDefaultInstance().getPreferredTransport();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The transport of the preferred endpoint. If empty, defaults to JSONRPC. + *+ * + *
string preferred_transport = 14 [json_name = "preferredTransport"];
+ * @param value The bytes for preferredTransport to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPreferredTransportBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ preferredTransport_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public java.util.List+ * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public int getAdditionalInterfacesCount() {
+ if (additionalInterfacesBuilder_ == null) {
+ return additionalInterfaces_.size();
+ } else {
+ return additionalInterfacesBuilder_.getCount();
+ }
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public io.a2a.grpc.AgentInterface getAdditionalInterfaces(int index) {
+ if (additionalInterfacesBuilder_ == null) {
+ return additionalInterfaces_.get(index);
+ } else {
+ return additionalInterfacesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public Builder setAdditionalInterfaces(
+ int index, io.a2a.grpc.AgentInterface value) {
+ if (additionalInterfacesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAdditionalInterfacesIsMutable();
+ additionalInterfaces_.set(index, value);
+ onChanged();
+ } else {
+ additionalInterfacesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public Builder setAdditionalInterfaces(
+ int index, io.a2a.grpc.AgentInterface.Builder builderForValue) {
+ if (additionalInterfacesBuilder_ == null) {
+ ensureAdditionalInterfacesIsMutable();
+ additionalInterfaces_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ additionalInterfacesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public Builder addAdditionalInterfaces(io.a2a.grpc.AgentInterface value) {
+ if (additionalInterfacesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAdditionalInterfacesIsMutable();
+ additionalInterfaces_.add(value);
+ onChanged();
+ } else {
+ additionalInterfacesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public Builder addAdditionalInterfaces(
+ int index, io.a2a.grpc.AgentInterface value) {
+ if (additionalInterfacesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAdditionalInterfacesIsMutable();
+ additionalInterfaces_.add(index, value);
+ onChanged();
+ } else {
+ additionalInterfacesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public Builder addAdditionalInterfaces(
+ io.a2a.grpc.AgentInterface.Builder builderForValue) {
+ if (additionalInterfacesBuilder_ == null) {
+ ensureAdditionalInterfacesIsMutable();
+ additionalInterfaces_.add(builderForValue.build());
+ onChanged();
+ } else {
+ additionalInterfacesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public Builder addAdditionalInterfaces(
+ int index, io.a2a.grpc.AgentInterface.Builder builderForValue) {
+ if (additionalInterfacesBuilder_ == null) {
+ ensureAdditionalInterfacesIsMutable();
+ additionalInterfaces_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ additionalInterfacesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public Builder addAllAdditionalInterfaces(
+ java.lang.Iterable extends io.a2a.grpc.AgentInterface> values) {
+ if (additionalInterfacesBuilder_ == null) {
+ ensureAdditionalInterfacesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, additionalInterfaces_);
+ onChanged();
+ } else {
+ additionalInterfacesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public Builder clearAdditionalInterfaces() {
+ if (additionalInterfacesBuilder_ == null) {
+ additionalInterfaces_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ } else {
+ additionalInterfacesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public Builder removeAdditionalInterfaces(int index) {
+ if (additionalInterfacesBuilder_ == null) {
+ ensureAdditionalInterfacesIsMutable();
+ additionalInterfaces_.remove(index);
+ onChanged();
+ } else {
+ additionalInterfacesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public io.a2a.grpc.AgentInterface.Builder getAdditionalInterfacesBuilder(
+ int index) {
+ return internalGetAdditionalInterfacesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public io.a2a.grpc.AgentInterfaceOrBuilder getAdditionalInterfacesOrBuilder(
+ int index) {
+ if (additionalInterfacesBuilder_ == null) {
+ return additionalInterfaces_.get(index); } else {
+ return additionalInterfacesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public java.util.List extends io.a2a.grpc.AgentInterfaceOrBuilder>
+ getAdditionalInterfacesOrBuilderList() {
+ if (additionalInterfacesBuilder_ != null) {
+ return additionalInterfacesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(additionalInterfaces_);
+ }
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public io.a2a.grpc.AgentInterface.Builder addAdditionalInterfacesBuilder() {
+ return internalGetAdditionalInterfacesFieldBuilder().addBuilder(
+ io.a2a.grpc.AgentInterface.getDefaultInstance());
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public io.a2a.grpc.AgentInterface.Builder addAdditionalInterfacesBuilder(
+ int index) {
+ return internalGetAdditionalInterfacesFieldBuilder().addBuilder(
+ index, io.a2a.grpc.AgentInterface.getDefaultInstance());
+ }
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ public java.util.List+ * The service provider of the agent. + *+ * + *
.a2a.v1.AgentProvider provider = 4 [json_name = "provider"];
+ * @return Whether the provider field is set.
+ */
+ public boolean hasProvider() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * + * The service provider of the agent. + *+ * + *
.a2a.v1.AgentProvider provider = 4 [json_name = "provider"];
+ * @return The provider.
+ */
+ public io.a2a.grpc.AgentProvider getProvider() {
+ if (providerBuilder_ == null) {
+ return provider_ == null ? io.a2a.grpc.AgentProvider.getDefaultInstance() : provider_;
+ } else {
+ return providerBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The service provider of the agent. + *+ * + *
.a2a.v1.AgentProvider provider = 4 [json_name = "provider"];
+ */
+ public Builder setProvider(io.a2a.grpc.AgentProvider value) {
+ if (providerBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ provider_ = value;
+ } else {
+ providerBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The service provider of the agent. + *+ * + *
.a2a.v1.AgentProvider provider = 4 [json_name = "provider"];
+ */
+ public Builder setProvider(
+ io.a2a.grpc.AgentProvider.Builder builderForValue) {
+ if (providerBuilder_ == null) {
+ provider_ = builderForValue.build();
+ } else {
+ providerBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The service provider of the agent. + *+ * + *
.a2a.v1.AgentProvider provider = 4 [json_name = "provider"];
+ */
+ public Builder mergeProvider(io.a2a.grpc.AgentProvider value) {
+ if (providerBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0) &&
+ provider_ != null &&
+ provider_ != io.a2a.grpc.AgentProvider.getDefaultInstance()) {
+ getProviderBuilder().mergeFrom(value);
+ } else {
+ provider_ = value;
+ }
+ } else {
+ providerBuilder_.mergeFrom(value);
+ }
+ if (provider_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * + * The service provider of the agent. + *+ * + *
.a2a.v1.AgentProvider provider = 4 [json_name = "provider"];
+ */
+ public Builder clearProvider() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ provider_ = null;
+ if (providerBuilder_ != null) {
+ providerBuilder_.dispose();
+ providerBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The service provider of the agent. + *+ * + *
.a2a.v1.AgentProvider provider = 4 [json_name = "provider"];
+ */
+ public io.a2a.grpc.AgentProvider.Builder getProviderBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return internalGetProviderFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The service provider of the agent. + *+ * + *
.a2a.v1.AgentProvider provider = 4 [json_name = "provider"];
+ */
+ public io.a2a.grpc.AgentProviderOrBuilder getProviderOrBuilder() {
+ if (providerBuilder_ != null) {
+ return providerBuilder_.getMessageOrBuilder();
+ } else {
+ return provider_ == null ?
+ io.a2a.grpc.AgentProvider.getDefaultInstance() : provider_;
+ }
+ }
+ /**
+ * + * The service provider of the agent. + *+ * + *
.a2a.v1.AgentProvider provider = 4 [json_name = "provider"];
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ io.a2a.grpc.AgentProvider, io.a2a.grpc.AgentProvider.Builder, io.a2a.grpc.AgentProviderOrBuilder>
+ internalGetProviderFieldBuilder() {
+ if (providerBuilder_ == null) {
+ providerBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ io.a2a.grpc.AgentProvider, io.a2a.grpc.AgentProvider.Builder, io.a2a.grpc.AgentProviderOrBuilder>(
+ getProvider(),
+ getParentForChildren(),
+ isClean());
+ provider_ = null;
+ }
+ return providerBuilder_;
+ }
+
+ private java.lang.Object version_ = "";
+ /**
+ * + * The version of the agent. + * Example: "1.0.0" + *+ * + *
string version = 5 [json_name = "version"];
+ * @return The version.
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ version_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The version of the agent. + * Example: "1.0.0" + *+ * + *
string version = 5 [json_name = "version"];
+ * @return The bytes for version.
+ */
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The version of the agent. + * Example: "1.0.0" + *+ * + *
string version = 5 [json_name = "version"];
+ * @param value The version to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVersion(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ version_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The version of the agent. + * Example: "1.0.0" + *+ * + *
string version = 5 [json_name = "version"];
+ * @return This builder for chaining.
+ */
+ public Builder clearVersion() {
+ version_ = getDefaultInstance().getVersion();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The version of the agent. + * Example: "1.0.0" + *+ * + *
string version = 5 [json_name = "version"];
+ * @param value The bytes for version to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ version_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object documentationUrl_ = "";
+ /**
+ * + * A url to provide additional documentation about the agent. + *+ * + *
string documentation_url = 6 [json_name = "documentationUrl"];
+ * @return The documentationUrl.
+ */
+ public java.lang.String getDocumentationUrl() {
+ java.lang.Object ref = documentationUrl_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ documentationUrl_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * A url to provide additional documentation about the agent. + *+ * + *
string documentation_url = 6 [json_name = "documentationUrl"];
+ * @return The bytes for documentationUrl.
+ */
+ public com.google.protobuf.ByteString
+ getDocumentationUrlBytes() {
+ java.lang.Object ref = documentationUrl_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ documentationUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * A url to provide additional documentation about the agent. + *+ * + *
string documentation_url = 6 [json_name = "documentationUrl"];
+ * @param value The documentationUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocumentationUrl(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ documentationUrl_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A url to provide additional documentation about the agent. + *+ * + *
string documentation_url = 6 [json_name = "documentationUrl"];
+ * @return This builder for chaining.
+ */
+ public Builder clearDocumentationUrl() {
+ documentationUrl_ = getDefaultInstance().getDocumentationUrl();
+ bitField0_ = (bitField0_ & ~0x00000100);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A url to provide additional documentation about the agent. + *+ * + *
string documentation_url = 6 [json_name = "documentationUrl"];
+ * @param value The bytes for documentationUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocumentationUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ documentationUrl_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ private io.a2a.grpc.AgentCapabilities capabilities_;
+ private com.google.protobuf.SingleFieldBuilder<
+ io.a2a.grpc.AgentCapabilities, io.a2a.grpc.AgentCapabilities.Builder, io.a2a.grpc.AgentCapabilitiesOrBuilder> capabilitiesBuilder_;
+ /**
+ * + * A2A Capability set supported by the agent. + *+ * + *
.a2a.v1.AgentCapabilities capabilities = 7 [json_name = "capabilities"];
+ * @return Whether the capabilities field is set.
+ */
+ public boolean hasCapabilities() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ * + * A2A Capability set supported by the agent. + *+ * + *
.a2a.v1.AgentCapabilities capabilities = 7 [json_name = "capabilities"];
+ * @return The capabilities.
+ */
+ public io.a2a.grpc.AgentCapabilities getCapabilities() {
+ if (capabilitiesBuilder_ == null) {
+ return capabilities_ == null ? io.a2a.grpc.AgentCapabilities.getDefaultInstance() : capabilities_;
+ } else {
+ return capabilitiesBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * A2A Capability set supported by the agent. + *+ * + *
.a2a.v1.AgentCapabilities capabilities = 7 [json_name = "capabilities"];
+ */
+ public Builder setCapabilities(io.a2a.grpc.AgentCapabilities value) {
+ if (capabilitiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ capabilities_ = value;
+ } else {
+ capabilitiesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A2A Capability set supported by the agent. + *+ * + *
.a2a.v1.AgentCapabilities capabilities = 7 [json_name = "capabilities"];
+ */
+ public Builder setCapabilities(
+ io.a2a.grpc.AgentCapabilities.Builder builderForValue) {
+ if (capabilitiesBuilder_ == null) {
+ capabilities_ = builderForValue.build();
+ } else {
+ capabilitiesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A2A Capability set supported by the agent. + *+ * + *
.a2a.v1.AgentCapabilities capabilities = 7 [json_name = "capabilities"];
+ */
+ public Builder mergeCapabilities(io.a2a.grpc.AgentCapabilities value) {
+ if (capabilitiesBuilder_ == null) {
+ if (((bitField0_ & 0x00000200) != 0) &&
+ capabilities_ != null &&
+ capabilities_ != io.a2a.grpc.AgentCapabilities.getDefaultInstance()) {
+ getCapabilitiesBuilder().mergeFrom(value);
+ } else {
+ capabilities_ = value;
+ }
+ } else {
+ capabilitiesBuilder_.mergeFrom(value);
+ }
+ if (capabilities_ != null) {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * + * A2A Capability set supported by the agent. + *+ * + *
.a2a.v1.AgentCapabilities capabilities = 7 [json_name = "capabilities"];
+ */
+ public Builder clearCapabilities() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ capabilities_ = null;
+ if (capabilitiesBuilder_ != null) {
+ capabilitiesBuilder_.dispose();
+ capabilitiesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A2A Capability set supported by the agent. + *+ * + *
.a2a.v1.AgentCapabilities capabilities = 7 [json_name = "capabilities"];
+ */
+ public io.a2a.grpc.AgentCapabilities.Builder getCapabilitiesBuilder() {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return internalGetCapabilitiesFieldBuilder().getBuilder();
+ }
+ /**
+ * + * A2A Capability set supported by the agent. + *+ * + *
.a2a.v1.AgentCapabilities capabilities = 7 [json_name = "capabilities"];
+ */
+ public io.a2a.grpc.AgentCapabilitiesOrBuilder getCapabilitiesOrBuilder() {
+ if (capabilitiesBuilder_ != null) {
+ return capabilitiesBuilder_.getMessageOrBuilder();
+ } else {
+ return capabilities_ == null ?
+ io.a2a.grpc.AgentCapabilities.getDefaultInstance() : capabilities_;
+ }
+ }
+ /**
+ * + * A2A Capability set supported by the agent. + *+ * + *
.a2a.v1.AgentCapabilities capabilities = 7 [json_name = "capabilities"];
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ io.a2a.grpc.AgentCapabilities, io.a2a.grpc.AgentCapabilities.Builder, io.a2a.grpc.AgentCapabilitiesOrBuilder>
+ internalGetCapabilitiesFieldBuilder() {
+ if (capabilitiesBuilder_ == null) {
+ capabilitiesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ io.a2a.grpc.AgentCapabilities, io.a2a.grpc.AgentCapabilities.Builder, io.a2a.grpc.AgentCapabilitiesOrBuilder>(
+ getCapabilities(),
+ getParentForChildren(),
+ isClean());
+ capabilities_ = null;
+ }
+ return capabilitiesBuilder_;
+ }
+
+ private static final class SecuritySchemesConverter implements com.google.protobuf.MapFieldBuilder.Converter+ * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ @java.lang.Override
+ public boolean containsSecuritySchemes(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetSecuritySchemes().ensureBuilderMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getSecuritySchemesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ @java.lang.Override
+ public java.util.Map+ * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ @java.lang.Override
+ public /* nullable */
+io.a2a.grpc.SecurityScheme getSecuritySchemesOrDefault(
+ java.lang.String key,
+ /* nullable */
+io.a2a.grpc.SecurityScheme defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map+ * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ @java.lang.Override
+ public io.a2a.grpc.SecurityScheme getSecuritySchemesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map+ * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ public Builder removeSecuritySchemes(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ internalGetMutableSecuritySchemes().ensureBuilderMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ public Builder putSecuritySchemes(
+ java.lang.String key,
+ io.a2a.grpc.SecurityScheme value) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ if (value == null) { throw new NullPointerException("map value"); }
+ internalGetMutableSecuritySchemes().ensureBuilderMap()
+ .put(key, value);
+ bitField0_ |= 0x00000400;
+ return this;
+ }
+ /**
+ * + * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ public Builder putAllSecuritySchemes(
+ java.util.Map+ * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ public io.a2a.grpc.SecurityScheme.Builder putSecuritySchemesBuilderIfAbsent(
+ java.lang.String key) {
+ java.util.Map+ * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public java.util.List+ * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public int getSecurityCount() {
+ if (securityBuilder_ == null) {
+ return security_.size();
+ } else {
+ return securityBuilder_.getCount();
+ }
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public io.a2a.grpc.Security getSecurity(int index) {
+ if (securityBuilder_ == null) {
+ return security_.get(index);
+ } else {
+ return securityBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public Builder setSecurity(
+ int index, io.a2a.grpc.Security value) {
+ if (securityBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSecurityIsMutable();
+ security_.set(index, value);
+ onChanged();
+ } else {
+ securityBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public Builder setSecurity(
+ int index, io.a2a.grpc.Security.Builder builderForValue) {
+ if (securityBuilder_ == null) {
+ ensureSecurityIsMutable();
+ security_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ securityBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public Builder addSecurity(io.a2a.grpc.Security value) {
+ if (securityBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSecurityIsMutable();
+ security_.add(value);
+ onChanged();
+ } else {
+ securityBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public Builder addSecurity(
+ int index, io.a2a.grpc.Security value) {
+ if (securityBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSecurityIsMutable();
+ security_.add(index, value);
+ onChanged();
+ } else {
+ securityBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public Builder addSecurity(
+ io.a2a.grpc.Security.Builder builderForValue) {
+ if (securityBuilder_ == null) {
+ ensureSecurityIsMutable();
+ security_.add(builderForValue.build());
+ onChanged();
+ } else {
+ securityBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public Builder addSecurity(
+ int index, io.a2a.grpc.Security.Builder builderForValue) {
+ if (securityBuilder_ == null) {
+ ensureSecurityIsMutable();
+ security_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ securityBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public Builder addAllSecurity(
+ java.lang.Iterable extends io.a2a.grpc.Security> values) {
+ if (securityBuilder_ == null) {
+ ensureSecurityIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, security_);
+ onChanged();
+ } else {
+ securityBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public Builder clearSecurity() {
+ if (securityBuilder_ == null) {
+ security_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000800);
+ onChanged();
+ } else {
+ securityBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public Builder removeSecurity(int index) {
+ if (securityBuilder_ == null) {
+ ensureSecurityIsMutable();
+ security_.remove(index);
+ onChanged();
+ } else {
+ securityBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public io.a2a.grpc.Security.Builder getSecurityBuilder(
+ int index) {
+ return internalGetSecurityFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public io.a2a.grpc.SecurityOrBuilder getSecurityOrBuilder(
+ int index) {
+ if (securityBuilder_ == null) {
+ return security_.get(index); } else {
+ return securityBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public java.util.List extends io.a2a.grpc.SecurityOrBuilder>
+ getSecurityOrBuilderList() {
+ if (securityBuilder_ != null) {
+ return securityBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(security_);
+ }
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public io.a2a.grpc.Security.Builder addSecurityBuilder() {
+ return internalGetSecurityFieldBuilder().addBuilder(
+ io.a2a.grpc.Security.getDefaultInstance());
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public io.a2a.grpc.Security.Builder addSecurityBuilder(
+ int index) {
+ return internalGetSecurityFieldBuilder().addBuilder(
+ index, io.a2a.grpc.Security.getDefaultInstance());
+ }
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ public java.util.List+ * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @return A list containing the defaultInputModes.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getDefaultInputModesList() {
+ defaultInputModes_.makeImmutable();
+ return defaultInputModes_;
+ }
+ /**
+ * + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @return The count of defaultInputModes.
+ */
+ public int getDefaultInputModesCount() {
+ return defaultInputModes_.size();
+ }
+ /**
+ * + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @param index The index of the element to return.
+ * @return The defaultInputModes at the given index.
+ */
+ public java.lang.String getDefaultInputModes(int index) {
+ return defaultInputModes_.get(index);
+ }
+ /**
+ * + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @param index The index of the value to return.
+ * @return The bytes of the defaultInputModes at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getDefaultInputModesBytes(int index) {
+ return defaultInputModes_.getByteString(index);
+ }
+ /**
+ * + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @param index The index to set the value at.
+ * @param value The defaultInputModes to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDefaultInputModes(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureDefaultInputModesIsMutable();
+ defaultInputModes_.set(index, value);
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @param value The defaultInputModes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDefaultInputModes(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureDefaultInputModesIsMutable();
+ defaultInputModes_.add(value);
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @param values The defaultInputModes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllDefaultInputModes(
+ java.lang.Iterable+ * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @return This builder for chaining.
+ */
+ public Builder clearDefaultInputModes() {
+ defaultInputModes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00001000);;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @param value The bytes of the defaultInputModes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDefaultInputModesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureDefaultInputModesIsMutable();
+ defaultInputModes_.add(value);
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList defaultOutputModes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureDefaultOutputModesIsMutable() {
+ if (!defaultOutputModes_.isModifiable()) {
+ defaultOutputModes_ = new com.google.protobuf.LazyStringArrayList(defaultOutputModes_);
+ }
+ bitField0_ |= 0x00002000;
+ }
+ /**
+ * + * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @return A list containing the defaultOutputModes.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getDefaultOutputModesList() {
+ defaultOutputModes_.makeImmutable();
+ return defaultOutputModes_;
+ }
+ /**
+ * + * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @return The count of defaultOutputModes.
+ */
+ public int getDefaultOutputModesCount() {
+ return defaultOutputModes_.size();
+ }
+ /**
+ * + * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @param index The index of the element to return.
+ * @return The defaultOutputModes at the given index.
+ */
+ public java.lang.String getDefaultOutputModes(int index) {
+ return defaultOutputModes_.get(index);
+ }
+ /**
+ * + * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @param index The index of the value to return.
+ * @return The bytes of the defaultOutputModes at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getDefaultOutputModesBytes(int index) {
+ return defaultOutputModes_.getByteString(index);
+ }
+ /**
+ * + * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @param index The index to set the value at.
+ * @param value The defaultOutputModes to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDefaultOutputModes(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureDefaultOutputModesIsMutable();
+ defaultOutputModes_.set(index, value);
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @param value The defaultOutputModes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDefaultOutputModes(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureDefaultOutputModesIsMutable();
+ defaultOutputModes_.add(value);
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @param values The defaultOutputModes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllDefaultOutputModes(
+ java.lang.Iterable+ * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @return This builder for chaining.
+ */
+ public Builder clearDefaultOutputModes() {
+ defaultOutputModes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00002000);;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @param value The bytes of the defaultOutputModes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDefaultOutputModesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureDefaultOutputModesIsMutable();
+ defaultOutputModes_.add(value);
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public java.util.List+ * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public int getSkillsCount() {
+ if (skillsBuilder_ == null) {
+ return skills_.size();
+ } else {
+ return skillsBuilder_.getCount();
+ }
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public io.a2a.grpc.AgentSkill getSkills(int index) {
+ if (skillsBuilder_ == null) {
+ return skills_.get(index);
+ } else {
+ return skillsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public Builder setSkills(
+ int index, io.a2a.grpc.AgentSkill value) {
+ if (skillsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSkillsIsMutable();
+ skills_.set(index, value);
+ onChanged();
+ } else {
+ skillsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public Builder setSkills(
+ int index, io.a2a.grpc.AgentSkill.Builder builderForValue) {
+ if (skillsBuilder_ == null) {
+ ensureSkillsIsMutable();
+ skills_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ skillsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public Builder addSkills(io.a2a.grpc.AgentSkill value) {
+ if (skillsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSkillsIsMutable();
+ skills_.add(value);
+ onChanged();
+ } else {
+ skillsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public Builder addSkills(
+ int index, io.a2a.grpc.AgentSkill value) {
+ if (skillsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSkillsIsMutable();
+ skills_.add(index, value);
+ onChanged();
+ } else {
+ skillsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public Builder addSkills(
+ io.a2a.grpc.AgentSkill.Builder builderForValue) {
+ if (skillsBuilder_ == null) {
+ ensureSkillsIsMutable();
+ skills_.add(builderForValue.build());
+ onChanged();
+ } else {
+ skillsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public Builder addSkills(
+ int index, io.a2a.grpc.AgentSkill.Builder builderForValue) {
+ if (skillsBuilder_ == null) {
+ ensureSkillsIsMutable();
+ skills_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ skillsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public Builder addAllSkills(
+ java.lang.Iterable extends io.a2a.grpc.AgentSkill> values) {
+ if (skillsBuilder_ == null) {
+ ensureSkillsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, skills_);
+ onChanged();
+ } else {
+ skillsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public Builder clearSkills() {
+ if (skillsBuilder_ == null) {
+ skills_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00004000);
+ onChanged();
+ } else {
+ skillsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public Builder removeSkills(int index) {
+ if (skillsBuilder_ == null) {
+ ensureSkillsIsMutable();
+ skills_.remove(index);
+ onChanged();
+ } else {
+ skillsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public io.a2a.grpc.AgentSkill.Builder getSkillsBuilder(
+ int index) {
+ return internalGetSkillsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public io.a2a.grpc.AgentSkillOrBuilder getSkillsOrBuilder(
+ int index) {
+ if (skillsBuilder_ == null) {
+ return skills_.get(index); } else {
+ return skillsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public java.util.List extends io.a2a.grpc.AgentSkillOrBuilder>
+ getSkillsOrBuilderList() {
+ if (skillsBuilder_ != null) {
+ return skillsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(skills_);
+ }
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public io.a2a.grpc.AgentSkill.Builder addSkillsBuilder() {
+ return internalGetSkillsFieldBuilder().addBuilder(
+ io.a2a.grpc.AgentSkill.getDefaultInstance());
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public io.a2a.grpc.AgentSkill.Builder addSkillsBuilder(
+ int index) {
+ return internalGetSkillsFieldBuilder().addBuilder(
+ index, io.a2a.grpc.AgentSkill.getDefaultInstance());
+ }
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ public java.util.List+ * Whether the agent supports providing an extended agent card when + * the user is authenticated, i.e. is the card from .well-known + * different than the card from GetAgentCard. + *+ * + *
bool supports_authenticated_extended_card = 13 [json_name = "supportsAuthenticatedExtendedCard"];
+ * @return The supportsAuthenticatedExtendedCard.
+ */
+ @java.lang.Override
+ public boolean getSupportsAuthenticatedExtendedCard() {
+ return supportsAuthenticatedExtendedCard_;
+ }
+ /**
+ * + * Whether the agent supports providing an extended agent card when + * the user is authenticated, i.e. is the card from .well-known + * different than the card from GetAgentCard. + *+ * + *
bool supports_authenticated_extended_card = 13 [json_name = "supportsAuthenticatedExtendedCard"];
+ * @param value The supportsAuthenticatedExtendedCard to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSupportsAuthenticatedExtendedCard(boolean value) {
+
+ supportsAuthenticatedExtendedCard_ = value;
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Whether the agent supports providing an extended agent card when + * the user is authenticated, i.e. is the card from .well-known + * different than the card from GetAgentCard. + *+ * + *
bool supports_authenticated_extended_card = 13 [json_name = "supportsAuthenticatedExtendedCard"];
+ * @return This builder for chaining.
+ */
+ public Builder clearSupportsAuthenticatedExtendedCard() {
+ bitField0_ = (bitField0_ & ~0x00008000);
+ supportsAuthenticatedExtendedCard_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:a2a.v1.AgentCard)
+ }
+
+ // @@protoc_insertion_point(class_scope:a2a.v1.AgentCard)
+ private static final io.a2a.grpc.AgentCard DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.a2a.grpc.AgentCard();
+ }
+
+ public static io.a2a.grpc.AgentCard getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The version of the A2A protocol this agent supports. + *+ * + *
string protocol_version = 16 [json_name = "protocolVersion"];
+ * @return The protocolVersion.
+ */
+ java.lang.String getProtocolVersion();
+ /**
+ * + * The version of the A2A protocol this agent supports. + *+ * + *
string protocol_version = 16 [json_name = "protocolVersion"];
+ * @return The bytes for protocolVersion.
+ */
+ com.google.protobuf.ByteString
+ getProtocolVersionBytes();
+
+ /**
+ * + * A human readable name for the agent. + * Example: "Recipe Agent" + *+ * + *
string name = 1 [json_name = "name"];
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * + * A human readable name for the agent. + * Example: "Recipe Agent" + *+ * + *
string name = 1 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * + * A description of the agent's domain of action/solution space. + * Example: "Agent that helps users with recipes and cooking." + *+ * + *
string description = 2 [json_name = "description"];
+ * @return The description.
+ */
+ java.lang.String getDescription();
+ /**
+ * + * A description of the agent's domain of action/solution space. + * Example: "Agent that helps users with recipes and cooking." + *+ * + *
string description = 2 [json_name = "description"];
+ * @return The bytes for description.
+ */
+ com.google.protobuf.ByteString
+ getDescriptionBytes();
+
+ /**
+ * + * A URL to the address the agent is hosted at. This represents the + * preferred endpoint as declared by the agent. + *+ * + *
string url = 3 [json_name = "url"];
+ * @return The url.
+ */
+ java.lang.String getUrl();
+ /**
+ * + * A URL to the address the agent is hosted at. This represents the + * preferred endpoint as declared by the agent. + *+ * + *
string url = 3 [json_name = "url"];
+ * @return The bytes for url.
+ */
+ com.google.protobuf.ByteString
+ getUrlBytes();
+
+ /**
+ * + * The transport of the preferred endpoint. If empty, defaults to JSONRPC. + *+ * + *
string preferred_transport = 14 [json_name = "preferredTransport"];
+ * @return The preferredTransport.
+ */
+ java.lang.String getPreferredTransport();
+ /**
+ * + * The transport of the preferred endpoint. If empty, defaults to JSONRPC. + *+ * + *
string preferred_transport = 14 [json_name = "preferredTransport"];
+ * @return The bytes for preferredTransport.
+ */
+ com.google.protobuf.ByteString
+ getPreferredTransportBytes();
+
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ java.util.List+ * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ io.a2a.grpc.AgentInterface getAdditionalInterfaces(int index);
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ int getAdditionalInterfacesCount();
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ java.util.List extends io.a2a.grpc.AgentInterfaceOrBuilder>
+ getAdditionalInterfacesOrBuilderList();
+ /**
+ * + * Announcement of additional supported transports. Client can use any of + * the supported transports. + *+ * + *
repeated .a2a.v1.AgentInterface additional_interfaces = 15 [json_name = "additionalInterfaces"];
+ */
+ io.a2a.grpc.AgentInterfaceOrBuilder getAdditionalInterfacesOrBuilder(
+ int index);
+
+ /**
+ * + * The service provider of the agent. + *+ * + *
.a2a.v1.AgentProvider provider = 4 [json_name = "provider"];
+ * @return Whether the provider field is set.
+ */
+ boolean hasProvider();
+ /**
+ * + * The service provider of the agent. + *+ * + *
.a2a.v1.AgentProvider provider = 4 [json_name = "provider"];
+ * @return The provider.
+ */
+ io.a2a.grpc.AgentProvider getProvider();
+ /**
+ * + * The service provider of the agent. + *+ * + *
.a2a.v1.AgentProvider provider = 4 [json_name = "provider"];
+ */
+ io.a2a.grpc.AgentProviderOrBuilder getProviderOrBuilder();
+
+ /**
+ * + * The version of the agent. + * Example: "1.0.0" + *+ * + *
string version = 5 [json_name = "version"];
+ * @return The version.
+ */
+ java.lang.String getVersion();
+ /**
+ * + * The version of the agent. + * Example: "1.0.0" + *+ * + *
string version = 5 [json_name = "version"];
+ * @return The bytes for version.
+ */
+ com.google.protobuf.ByteString
+ getVersionBytes();
+
+ /**
+ * + * A url to provide additional documentation about the agent. + *+ * + *
string documentation_url = 6 [json_name = "documentationUrl"];
+ * @return The documentationUrl.
+ */
+ java.lang.String getDocumentationUrl();
+ /**
+ * + * A url to provide additional documentation about the agent. + *+ * + *
string documentation_url = 6 [json_name = "documentationUrl"];
+ * @return The bytes for documentationUrl.
+ */
+ com.google.protobuf.ByteString
+ getDocumentationUrlBytes();
+
+ /**
+ * + * A2A Capability set supported by the agent. + *+ * + *
.a2a.v1.AgentCapabilities capabilities = 7 [json_name = "capabilities"];
+ * @return Whether the capabilities field is set.
+ */
+ boolean hasCapabilities();
+ /**
+ * + * A2A Capability set supported by the agent. + *+ * + *
.a2a.v1.AgentCapabilities capabilities = 7 [json_name = "capabilities"];
+ * @return The capabilities.
+ */
+ io.a2a.grpc.AgentCapabilities getCapabilities();
+ /**
+ * + * A2A Capability set supported by the agent. + *+ * + *
.a2a.v1.AgentCapabilities capabilities = 7 [json_name = "capabilities"];
+ */
+ io.a2a.grpc.AgentCapabilitiesOrBuilder getCapabilitiesOrBuilder();
+
+ /**
+ * + * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ int getSecuritySchemesCount();
+ /**
+ * + * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ boolean containsSecuritySchemes(
+ java.lang.String key);
+ /**
+ * Use {@link #getSecuritySchemesMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map+ * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ java.util.Map+ * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ /* nullable */
+io.a2a.grpc.SecurityScheme getSecuritySchemesOrDefault(
+ java.lang.String key,
+ /* nullable */
+io.a2a.grpc.SecurityScheme defaultValue);
+ /**
+ * + * The security scheme details used for authenticating with this agent. + *+ * + *
map<string, .a2a.v1.SecurityScheme> security_schemes = 8 [json_name = "securitySchemes"];
+ */
+ io.a2a.grpc.SecurityScheme getSecuritySchemesOrThrow(
+ java.lang.String key);
+
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ java.util.List+ * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ io.a2a.grpc.Security getSecurity(int index);
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ int getSecurityCount();
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ java.util.List extends io.a2a.grpc.SecurityOrBuilder>
+ getSecurityOrBuilderList();
+ /**
+ * + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED + * Security requirements for contacting the agent. + *+ * + *
repeated .a2a.v1.Security security = 9 [json_name = "security"];
+ */
+ io.a2a.grpc.SecurityOrBuilder getSecurityOrBuilder(
+ int index);
+
+ /**
+ * + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @return A list containing the defaultInputModes.
+ */
+ java.util.List+ * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @return The count of defaultInputModes.
+ */
+ int getDefaultInputModesCount();
+ /**
+ * + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @param index The index of the element to return.
+ * @return The defaultInputModes at the given index.
+ */
+ java.lang.String getDefaultInputModes(int index);
+ /**
+ * + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED + * The set of interaction modes that the agent supports across all skills. + * This can be overridden per skill. Defined as mime types. + *+ * + *
repeated string default_input_modes = 10 [json_name = "defaultInputModes"];
+ * @param index The index of the value to return.
+ * @return The bytes of the defaultInputModes at the given index.
+ */
+ com.google.protobuf.ByteString
+ getDefaultInputModesBytes(int index);
+
+ /**
+ * + * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @return A list containing the defaultOutputModes.
+ */
+ java.util.List+ * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @return The count of defaultOutputModes.
+ */
+ int getDefaultOutputModesCount();
+ /**
+ * + * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @param index The index of the element to return.
+ * @return The defaultOutputModes at the given index.
+ */
+ java.lang.String getDefaultOutputModes(int index);
+ /**
+ * + * The mime types supported as outputs from this agent. + *+ * + *
repeated string default_output_modes = 11 [json_name = "defaultOutputModes"];
+ * @param index The index of the value to return.
+ * @return The bytes of the defaultOutputModes at the given index.
+ */
+ com.google.protobuf.ByteString
+ getDefaultOutputModesBytes(int index);
+
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ java.util.List+ * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ io.a2a.grpc.AgentSkill getSkills(int index);
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ int getSkillsCount();
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ java.util.List extends io.a2a.grpc.AgentSkillOrBuilder>
+ getSkillsOrBuilderList();
+ /**
+ * + * Skills represent a unit of ability an agent can perform. This may + * somewhat abstract but represents a more focused set of actions that the + * agent is highly likely to succeed at. + *+ * + *
repeated .a2a.v1.AgentSkill skills = 12 [json_name = "skills"];
+ */
+ io.a2a.grpc.AgentSkillOrBuilder getSkillsOrBuilder(
+ int index);
+
+ /**
+ * + * Whether the agent supports providing an extended agent card when + * the user is authenticated, i.e. is the card from .well-known + * different than the card from GetAgentCard. + *+ * + *
bool supports_authenticated_extended_card = 13 [json_name = "supportsAuthenticatedExtendedCard"];
+ * @return The supportsAuthenticatedExtendedCard.
+ */
+ boolean getSupportsAuthenticatedExtendedCard();
+}
diff --git a/grpc/src/main/java/io/a2a/grpc/AgentExtension.java b/grpc/src/main/java/io/a2a/grpc/AgentExtension.java
new file mode 100644
index 000000000..04e298d8d
--- /dev/null
+++ b/grpc/src/main/java/io/a2a/grpc/AgentExtension.java
@@ -0,0 +1,1044 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: a2a.proto
+// Protobuf Java Version: 4.31.1
+
+package io.a2a.grpc;
+
+/**
+ * + * A declaration of an extension supported by an Agent. + *+ * + * Protobuf type {@code a2a.v1.AgentExtension} + */ +@com.google.protobuf.Generated +public final class AgentExtension extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:a2a.v1.AgentExtension) + AgentExtensionOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 1, + /* suffix= */ "", + AgentExtension.class.getName()); + } + // Use AgentExtension.newBuilder() to construct. + private AgentExtension(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + private AgentExtension() { + uri_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.a2a.grpc.A2A.internal_static_a2a_v1_AgentExtension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.a2a.grpc.A2A.internal_static_a2a_v1_AgentExtension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.a2a.grpc.AgentExtension.class, io.a2a.grpc.AgentExtension.Builder.class); + } + + private int bitField0_; + public static final int URI_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + *
+ * The URI of the extension. + * Example: "https://developers.google.com/identity/protocols/oauth2" + *+ * + *
string uri = 1 [json_name = "uri"];
+ * @return The uri.
+ */
+ @java.lang.Override
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The URI of the extension. + * Example: "https://developers.google.com/identity/protocols/oauth2" + *+ * + *
string uri = 1 [json_name = "uri"];
+ * @return The bytes for uri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object description_ = "";
+ /**
+ * + * A description of how this agent uses this extension. + * Example: "Google OAuth 2.0 authentication" + *+ * + *
string description = 2 [json_name = "description"];
+ * @return The description.
+ */
+ @java.lang.Override
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * A description of how this agent uses this extension. + * Example: "Google OAuth 2.0 authentication" + *+ * + *
string description = 2 [json_name = "description"];
+ * @return The bytes for description.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REQUIRED_FIELD_NUMBER = 3;
+ private boolean required_ = false;
+ /**
+ * + * Whether the client must follow specific requirements of the extension. + * Example: false + *+ * + *
bool required = 3 [json_name = "required"];
+ * @return The required.
+ */
+ @java.lang.Override
+ public boolean getRequired() {
+ return required_;
+ }
+
+ public static final int PARAMS_FIELD_NUMBER = 4;
+ private com.google.protobuf.Struct params_;
+ /**
+ * + * Optional configuration for the extension. + *+ * + *
.google.protobuf.Struct params = 4 [json_name = "params"];
+ * @return Whether the params field is set.
+ */
+ @java.lang.Override
+ public boolean hasParams() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * + * Optional configuration for the extension. + *+ * + *
.google.protobuf.Struct params = 4 [json_name = "params"];
+ * @return The params.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Struct getParams() {
+ return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_;
+ }
+ /**
+ * + * Optional configuration for the extension. + *+ * + *
.google.protobuf.Struct params = 4 [json_name = "params"];
+ */
+ @java.lang.Override
+ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
+ return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, description_);
+ }
+ if (required_ != false) {
+ output.writeBool(3, required_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(4, getParams());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_);
+ }
+ if (required_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, required_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getParams());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.a2a.grpc.AgentExtension)) {
+ return super.equals(obj);
+ }
+ io.a2a.grpc.AgentExtension other = (io.a2a.grpc.AgentExtension) obj;
+
+ if (!getUri()
+ .equals(other.getUri())) return false;
+ if (!getDescription()
+ .equals(other.getDescription())) return false;
+ if (getRequired()
+ != other.getRequired()) return false;
+ if (hasParams() != other.hasParams()) return false;
+ if (hasParams()) {
+ if (!getParams()
+ .equals(other.getParams())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ hash = (37 * hash) + REQUIRED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getRequired());
+ if (hasParams()) {
+ hash = (37 * hash) + PARAMS_FIELD_NUMBER;
+ hash = (53 * hash) + getParams().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.a2a.grpc.AgentExtension parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AgentExtension parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentExtension parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AgentExtension parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentExtension parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AgentExtension parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentExtension parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.AgentExtension parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.a2a.grpc.AgentExtension parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.a2a.grpc.AgentExtension parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentExtension parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.AgentExtension parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.a2a.grpc.AgentExtension prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * A declaration of an extension supported by an Agent. + *+ * + * Protobuf type {@code a2a.v1.AgentExtension} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
+ * The URI of the extension. + * Example: "https://developers.google.com/identity/protocols/oauth2" + *+ * + *
string uri = 1 [json_name = "uri"];
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The URI of the extension. + * Example: "https://developers.google.com/identity/protocols/oauth2" + *+ * + *
string uri = 1 [json_name = "uri"];
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString
+ getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The URI of the extension. + * Example: "https://developers.google.com/identity/protocols/oauth2" + *+ * + *
string uri = 1 [json_name = "uri"];
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ uri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The URI of the extension. + * Example: "https://developers.google.com/identity/protocols/oauth2" + *+ * + *
string uri = 1 [json_name = "uri"];
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The URI of the extension. + * Example: "https://developers.google.com/identity/protocols/oauth2" + *+ * + *
string uri = 1 [json_name = "uri"];
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ * + * A description of how this agent uses this extension. + * Example: "Google OAuth 2.0 authentication" + *+ * + *
string description = 2 [json_name = "description"];
+ * @return The description.
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * A description of how this agent uses this extension. + * Example: "Google OAuth 2.0 authentication" + *+ * + *
string description = 2 [json_name = "description"];
+ * @return The bytes for description.
+ */
+ public com.google.protobuf.ByteString
+ getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * A description of how this agent uses this extension. + * Example: "Google OAuth 2.0 authentication" + *+ * + *
string description = 2 [json_name = "description"];
+ * @param value The description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescription(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ description_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A description of how this agent uses this extension. + * Example: "Google OAuth 2.0 authentication" + *+ * + *
string description = 2 [json_name = "description"];
+ * @return This builder for chaining.
+ */
+ public Builder clearDescription() {
+ description_ = getDefaultInstance().getDescription();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A description of how this agent uses this extension. + * Example: "Google OAuth 2.0 authentication" + *+ * + *
string description = 2 [json_name = "description"];
+ * @param value The bytes for description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ description_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private boolean required_ ;
+ /**
+ * + * Whether the client must follow specific requirements of the extension. + * Example: false + *+ * + *
bool required = 3 [json_name = "required"];
+ * @return The required.
+ */
+ @java.lang.Override
+ public boolean getRequired() {
+ return required_;
+ }
+ /**
+ * + * Whether the client must follow specific requirements of the extension. + * Example: false + *+ * + *
bool required = 3 [json_name = "required"];
+ * @param value The required to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRequired(boolean value) {
+
+ required_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Whether the client must follow specific requirements of the extension. + * Example: false + *+ * + *
bool required = 3 [json_name = "required"];
+ * @return This builder for chaining.
+ */
+ public Builder clearRequired() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ required_ = false;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Struct params_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> paramsBuilder_;
+ /**
+ * + * Optional configuration for the extension. + *+ * + *
.google.protobuf.Struct params = 4 [json_name = "params"];
+ * @return Whether the params field is set.
+ */
+ public boolean hasParams() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * + * Optional configuration for the extension. + *+ * + *
.google.protobuf.Struct params = 4 [json_name = "params"];
+ * @return The params.
+ */
+ public com.google.protobuf.Struct getParams() {
+ if (paramsBuilder_ == null) {
+ return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_;
+ } else {
+ return paramsBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Optional configuration for the extension. + *+ * + *
.google.protobuf.Struct params = 4 [json_name = "params"];
+ */
+ public Builder setParams(com.google.protobuf.Struct value) {
+ if (paramsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ params_ = value;
+ } else {
+ paramsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional configuration for the extension. + *+ * + *
.google.protobuf.Struct params = 4 [json_name = "params"];
+ */
+ public Builder setParams(
+ com.google.protobuf.Struct.Builder builderForValue) {
+ if (paramsBuilder_ == null) {
+ params_ = builderForValue.build();
+ } else {
+ paramsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional configuration for the extension. + *+ * + *
.google.protobuf.Struct params = 4 [json_name = "params"];
+ */
+ public Builder mergeParams(com.google.protobuf.Struct value) {
+ if (paramsBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0) &&
+ params_ != null &&
+ params_ != com.google.protobuf.Struct.getDefaultInstance()) {
+ getParamsBuilder().mergeFrom(value);
+ } else {
+ params_ = value;
+ }
+ } else {
+ paramsBuilder_.mergeFrom(value);
+ }
+ if (params_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * + * Optional configuration for the extension. + *+ * + *
.google.protobuf.Struct params = 4 [json_name = "params"];
+ */
+ public Builder clearParams() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ params_ = null;
+ if (paramsBuilder_ != null) {
+ paramsBuilder_.dispose();
+ paramsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional configuration for the extension. + *+ * + *
.google.protobuf.Struct params = 4 [json_name = "params"];
+ */
+ public com.google.protobuf.Struct.Builder getParamsBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return internalGetParamsFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Optional configuration for the extension. + *+ * + *
.google.protobuf.Struct params = 4 [json_name = "params"];
+ */
+ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
+ if (paramsBuilder_ != null) {
+ return paramsBuilder_.getMessageOrBuilder();
+ } else {
+ return params_ == null ?
+ com.google.protobuf.Struct.getDefaultInstance() : params_;
+ }
+ }
+ /**
+ * + * Optional configuration for the extension. + *+ * + *
.google.protobuf.Struct params = 4 [json_name = "params"];
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
+ internalGetParamsFieldBuilder() {
+ if (paramsBuilder_ == null) {
+ paramsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
+ getParams(),
+ getParentForChildren(),
+ isClean());
+ params_ = null;
+ }
+ return paramsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:a2a.v1.AgentExtension)
+ }
+
+ // @@protoc_insertion_point(class_scope:a2a.v1.AgentExtension)
+ private static final io.a2a.grpc.AgentExtension DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.a2a.grpc.AgentExtension();
+ }
+
+ public static io.a2a.grpc.AgentExtension getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The URI of the extension. + * Example: "https://developers.google.com/identity/protocols/oauth2" + *+ * + *
string uri = 1 [json_name = "uri"];
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ * + * The URI of the extension. + * Example: "https://developers.google.com/identity/protocols/oauth2" + *+ * + *
string uri = 1 [json_name = "uri"];
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString
+ getUriBytes();
+
+ /**
+ * + * A description of how this agent uses this extension. + * Example: "Google OAuth 2.0 authentication" + *+ * + *
string description = 2 [json_name = "description"];
+ * @return The description.
+ */
+ java.lang.String getDescription();
+ /**
+ * + * A description of how this agent uses this extension. + * Example: "Google OAuth 2.0 authentication" + *+ * + *
string description = 2 [json_name = "description"];
+ * @return The bytes for description.
+ */
+ com.google.protobuf.ByteString
+ getDescriptionBytes();
+
+ /**
+ * + * Whether the client must follow specific requirements of the extension. + * Example: false + *+ * + *
bool required = 3 [json_name = "required"];
+ * @return The required.
+ */
+ boolean getRequired();
+
+ /**
+ * + * Optional configuration for the extension. + *+ * + *
.google.protobuf.Struct params = 4 [json_name = "params"];
+ * @return Whether the params field is set.
+ */
+ boolean hasParams();
+ /**
+ * + * Optional configuration for the extension. + *+ * + *
.google.protobuf.Struct params = 4 [json_name = "params"];
+ * @return The params.
+ */
+ com.google.protobuf.Struct getParams();
+ /**
+ * + * Optional configuration for the extension. + *+ * + *
.google.protobuf.Struct params = 4 [json_name = "params"];
+ */
+ com.google.protobuf.StructOrBuilder getParamsOrBuilder();
+}
diff --git a/grpc/src/main/java/io/a2a/grpc/AgentInterface.java b/grpc/src/main/java/io/a2a/grpc/AgentInterface.java
new file mode 100644
index 000000000..78ad52d8e
--- /dev/null
+++ b/grpc/src/main/java/io/a2a/grpc/AgentInterface.java
@@ -0,0 +1,716 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: a2a.proto
+// Protobuf Java Version: 4.31.1
+
+package io.a2a.grpc;
+
+/**
+ * + * Defines additional transport information for the agent. + *+ * + * Protobuf type {@code a2a.v1.AgentInterface} + */ +@com.google.protobuf.Generated +public final class AgentInterface extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:a2a.v1.AgentInterface) + AgentInterfaceOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 1, + /* suffix= */ "", + AgentInterface.class.getName()); + } + // Use AgentInterface.newBuilder() to construct. + private AgentInterface(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + private AgentInterface() { + url_ = ""; + transport_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.a2a.grpc.A2A.internal_static_a2a_v1_AgentInterface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.a2a.grpc.A2A.internal_static_a2a_v1_AgentInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.a2a.grpc.AgentInterface.class, io.a2a.grpc.AgentInterface.Builder.class); + } + + public static final int URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + /** + *
+ * The url this interface is found at. + *+ * + *
string url = 1 [json_name = "url"];
+ * @return The url.
+ */
+ @java.lang.Override
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ url_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The url this interface is found at. + *+ * + *
string url = 1 [json_name = "url"];
+ * @return The bytes for url.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TRANSPORT_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object transport_ = "";
+ /**
+ * + * The transport supported this url. This is an open form string, to be + * easily extended for many transport protocols. The core ones officially + * supported are JSONRPC, GRPC and HTTP+JSON. + *+ * + *
string transport = 2 [json_name = "transport"];
+ * @return The transport.
+ */
+ @java.lang.Override
+ public java.lang.String getTransport() {
+ java.lang.Object ref = transport_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ transport_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The transport supported this url. This is an open form string, to be + * easily extended for many transport protocols. The core ones officially + * supported are JSONRPC, GRPC and HTTP+JSON. + *+ * + *
string transport = 2 [json_name = "transport"];
+ * @return The bytes for transport.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTransportBytes() {
+ java.lang.Object ref = transport_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ transport_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, url_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(transport_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, transport_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, url_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(transport_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, transport_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.a2a.grpc.AgentInterface)) {
+ return super.equals(obj);
+ }
+ io.a2a.grpc.AgentInterface other = (io.a2a.grpc.AgentInterface) obj;
+
+ if (!getUrl()
+ .equals(other.getUrl())) return false;
+ if (!getTransport()
+ .equals(other.getTransport())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + URL_FIELD_NUMBER;
+ hash = (53 * hash) + getUrl().hashCode();
+ hash = (37 * hash) + TRANSPORT_FIELD_NUMBER;
+ hash = (53 * hash) + getTransport().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.a2a.grpc.AgentInterface parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AgentInterface parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentInterface parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AgentInterface parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentInterface parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AgentInterface parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentInterface parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.AgentInterface parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.a2a.grpc.AgentInterface parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.a2a.grpc.AgentInterface parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentInterface parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.AgentInterface parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.a2a.grpc.AgentInterface prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Defines additional transport information for the agent. + *+ * + * Protobuf type {@code a2a.v1.AgentInterface} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
+ * The url this interface is found at. + *+ * + *
string url = 1 [json_name = "url"];
+ * @return The url.
+ */
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ url_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The url this interface is found at. + *+ * + *
string url = 1 [json_name = "url"];
+ * @return The bytes for url.
+ */
+ public com.google.protobuf.ByteString
+ getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The url this interface is found at. + *+ * + *
string url = 1 [json_name = "url"];
+ * @param value The url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrl(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ url_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The url this interface is found at. + *+ * + *
string url = 1 [json_name = "url"];
+ * @return This builder for chaining.
+ */
+ public Builder clearUrl() {
+ url_ = getDefaultInstance().getUrl();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The url this interface is found at. + *+ * + *
string url = 1 [json_name = "url"];
+ * @param value The bytes for url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ url_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object transport_ = "";
+ /**
+ * + * The transport supported this url. This is an open form string, to be + * easily extended for many transport protocols. The core ones officially + * supported are JSONRPC, GRPC and HTTP+JSON. + *+ * + *
string transport = 2 [json_name = "transport"];
+ * @return The transport.
+ */
+ public java.lang.String getTransport() {
+ java.lang.Object ref = transport_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ transport_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The transport supported this url. This is an open form string, to be + * easily extended for many transport protocols. The core ones officially + * supported are JSONRPC, GRPC and HTTP+JSON. + *+ * + *
string transport = 2 [json_name = "transport"];
+ * @return The bytes for transport.
+ */
+ public com.google.protobuf.ByteString
+ getTransportBytes() {
+ java.lang.Object ref = transport_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ transport_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The transport supported this url. This is an open form string, to be + * easily extended for many transport protocols. The core ones officially + * supported are JSONRPC, GRPC and HTTP+JSON. + *+ * + *
string transport = 2 [json_name = "transport"];
+ * @param value The transport to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTransport(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ transport_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The transport supported this url. This is an open form string, to be + * easily extended for many transport protocols. The core ones officially + * supported are JSONRPC, GRPC and HTTP+JSON. + *+ * + *
string transport = 2 [json_name = "transport"];
+ * @return This builder for chaining.
+ */
+ public Builder clearTransport() {
+ transport_ = getDefaultInstance().getTransport();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The transport supported this url. This is an open form string, to be + * easily extended for many transport protocols. The core ones officially + * supported are JSONRPC, GRPC and HTTP+JSON. + *+ * + *
string transport = 2 [json_name = "transport"];
+ * @param value The bytes for transport to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTransportBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ transport_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:a2a.v1.AgentInterface)
+ }
+
+ // @@protoc_insertion_point(class_scope:a2a.v1.AgentInterface)
+ private static final io.a2a.grpc.AgentInterface DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.a2a.grpc.AgentInterface();
+ }
+
+ public static io.a2a.grpc.AgentInterface getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The url this interface is found at. + *+ * + *
string url = 1 [json_name = "url"];
+ * @return The url.
+ */
+ java.lang.String getUrl();
+ /**
+ * + * The url this interface is found at. + *+ * + *
string url = 1 [json_name = "url"];
+ * @return The bytes for url.
+ */
+ com.google.protobuf.ByteString
+ getUrlBytes();
+
+ /**
+ * + * The transport supported this url. This is an open form string, to be + * easily extended for many transport protocols. The core ones officially + * supported are JSONRPC, GRPC and HTTP+JSON. + *+ * + *
string transport = 2 [json_name = "transport"];
+ * @return The transport.
+ */
+ java.lang.String getTransport();
+ /**
+ * + * The transport supported this url. This is an open form string, to be + * easily extended for many transport protocols. The core ones officially + * supported are JSONRPC, GRPC and HTTP+JSON. + *+ * + *
string transport = 2 [json_name = "transport"];
+ * @return The bytes for transport.
+ */
+ com.google.protobuf.ByteString
+ getTransportBytes();
+}
diff --git a/grpc/src/main/java/io/a2a/grpc/AgentProvider.java b/grpc/src/main/java/io/a2a/grpc/AgentProvider.java
new file mode 100644
index 000000000..a166ddaa4
--- /dev/null
+++ b/grpc/src/main/java/io/a2a/grpc/AgentProvider.java
@@ -0,0 +1,716 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: a2a.proto
+// Protobuf Java Version: 4.31.1
+
+package io.a2a.grpc;
+
+/**
+ * + * Represents information about the service provider of an agent. + *+ * + * Protobuf type {@code a2a.v1.AgentProvider} + */ +@com.google.protobuf.Generated +public final class AgentProvider extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:a2a.v1.AgentProvider) + AgentProviderOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 1, + /* suffix= */ "", + AgentProvider.class.getName()); + } + // Use AgentProvider.newBuilder() to construct. + private AgentProvider(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + private AgentProvider() { + url_ = ""; + organization_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.a2a.grpc.A2A.internal_static_a2a_v1_AgentProvider_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.a2a.grpc.A2A.internal_static_a2a_v1_AgentProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.a2a.grpc.AgentProvider.class, io.a2a.grpc.AgentProvider.Builder.class); + } + + public static final int URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + /** + *
+ * The providers reference url + * Example: "https://ai.google.dev" + *+ * + *
string url = 1 [json_name = "url"];
+ * @return The url.
+ */
+ @java.lang.Override
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ url_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The providers reference url + * Example: "https://ai.google.dev" + *+ * + *
string url = 1 [json_name = "url"];
+ * @return The bytes for url.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ORGANIZATION_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object organization_ = "";
+ /**
+ * + * The providers organization name + * Example: "Google" + *+ * + *
string organization = 2 [json_name = "organization"];
+ * @return The organization.
+ */
+ @java.lang.Override
+ public java.lang.String getOrganization() {
+ java.lang.Object ref = organization_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ organization_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The providers organization name + * Example: "Google" + *+ * + *
string organization = 2 [json_name = "organization"];
+ * @return The bytes for organization.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOrganizationBytes() {
+ java.lang.Object ref = organization_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ organization_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, url_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organization_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, organization_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, url_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organization_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organization_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.a2a.grpc.AgentProvider)) {
+ return super.equals(obj);
+ }
+ io.a2a.grpc.AgentProvider other = (io.a2a.grpc.AgentProvider) obj;
+
+ if (!getUrl()
+ .equals(other.getUrl())) return false;
+ if (!getOrganization()
+ .equals(other.getOrganization())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + URL_FIELD_NUMBER;
+ hash = (53 * hash) + getUrl().hashCode();
+ hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER;
+ hash = (53 * hash) + getOrganization().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.a2a.grpc.AgentProvider parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AgentProvider parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentProvider parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AgentProvider parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentProvider parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AgentProvider parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentProvider parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.AgentProvider parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.a2a.grpc.AgentProvider parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.a2a.grpc.AgentProvider parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentProvider parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.AgentProvider parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.a2a.grpc.AgentProvider prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Represents information about the service provider of an agent. + *+ * + * Protobuf type {@code a2a.v1.AgentProvider} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
+ * The providers reference url + * Example: "https://ai.google.dev" + *+ * + *
string url = 1 [json_name = "url"];
+ * @return The url.
+ */
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ url_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The providers reference url + * Example: "https://ai.google.dev" + *+ * + *
string url = 1 [json_name = "url"];
+ * @return The bytes for url.
+ */
+ public com.google.protobuf.ByteString
+ getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The providers reference url + * Example: "https://ai.google.dev" + *+ * + *
string url = 1 [json_name = "url"];
+ * @param value The url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrl(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ url_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The providers reference url + * Example: "https://ai.google.dev" + *+ * + *
string url = 1 [json_name = "url"];
+ * @return This builder for chaining.
+ */
+ public Builder clearUrl() {
+ url_ = getDefaultInstance().getUrl();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The providers reference url + * Example: "https://ai.google.dev" + *+ * + *
string url = 1 [json_name = "url"];
+ * @param value The bytes for url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ url_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object organization_ = "";
+ /**
+ * + * The providers organization name + * Example: "Google" + *+ * + *
string organization = 2 [json_name = "organization"];
+ * @return The organization.
+ */
+ public java.lang.String getOrganization() {
+ java.lang.Object ref = organization_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ organization_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The providers organization name + * Example: "Google" + *+ * + *
string organization = 2 [json_name = "organization"];
+ * @return The bytes for organization.
+ */
+ public com.google.protobuf.ByteString
+ getOrganizationBytes() {
+ java.lang.Object ref = organization_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ organization_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The providers organization name + * Example: "Google" + *+ * + *
string organization = 2 [json_name = "organization"];
+ * @param value The organization to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrganization(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ organization_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The providers organization name + * Example: "Google" + *+ * + *
string organization = 2 [json_name = "organization"];
+ * @return This builder for chaining.
+ */
+ public Builder clearOrganization() {
+ organization_ = getDefaultInstance().getOrganization();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The providers organization name + * Example: "Google" + *+ * + *
string organization = 2 [json_name = "organization"];
+ * @param value The bytes for organization to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrganizationBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ organization_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:a2a.v1.AgentProvider)
+ }
+
+ // @@protoc_insertion_point(class_scope:a2a.v1.AgentProvider)
+ private static final io.a2a.grpc.AgentProvider DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.a2a.grpc.AgentProvider();
+ }
+
+ public static io.a2a.grpc.AgentProvider getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The providers reference url + * Example: "https://ai.google.dev" + *+ * + *
string url = 1 [json_name = "url"];
+ * @return The url.
+ */
+ java.lang.String getUrl();
+ /**
+ * + * The providers reference url + * Example: "https://ai.google.dev" + *+ * + *
string url = 1 [json_name = "url"];
+ * @return The bytes for url.
+ */
+ com.google.protobuf.ByteString
+ getUrlBytes();
+
+ /**
+ * + * The providers organization name + * Example: "Google" + *+ * + *
string organization = 2 [json_name = "organization"];
+ * @return The organization.
+ */
+ java.lang.String getOrganization();
+ /**
+ * + * The providers organization name + * Example: "Google" + *+ * + *
string organization = 2 [json_name = "organization"];
+ * @return The bytes for organization.
+ */
+ com.google.protobuf.ByteString
+ getOrganizationBytes();
+}
diff --git a/grpc/src/main/java/io/a2a/grpc/AgentSkill.java b/grpc/src/main/java/io/a2a/grpc/AgentSkill.java
new file mode 100644
index 000000000..c8d4dbf0b
--- /dev/null
+++ b/grpc/src/main/java/io/a2a/grpc/AgentSkill.java
@@ -0,0 +1,1897 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: a2a.proto
+// Protobuf Java Version: 4.31.1
+
+package io.a2a.grpc;
+
+/**
+ * + * AgentSkill represents a unit of action/solution that the agent can perform. + * One can think of this as a type of highly reliable solution that an agent + * can be tasked to provide. Agents have the autonomy to choose how and when + * to use specific skills, but clients should have confidence that if the + * skill is defined that unit of action can be reliably performed. + *+ * + * Protobuf type {@code a2a.v1.AgentSkill} + */ +@com.google.protobuf.Generated +public final class AgentSkill extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:a2a.v1.AgentSkill) + AgentSkillOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 1, + /* suffix= */ "", + AgentSkill.class.getName()); + } + // Use AgentSkill.newBuilder() to construct. + private AgentSkill(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + private AgentSkill() { + id_ = ""; + name_ = ""; + description_ = ""; + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + examples_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + inputModes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + outputModes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.a2a.grpc.A2A.internal_static_a2a_v1_AgentSkill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.a2a.grpc.A2A.internal_static_a2a_v1_AgentSkill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.a2a.grpc.AgentSkill.class, io.a2a.grpc.AgentSkill.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+ * Unique id of the skill within this agent. + *+ * + *
string id = 1 [json_name = "id"];
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Unique id of the skill within this agent. + *+ * + *
string id = 1 [json_name = "id"];
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * + * A human readable name for the skill. + *+ * + *
string name = 2 [json_name = "name"];
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * A human readable name for the skill. + *+ * + *
string name = 2 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object description_ = "";
+ /**
+ * + * A human (or llm) readable description of the skill + * details and behaviors. + *+ * + *
string description = 3 [json_name = "description"];
+ * @return The description.
+ */
+ @java.lang.Override
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * A human (or llm) readable description of the skill + * details and behaviors. + *+ * + *
string description = 3 [json_name = "description"];
+ * @return The bytes for description.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TAGS_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList tags_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * + * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @return A list containing the tags.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getTagsList() {
+ return tags_;
+ }
+ /**
+ * + * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @return The count of tags.
+ */
+ public int getTagsCount() {
+ return tags_.size();
+ }
+ /**
+ * + * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @param index The index of the element to return.
+ * @return The tags at the given index.
+ */
+ public java.lang.String getTags(int index) {
+ return tags_.get(index);
+ }
+ /**
+ * + * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @param index The index of the value to return.
+ * @return The bytes of the tags at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getTagsBytes(int index) {
+ return tags_.getByteString(index);
+ }
+
+ public static final int EXAMPLES_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList examples_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * + * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @return A list containing the examples.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getExamplesList() {
+ return examples_;
+ }
+ /**
+ * + * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @return The count of examples.
+ */
+ public int getExamplesCount() {
+ return examples_.size();
+ }
+ /**
+ * + * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @param index The index of the element to return.
+ * @return The examples at the given index.
+ */
+ public java.lang.String getExamples(int index) {
+ return examples_.get(index);
+ }
+ /**
+ * + * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @param index The index of the value to return.
+ * @return The bytes of the examples at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getExamplesBytes(int index) {
+ return examples_.getByteString(index);
+ }
+
+ public static final int INPUT_MODES_FIELD_NUMBER = 6;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList inputModes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * + * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @return A list containing the inputModes.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getInputModesList() {
+ return inputModes_;
+ }
+ /**
+ * + * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @return The count of inputModes.
+ */
+ public int getInputModesCount() {
+ return inputModes_.size();
+ }
+ /**
+ * + * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @param index The index of the element to return.
+ * @return The inputModes at the given index.
+ */
+ public java.lang.String getInputModes(int index) {
+ return inputModes_.get(index);
+ }
+ /**
+ * + * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @param index The index of the value to return.
+ * @return The bytes of the inputModes at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getInputModesBytes(int index) {
+ return inputModes_.getByteString(index);
+ }
+
+ public static final int OUTPUT_MODES_FIELD_NUMBER = 7;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList outputModes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * + * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @return A list containing the outputModes.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getOutputModesList() {
+ return outputModes_;
+ }
+ /**
+ * + * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @return The count of outputModes.
+ */
+ public int getOutputModesCount() {
+ return outputModes_.size();
+ }
+ /**
+ * + * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @param index The index of the element to return.
+ * @return The outputModes at the given index.
+ */
+ public java.lang.String getOutputModes(int index) {
+ return outputModes_.get(index);
+ }
+ /**
+ * + * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @param index The index of the value to return.
+ * @return The bytes of the outputModes at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getOutputModesBytes(int index) {
+ return outputModes_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, description_);
+ }
+ for (int i = 0; i < tags_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, tags_.getRaw(i));
+ }
+ for (int i = 0; i < examples_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, examples_.getRaw(i));
+ }
+ for (int i = 0; i < inputModes_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 6, inputModes_.getRaw(i));
+ }
+ for (int i = 0; i < outputModes_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 7, outputModes_.getRaw(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < tags_.size(); i++) {
+ dataSize += computeStringSizeNoTag(tags_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getTagsList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < examples_.size(); i++) {
+ dataSize += computeStringSizeNoTag(examples_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getExamplesList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < inputModes_.size(); i++) {
+ dataSize += computeStringSizeNoTag(inputModes_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getInputModesList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < outputModes_.size(); i++) {
+ dataSize += computeStringSizeNoTag(outputModes_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getOutputModesList().size();
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.a2a.grpc.AgentSkill)) {
+ return super.equals(obj);
+ }
+ io.a2a.grpc.AgentSkill other = (io.a2a.grpc.AgentSkill) obj;
+
+ if (!getId()
+ .equals(other.getId())) return false;
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getDescription()
+ .equals(other.getDescription())) return false;
+ if (!getTagsList()
+ .equals(other.getTagsList())) return false;
+ if (!getExamplesList()
+ .equals(other.getExamplesList())) return false;
+ if (!getInputModesList()
+ .equals(other.getInputModesList())) return false;
+ if (!getOutputModesList()
+ .equals(other.getOutputModesList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ if (getTagsCount() > 0) {
+ hash = (37 * hash) + TAGS_FIELD_NUMBER;
+ hash = (53 * hash) + getTagsList().hashCode();
+ }
+ if (getExamplesCount() > 0) {
+ hash = (37 * hash) + EXAMPLES_FIELD_NUMBER;
+ hash = (53 * hash) + getExamplesList().hashCode();
+ }
+ if (getInputModesCount() > 0) {
+ hash = (37 * hash) + INPUT_MODES_FIELD_NUMBER;
+ hash = (53 * hash) + getInputModesList().hashCode();
+ }
+ if (getOutputModesCount() > 0) {
+ hash = (37 * hash) + OUTPUT_MODES_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputModesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.a2a.grpc.AgentSkill parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AgentSkill parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentSkill parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AgentSkill parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentSkill parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AgentSkill parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentSkill parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.AgentSkill parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.a2a.grpc.AgentSkill parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.a2a.grpc.AgentSkill parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.a2a.grpc.AgentSkill parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.AgentSkill parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.a2a.grpc.AgentSkill prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * AgentSkill represents a unit of action/solution that the agent can perform. + * One can think of this as a type of highly reliable solution that an agent + * can be tasked to provide. Agents have the autonomy to choose how and when + * to use specific skills, but clients should have confidence that if the + * skill is defined that unit of action can be reliably performed. + *+ * + * Protobuf type {@code a2a.v1.AgentSkill} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
+ * Unique id of the skill within this agent. + *+ * + *
string id = 1 [json_name = "id"];
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Unique id of the skill within this agent. + *+ * + *
string id = 1 [json_name = "id"];
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Unique id of the skill within this agent. + *+ * + *
string id = 1 [json_name = "id"];
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Unique id of the skill within this agent. + *+ * + *
string id = 1 [json_name = "id"];
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ id_ = getDefaultInstance().getId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Unique id of the skill within this agent. + *+ * + *
string id = 1 [json_name = "id"];
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * + * A human readable name for the skill. + *+ * + *
string name = 2 [json_name = "name"];
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * A human readable name for the skill. + *+ * + *
string name = 2 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * A human readable name for the skill. + *+ * + *
string name = 2 [json_name = "name"];
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A human readable name for the skill. + *+ * + *
string name = 2 [json_name = "name"];
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A human readable name for the skill. + *+ * + *
string name = 2 [json_name = "name"];
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ * + * A human (or llm) readable description of the skill + * details and behaviors. + *+ * + *
string description = 3 [json_name = "description"];
+ * @return The description.
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * A human (or llm) readable description of the skill + * details and behaviors. + *+ * + *
string description = 3 [json_name = "description"];
+ * @return The bytes for description.
+ */
+ public com.google.protobuf.ByteString
+ getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * A human (or llm) readable description of the skill + * details and behaviors. + *+ * + *
string description = 3 [json_name = "description"];
+ * @param value The description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescription(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ description_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A human (or llm) readable description of the skill + * details and behaviors. + *+ * + *
string description = 3 [json_name = "description"];
+ * @return This builder for chaining.
+ */
+ public Builder clearDescription() {
+ description_ = getDefaultInstance().getDescription();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A human (or llm) readable description of the skill + * details and behaviors. + *+ * + *
string description = 3 [json_name = "description"];
+ * @param value The bytes for description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ description_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList tags_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureTagsIsMutable() {
+ if (!tags_.isModifiable()) {
+ tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
+ }
+ bitField0_ |= 0x00000008;
+ }
+ /**
+ * + * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @return A list containing the tags.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getTagsList() {
+ tags_.makeImmutable();
+ return tags_;
+ }
+ /**
+ * + * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @return The count of tags.
+ */
+ public int getTagsCount() {
+ return tags_.size();
+ }
+ /**
+ * + * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @param index The index of the element to return.
+ * @return The tags at the given index.
+ */
+ public java.lang.String getTags(int index) {
+ return tags_.get(index);
+ }
+ /**
+ * + * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @param index The index of the value to return.
+ * @return The bytes of the tags at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getTagsBytes(int index) {
+ return tags_.getByteString(index);
+ }
+ /**
+ * + * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @param index The index to set the value at.
+ * @param value The tags to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTags(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureTagsIsMutable();
+ tags_.set(index, value);
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @param value The tags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addTags(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureTagsIsMutable();
+ tags_.add(value);
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @param values The tags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllTags(
+ java.lang.Iterable+ * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @return This builder for chaining.
+ */
+ public Builder clearTags() {
+ tags_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @param value The bytes of the tags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addTagsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureTagsIsMutable();
+ tags_.add(value);
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList examples_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureExamplesIsMutable() {
+ if (!examples_.isModifiable()) {
+ examples_ = new com.google.protobuf.LazyStringArrayList(examples_);
+ }
+ bitField0_ |= 0x00000010;
+ }
+ /**
+ * + * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @return A list containing the examples.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getExamplesList() {
+ examples_.makeImmutable();
+ return examples_;
+ }
+ /**
+ * + * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @return The count of examples.
+ */
+ public int getExamplesCount() {
+ return examples_.size();
+ }
+ /**
+ * + * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @param index The index of the element to return.
+ * @return The examples at the given index.
+ */
+ public java.lang.String getExamples(int index) {
+ return examples_.get(index);
+ }
+ /**
+ * + * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @param index The index of the value to return.
+ * @return The bytes of the examples at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getExamplesBytes(int index) {
+ return examples_.getByteString(index);
+ }
+ /**
+ * + * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @param index The index to set the value at.
+ * @param value The examples to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExamples(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureExamplesIsMutable();
+ examples_.set(index, value);
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @param value The examples to add.
+ * @return This builder for chaining.
+ */
+ public Builder addExamples(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureExamplesIsMutable();
+ examples_.add(value);
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @param values The examples to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllExamples(
+ java.lang.Iterable+ * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @return This builder for chaining.
+ */
+ public Builder clearExamples() {
+ examples_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000010);;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @param value The bytes of the examples to add.
+ * @return This builder for chaining.
+ */
+ public Builder addExamplesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureExamplesIsMutable();
+ examples_.add(value);
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList inputModes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureInputModesIsMutable() {
+ if (!inputModes_.isModifiable()) {
+ inputModes_ = new com.google.protobuf.LazyStringArrayList(inputModes_);
+ }
+ bitField0_ |= 0x00000020;
+ }
+ /**
+ * + * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @return A list containing the inputModes.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getInputModesList() {
+ inputModes_.makeImmutable();
+ return inputModes_;
+ }
+ /**
+ * + * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @return The count of inputModes.
+ */
+ public int getInputModesCount() {
+ return inputModes_.size();
+ }
+ /**
+ * + * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @param index The index of the element to return.
+ * @return The inputModes at the given index.
+ */
+ public java.lang.String getInputModes(int index) {
+ return inputModes_.get(index);
+ }
+ /**
+ * + * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @param index The index of the value to return.
+ * @return The bytes of the inputModes at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getInputModesBytes(int index) {
+ return inputModes_.getByteString(index);
+ }
+ /**
+ * + * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @param index The index to set the value at.
+ * @param value The inputModes to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInputModes(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureInputModesIsMutable();
+ inputModes_.set(index, value);
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @param value The inputModes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addInputModes(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureInputModesIsMutable();
+ inputModes_.add(value);
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @param values The inputModes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllInputModes(
+ java.lang.Iterable+ * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @return This builder for chaining.
+ */
+ public Builder clearInputModes() {
+ inputModes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @param value The bytes of the inputModes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addInputModesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureInputModesIsMutable();
+ inputModes_.add(value);
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList outputModes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureOutputModesIsMutable() {
+ if (!outputModes_.isModifiable()) {
+ outputModes_ = new com.google.protobuf.LazyStringArrayList(outputModes_);
+ }
+ bitField0_ |= 0x00000040;
+ }
+ /**
+ * + * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @return A list containing the outputModes.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getOutputModesList() {
+ outputModes_.makeImmutable();
+ return outputModes_;
+ }
+ /**
+ * + * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @return The count of outputModes.
+ */
+ public int getOutputModesCount() {
+ return outputModes_.size();
+ }
+ /**
+ * + * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @param index The index of the element to return.
+ * @return The outputModes at the given index.
+ */
+ public java.lang.String getOutputModes(int index) {
+ return outputModes_.get(index);
+ }
+ /**
+ * + * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @param index The index of the value to return.
+ * @return The bytes of the outputModes at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getOutputModesBytes(int index) {
+ return outputModes_.getByteString(index);
+ }
+ /**
+ * + * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @param index The index to set the value at.
+ * @param value The outputModes to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputModes(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureOutputModesIsMutable();
+ outputModes_.set(index, value);
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @param value The outputModes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOutputModes(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureOutputModesIsMutable();
+ outputModes_.add(value);
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @param values The outputModes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllOutputModes(
+ java.lang.Iterable+ * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @return This builder for chaining.
+ */
+ public Builder clearOutputModes() {
+ outputModes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @param value The bytes of the outputModes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOutputModesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureOutputModesIsMutable();
+ outputModes_.add(value);
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:a2a.v1.AgentSkill)
+ }
+
+ // @@protoc_insertion_point(class_scope:a2a.v1.AgentSkill)
+ private static final io.a2a.grpc.AgentSkill DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.a2a.grpc.AgentSkill();
+ }
+
+ public static io.a2a.grpc.AgentSkill getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Unique id of the skill within this agent. + *+ * + *
string id = 1 [json_name = "id"];
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ * + * Unique id of the skill within this agent. + *+ * + *
string id = 1 [json_name = "id"];
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString
+ getIdBytes();
+
+ /**
+ * + * A human readable name for the skill. + *+ * + *
string name = 2 [json_name = "name"];
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * + * A human readable name for the skill. + *+ * + *
string name = 2 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * + * A human (or llm) readable description of the skill + * details and behaviors. + *+ * + *
string description = 3 [json_name = "description"];
+ * @return The description.
+ */
+ java.lang.String getDescription();
+ /**
+ * + * A human (or llm) readable description of the skill + * details and behaviors. + *+ * + *
string description = 3 [json_name = "description"];
+ * @return The bytes for description.
+ */
+ com.google.protobuf.ByteString
+ getDescriptionBytes();
+
+ /**
+ * + * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @return A list containing the tags.
+ */
+ java.util.List+ * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @return The count of tags.
+ */
+ int getTagsCount();
+ /**
+ * + * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @param index The index of the element to return.
+ * @return The tags at the given index.
+ */
+ java.lang.String getTags(int index);
+ /**
+ * + * A set of tags for the skill to enhance categorization/utilization. + * Example: ["cooking", "customer support", "billing"] + *+ * + *
repeated string tags = 4 [json_name = "tags"];
+ * @param index The index of the value to return.
+ * @return The bytes of the tags at the given index.
+ */
+ com.google.protobuf.ByteString
+ getTagsBytes(int index);
+
+ /**
+ * + * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @return A list containing the examples.
+ */
+ java.util.List+ * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @return The count of examples.
+ */
+ int getExamplesCount();
+ /**
+ * + * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @param index The index of the element to return.
+ * @return The examples at the given index.
+ */
+ java.lang.String getExamples(int index);
+ /**
+ * + * A set of example queries that this skill is designed to address. + * These examples should help the caller to understand how to craft requests + * to the agent to achieve specific goals. + * Example: ["I need a recipe for bread"] + *+ * + *
repeated string examples = 5 [json_name = "examples"];
+ * @param index The index of the value to return.
+ * @return The bytes of the examples at the given index.
+ */
+ com.google.protobuf.ByteString
+ getExamplesBytes(int index);
+
+ /**
+ * + * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @return A list containing the inputModes.
+ */
+ java.util.List+ * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @return The count of inputModes.
+ */
+ int getInputModesCount();
+ /**
+ * + * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @param index The index of the element to return.
+ * @return The inputModes at the given index.
+ */
+ java.lang.String getInputModes(int index);
+ /**
+ * + * Possible input modalities supported. + *+ * + *
repeated string input_modes = 6 [json_name = "inputModes"];
+ * @param index The index of the value to return.
+ * @return The bytes of the inputModes at the given index.
+ */
+ com.google.protobuf.ByteString
+ getInputModesBytes(int index);
+
+ /**
+ * + * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @return A list containing the outputModes.
+ */
+ java.util.List+ * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @return The count of outputModes.
+ */
+ int getOutputModesCount();
+ /**
+ * + * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @param index The index of the element to return.
+ * @return The outputModes at the given index.
+ */
+ java.lang.String getOutputModes(int index);
+ /**
+ * + * Possible output modalities produced + *+ * + *
repeated string output_modes = 7 [json_name = "outputModes"];
+ * @param index The index of the value to return.
+ * @return The bytes of the outputModes at the given index.
+ */
+ com.google.protobuf.ByteString
+ getOutputModesBytes(int index);
+}
diff --git a/grpc/src/main/java/io/a2a/grpc/Artifact.java b/grpc/src/main/java/io/a2a/grpc/Artifact.java
new file mode 100644
index 000000000..3e50bbcf8
--- /dev/null
+++ b/grpc/src/main/java/io/a2a/grpc/Artifact.java
@@ -0,0 +1,1799 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: a2a.proto
+// Protobuf Java Version: 4.31.1
+
+package io.a2a.grpc;
+
+/**
+ * + * Artifacts are the container for task completed results. These are similar + * to Messages but are intended to be the product of a task, as opposed to + * point-to-point communication. + *+ * + * Protobuf type {@code a2a.v1.Artifact} + */ +@com.google.protobuf.Generated +public final class Artifact extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:a2a.v1.Artifact) + ArtifactOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 1, + /* suffix= */ "", + Artifact.class.getName()); + } + // Use Artifact.newBuilder() to construct. + private Artifact(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + private Artifact() { + artifactId_ = ""; + name_ = ""; + description_ = ""; + parts_ = java.util.Collections.emptyList(); + extensions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.a2a.grpc.A2A.internal_static_a2a_v1_Artifact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.a2a.grpc.A2A.internal_static_a2a_v1_Artifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.a2a.grpc.Artifact.class, io.a2a.grpc.Artifact.Builder.class); + } + + private int bitField0_; + public static final int ARTIFACT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object artifactId_ = ""; + /** + *
+ * Unique id for the artifact. It must be at least unique within a task. + *+ * + *
string artifact_id = 1 [json_name = "artifactId"];
+ * @return The artifactId.
+ */
+ @java.lang.Override
+ public java.lang.String getArtifactId() {
+ java.lang.Object ref = artifactId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ artifactId_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Unique id for the artifact. It must be at least unique within a task. + *+ * + *
string artifact_id = 1 [json_name = "artifactId"];
+ * @return The bytes for artifactId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getArtifactIdBytes() {
+ java.lang.Object ref = artifactId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ artifactId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * + * A human readable name for the artifact. + *+ * + *
string name = 3 [json_name = "name"];
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * A human readable name for the artifact. + *+ * + *
string name = 3 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object description_ = "";
+ /**
+ * + * A human readable description of the artifact, optional. + *+ * + *
string description = 4 [json_name = "description"];
+ * @return The description.
+ */
+ @java.lang.Override
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * A human readable description of the artifact, optional. + *+ * + *
string description = 4 [json_name = "description"];
+ * @return The bytes for description.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARTS_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
+ private java.util.List+ * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ @java.lang.Override
+ public java.util.List+ * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ @java.lang.Override
+ public java.util.List extends io.a2a.grpc.PartOrBuilder>
+ getPartsOrBuilderList() {
+ return parts_;
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ @java.lang.Override
+ public int getPartsCount() {
+ return parts_.size();
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ @java.lang.Override
+ public io.a2a.grpc.Part getParts(int index) {
+ return parts_.get(index);
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ @java.lang.Override
+ public io.a2a.grpc.PartOrBuilder getPartsOrBuilder(
+ int index) {
+ return parts_.get(index);
+ }
+
+ public static final int METADATA_FIELD_NUMBER = 6;
+ private com.google.protobuf.Struct metadata_;
+ /**
+ * + * Optional metadata included with the artifact. + *+ * + *
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
+ * @return Whether the metadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasMetadata() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * + * Optional metadata included with the artifact. + *+ * + *
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
+ * @return The metadata.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Struct getMetadata() {
+ return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;
+ }
+ /**
+ * + * Optional metadata included with the artifact. + *+ * + *
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
+ */
+ @java.lang.Override
+ public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
+ return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;
+ }
+
+ public static final int EXTENSIONS_FIELD_NUMBER = 7;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList extensions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * + * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @return A list containing the extensions.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getExtensionsList() {
+ return extensions_;
+ }
+ /**
+ * + * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @return The count of extensions.
+ */
+ public int getExtensionsCount() {
+ return extensions_.size();
+ }
+ /**
+ * + * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @param index The index of the element to return.
+ * @return The extensions at the given index.
+ */
+ public java.lang.String getExtensions(int index) {
+ return extensions_.get(index);
+ }
+ /**
+ * + * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @param index The index of the value to return.
+ * @return The bytes of the extensions at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getExtensionsBytes(int index) {
+ return extensions_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(artifactId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, artifactId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, description_);
+ }
+ for (int i = 0; i < parts_.size(); i++) {
+ output.writeMessage(5, parts_.get(i));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(6, getMetadata());
+ }
+ for (int i = 0; i < extensions_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 7, extensions_.getRaw(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(artifactId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, artifactId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_);
+ }
+ for (int i = 0; i < parts_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, parts_.get(i));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, getMetadata());
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < extensions_.size(); i++) {
+ dataSize += computeStringSizeNoTag(extensions_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getExtensionsList().size();
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.a2a.grpc.Artifact)) {
+ return super.equals(obj);
+ }
+ io.a2a.grpc.Artifact other = (io.a2a.grpc.Artifact) obj;
+
+ if (!getArtifactId()
+ .equals(other.getArtifactId())) return false;
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getDescription()
+ .equals(other.getDescription())) return false;
+ if (!getPartsList()
+ .equals(other.getPartsList())) return false;
+ if (hasMetadata() != other.hasMetadata()) return false;
+ if (hasMetadata()) {
+ if (!getMetadata()
+ .equals(other.getMetadata())) return false;
+ }
+ if (!getExtensionsList()
+ .equals(other.getExtensionsList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getArtifactId().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ if (getPartsCount() > 0) {
+ hash = (37 * hash) + PARTS_FIELD_NUMBER;
+ hash = (53 * hash) + getPartsList().hashCode();
+ }
+ if (hasMetadata()) {
+ hash = (37 * hash) + METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getMetadata().hashCode();
+ }
+ if (getExtensionsCount() > 0) {
+ hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getExtensionsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.a2a.grpc.Artifact parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.Artifact parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.Artifact parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.Artifact parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.Artifact parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.Artifact parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.Artifact parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.Artifact parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.a2a.grpc.Artifact parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.a2a.grpc.Artifact parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.a2a.grpc.Artifact parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.Artifact parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.a2a.grpc.Artifact prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Artifacts are the container for task completed results. These are similar + * to Messages but are intended to be the product of a task, as opposed to + * point-to-point communication. + *+ * + * Protobuf type {@code a2a.v1.Artifact} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
+ * Unique id for the artifact. It must be at least unique within a task. + *+ * + *
string artifact_id = 1 [json_name = "artifactId"];
+ * @return The artifactId.
+ */
+ public java.lang.String getArtifactId() {
+ java.lang.Object ref = artifactId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ artifactId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Unique id for the artifact. It must be at least unique within a task. + *+ * + *
string artifact_id = 1 [json_name = "artifactId"];
+ * @return The bytes for artifactId.
+ */
+ public com.google.protobuf.ByteString
+ getArtifactIdBytes() {
+ java.lang.Object ref = artifactId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ artifactId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Unique id for the artifact. It must be at least unique within a task. + *+ * + *
string artifact_id = 1 [json_name = "artifactId"];
+ * @param value The artifactId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setArtifactId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ artifactId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Unique id for the artifact. It must be at least unique within a task. + *+ * + *
string artifact_id = 1 [json_name = "artifactId"];
+ * @return This builder for chaining.
+ */
+ public Builder clearArtifactId() {
+ artifactId_ = getDefaultInstance().getArtifactId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Unique id for the artifact. It must be at least unique within a task. + *+ * + *
string artifact_id = 1 [json_name = "artifactId"];
+ * @param value The bytes for artifactId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setArtifactIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ artifactId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * + * A human readable name for the artifact. + *+ * + *
string name = 3 [json_name = "name"];
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * A human readable name for the artifact. + *+ * + *
string name = 3 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * A human readable name for the artifact. + *+ * + *
string name = 3 [json_name = "name"];
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A human readable name for the artifact. + *+ * + *
string name = 3 [json_name = "name"];
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A human readable name for the artifact. + *+ * + *
string name = 3 [json_name = "name"];
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ * + * A human readable description of the artifact, optional. + *+ * + *
string description = 4 [json_name = "description"];
+ * @return The description.
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * A human readable description of the artifact, optional. + *+ * + *
string description = 4 [json_name = "description"];
+ * @return The bytes for description.
+ */
+ public com.google.protobuf.ByteString
+ getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * A human readable description of the artifact, optional. + *+ * + *
string description = 4 [json_name = "description"];
+ * @param value The description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescription(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ description_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A human readable description of the artifact, optional. + *+ * + *
string description = 4 [json_name = "description"];
+ * @return This builder for chaining.
+ */
+ public Builder clearDescription() {
+ description_ = getDefaultInstance().getDescription();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A human readable description of the artifact, optional. + *+ * + *
string description = 4 [json_name = "description"];
+ * @param value The bytes for description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ description_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public java.util.List+ * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public int getPartsCount() {
+ if (partsBuilder_ == null) {
+ return parts_.size();
+ } else {
+ return partsBuilder_.getCount();
+ }
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public io.a2a.grpc.Part getParts(int index) {
+ if (partsBuilder_ == null) {
+ return parts_.get(index);
+ } else {
+ return partsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public Builder setParts(
+ int index, io.a2a.grpc.Part value) {
+ if (partsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartsIsMutable();
+ parts_.set(index, value);
+ onChanged();
+ } else {
+ partsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public Builder setParts(
+ int index, io.a2a.grpc.Part.Builder builderForValue) {
+ if (partsBuilder_ == null) {
+ ensurePartsIsMutable();
+ parts_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ partsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public Builder addParts(io.a2a.grpc.Part value) {
+ if (partsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartsIsMutable();
+ parts_.add(value);
+ onChanged();
+ } else {
+ partsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public Builder addParts(
+ int index, io.a2a.grpc.Part value) {
+ if (partsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartsIsMutable();
+ parts_.add(index, value);
+ onChanged();
+ } else {
+ partsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public Builder addParts(
+ io.a2a.grpc.Part.Builder builderForValue) {
+ if (partsBuilder_ == null) {
+ ensurePartsIsMutable();
+ parts_.add(builderForValue.build());
+ onChanged();
+ } else {
+ partsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public Builder addParts(
+ int index, io.a2a.grpc.Part.Builder builderForValue) {
+ if (partsBuilder_ == null) {
+ ensurePartsIsMutable();
+ parts_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ partsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public Builder addAllParts(
+ java.lang.Iterable extends io.a2a.grpc.Part> values) {
+ if (partsBuilder_ == null) {
+ ensurePartsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, parts_);
+ onChanged();
+ } else {
+ partsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public Builder clearParts() {
+ if (partsBuilder_ == null) {
+ parts_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ partsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public Builder removeParts(int index) {
+ if (partsBuilder_ == null) {
+ ensurePartsIsMutable();
+ parts_.remove(index);
+ onChanged();
+ } else {
+ partsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public io.a2a.grpc.Part.Builder getPartsBuilder(
+ int index) {
+ return internalGetPartsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public io.a2a.grpc.PartOrBuilder getPartsOrBuilder(
+ int index) {
+ if (partsBuilder_ == null) {
+ return parts_.get(index); } else {
+ return partsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public java.util.List extends io.a2a.grpc.PartOrBuilder>
+ getPartsOrBuilderList() {
+ if (partsBuilder_ != null) {
+ return partsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(parts_);
+ }
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public io.a2a.grpc.Part.Builder addPartsBuilder() {
+ return internalGetPartsFieldBuilder().addBuilder(
+ io.a2a.grpc.Part.getDefaultInstance());
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public io.a2a.grpc.Part.Builder addPartsBuilder(
+ int index) {
+ return internalGetPartsFieldBuilder().addBuilder(
+ index, io.a2a.grpc.Part.getDefaultInstance());
+ }
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ public java.util.List+ * Optional metadata included with the artifact. + *+ * + *
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
+ * @return Whether the metadata field is set.
+ */
+ public boolean hasMetadata() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * + * Optional metadata included with the artifact. + *+ * + *
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
+ * @return The metadata.
+ */
+ public com.google.protobuf.Struct getMetadata() {
+ if (metadataBuilder_ == null) {
+ return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;
+ } else {
+ return metadataBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Optional metadata included with the artifact. + *+ * + *
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
+ */
+ public Builder setMetadata(com.google.protobuf.Struct value) {
+ if (metadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ metadata_ = value;
+ } else {
+ metadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional metadata included with the artifact. + *+ * + *
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
+ */
+ public Builder setMetadata(
+ com.google.protobuf.Struct.Builder builderForValue) {
+ if (metadataBuilder_ == null) {
+ metadata_ = builderForValue.build();
+ } else {
+ metadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional metadata included with the artifact. + *+ * + *
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
+ */
+ public Builder mergeMetadata(com.google.protobuf.Struct value) {
+ if (metadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0) &&
+ metadata_ != null &&
+ metadata_ != com.google.protobuf.Struct.getDefaultInstance()) {
+ getMetadataBuilder().mergeFrom(value);
+ } else {
+ metadata_ = value;
+ }
+ } else {
+ metadataBuilder_.mergeFrom(value);
+ }
+ if (metadata_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * + * Optional metadata included with the artifact. + *+ * + *
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
+ */
+ public Builder clearMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ metadata_ = null;
+ if (metadataBuilder_ != null) {
+ metadataBuilder_.dispose();
+ metadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional metadata included with the artifact. + *+ * + *
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
+ */
+ public com.google.protobuf.Struct.Builder getMetadataBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return internalGetMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Optional metadata included with the artifact. + *+ * + *
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
+ */
+ public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
+ if (metadataBuilder_ != null) {
+ return metadataBuilder_.getMessageOrBuilder();
+ } else {
+ return metadata_ == null ?
+ com.google.protobuf.Struct.getDefaultInstance() : metadata_;
+ }
+ }
+ /**
+ * + * Optional metadata included with the artifact. + *+ * + *
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
+ internalGetMetadataFieldBuilder() {
+ if (metadataBuilder_ == null) {
+ metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
+ getMetadata(),
+ getParentForChildren(),
+ isClean());
+ metadata_ = null;
+ }
+ return metadataBuilder_;
+ }
+
+ private com.google.protobuf.LazyStringArrayList extensions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureExtensionsIsMutable() {
+ if (!extensions_.isModifiable()) {
+ extensions_ = new com.google.protobuf.LazyStringArrayList(extensions_);
+ }
+ bitField0_ |= 0x00000020;
+ }
+ /**
+ * + * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @return A list containing the extensions.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getExtensionsList() {
+ extensions_.makeImmutable();
+ return extensions_;
+ }
+ /**
+ * + * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @return The count of extensions.
+ */
+ public int getExtensionsCount() {
+ return extensions_.size();
+ }
+ /**
+ * + * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @param index The index of the element to return.
+ * @return The extensions at the given index.
+ */
+ public java.lang.String getExtensions(int index) {
+ return extensions_.get(index);
+ }
+ /**
+ * + * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @param index The index of the value to return.
+ * @return The bytes of the extensions at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getExtensionsBytes(int index) {
+ return extensions_.getByteString(index);
+ }
+ /**
+ * + * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @param index The index to set the value at.
+ * @param value The extensions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExtensions(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureExtensionsIsMutable();
+ extensions_.set(index, value);
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @param value The extensions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addExtensions(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureExtensionsIsMutable();
+ extensions_.add(value);
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @param values The extensions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllExtensions(
+ java.lang.Iterable+ * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @return This builder for chaining.
+ */
+ public Builder clearExtensions() {
+ extensions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @param value The bytes of the extensions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addExtensionsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureExtensionsIsMutable();
+ extensions_.add(value);
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:a2a.v1.Artifact)
+ }
+
+ // @@protoc_insertion_point(class_scope:a2a.v1.Artifact)
+ private static final io.a2a.grpc.Artifact DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.a2a.grpc.Artifact();
+ }
+
+ public static io.a2a.grpc.Artifact getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Unique id for the artifact. It must be at least unique within a task. + *+ * + *
string artifact_id = 1 [json_name = "artifactId"];
+ * @return The artifactId.
+ */
+ java.lang.String getArtifactId();
+ /**
+ * + * Unique id for the artifact. It must be at least unique within a task. + *+ * + *
string artifact_id = 1 [json_name = "artifactId"];
+ * @return The bytes for artifactId.
+ */
+ com.google.protobuf.ByteString
+ getArtifactIdBytes();
+
+ /**
+ * + * A human readable name for the artifact. + *+ * + *
string name = 3 [json_name = "name"];
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * + * A human readable name for the artifact. + *+ * + *
string name = 3 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * + * A human readable description of the artifact, optional. + *+ * + *
string description = 4 [json_name = "description"];
+ * @return The description.
+ */
+ java.lang.String getDescription();
+ /**
+ * + * A human readable description of the artifact, optional. + *+ * + *
string description = 4 [json_name = "description"];
+ * @return The bytes for description.
+ */
+ com.google.protobuf.ByteString
+ getDescriptionBytes();
+
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ java.util.List+ * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ io.a2a.grpc.Part getParts(int index);
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ int getPartsCount();
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ java.util.List extends io.a2a.grpc.PartOrBuilder>
+ getPartsOrBuilderList();
+ /**
+ * + * The content of the artifact. + *+ * + *
repeated .a2a.v1.Part parts = 5 [json_name = "parts"];
+ */
+ io.a2a.grpc.PartOrBuilder getPartsOrBuilder(
+ int index);
+
+ /**
+ * + * Optional metadata included with the artifact. + *+ * + *
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
+ * @return Whether the metadata field is set.
+ */
+ boolean hasMetadata();
+ /**
+ * + * Optional metadata included with the artifact. + *+ * + *
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
+ * @return The metadata.
+ */
+ com.google.protobuf.Struct getMetadata();
+ /**
+ * + * Optional metadata included with the artifact. + *+ * + *
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
+ */
+ com.google.protobuf.StructOrBuilder getMetadataOrBuilder();
+
+ /**
+ * + * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @return A list containing the extensions.
+ */
+ java.util.List+ * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @return The count of extensions.
+ */
+ int getExtensionsCount();
+ /**
+ * + * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @param index The index of the element to return.
+ * @return The extensions at the given index.
+ */
+ java.lang.String getExtensions(int index);
+ /**
+ * + * The URIs of extensions that are present or contributed to this Artifact. + *+ * + *
repeated string extensions = 7 [json_name = "extensions"];
+ * @param index The index of the value to return.
+ * @return The bytes of the extensions at the given index.
+ */
+ com.google.protobuf.ByteString
+ getExtensionsBytes(int index);
+}
diff --git a/grpc/src/main/java/io/a2a/grpc/AuthenticationInfo.java b/grpc/src/main/java/io/a2a/grpc/AuthenticationInfo.java
new file mode 100644
index 000000000..723f7164a
--- /dev/null
+++ b/grpc/src/main/java/io/a2a/grpc/AuthenticationInfo.java
@@ -0,0 +1,779 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: a2a.proto
+// Protobuf Java Version: 4.31.1
+
+package io.a2a.grpc;
+
+/**
+ * + * Defines authentication details, used for push notifications. + *+ * + * Protobuf type {@code a2a.v1.AuthenticationInfo} + */ +@com.google.protobuf.Generated +public final class AuthenticationInfo extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:a2a.v1.AuthenticationInfo) + AuthenticationInfoOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 1, + /* suffix= */ "", + AuthenticationInfo.class.getName()); + } + // Use AuthenticationInfo.newBuilder() to construct. + private AuthenticationInfo(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + private AuthenticationInfo() { + schemes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + credentials_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.a2a.grpc.A2A.internal_static_a2a_v1_AuthenticationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.a2a.grpc.A2A.internal_static_a2a_v1_AuthenticationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.a2a.grpc.AuthenticationInfo.class, io.a2a.grpc.AuthenticationInfo.Builder.class); + } + + public static final int SCHEMES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList schemes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+ * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @return A list containing the schemes.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getSchemesList() {
+ return schemes_;
+ }
+ /**
+ * + * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @return The count of schemes.
+ */
+ public int getSchemesCount() {
+ return schemes_.size();
+ }
+ /**
+ * + * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @param index The index of the element to return.
+ * @return The schemes at the given index.
+ */
+ public java.lang.String getSchemes(int index) {
+ return schemes_.get(index);
+ }
+ /**
+ * + * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @param index The index of the value to return.
+ * @return The bytes of the schemes at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getSchemesBytes(int index) {
+ return schemes_.getByteString(index);
+ }
+
+ public static final int CREDENTIALS_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object credentials_ = "";
+ /**
+ * + * Optional credentials + *+ * + *
string credentials = 2 [json_name = "credentials"];
+ * @return The credentials.
+ */
+ @java.lang.Override
+ public java.lang.String getCredentials() {
+ java.lang.Object ref = credentials_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ credentials_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Optional credentials + *+ * + *
string credentials = 2 [json_name = "credentials"];
+ * @return The bytes for credentials.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getCredentialsBytes() {
+ java.lang.Object ref = credentials_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ credentials_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < schemes_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, schemes_.getRaw(i));
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(credentials_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, credentials_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < schemes_.size(); i++) {
+ dataSize += computeStringSizeNoTag(schemes_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getSchemesList().size();
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(credentials_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, credentials_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.a2a.grpc.AuthenticationInfo)) {
+ return super.equals(obj);
+ }
+ io.a2a.grpc.AuthenticationInfo other = (io.a2a.grpc.AuthenticationInfo) obj;
+
+ if (!getSchemesList()
+ .equals(other.getSchemesList())) return false;
+ if (!getCredentials()
+ .equals(other.getCredentials())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getSchemesCount() > 0) {
+ hash = (37 * hash) + SCHEMES_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemesList().hashCode();
+ }
+ hash = (37 * hash) + CREDENTIALS_FIELD_NUMBER;
+ hash = (53 * hash) + getCredentials().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.a2a.grpc.AuthenticationInfo parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AuthenticationInfo parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AuthenticationInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AuthenticationInfo parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AuthenticationInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.AuthenticationInfo parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.AuthenticationInfo parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.AuthenticationInfo parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.a2a.grpc.AuthenticationInfo parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.a2a.grpc.AuthenticationInfo parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.a2a.grpc.AuthenticationInfo parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.AuthenticationInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.a2a.grpc.AuthenticationInfo prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Defines authentication details, used for push notifications. + *+ * + * Protobuf type {@code a2a.v1.AuthenticationInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
+ * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @return A list containing the schemes.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getSchemesList() {
+ schemes_.makeImmutable();
+ return schemes_;
+ }
+ /**
+ * + * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @return The count of schemes.
+ */
+ public int getSchemesCount() {
+ return schemes_.size();
+ }
+ /**
+ * + * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @param index The index of the element to return.
+ * @return The schemes at the given index.
+ */
+ public java.lang.String getSchemes(int index) {
+ return schemes_.get(index);
+ }
+ /**
+ * + * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @param index The index of the value to return.
+ * @return The bytes of the schemes at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getSchemesBytes(int index) {
+ return schemes_.getByteString(index);
+ }
+ /**
+ * + * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @param index The index to set the value at.
+ * @param value The schemes to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSchemes(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureSchemesIsMutable();
+ schemes_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @param value The schemes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addSchemes(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureSchemesIsMutable();
+ schemes_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @param values The schemes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllSchemes(
+ java.lang.Iterable+ * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @return This builder for chaining.
+ */
+ public Builder clearSchemes() {
+ schemes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @param value The bytes of the schemes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addSchemesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureSchemesIsMutable();
+ schemes_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object credentials_ = "";
+ /**
+ * + * Optional credentials + *+ * + *
string credentials = 2 [json_name = "credentials"];
+ * @return The credentials.
+ */
+ public java.lang.String getCredentials() {
+ java.lang.Object ref = credentials_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ credentials_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Optional credentials + *+ * + *
string credentials = 2 [json_name = "credentials"];
+ * @return The bytes for credentials.
+ */
+ public com.google.protobuf.ByteString
+ getCredentialsBytes() {
+ java.lang.Object ref = credentials_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ credentials_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Optional credentials + *+ * + *
string credentials = 2 [json_name = "credentials"];
+ * @param value The credentials to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCredentials(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ credentials_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional credentials + *+ * + *
string credentials = 2 [json_name = "credentials"];
+ * @return This builder for chaining.
+ */
+ public Builder clearCredentials() {
+ credentials_ = getDefaultInstance().getCredentials();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional credentials + *+ * + *
string credentials = 2 [json_name = "credentials"];
+ * @param value The bytes for credentials to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCredentialsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ credentials_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:a2a.v1.AuthenticationInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:a2a.v1.AuthenticationInfo)
+ private static final io.a2a.grpc.AuthenticationInfo DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.a2a.grpc.AuthenticationInfo();
+ }
+
+ public static io.a2a.grpc.AuthenticationInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @return A list containing the schemes.
+ */
+ java.util.List+ * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @return The count of schemes.
+ */
+ int getSchemesCount();
+ /**
+ * + * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @param index The index of the element to return.
+ * @return The schemes at the given index.
+ */
+ java.lang.String getSchemes(int index);
+ /**
+ * + * Supported authentication schemes - e.g. Basic, Bearer, etc + *+ * + *
repeated string schemes = 1 [json_name = "schemes"];
+ * @param index The index of the value to return.
+ * @return The bytes of the schemes at the given index.
+ */
+ com.google.protobuf.ByteString
+ getSchemesBytes(int index);
+
+ /**
+ * + * Optional credentials + *+ * + *
string credentials = 2 [json_name = "credentials"];
+ * @return The credentials.
+ */
+ java.lang.String getCredentials();
+ /**
+ * + * Optional credentials + *+ * + *
string credentials = 2 [json_name = "credentials"];
+ * @return The bytes for credentials.
+ */
+ com.google.protobuf.ByteString
+ getCredentialsBytes();
+}
diff --git a/grpc/src/main/java/io/a2a/grpc/AuthorizationCodeOAuthFlow.java b/grpc/src/main/java/io/a2a/grpc/AuthorizationCodeOAuthFlow.java
new file mode 100644
index 000000000..cbe26afb6
--- /dev/null
+++ b/grpc/src/main/java/io/a2a/grpc/AuthorizationCodeOAuthFlow.java
@@ -0,0 +1,1213 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: a2a.proto
+// Protobuf Java Version: 4.31.1
+
+package io.a2a.grpc;
+
+/**
+ * Protobuf type {@code a2a.v1.AuthorizationCodeOAuthFlow}
+ */
+@com.google.protobuf.Generated
+public final class AuthorizationCodeOAuthFlow extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:a2a.v1.AuthorizationCodeOAuthFlow)
+ AuthorizationCodeOAuthFlowOrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 31,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ AuthorizationCodeOAuthFlow.class.getName());
+ }
+ // Use AuthorizationCodeOAuthFlow.newBuilder() to construct.
+ private AuthorizationCodeOAuthFlow(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private AuthorizationCodeOAuthFlow() {
+ authorizationUrl_ = "";
+ tokenUrl_ = "";
+ refreshUrl_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.a2a.grpc.A2A.internal_static_a2a_v1_AuthorizationCodeOAuthFlow_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 4:
+ return internalGetScopes();
+ default:
+ throw new RuntimeException(
+ "Invalid map field number: " + number);
+ }
+ }
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.a2a.grpc.A2A.internal_static_a2a_v1_AuthorizationCodeOAuthFlow_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.a2a.grpc.AuthorizationCodeOAuthFlow.class, io.a2a.grpc.AuthorizationCodeOAuthFlow.Builder.class);
+ }
+
+ public static final int AUTHORIZATION_URL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object authorizationUrl_ = "";
+ /**
+ * + * The authorization URL to be used for this flow. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS + *+ * + *
string authorization_url = 1 [json_name = "authorizationUrl"];
+ * @return The authorizationUrl.
+ */
+ @java.lang.Override
+ public java.lang.String getAuthorizationUrl() {
+ java.lang.Object ref = authorizationUrl_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ authorizationUrl_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The authorization URL to be used for this flow. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS + *+ * + *
string authorization_url = 1 [json_name = "authorizationUrl"];
+ * @return The bytes for authorizationUrl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getAuthorizationUrlBytes() {
+ java.lang.Object ref = authorizationUrl_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ authorizationUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TOKEN_URL_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object tokenUrl_ = "";
+ /**
+ * + * The token URL to be used for this flow. This MUST be in the form of a URL. + * The OAuth2 standard requires the use of TLS. + *+ * + *
string token_url = 2 [json_name = "tokenUrl"];
+ * @return The tokenUrl.
+ */
+ @java.lang.Override
+ public java.lang.String getTokenUrl() {
+ java.lang.Object ref = tokenUrl_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tokenUrl_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The token URL to be used for this flow. This MUST be in the form of a URL. + * The OAuth2 standard requires the use of TLS. + *+ * + *
string token_url = 2 [json_name = "tokenUrl"];
+ * @return The bytes for tokenUrl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTokenUrlBytes() {
+ java.lang.Object ref = tokenUrl_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ tokenUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REFRESH_URL_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object refreshUrl_ = "";
+ /**
+ * + * The URL to be used for obtaining refresh tokens. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS. + *+ * + *
string refresh_url = 3 [json_name = "refreshUrl"];
+ * @return The refreshUrl.
+ */
+ @java.lang.Override
+ public java.lang.String getRefreshUrl() {
+ java.lang.Object ref = refreshUrl_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ refreshUrl_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The URL to be used for obtaining refresh tokens. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS. + *+ * + *
string refresh_url = 3 [json_name = "refreshUrl"];
+ * @return The bytes for refreshUrl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getRefreshUrlBytes() {
+ java.lang.Object ref = refreshUrl_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ refreshUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SCOPES_FIELD_NUMBER = 4;
+ private static final class ScopesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .+ * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + *+ * + *
map<string, string> scopes = 4 [json_name = "scopes"];
+ */
+ @java.lang.Override
+ public boolean containsScopes(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetScopes().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getScopesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + *+ * + *
map<string, string> scopes = 4 [json_name = "scopes"];
+ */
+ @java.lang.Override
+ public java.util.Map+ * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + *+ * + *
map<string, string> scopes = 4 [json_name = "scopes"];
+ */
+ @java.lang.Override
+ public /* nullable */
+java.lang.String getScopesOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map+ * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + *+ * + *
map<string, string> scopes = 4 [json_name = "scopes"];
+ */
+ @java.lang.Override
+ public java.lang.String getScopesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map+ * The authorization URL to be used for this flow. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS + *+ * + *
string authorization_url = 1 [json_name = "authorizationUrl"];
+ * @return The authorizationUrl.
+ */
+ public java.lang.String getAuthorizationUrl() {
+ java.lang.Object ref = authorizationUrl_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ authorizationUrl_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The authorization URL to be used for this flow. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS + *+ * + *
string authorization_url = 1 [json_name = "authorizationUrl"];
+ * @return The bytes for authorizationUrl.
+ */
+ public com.google.protobuf.ByteString
+ getAuthorizationUrlBytes() {
+ java.lang.Object ref = authorizationUrl_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ authorizationUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The authorization URL to be used for this flow. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS + *+ * + *
string authorization_url = 1 [json_name = "authorizationUrl"];
+ * @param value The authorizationUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAuthorizationUrl(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ authorizationUrl_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The authorization URL to be used for this flow. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS + *+ * + *
string authorization_url = 1 [json_name = "authorizationUrl"];
+ * @return This builder for chaining.
+ */
+ public Builder clearAuthorizationUrl() {
+ authorizationUrl_ = getDefaultInstance().getAuthorizationUrl();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The authorization URL to be used for this flow. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS + *+ * + *
string authorization_url = 1 [json_name = "authorizationUrl"];
+ * @param value The bytes for authorizationUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAuthorizationUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ authorizationUrl_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object tokenUrl_ = "";
+ /**
+ * + * The token URL to be used for this flow. This MUST be in the form of a URL. + * The OAuth2 standard requires the use of TLS. + *+ * + *
string token_url = 2 [json_name = "tokenUrl"];
+ * @return The tokenUrl.
+ */
+ public java.lang.String getTokenUrl() {
+ java.lang.Object ref = tokenUrl_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tokenUrl_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The token URL to be used for this flow. This MUST be in the form of a URL. + * The OAuth2 standard requires the use of TLS. + *+ * + *
string token_url = 2 [json_name = "tokenUrl"];
+ * @return The bytes for tokenUrl.
+ */
+ public com.google.protobuf.ByteString
+ getTokenUrlBytes() {
+ java.lang.Object ref = tokenUrl_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ tokenUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The token URL to be used for this flow. This MUST be in the form of a URL. + * The OAuth2 standard requires the use of TLS. + *+ * + *
string token_url = 2 [json_name = "tokenUrl"];
+ * @param value The tokenUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTokenUrl(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ tokenUrl_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The token URL to be used for this flow. This MUST be in the form of a URL. + * The OAuth2 standard requires the use of TLS. + *+ * + *
string token_url = 2 [json_name = "tokenUrl"];
+ * @return This builder for chaining.
+ */
+ public Builder clearTokenUrl() {
+ tokenUrl_ = getDefaultInstance().getTokenUrl();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The token URL to be used for this flow. This MUST be in the form of a URL. + * The OAuth2 standard requires the use of TLS. + *+ * + *
string token_url = 2 [json_name = "tokenUrl"];
+ * @param value The bytes for tokenUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTokenUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ tokenUrl_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object refreshUrl_ = "";
+ /**
+ * + * The URL to be used for obtaining refresh tokens. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS. + *+ * + *
string refresh_url = 3 [json_name = "refreshUrl"];
+ * @return The refreshUrl.
+ */
+ public java.lang.String getRefreshUrl() {
+ java.lang.Object ref = refreshUrl_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ refreshUrl_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The URL to be used for obtaining refresh tokens. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS. + *+ * + *
string refresh_url = 3 [json_name = "refreshUrl"];
+ * @return The bytes for refreshUrl.
+ */
+ public com.google.protobuf.ByteString
+ getRefreshUrlBytes() {
+ java.lang.Object ref = refreshUrl_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ refreshUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The URL to be used for obtaining refresh tokens. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS. + *+ * + *
string refresh_url = 3 [json_name = "refreshUrl"];
+ * @param value The refreshUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRefreshUrl(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ refreshUrl_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The URL to be used for obtaining refresh tokens. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS. + *+ * + *
string refresh_url = 3 [json_name = "refreshUrl"];
+ * @return This builder for chaining.
+ */
+ public Builder clearRefreshUrl() {
+ refreshUrl_ = getDefaultInstance().getRefreshUrl();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The URL to be used for obtaining refresh tokens. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS. + *+ * + *
string refresh_url = 3 [json_name = "refreshUrl"];
+ * @param value The bytes for refreshUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRefreshUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ refreshUrl_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> scopes_;
+ private com.google.protobuf.MapField+ * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + *+ * + *
map<string, string> scopes = 4 [json_name = "scopes"];
+ */
+ @java.lang.Override
+ public boolean containsScopes(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetScopes().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getScopesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + *+ * + *
map<string, string> scopes = 4 [json_name = "scopes"];
+ */
+ @java.lang.Override
+ public java.util.Map+ * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + *+ * + *
map<string, string> scopes = 4 [json_name = "scopes"];
+ */
+ @java.lang.Override
+ public /* nullable */
+java.lang.String getScopesOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map+ * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + *+ * + *
map<string, string> scopes = 4 [json_name = "scopes"];
+ */
+ @java.lang.Override
+ public java.lang.String getScopesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map+ * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + *+ * + *
map<string, string> scopes = 4 [json_name = "scopes"];
+ */
+ public Builder removeScopes(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ internalGetMutableScopes().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + *+ * + *
map<string, string> scopes = 4 [json_name = "scopes"];
+ */
+ public Builder putScopes(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ if (value == null) { throw new NullPointerException("map value"); }
+ internalGetMutableScopes().getMutableMap()
+ .put(key, value);
+ bitField0_ |= 0x00000008;
+ return this;
+ }
+ /**
+ * + * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + *+ * + *
map<string, string> scopes = 4 [json_name = "scopes"];
+ */
+ public Builder putAllScopes(
+ java.util.Map+ * The authorization URL to be used for this flow. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS + *+ * + *
string authorization_url = 1 [json_name = "authorizationUrl"];
+ * @return The authorizationUrl.
+ */
+ java.lang.String getAuthorizationUrl();
+ /**
+ * + * The authorization URL to be used for this flow. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS + *+ * + *
string authorization_url = 1 [json_name = "authorizationUrl"];
+ * @return The bytes for authorizationUrl.
+ */
+ com.google.protobuf.ByteString
+ getAuthorizationUrlBytes();
+
+ /**
+ * + * The token URL to be used for this flow. This MUST be in the form of a URL. + * The OAuth2 standard requires the use of TLS. + *+ * + *
string token_url = 2 [json_name = "tokenUrl"];
+ * @return The tokenUrl.
+ */
+ java.lang.String getTokenUrl();
+ /**
+ * + * The token URL to be used for this flow. This MUST be in the form of a URL. + * The OAuth2 standard requires the use of TLS. + *+ * + *
string token_url = 2 [json_name = "tokenUrl"];
+ * @return The bytes for tokenUrl.
+ */
+ com.google.protobuf.ByteString
+ getTokenUrlBytes();
+
+ /**
+ * + * The URL to be used for obtaining refresh tokens. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS. + *+ * + *
string refresh_url = 3 [json_name = "refreshUrl"];
+ * @return The refreshUrl.
+ */
+ java.lang.String getRefreshUrl();
+ /**
+ * + * The URL to be used for obtaining refresh tokens. This MUST be in the + * form of a URL. The OAuth2 standard requires the use of TLS. + *+ * + *
string refresh_url = 3 [json_name = "refreshUrl"];
+ * @return The bytes for refreshUrl.
+ */
+ com.google.protobuf.ByteString
+ getRefreshUrlBytes();
+
+ /**
+ * + * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + *+ * + *
map<string, string> scopes = 4 [json_name = "scopes"];
+ */
+ int getScopesCount();
+ /**
+ * + * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + *+ * + *
map<string, string> scopes = 4 [json_name = "scopes"];
+ */
+ boolean containsScopes(
+ java.lang.String key);
+ /**
+ * Use {@link #getScopesMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map+ * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + *+ * + *
map<string, string> scopes = 4 [json_name = "scopes"];
+ */
+ java.util.Map+ * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + *+ * + *
map<string, string> scopes = 4 [json_name = "scopes"];
+ */
+ /* nullable */
+java.lang.String getScopesOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue);
+ /**
+ * + * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + *+ * + *
map<string, string> scopes = 4 [json_name = "scopes"];
+ */
+ java.lang.String getScopesOrThrow(
+ java.lang.String key);
+}
diff --git a/grpc/src/main/java/io/a2a/grpc/CancelTaskRequest.java b/grpc/src/main/java/io/a2a/grpc/CancelTaskRequest.java
new file mode 100644
index 000000000..a5120ff06
--- /dev/null
+++ b/grpc/src/main/java/io/a2a/grpc/CancelTaskRequest.java
@@ -0,0 +1,530 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: a2a.proto
+// Protobuf Java Version: 4.31.1
+
+package io.a2a.grpc;
+
+/**
+ * Protobuf type {@code a2a.v1.CancelTaskRequest}
+ */
+@com.google.protobuf.Generated
+public final class CancelTaskRequest extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:a2a.v1.CancelTaskRequest)
+ CancelTaskRequestOrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 31,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ CancelTaskRequest.class.getName());
+ }
+ // Use CancelTaskRequest.newBuilder() to construct.
+ private CancelTaskRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private CancelTaskRequest() {
+ name_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.a2a.grpc.A2A.internal_static_a2a_v1_CancelTaskRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.a2a.grpc.A2A.internal_static_a2a_v1_CancelTaskRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.a2a.grpc.CancelTaskRequest.class, io.a2a.grpc.CancelTaskRequest.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ *
+ * name=tasks/{id}
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ * name=tasks/{id}
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.a2a.grpc.CancelTaskRequest)) {
+ return super.equals(obj);
+ }
+ io.a2a.grpc.CancelTaskRequest other = (io.a2a.grpc.CancelTaskRequest) obj;
+
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.a2a.grpc.CancelTaskRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.CancelTaskRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.CancelTaskRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.CancelTaskRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.CancelTaskRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.a2a.grpc.CancelTaskRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.a2a.grpc.CancelTaskRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.CancelTaskRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.a2a.grpc.CancelTaskRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.a2a.grpc.CancelTaskRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.a2a.grpc.CancelTaskRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.a2a.grpc.CancelTaskRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.a2a.grpc.CancelTaskRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code a2a.v1.CancelTaskRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ * name=tasks/{id}
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ * name=tasks/{id}
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ * name=tasks/{id}
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * name=tasks/{id}
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * name=tasks/{id}
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:a2a.v1.CancelTaskRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:a2a.v1.CancelTaskRequest)
+ private static final io.a2a.grpc.CancelTaskRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.a2a.grpc.CancelTaskRequest();
+ }
+
+ public static io.a2a.grpc.CancelTaskRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser