Package org.a2aproject.sdk.grpc
Class StreamResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.a2aproject.sdk.grpc.StreamResponse
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,StreamResponseOrBuilder
@Generated
public final class StreamResponse
extends com.google.protobuf.GeneratedMessage
implements StreamResponseOrBuilder
A wrapper object used in streaming operations to encapsulate different types of response data.Protobuf type
lf.a2a.v1.StreamResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA wrapper object used in streaming operations to encapsulate different types of response data.static enumNested 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 TypeMethodDescriptionbooleanAn event indicating a task artifact update.An event indicating a task artifact update.static StreamResponsestatic final com.google.protobuf.Descriptors.DescriptorA Message object containing a message from the agent.A Message object containing a message from the agent.com.google.protobuf.Parser<StreamResponse>intAn event indicating a task status update.An event indicating a task status update.getTask()A Task object containing the current state of the task.A Task object containing the current state of the task.booleanAn event indicating a task artifact update.inthashCode()booleanA Message object containing a message from the agent.booleanAn event indicating a task status update.booleanhasTask()A Task object containing the current state of the task.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic StreamResponse.Builderstatic StreamResponse.BuildernewBuilder(StreamResponse prototype) protected StreamResponse.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static StreamResponseparseDelimitedFrom(InputStream input) static StreamResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StreamResponseparseFrom(byte[] data) static StreamResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StreamResponseparseFrom(com.google.protobuf.ByteString data) static StreamResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StreamResponseparseFrom(com.google.protobuf.CodedInputStream input) static StreamResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StreamResponseparseFrom(InputStream input) static StreamResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StreamResponseparseFrom(ByteBuffer data) static StreamResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<StreamResponse>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
-
TASK_FIELD_NUMBER
public static final int TASK_FIELD_NUMBER- See Also:
-
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER- See Also:
-
STATUS_UPDATE_FIELD_NUMBER
public static final int STATUS_UPDATE_FIELD_NUMBER- See Also:
-
ARTIFACT_UPDATE_FIELD_NUMBER
public static final int ARTIFACT_UPDATE_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
-
getPayloadCase
- Specified by:
getPayloadCasein interfaceStreamResponseOrBuilder
-
hasTask
public boolean hasTask()A Task object containing the current state of the task.
.lf.a2a.v1.Task task = 1;- Specified by:
hasTaskin interfaceStreamResponseOrBuilder- Returns:
- Whether the task field is set.
-
getTask
A Task object containing the current state of the task.
.lf.a2a.v1.Task task = 1;- Specified by:
getTaskin interfaceStreamResponseOrBuilder- Returns:
- The task.
-
getTaskOrBuilder
A Task object containing the current state of the task.
.lf.a2a.v1.Task task = 1;- Specified by:
getTaskOrBuilderin interfaceStreamResponseOrBuilder
-
hasMessage
public boolean hasMessage()A Message object containing a message from the agent.
.lf.a2a.v1.Message message = 2;- Specified by:
hasMessagein interfaceStreamResponseOrBuilder- Returns:
- Whether the message field is set.
-
getMessage
A Message object containing a message from the agent.
.lf.a2a.v1.Message message = 2;- Specified by:
getMessagein interfaceStreamResponseOrBuilder- Returns:
- The message.
-
getMessageOrBuilder
A Message object containing a message from the agent.
.lf.a2a.v1.Message message = 2;- Specified by:
getMessageOrBuilderin interfaceStreamResponseOrBuilder
-
hasStatusUpdate
public boolean hasStatusUpdate()An event indicating a task status update.
.lf.a2a.v1.TaskStatusUpdateEvent status_update = 3;- Specified by:
hasStatusUpdatein interfaceStreamResponseOrBuilder- Returns:
- Whether the statusUpdate field is set.
-
getStatusUpdate
An event indicating a task status update.
.lf.a2a.v1.TaskStatusUpdateEvent status_update = 3;- Specified by:
getStatusUpdatein interfaceStreamResponseOrBuilder- Returns:
- The statusUpdate.
-
getStatusUpdateOrBuilder
An event indicating a task status update.
.lf.a2a.v1.TaskStatusUpdateEvent status_update = 3;- Specified by:
getStatusUpdateOrBuilderin interfaceStreamResponseOrBuilder
-
hasArtifactUpdate
public boolean hasArtifactUpdate()An event indicating a task artifact update.
.lf.a2a.v1.TaskArtifactUpdateEvent artifact_update = 4;- Specified by:
hasArtifactUpdatein interfaceStreamResponseOrBuilder- Returns:
- Whether the artifactUpdate field is set.
-
getArtifactUpdate
An event indicating a task artifact update.
.lf.a2a.v1.TaskArtifactUpdateEvent artifact_update = 4;- Specified by:
getArtifactUpdatein interfaceStreamResponseOrBuilder- Returns:
- The artifactUpdate.
-
getArtifactUpdateOrBuilder
An event indicating a task artifact update.
.lf.a2a.v1.TaskArtifactUpdateEvent artifact_update = 4;- Specified by:
getArtifactUpdateOrBuilderin interfaceStreamResponseOrBuilder
-
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 StreamResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StreamResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StreamResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StreamResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StreamResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StreamResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static StreamResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static StreamResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static StreamResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static StreamResponse 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 StreamResponse.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
-