Class TaskStatusUpdateEvent.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TaskStatusUpdateEvent.Builder>
org.a2aproject.sdk.compat03.grpc.TaskStatusUpdateEvent.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, TaskStatusUpdateEventOrBuilder
Enclosing class:
TaskStatusUpdateEvent

public static final class TaskStatusUpdateEvent.Builder extends com.google.protobuf.GeneratedMessage.Builder<TaskStatusUpdateEvent.Builder> implements TaskStatusUpdateEventOrBuilder
 TaskStatusUpdateEvent is a delta even on a task indicating that a task
 has changed.
 
Protobuf type a2a.v1.TaskStatusUpdateEvent
  • 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.Builder<TaskStatusUpdateEvent.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TaskStatusUpdateEvent.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TaskStatusUpdateEvent.Builder>
    • getDefaultInstanceForType

      public TaskStatusUpdateEvent getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TaskStatusUpdateEvent build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TaskStatusUpdateEvent buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TaskStatusUpdateEvent.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TaskStatusUpdateEvent.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TaskStatusUpdateEvent.Builder>
    • mergeFrom

      public TaskStatusUpdateEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TaskStatusUpdateEvent.Builder>
      Throws:
      IOException
    • getTaskId

      public String getTaskId()
       The id of the task that is changed
       
      string task_id = 1;
      Specified by:
      getTaskId in interface TaskStatusUpdateEventOrBuilder
      Returns:
      The taskId.
    • getTaskIdBytes

      public com.google.protobuf.ByteString getTaskIdBytes()
       The id of the task that is changed
       
      string task_id = 1;
      Specified by:
      getTaskIdBytes in interface TaskStatusUpdateEventOrBuilder
      Returns:
      The bytes for taskId.
    • setTaskId

      public TaskStatusUpdateEvent.Builder setTaskId(String value)
       The id of the task that is changed
       
      string task_id = 1;
      Parameters:
      value - The taskId to set.
      Returns:
      This builder for chaining.
    • clearTaskId

      public TaskStatusUpdateEvent.Builder clearTaskId()
       The id of the task that is changed
       
      string task_id = 1;
      Returns:
      This builder for chaining.
    • setTaskIdBytes

      public TaskStatusUpdateEvent.Builder setTaskIdBytes(com.google.protobuf.ByteString value)
       The id of the task that is changed
       
      string task_id = 1;
      Parameters:
      value - The bytes for taskId to set.
      Returns:
      This builder for chaining.
    • getContextId

      public String getContextId()
       The id of the context that the task belongs to
       
      string context_id = 2;
      Specified by:
      getContextId in interface TaskStatusUpdateEventOrBuilder
      Returns:
      The contextId.
    • getContextIdBytes

      public com.google.protobuf.ByteString getContextIdBytes()
       The id of the context that the task belongs to
       
      string context_id = 2;
      Specified by:
      getContextIdBytes in interface TaskStatusUpdateEventOrBuilder
      Returns:
      The bytes for contextId.
    • setContextId

      public TaskStatusUpdateEvent.Builder setContextId(String value)
       The id of the context that the task belongs to
       
      string context_id = 2;
      Parameters:
      value - The contextId to set.
      Returns:
      This builder for chaining.
    • clearContextId

      public TaskStatusUpdateEvent.Builder clearContextId()
       The id of the context that the task belongs to
       
      string context_id = 2;
      Returns:
      This builder for chaining.
    • setContextIdBytes

      public TaskStatusUpdateEvent.Builder setContextIdBytes(com.google.protobuf.ByteString value)
       The id of the context that the task belongs to
       
      string context_id = 2;
      Parameters:
      value - The bytes for contextId to set.
      Returns:
      This builder for chaining.
    • hasStatus

      public boolean hasStatus()
       The new status of the task.
       
      .a2a.v1.TaskStatus status = 3;
      Specified by:
      hasStatus in interface TaskStatusUpdateEventOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public TaskStatus getStatus()
       The new status of the task.
       
      .a2a.v1.TaskStatus status = 3;
      Specified by:
      getStatus in interface TaskStatusUpdateEventOrBuilder
      Returns:
      The status.
    • setStatus

      public TaskStatusUpdateEvent.Builder setStatus(TaskStatus value)
       The new status of the task.
       
      .a2a.v1.TaskStatus status = 3;
    • setStatus

      public TaskStatusUpdateEvent.Builder setStatus(TaskStatus.Builder builderForValue)
       The new status of the task.
       
      .a2a.v1.TaskStatus status = 3;
    • mergeStatus

      public TaskStatusUpdateEvent.Builder mergeStatus(TaskStatus value)
       The new status of the task.
       
      .a2a.v1.TaskStatus status = 3;
    • clearStatus

      public TaskStatusUpdateEvent.Builder clearStatus()
       The new status of the task.
       
      .a2a.v1.TaskStatus status = 3;
    • getStatusBuilder

      public TaskStatus.Builder getStatusBuilder()
       The new status of the task.
       
      .a2a.v1.TaskStatus status = 3;
    • getStatusOrBuilder

      public TaskStatusOrBuilder getStatusOrBuilder()
       The new status of the task.
       
      .a2a.v1.TaskStatus status = 3;
      Specified by:
      getStatusOrBuilder in interface TaskStatusUpdateEventOrBuilder
    • getFinal

      public boolean getFinal()
       Whether this is the last status update expected for this task.
       
      bool final = 4;
      Specified by:
      getFinal in interface TaskStatusUpdateEventOrBuilder
      Returns:
      The final.
    • setFinal

      public TaskStatusUpdateEvent.Builder setFinal(boolean value)
       Whether this is the last status update expected for this task.
       
      bool final = 4;
      Parameters:
      value - The final to set.
      Returns:
      This builder for chaining.
    • clearFinal

      public TaskStatusUpdateEvent.Builder clearFinal()
       Whether this is the last status update expected for this task.
       
      bool final = 4;
      Returns:
      This builder for chaining.
    • hasMetadata

      public boolean hasMetadata()
       Optional metadata to associate with the task update.
       
      .google.protobuf.Struct metadata = 5;
      Specified by:
      hasMetadata in interface TaskStatusUpdateEventOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public com.google.protobuf.Struct getMetadata()
       Optional metadata to associate with the task update.
       
      .google.protobuf.Struct metadata = 5;
      Specified by:
      getMetadata in interface TaskStatusUpdateEventOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public TaskStatusUpdateEvent.Builder setMetadata(com.google.protobuf.Struct value)
       Optional metadata to associate with the task update.
       
      .google.protobuf.Struct metadata = 5;
    • setMetadata

      public TaskStatusUpdateEvent.Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue)
       Optional metadata to associate with the task update.
       
      .google.protobuf.Struct metadata = 5;
    • mergeMetadata

      public TaskStatusUpdateEvent.Builder mergeMetadata(com.google.protobuf.Struct value)
       Optional metadata to associate with the task update.
       
      .google.protobuf.Struct metadata = 5;
    • clearMetadata

      public TaskStatusUpdateEvent.Builder clearMetadata()
       Optional metadata to associate with the task update.
       
      .google.protobuf.Struct metadata = 5;
    • getMetadataBuilder

      public com.google.protobuf.Struct.Builder getMetadataBuilder()
       Optional metadata to associate with the task update.
       
      .google.protobuf.Struct metadata = 5;
    • getMetadataOrBuilder

      public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()
       Optional metadata to associate with the task update.
       
      .google.protobuf.Struct metadata = 5;
      Specified by:
      getMetadataOrBuilder in interface TaskStatusUpdateEventOrBuilder