Package org.a2aproject.sdk.compat03.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.compat03.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
a2a.v1.SendMessageConfiguration-
Method Summary
Modifier and TypeMethodDescriptionaddAcceptedOutputModes(String value) The output modes that the agent is expected to respond with.addAcceptedOutputModesBytes(com.google.protobuf.ByteString value) The output modes that the agent is expected to respond with.addAllAcceptedOutputModes(Iterable<String> values) The output modes that the agent is expected to respond with.build()clear()The output modes that the agent is expected to respond with.If true, the message will be blocking until the task is completed.The maximum number of messages to include in the history. if 0, the history will be unlimited.A configuration of a webhook that can be used to receive updatesgetAcceptedOutputModes(int index) The output modes that the agent is expected to respond with.com.google.protobuf.ByteStringgetAcceptedOutputModesBytes(int index) The output modes that the agent is expected to respond with.intThe output modes that the agent is expected to respond with.com.google.protobuf.ProtocolStringListThe output modes that the agent is expected to respond with.booleanIf true, the message will be blocking until the task is completed.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe maximum number of messages to include in the history. if 0, the history will be unlimited.A configuration of a webhook that can be used to receive updatesA configuration of a webhook that can be used to receive updatesA configuration of a webhook that can be used to receive updatesbooleanA configuration of a webhook that can be used to receive updatesprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) A configuration of a webhook that can be used to receive updatessetAcceptedOutputModes(int index, String value) The output modes that the agent is expected to respond with.setBlocking(boolean value) If true, the message will be blocking until the task is completed.setHistoryLength(int value) The maximum number of messages to include in the history. if 0, the history will be unlimited.A configuration of a webhook that can be used to receive updatessetPushNotification(PushNotificationConfig.Builder builderForValue) A configuration of a webhook that can be used to receive updatesMethods 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()The output modes that the agent is expected to respond with.
repeated string accepted_output_modes = 1;- Specified by:
getAcceptedOutputModesListin interfaceSendMessageConfigurationOrBuilder- Returns:
- A list containing the acceptedOutputModes.
-
getAcceptedOutputModesCount
public int getAcceptedOutputModesCount()The output modes that the agent is expected to respond with.
repeated string accepted_output_modes = 1;- Specified by:
getAcceptedOutputModesCountin interfaceSendMessageConfigurationOrBuilder- Returns:
- The count of acceptedOutputModes.
-
getAcceptedOutputModes
The output modes that the agent is expected to respond with.
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) The output modes that the agent is expected to respond with.
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
The output modes that the agent is expected to respond with.
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
The output modes that the agent is expected to respond with.
repeated string accepted_output_modes = 1;- Parameters:
value- The acceptedOutputModes to add.- Returns:
- This builder for chaining.
-
addAllAcceptedOutputModes
The output modes that the agent is expected to respond with.
repeated string accepted_output_modes = 1;- Parameters:
values- The acceptedOutputModes to add.- Returns:
- This builder for chaining.
-
clearAcceptedOutputModes
The output modes that the agent is expected to respond with.
repeated string accepted_output_modes = 1;- Returns:
- This builder for chaining.
-
addAcceptedOutputModesBytes
public SendMessageConfiguration.Builder addAcceptedOutputModesBytes(com.google.protobuf.ByteString value) The output modes that the agent is expected to respond with.
repeated string accepted_output_modes = 1;- Parameters:
value- The bytes of the acceptedOutputModes to add.- Returns:
- This builder for chaining.
-
hasPushNotification
public boolean hasPushNotification()A configuration of a webhook that can be used to receive updates
.a2a.v1.PushNotificationConfig push_notification = 2;- Specified by:
hasPushNotificationin interfaceSendMessageConfigurationOrBuilder- Returns:
- Whether the pushNotification field is set.
-
getPushNotification
A configuration of a webhook that can be used to receive updates
.a2a.v1.PushNotificationConfig push_notification = 2;- Specified by:
getPushNotificationin interfaceSendMessageConfigurationOrBuilder- Returns:
- The pushNotification.
-
setPushNotification
A configuration of a webhook that can be used to receive updates
.a2a.v1.PushNotificationConfig push_notification = 2; -
setPushNotification
public SendMessageConfiguration.Builder setPushNotification(PushNotificationConfig.Builder builderForValue) A configuration of a webhook that can be used to receive updates
.a2a.v1.PushNotificationConfig push_notification = 2; -
mergePushNotification
A configuration of a webhook that can be used to receive updates
.a2a.v1.PushNotificationConfig push_notification = 2; -
clearPushNotification
A configuration of a webhook that can be used to receive updates
.a2a.v1.PushNotificationConfig push_notification = 2; -
getPushNotificationBuilder
A configuration of a webhook that can be used to receive updates
.a2a.v1.PushNotificationConfig push_notification = 2; -
getPushNotificationOrBuilder
A configuration of a webhook that can be used to receive updates
.a2a.v1.PushNotificationConfig push_notification = 2;- Specified by:
getPushNotificationOrBuilderin interfaceSendMessageConfigurationOrBuilder
-
getHistoryLength
public int getHistoryLength()The maximum number of messages to include in the history. if 0, the history will be unlimited.
int32 history_length = 3;- Specified by:
getHistoryLengthin interfaceSendMessageConfigurationOrBuilder- Returns:
- The historyLength.
-
setHistoryLength
The maximum number of messages to include in the history. if 0, the history will be unlimited.
int32 history_length = 3;- Parameters:
value- The historyLength to set.- Returns:
- This builder for chaining.
-
clearHistoryLength
The maximum number of messages to include in the history. if 0, the history will be unlimited.
int32 history_length = 3;- Returns:
- This builder for chaining.
-
getBlocking
public boolean getBlocking()If true, the message will be blocking until the task is completed. If false, the message will be non-blocking and the task will be returned immediately. It is the caller's responsibility to check for any task updates.
bool blocking = 4;- Specified by:
getBlockingin interfaceSendMessageConfigurationOrBuilder- Returns:
- The blocking.
-
setBlocking
If true, the message will be blocking until the task is completed. If false, the message will be non-blocking and the task will be returned immediately. It is the caller's responsibility to check for any task updates.
bool blocking = 4;- Parameters:
value- The blocking to set.- Returns:
- This builder for chaining.
-
clearBlocking
If true, the message will be blocking until the task is completed. If false, the message will be non-blocking and the task will be returned immediately. It is the caller's responsibility to check for any task updates.
bool blocking = 4;- Returns:
- This builder for chaining.
-