Package org.a2aproject.sdk.grpc
Class SendMessageConfiguration.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SendMessageConfiguration.Builder>
org.a2aproject.sdk.grpc.SendMessageConfiguration.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,SendMessageConfigurationOrBuilder
- Enclosing class:
- SendMessageConfiguration
public static final class SendMessageConfiguration.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SendMessageConfiguration.Builder>
implements SendMessageConfigurationOrBuilder
Configuration of a send message request.Protobuf type
lf.a2a.v1.SendMessageConfiguration-
Method Summary
Modifier and TypeMethodDescriptionaddAcceptedOutputModes(String value) A list of media types the client is prepared to accept for response parts.addAcceptedOutputModesBytes(com.google.protobuf.ByteString value) A list of media types the client is prepared to accept for response parts.addAllAcceptedOutputModes(Iterable<String> values) A list of media types the client is prepared to accept for response parts.build()clear()A list of media types the client is prepared to accept for response parts.The maximum number of most recent messages from the task's history to retrieve in the response.If `true`, the operation returns immediately after creating the task, even if processing is still in progress.Configuration for the agent to send push notifications for task updates.getAcceptedOutputModes(int index) A list of media types the client is prepared to accept for response parts.com.google.protobuf.ByteStringgetAcceptedOutputModesBytes(int index) A list of media types the client is prepared to accept for response parts.intA list of media types the client is prepared to accept for response parts.com.google.protobuf.ProtocolStringListA list of media types the client is prepared to accept for response parts.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe maximum number of most recent messages from the task's history to retrieve in the response.booleanIf `true`, the operation returns immediately after creating the task, even if processing is still in progress.Configuration for the agent to send push notifications for task updates.Configuration for the agent to send push notifications for task updates.Configuration for the agent to send push notifications for task updates.booleanThe maximum number of most recent messages from the task's history to retrieve in the response.booleanConfiguration for the agent to send push notifications for task updates.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Configuration for the agent to send push notifications for task updates.setAcceptedOutputModes(int index, String value) A list of media types the client is prepared to accept for response parts.setHistoryLength(int value) The maximum number of most recent messages from the task's history to retrieve in the response.setReturnImmediately(boolean value) If `true`, the operation returns immediately after creating the task, even if processing is still in progress.Configuration for the agent to send push notifications for task updates.setTaskPushNotificationConfig(TaskPushNotificationConfig.Builder builderForValue) Configuration for the agent to send push notifications for task updates.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SendMessageConfiguration.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SendMessageConfiguration.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SendMessageConfiguration.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SendMessageConfiguration.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SendMessageConfiguration.Builder>
-
mergeFrom
public SendMessageConfiguration.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SendMessageConfiguration.Builder>- Throws:
IOException
-
getAcceptedOutputModesList
public com.google.protobuf.ProtocolStringList getAcceptedOutputModesList()A list of media types the client is prepared to accept for response parts. Agents SHOULD use this to tailor their output.
repeated string accepted_output_modes = 1;- Specified by:
getAcceptedOutputModesListin interfaceSendMessageConfigurationOrBuilder- Returns:
- A list containing the acceptedOutputModes.
-
getAcceptedOutputModesCount
public int getAcceptedOutputModesCount()A list of media types the client is prepared to accept for response parts. Agents SHOULD use this to tailor their output.
repeated string accepted_output_modes = 1;- Specified by:
getAcceptedOutputModesCountin interfaceSendMessageConfigurationOrBuilder- Returns:
- The count of acceptedOutputModes.
-
getAcceptedOutputModes
A list of media types the client is prepared to accept for response parts. Agents SHOULD use this to tailor their output.
repeated string accepted_output_modes = 1;- Specified by:
getAcceptedOutputModesin interfaceSendMessageConfigurationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The acceptedOutputModes at the given index.
-
getAcceptedOutputModesBytes
public com.google.protobuf.ByteString getAcceptedOutputModesBytes(int index) A list of media types the client is prepared to accept for response parts. Agents SHOULD use this to tailor their output.
repeated string accepted_output_modes = 1;- Specified by:
getAcceptedOutputModesBytesin interfaceSendMessageConfigurationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the acceptedOutputModes at the given index.
-
setAcceptedOutputModes
A list of media types the client is prepared to accept for response parts. Agents SHOULD use this to tailor their output.
repeated string accepted_output_modes = 1;- Parameters:
index- The index to set the value at.value- The acceptedOutputModes to set.- Returns:
- This builder for chaining.
-
addAcceptedOutputModes
A list of media types the client is prepared to accept for response parts. Agents SHOULD use this to tailor their output.
repeated string accepted_output_modes = 1;- Parameters:
value- The acceptedOutputModes to add.- Returns:
- This builder for chaining.
-
addAllAcceptedOutputModes
A list of media types the client is prepared to accept for response parts. Agents SHOULD use this to tailor their output.
repeated string accepted_output_modes = 1;- Parameters:
values- The acceptedOutputModes to add.- Returns:
- This builder for chaining.
-
clearAcceptedOutputModes
A list of media types the client is prepared to accept for response parts. Agents SHOULD use this to tailor their output.
repeated string accepted_output_modes = 1;- Returns:
- This builder for chaining.
-
addAcceptedOutputModesBytes
public SendMessageConfiguration.Builder addAcceptedOutputModesBytes(com.google.protobuf.ByteString value) A list of media types the client is prepared to accept for response parts. Agents SHOULD use this to tailor their output.
repeated string accepted_output_modes = 1;- Parameters:
value- The bytes of the acceptedOutputModes to add.- Returns:
- This builder for chaining.
-
hasTaskPushNotificationConfig
public boolean hasTaskPushNotificationConfig()Configuration for the agent to send push notifications for task updates. Task id should be empty when sending this configuration in a `SendMessage` request.
.lf.a2a.v1.TaskPushNotificationConfig task_push_notification_config = 2;- Specified by:
hasTaskPushNotificationConfigin interfaceSendMessageConfigurationOrBuilder- Returns:
- Whether the taskPushNotificationConfig field is set.
-
getTaskPushNotificationConfig
Configuration for the agent to send push notifications for task updates. Task id should be empty when sending this configuration in a `SendMessage` request.
.lf.a2a.v1.TaskPushNotificationConfig task_push_notification_config = 2;- Specified by:
getTaskPushNotificationConfigin interfaceSendMessageConfigurationOrBuilder- Returns:
- The taskPushNotificationConfig.
-
setTaskPushNotificationConfig
public SendMessageConfiguration.Builder setTaskPushNotificationConfig(TaskPushNotificationConfig value) Configuration for the agent to send push notifications for task updates. Task id should be empty when sending this configuration in a `SendMessage` request.
.lf.a2a.v1.TaskPushNotificationConfig task_push_notification_config = 2; -
setTaskPushNotificationConfig
public SendMessageConfiguration.Builder setTaskPushNotificationConfig(TaskPushNotificationConfig.Builder builderForValue) Configuration for the agent to send push notifications for task updates. Task id should be empty when sending this configuration in a `SendMessage` request.
.lf.a2a.v1.TaskPushNotificationConfig task_push_notification_config = 2; -
mergeTaskPushNotificationConfig
public SendMessageConfiguration.Builder mergeTaskPushNotificationConfig(TaskPushNotificationConfig value) Configuration for the agent to send push notifications for task updates. Task id should be empty when sending this configuration in a `SendMessage` request.
.lf.a2a.v1.TaskPushNotificationConfig task_push_notification_config = 2; -
clearTaskPushNotificationConfig
Configuration for the agent to send push notifications for task updates. Task id should be empty when sending this configuration in a `SendMessage` request.
.lf.a2a.v1.TaskPushNotificationConfig task_push_notification_config = 2; -
getTaskPushNotificationConfigBuilder
Configuration for the agent to send push notifications for task updates. Task id should be empty when sending this configuration in a `SendMessage` request.
.lf.a2a.v1.TaskPushNotificationConfig task_push_notification_config = 2; -
getTaskPushNotificationConfigOrBuilder
Configuration for the agent to send push notifications for task updates. Task id should be empty when sending this configuration in a `SendMessage` request.
.lf.a2a.v1.TaskPushNotificationConfig task_push_notification_config = 2;- Specified by:
getTaskPushNotificationConfigOrBuilderin interfaceSendMessageConfigurationOrBuilder
-
hasHistoryLength
public boolean hasHistoryLength()The maximum number of most recent messages from the task's history to retrieve in the response. An unset value means the client does not impose any limit. A value of zero is a request to not include any messages. The server MUST NOT return more messages than the provided value, but MAY apply a lower limit.
optional int32 history_length = 3;- Specified by:
hasHistoryLengthin interfaceSendMessageConfigurationOrBuilder- Returns:
- Whether the historyLength field is set.
-
getHistoryLength
public int getHistoryLength()The maximum number of most recent messages from the task's history to retrieve in the response. An unset value means the client does not impose any limit. A value of zero is a request to not include any messages. The server MUST NOT return more messages than the provided value, but MAY apply a lower limit.
optional int32 history_length = 3;- Specified by:
getHistoryLengthin interfaceSendMessageConfigurationOrBuilder- Returns:
- The historyLength.
-
setHistoryLength
The maximum number of most recent messages from the task's history to retrieve in the response. An unset value means the client does not impose any limit. A value of zero is a request to not include any messages. The server MUST NOT return more messages than the provided value, but MAY apply a lower limit.
optional int32 history_length = 3;- Parameters:
value- The historyLength to set.- Returns:
- This builder for chaining.
-
clearHistoryLength
The maximum number of most recent messages from the task's history to retrieve in the response. An unset value means the client does not impose any limit. A value of zero is a request to not include any messages. The server MUST NOT return more messages than the provided value, but MAY apply a lower limit.
optional int32 history_length = 3;- Returns:
- This builder for chaining.
-
getReturnImmediately
public boolean getReturnImmediately()If `true`, the operation returns immediately after creating the task, even if processing is still in progress. If `false` (default), the operation MUST wait until the task reaches a terminal (`COMPLETED`, `FAILED`, `CANCELED`, `REJECTED`) or interrupted (`INPUT_REQUIRED`, `AUTH_REQUIRED`) state before returning.
bool return_immediately = 4;- Specified by:
getReturnImmediatelyin interfaceSendMessageConfigurationOrBuilder- Returns:
- The returnImmediately.
-
setReturnImmediately
If `true`, the operation returns immediately after creating the task, even if processing is still in progress. If `false` (default), the operation MUST wait until the task reaches a terminal (`COMPLETED`, `FAILED`, `CANCELED`, `REJECTED`) or interrupted (`INPUT_REQUIRED`, `AUTH_REQUIRED`) state before returning.
bool return_immediately = 4;- Parameters:
value- The returnImmediately to set.- Returns:
- This builder for chaining.
-
clearReturnImmediately
If `true`, the operation returns immediately after creating the task, even if processing is still in progress. If `false` (default), the operation MUST wait until the task reaches a terminal (`COMPLETED`, `FAILED`, `CANCELED`, `REJECTED`) or interrupted (`INPUT_REQUIRED`, `AUTH_REQUIRED`) state before returning.
bool return_immediately = 4;- Returns:
- This builder for chaining.
-