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:
  • Field Details

  • Method Details

    • getDescriptor

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

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage
    • 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