Class StreamResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.a2aproject.sdk.compat03.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
 The stream response for a message. The stream should be one of the following
 sequences:
 If the response is a message, the stream should contain one, and only one,
 message and then close
 If the response is a task lifecycle, the first response should be a Task
 object followed by zero or more TaskStatusUpdateEvents and
 TaskArtifactUpdateEvents. The stream should complete when the Task
 if in an interrupted or terminal state. A stream that ends before these
 conditions are met are
 
Protobuf type a2a.v1.StreamResponse
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    The stream response for a message.
    static enum 
     

    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.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    .a2a.v1.TaskArtifactUpdateEvent artifact_update = 4;
    .a2a.v1.TaskArtifactUpdateEvent artifact_update = 4;
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    .a2a.v1.Message msg = 2 [json_name = "message"];
    .a2a.v1.Message msg = 2 [json_name = "message"];
    com.google.protobuf.Parser<StreamResponse>
     
     
    int
     
    .a2a.v1.TaskStatusUpdateEvent status_update = 3;
    .a2a.v1.TaskStatusUpdateEvent status_update = 3;
    .a2a.v1.Task task = 1;
    .a2a.v1.Task task = 1;
    boolean
    .a2a.v1.TaskArtifactUpdateEvent artifact_update = 4;
    int
     
    boolean
    .a2a.v1.Message msg = 2 [json_name = "message"];
    boolean
    .a2a.v1.TaskStatusUpdateEvent status_update = 3;
    boolean
    .a2a.v1.Task task = 1;
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<StreamResponse>
     
     
    void
    writeTo(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, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getPayloadCase

      public StreamResponse.PayloadCase getPayloadCase()
      Specified by:
      getPayloadCase in interface StreamResponseOrBuilder
    • hasTask

      public boolean hasTask()
      .a2a.v1.Task task = 1;
      Specified by:
      hasTask in interface StreamResponseOrBuilder
      Returns:
      Whether the task field is set.
    • getTask

      public Task getTask()
      .a2a.v1.Task task = 1;
      Specified by:
      getTask in interface StreamResponseOrBuilder
      Returns:
      The task.
    • getTaskOrBuilder

      public TaskOrBuilder getTaskOrBuilder()
      .a2a.v1.Task task = 1;
      Specified by:
      getTaskOrBuilder in interface StreamResponseOrBuilder
    • hasMsg

      public boolean hasMsg()
      .a2a.v1.Message msg = 2 [json_name = "message"];
      Specified by:
      hasMsg in interface StreamResponseOrBuilder
      Returns:
      Whether the msg field is set.
    • getMsg

      public Message getMsg()
      .a2a.v1.Message msg = 2 [json_name = "message"];
      Specified by:
      getMsg in interface StreamResponseOrBuilder
      Returns:
      The msg.
    • getMsgOrBuilder

      public MessageOrBuilder getMsgOrBuilder()
      .a2a.v1.Message msg = 2 [json_name = "message"];
      Specified by:
      getMsgOrBuilder in interface StreamResponseOrBuilder
    • hasStatusUpdate

      public boolean hasStatusUpdate()
      .a2a.v1.TaskStatusUpdateEvent status_update = 3;
      Specified by:
      hasStatusUpdate in interface StreamResponseOrBuilder
      Returns:
      Whether the statusUpdate field is set.
    • getStatusUpdate

      public TaskStatusUpdateEvent getStatusUpdate()
      .a2a.v1.TaskStatusUpdateEvent status_update = 3;
      Specified by:
      getStatusUpdate in interface StreamResponseOrBuilder
      Returns:
      The statusUpdate.
    • getStatusUpdateOrBuilder

      public TaskStatusUpdateEventOrBuilder getStatusUpdateOrBuilder()
      .a2a.v1.TaskStatusUpdateEvent status_update = 3;
      Specified by:
      getStatusUpdateOrBuilder in interface StreamResponseOrBuilder
    • hasArtifactUpdate

      public boolean hasArtifactUpdate()
      .a2a.v1.TaskArtifactUpdateEvent artifact_update = 4;
      Specified by:
      hasArtifactUpdate in interface StreamResponseOrBuilder
      Returns:
      Whether the artifactUpdate field is set.
    • getArtifactUpdate

      public TaskArtifactUpdateEvent getArtifactUpdate()
      .a2a.v1.TaskArtifactUpdateEvent artifact_update = 4;
      Specified by:
      getArtifactUpdate in interface StreamResponseOrBuilder
      Returns:
      The artifactUpdate.
    • getArtifactUpdateOrBuilder

      public TaskArtifactUpdateEventOrBuilder getArtifactUpdateOrBuilder()
      .a2a.v1.TaskArtifactUpdateEvent artifact_update = 4;
      Specified by:
      getArtifactUpdateOrBuilder in interface StreamResponseOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static StreamResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StreamResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static StreamResponse parseDelimitedFrom(InputStream input) throws IOException
      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

      public StreamResponse.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static StreamResponse.Builder newBuilder()
    • newBuilder

      public static StreamResponse.Builder newBuilder(StreamResponse prototype)
    • toBuilder

      public StreamResponse.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected StreamResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static StreamResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<StreamResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<StreamResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public StreamResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder