content: // Generated by the protocol buffer compiler.  DO NOT EDIT!
  // NO CHECKED-IN PROTOBUF GENCODE
  // source: a2a.proto
  // Protobuf Java Version: 4.31.1
  
  package io.a2a.grpc;
  
  /**
   * <pre>
   * TaskStatusUpdateEvent is a delta even on a task indicating that a task
   * has changed.
   * </pre>
   *
   * Protobuf type {@code a2a.v1.TaskStatusUpdateEvent}
   */
  @com.google.protobuf.Generated
  public final class TaskStatusUpdateEvent extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:a2a.v1.TaskStatusUpdateEvent)
      TaskStatusUpdateEventOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 31,
        /* patch= */ 1,
        /* suffix= */ "",
        TaskStatusUpdateEvent.class.getName());
    }
    // Use TaskStatusUpdateEvent.newBuilder() to construct.
    private TaskStatusUpdateEvent(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private TaskStatusUpdateEvent() {
      taskId_ = "";
      contextId_ = "";
    }
  
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.a2a.grpc.A2A.internal_static_a2a_v1_TaskStatusUpdateEvent_descriptor;
    }
  
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.a2a.grpc.A2A.internal_static_a2a_v1_TaskStatusUpdateEvent_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.a2a.grpc.TaskStatusUpdateEvent.class, io.a2a.grpc.TaskStatusUpdateEvent.Builder.class);
    }
  
    private int bitField0_;
    public static final int TASK_ID_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private volatile java.lang.Object taskId_ = "";
    /**
     * <pre>
     * The id of the task that is changed
     * </pre>
     *
     * <code>string task_id = 1;</code>
     * @return The taskId.
     */
    @java.lang.Override
    public java.lang.String getTaskId() {
      java.lang.Object ref = taskId_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        taskId_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * The id of the task that is changed
     * </pre>
     *
     * <code>string task_id = 1;</code>
     * @return The bytes for taskId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTaskIdBytes() {
      java.lang.Object ref = taskId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        taskId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
  
    public static final int CONTEXT_ID_FIELD_NUMBER = 2;
    @SuppressWarnings("serial")
    private volatile java.lang.Object contextId_ = "";
    /**
     * <pre>
     * The id of the context that the task belongs to
     * </pre>
     *
     * <code>string context_id = 2;</code>
     * @return The contextId.
     */
    @java.lang.Override
    public java.lang.String getContextId() {
      java.lang.Object ref = contextId_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        contextId_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * The id of the context that the task belongs to
     * </pre>
     *
     * <code>string context_id = 2;</code>
     * @return The bytes for contextId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getContextIdBytes() {
      java.lang.Object ref = contextId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        contextId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
  
    public static final int STATUS_FIELD_NUMBER = 3;
    private io.a2a.grpc.TaskStatus status_;
    /**
     * <pre>
     * The new status of the task.
     * </pre>
     *
     * <code>.a2a.v1.TaskStatus status = 3;</code>
     * @return Whether the status field is set.
     */
    @java.lang.Override
    public boolean hasStatus() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <pre>
     * The new status of the task.
     * </pre>
     *
     * <code>.a2a.v1.TaskStatus status = 3;</code>
     * @return The status.
     */
    @java.lang.Override
    public io.a2a.grpc.TaskStatus getStatus() {
      return status_ == null ? io.a2a.grpc.TaskStatus.getDefaultInstance() : status_;
    }
    /**
     * <pre>
     * The new status of the task.
     * </pre>
     *
     * <code>.a2a.v1.TaskStatus status = 3;</code>
     */
    @java.lang.Override
    public io.a2a.grpc.TaskStatusOrBuilder getStatusOrBuilder() {
      return status_ == null ? io.a2a.grpc.TaskStatus.getDefaultInstance() : status_;
    }
  
    public static final int FINAL_FIELD_NUMBER = 4;
    private boolean final_ = false;
    /**
     * <pre>
     * Whether this is the last status update expected for this task.
     * </pre>
     *
     * <code>bool final = 4;</code>
     * @return The final.
     */
    @java.lang.Override
    public boolean getFinal() {
      return final_;
    }
  
    public static final int METADATA_FIELD_NUMBER = 5;
    private com.google.protobuf.Struct metadata_;
    /**
     * <pre>
     * Optional metadata to associate with the task update.
     * </pre>
     *
     * <code>.google.protobuf.Struct metadata = 5;</code>
     * @return Whether the metadata field is set.
     */
    @java.lang.Override
    public boolean hasMetadata() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <pre>
     * Optional metadata to associate with the task update.
     * </pre>
     *
     * <code>.google.protobuf.Struct metadata = 5;</code>
     * @return The metadata.
     */
    @java.lang.Override
    public com.google.protobuf.Struct getMetadata() {
      return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;
    }
    /**
     * <pre>
     * Optional metadata to associate with the task update.
     * </pre>
     *
     * <code>.google.protobuf.Struct metadata = 5;</code>
     */
    @java.lang.Override
    public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
      return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;
    }
  
    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;
  
      memoizedIsInitialized = 1;
      return true;
    }
  
    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskId_)) {
        com.google.protobuf.GeneratedMessage.writeString(output, 1, taskId_);
      }
      if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextId_)) {
        com.google.protobuf.GeneratedMessage.writeString(output, 2, contextId_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(3, getStatus());
      }
      if (final_ != false) {
        output.writeBool(4, final_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeMessage(5, getMetadata());
      }
      getUnknownFields().writeTo(output);
    }
  
    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;
  
      size = 0;
      if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskId_)) {
        size += com.google.protobuf.GeneratedMessage.computeStringSize(1, taskId_);
      }
      if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextId_)) {
        size += com.google.protobuf.GeneratedMessage.computeStringSize(2, contextId_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getStatus());
      }
      if (final_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(4, final_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, getMetadata());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }
  
    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof io.a2a.grpc.TaskStatusUpdateEvent)) {
        return super.equals(obj);
      }
      io.a2a.grpc.TaskStatusUpdateEvent other = (io.a2a.grpc.TaskStatusUpdateEvent) obj;
  
      if (!getTaskId()
          .equals(other.getTaskId())) return false;
      if (!getContextId()
          .equals(other.getContextId())) return false;
      if (hasStatus() != other.hasStatus()) return false;
      if (hasStatus()) {
        if (!getStatus()
            .equals(other.getStatus())) return false;
      }
      if (getFinal()
          != other.getFinal()) return false;
      if (hasMetadata() != other.hasMetadata()) return false;
      if (hasMetadata()) {
        if (!getMetadata()
            .equals(other.getMetadata())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }
  
    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + TASK_ID_FIELD_NUMBER;
      hash = (53 * hash) + getTaskId().hashCode();
      hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER;
      hash = (53 * hash) + getContextId().hashCode();
      if (hasStatus()) {
        hash = (37 * hash) + STATUS_FIELD_NUMBER;
        hash = (53 * hash) + getStatus().hashCode();
      }
      hash = (37 * hash) + FINAL_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getFinal());
      if (hasMetadata()) {
        hash = (37 * hash) + METADATA_FIELD_NUMBER;
        hash = (53 * hash) + getMetadata().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }
  
    public static io.a2a.grpc.TaskStatusUpdateEvent parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.a2a.grpc.TaskStatusUpdateEvent parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.a2a.grpc.TaskStatusUpdateEvent parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.a2a.grpc.TaskStatusUpdateEvent parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.a2a.grpc.TaskStatusUpdateEvent parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.a2a.grpc.TaskStatusUpdateEvent parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.a2a.grpc.TaskStatusUpdateEvent parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static io.a2a.grpc.TaskStatusUpdateEvent parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
  
    public static io.a2a.grpc.TaskStatusUpdateEvent parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }
  
    public static io.a2a.grpc.TaskStatusUpdateEvent parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static io.a2a.grpc.TaskStatusUpdateEvent parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static io.a2a.grpc.TaskStatusUpdateEvent parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
  
    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(io.a2a.grpc.TaskStatusUpdateEvent prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }
  
    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     * TaskStatusUpdateEvent is a delta even on a task indicating that a task
     * has changed.
     * </pre>
     *
     * Protobuf type {@code a2a.v1.TaskStatusUpdateEvent}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:a2a.v1.TaskStatusUpdateEvent)
        io.a2a.grpc.TaskStatusUpdateEventOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return io.a2a.grpc.A2A.internal_static_a2a_v1_TaskStatusUpdateEvent_descriptor;
      }
  
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.a2a.grpc.A2A.internal_static_a2a_v1_TaskStatusUpdateEvent_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.a2a.grpc.TaskStatusUpdateEvent.class, io.a2a.grpc.TaskStatusUpdateEvent.Builder.class);
      }
  
      // Construct using io.a2a.grpc.TaskStatusUpdateEvent.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }
  
      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage
                .alwaysUseFieldBuilders) {
          internalGetStatusFieldBuilder();
          internalGetMetadataFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        taskId_ = "";
        contextId_ = "";
        status_ = null;
        if (statusBuilder_ != null) {
          statusBuilder_.dispose();
          statusBuilder_ = null;
        }
        final_ = false;
        metadata_ = null;
        if (metadataBuilder_ != null) {
          metadataBuilder_.dispose();
          metadataBuilder_ = null;
        }
        return this;
      }
  
      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.a2a.grpc.A2A.internal_static_a2a_v1_TaskStatusUpdateEvent_descriptor;
      }
  
      @java.lang.Override
      public io.a2a.grpc.TaskStatusUpdateEvent getDefaultInstanceForType() {
        return io.a2a.grpc.TaskStatusUpdateEvent.getDefaultInstance();
      }
  
      @java.lang.Override
      public io.a2a.grpc.TaskStatusUpdateEvent build() {
        io.a2a.grpc.TaskStatusUpdateEvent result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
  
      @java.lang.Override
      public io.a2a.grpc.TaskStatusUpdateEvent buildPartial() {
        io.a2a.grpc.TaskStatusUpdateEvent result = new io.a2a.grpc.TaskStatusUpdateEvent(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }
  
      private void buildPartial0(io.a2a.grpc.TaskStatusUpdateEvent result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.taskId_ = taskId_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.contextId_ = contextId_;
        }
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.status_ = statusBuilder_ == null
              ? status_
              : statusBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.final_ = final_;
        }
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.metadata_ = metadataBuilder_ == null
              ? metadata_
              : metadataBuilder_.build();
          to_bitField0_ |= 0x00000002;
        }
        result.bitField0_ |= to_bitField0_;
      }
  
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof io.a2a.grpc.TaskStatusUpdateEvent) {
          return mergeFrom((io.a2a.grpc.TaskStatusUpdateEvent)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
  
      public Builder mergeFrom(io.a2a.grpc.TaskStatusUpdateEvent other) {
        if (other == io.a2a.grpc.TaskStatusUpdateEvent.getDefaultInstance()) return this;
        if (!other.getTaskId().isEmpty()) {
          taskId_ = other.taskId_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (!other.getContextId().isEmpty()) {
          contextId_ = other.contextId_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        if (other.hasStatus()) {
          mergeStatus(other.getStatus());
        }
        if (other.getFinal() != false) {
          setFinal(other.getFinal());
        }
        if (other.hasMetadata()) {
          mergeMetadata(other.getMetadata());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }
  
      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }
  
      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                taskId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                contextId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              case 26: {
                input.readMessage(
                    internalGetStatusFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000004;
                break;
              } // case 26
              case 32: {
                final_ = input.readBool();
                bitField0_ |= 0x00000008;
                break;
              } // case 32
              case 42: {
                input.readMessage(
                    internalGetMetadataFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000010;
                break;
              } // case 42
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;
  
      private java.lang.Object taskId_ = "";
      /**
       * <pre>
       * The id of the task that is changed
       * </pre>
       *
       * <code>string task_id = 1;</code>
       * @return The taskId.
       */
      public java.lang.String getTaskId() {
        java.lang.Object ref = taskId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          taskId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * The id of the task that is changed
       * </pre>
       *
       * <code>string task_id = 1;</code>
       * @return The bytes for taskId.
       */
      public com.google.protobuf.ByteString
          getTaskIdBytes() {
        java.lang.Object ref = taskId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          taskId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * The id of the task that is changed
       * </pre>
       *
       * <code>string task_id = 1;</code>
       * @param value The taskId to set.
       * @return This builder for chaining.
       */
      public Builder setTaskId(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        taskId_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The id of the task that is changed
       * </pre>
       *
       * <code>string task_id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearTaskId() {
        taskId_ = getDefaultInstance().getTaskId();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The id of the task that is changed
       * </pre>
       *
       * <code>string task_id = 1;</code>
       * @param value The bytes for taskId to set.
       * @return This builder for chaining.
       */
      public Builder setTaskIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        taskId_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
  
      private java.lang.Object contextId_ = "";
      /**
       * <pre>
       * The id of the context that the task belongs to
       * </pre>
       *
       * <code>string context_id = 2;</code>
       * @return The contextId.
       */
      public java.lang.String getContextId() {
        java.lang.Object ref = contextId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          contextId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * The id of the context that the task belongs to
       * </pre>
       *
       * <code>string context_id = 2;</code>
       * @return The bytes for contextId.
       */
      public com.google.protobuf.ByteString
          getContextIdBytes() {
        java.lang.Object ref = contextId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          contextId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * The id of the context that the task belongs to
       * </pre>
       *
       * <code>string context_id = 2;</code>
       * @param value The contextId to set.
       * @return This builder for chaining.
       */
      public Builder setContextId(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        contextId_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The id of the context that the task belongs to
       * </pre>
       *
       * <code>string context_id = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearContextId() {
        contextId_ = getDefaultInstance().getContextId();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The id of the context that the task belongs to
       * </pre>
       *
       * <code>string context_id = 2;</code>
       * @param value The bytes for contextId to set.
       * @return This builder for chaining.
       */
      public Builder setContextIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        contextId_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
  
      private io.a2a.grpc.TaskStatus status_;
      private com.google.protobuf.SingleFieldBuilder<
          io.a2a.grpc.TaskStatus, io.a2a.grpc.TaskStatus.Builder, io.a2a.grpc.TaskStatusOrBuilder> statusBuilder_;
      /**
       * <pre>
       * The new status of the task.
       * </pre>
       *
       * <code>.a2a.v1.TaskStatus status = 3;</code>
       * @return Whether the status field is set.
       */
      public boolean hasStatus() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <pre>
       * The new status of the task.
       * </pre>
       *
       * <code>.a2a.v1.TaskStatus status = 3;</code>
       * @return The status.
       */
      public io.a2a.grpc.TaskStatus getStatus() {
        if (statusBuilder_ == null) {
          return status_ == null ? io.a2a.grpc.TaskStatus.getDefaultInstance() : status_;
        } else {
          return statusBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * The new status of the task.
       * </pre>
       *
       * <code>.a2a.v1.TaskStatus status = 3;</code>
       */
      public Builder setStatus(io.a2a.grpc.TaskStatus value) {
        if (statusBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          status_ = value;
        } else {
          statusBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The new status of the task.
       * </pre>
       *
       * <code>.a2a.v1.TaskStatus status = 3;</code>
       */
      public Builder setStatus(
          io.a2a.grpc.TaskStatus.Builder builderForValue) {
        if (statusBuilder_ == null) {
          status_ = builderForValue.build();
        } else {
          statusBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The new status of the task.
       * </pre>
       *
       * <code>.a2a.v1.TaskStatus status = 3;</code>
       */
      public Builder mergeStatus(io.a2a.grpc.TaskStatus value) {
        if (statusBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0) &&
            status_ != null &&
            status_ != io.a2a.grpc.TaskStatus.getDefaultInstance()) {
            getStatusBuilder().mergeFrom(value);
          } else {
            status_ = value;
          }
        } else {
          statusBuilder_.mergeFrom(value);
        }
        if (status_ != null) {
          bitField0_ |= 0x00000004;
          onChanged();
        }
        return this;
      }
      /**
       * <pre>
       * The new status of the task.
       * </pre>
       *
       * <code>.a2a.v1.TaskStatus status = 3;</code>
       */
      public Builder clearStatus() {
        bitField0_ = (bitField0_ & ~0x00000004);
        status_ = null;
        if (statusBuilder_ != null) {
          statusBuilder_.dispose();
          statusBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The new status of the task.
       * </pre>
       *
       * <code>.a2a.v1.TaskStatus status = 3;</code>
       */
      public io.a2a.grpc.TaskStatus.Builder getStatusBuilder() {
        bitField0_ |= 0x00000004;
        onChanged();
        return internalGetStatusFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * The new status of the task.
       * </pre>
       *
       * <code>.a2a.v1.TaskStatus status = 3;</code>
       */
      public io.a2a.grpc.TaskStatusOrBuilder getStatusOrBuilder() {
        if (statusBuilder_ != null) {
          return statusBuilder_.getMessageOrBuilder();
        } else {
          return status_ == null ?
              io.a2a.grpc.TaskStatus.getDefaultInstance() : status_;
        }
      }
      /**
       * <pre>
       * The new status of the task.
       * </pre>
       *
       * <code>.a2a.v1.TaskStatus status = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilder<
          io.a2a.grpc.TaskStatus, io.a2a.grpc.TaskStatus.Builder, io.a2a.grpc.TaskStatusOrBuilder> 
          internalGetStatusFieldBuilder() {
        if (statusBuilder_ == null) {
          statusBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              io.a2a.grpc.TaskStatus, io.a2a.grpc.TaskStatus.Builder, io.a2a.grpc.TaskStatusOrBuilder>(
                  getStatus(),
                  getParentForChildren(),
                  isClean());
          status_ = null;
        }
        return statusBuilder_;
      }
  
      private boolean final_ ;
      /**
       * <pre>
       * Whether this is the last status update expected for this task.
       * </pre>
       *
       * <code>bool final = 4;</code>
       * @return The final.
       */
      @java.lang.Override
      public boolean getFinal() {
        return final_;
      }
      /**
       * <pre>
       * Whether this is the last status update expected for this task.
       * </pre>
       *
       * <code>bool final = 4;</code>
       * @param value The final to set.
       * @return This builder for chaining.
       */
      public Builder setFinal(boolean value) {
  
        final_ = value;
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Whether this is the last status update expected for this task.
       * </pre>
       *
       * <code>bool final = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearFinal() {
        bitField0_ = (bitField0_ & ~0x00000008);
        final_ = false;
        onChanged();
        return this;
      }
  
      private com.google.protobuf.Struct metadata_;
      private com.google.protobuf.SingleFieldBuilder<
          com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> metadataBuilder_;
      /**
       * <pre>
       * Optional metadata to associate with the task update.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 5;</code>
       * @return Whether the metadata field is set.
       */
      public boolean hasMetadata() {
        return ((bitField0_ & 0x00000010) != 0);
      }
      /**
       * <pre>
       * Optional metadata to associate with the task update.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 5;</code>
       * @return The metadata.
       */
      public com.google.protobuf.Struct getMetadata() {
        if (metadataBuilder_ == null) {
          return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;
        } else {
          return metadataBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * Optional metadata to associate with the task update.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 5;</code>
       */
      public Builder setMetadata(com.google.protobuf.Struct value) {
        if (metadataBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          metadata_ = value;
        } else {
          metadataBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Optional metadata to associate with the task update.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 5;</code>
       */
      public Builder setMetadata(
          com.google.protobuf.Struct.Builder builderForValue) {
        if (metadataBuilder_ == null) {
          metadata_ = builderForValue.build();
        } else {
          metadataBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Optional metadata to associate with the task update.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 5;</code>
       */
      public Builder mergeMetadata(com.google.protobuf.Struct value) {
        if (metadataBuilder_ == null) {
          if (((bitField0_ & 0x00000010) != 0) &&
            metadata_ != null &&
            metadata_ != com.google.protobuf.Struct.getDefaultInstance()) {
            getMetadataBuilder().mergeFrom(value);
          } else {
            metadata_ = value;
          }
        } else {
          metadataBuilder_.mergeFrom(value);
        }
        if (metadata_ != null) {
          bitField0_ |= 0x00000010;
          onChanged();
        }
        return this;
      }
      /**
       * <pre>
       * Optional metadata to associate with the task update.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 5;</code>
       */
      public Builder clearMetadata() {
        bitField0_ = (bitField0_ & ~0x00000010);
        metadata_ = null;
        if (metadataBuilder_ != null) {
          metadataBuilder_.dispose();
          metadataBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Optional metadata to associate with the task update.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 5;</code>
       */
      public com.google.protobuf.Struct.Builder getMetadataBuilder() {
        bitField0_ |= 0x00000010;
        onChanged();
        return internalGetMetadataFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Optional metadata to associate with the task update.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 5;</code>
       */
      public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
        if (metadataBuilder_ != null) {
          return metadataBuilder_.getMessageOrBuilder();
        } else {
          return metadata_ == null ?
              com.google.protobuf.Struct.getDefaultInstance() : metadata_;
        }
      }
      /**
       * <pre>
       * Optional metadata to associate with the task update.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 5;</code>
       */
      private com.google.protobuf.SingleFieldBuilder<
          com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
          internalGetMetadataFieldBuilder() {
        if (metadataBuilder_ == null) {
          metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
                  getMetadata(),
                  getParentForChildren(),
                  isClean());
          metadata_ = null;
        }
        return metadataBuilder_;
      }
  
      // @@protoc_insertion_point(builder_scope:a2a.v1.TaskStatusUpdateEvent)
    }
  
    // @@protoc_insertion_point(class_scope:a2a.v1.TaskStatusUpdateEvent)
    private static final io.a2a.grpc.TaskStatusUpdateEvent DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.a2a.grpc.TaskStatusUpdateEvent();
    }
  
    public static io.a2a.grpc.TaskStatusUpdateEvent getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }
  
    private static final com.google.protobuf.Parser<TaskStatusUpdateEvent>
        PARSER = new com.google.protobuf.AbstractParser<TaskStatusUpdateEvent>() {
      @java.lang.Override
      public TaskStatusUpdateEvent parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };
  
    public static com.google.protobuf.Parser<TaskStatusUpdateEvent> parser() {
      return PARSER;
    }
  
    @java.lang.Override
    public com.google.protobuf.Parser<TaskStatusUpdateEvent> getParserForType() {
      return PARSER;
    }
  
    @java.lang.Override
    public io.a2a.grpc.TaskStatusUpdateEvent getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  
  }
  
  