Package org.a2aproject.sdk.grpc
Class SendMessageConfiguration
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.a2aproject.sdk.grpc.SendMessageConfiguration
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,SendMessageConfigurationOrBuilder
@Generated
public final class SendMessageConfiguration
extends com.google.protobuf.GeneratedMessage
implements SendMessageConfigurationOrBuilder
Configuration of a send message request.Protobuf type
lf.a2a.v1.SendMessageConfiguration- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration of a send message request.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAcceptedOutputModes(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 SendMessageConfigurationstatic final com.google.protobuf.Descriptors.DescriptorintThe maximum number of most recent messages from the task's history to retrieve in the response.com.google.protobuf.Parser<SendMessageConfiguration>booleanIf `true`, the operation returns immediately after creating the task, even if processing is still in progress.intConfiguration for the agent to send push notifications for task updates.Configuration for the agent to send push notifications for task updates.inthashCode()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 booleannewBuilder(SendMessageConfiguration prototype) protected SendMessageConfiguration.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SendMessageConfigurationparseDelimitedFrom(InputStream input) static SendMessageConfigurationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SendMessageConfigurationparseFrom(byte[] data) static SendMessageConfigurationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SendMessageConfigurationparseFrom(com.google.protobuf.ByteString data) static SendMessageConfigurationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SendMessageConfigurationparseFrom(com.google.protobuf.CodedInputStream input) static SendMessageConfigurationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SendMessageConfigurationparseFrom(InputStream input) static SendMessageConfigurationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SendMessageConfigurationparseFrom(ByteBuffer data) static SendMessageConfigurationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SendMessageConfiguration>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ACCEPTED_OUTPUT_MODES_FIELD_NUMBER
public static final int ACCEPTED_OUTPUT_MODES_FIELD_NUMBER- See Also:
-
TASK_PUSH_NOTIFICATION_CONFIG_FIELD_NUMBER
public static final int TASK_PUSH_NOTIFICATION_CONFIG_FIELD_NUMBER- See Also:
-
HISTORY_LENGTH_FIELD_NUMBER
public static final int HISTORY_LENGTH_FIELD_NUMBER- See Also:
-
RETURN_IMMEDIATELY_FIELD_NUMBER
public static final int RETURN_IMMEDIATELY_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SendMessageConfiguration parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SendMessageConfiguration parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SendMessageConfiguration parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SendMessageConfiguration parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SendMessageConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SendMessageConfiguration parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SendMessageConfiguration parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SendMessageConfiguration parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SendMessageConfiguration parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SendMessageConfiguration parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SendMessageConfiguration.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-