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>
   * Message is one unit of communication between client and server. It is
   * associated with a context and optionally a task. Since the server is
   * responsible for the context definition, it must always provide a context_id
   * in its messages. The client can optionally provide the context_id if it
   * knows the context to associate the message to. Similarly for task_id,
   * except the server decides if a task is created and whether to include the
   * task_id.
   * </pre>
   *
   * Protobuf type {@code a2a.v1.Message}
   */
  @com.google.protobuf.Generated
  public final class Message extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:a2a.v1.Message)
      MessageOrBuilder {
  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= */ "",
        Message.class.getName());
    }
    // Use Message.newBuilder() to construct.
    private Message(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private Message() {
      messageId_ = "";
      contextId_ = "";
      taskId_ = "";
      role_ = 0;
      content_ = java.util.Collections.emptyList();
      extensions_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
    }
  
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.a2a.grpc.A2A.internal_static_a2a_v1_Message_descriptor;
    }
  
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.a2a.grpc.A2A.internal_static_a2a_v1_Message_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.a2a.grpc.Message.class, io.a2a.grpc.Message.Builder.class);
    }
  
    private int bitField0_;
    public static final int MESSAGE_ID_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private volatile java.lang.Object messageId_ = "";
    /**
     * <pre>
     * The message id of the message. This is required and created by the
     * message creator.
     * </pre>
     *
     * <code>string message_id = 1;</code>
     * @return The messageId.
     */
    @java.lang.Override
    public java.lang.String getMessageId() {
      java.lang.Object ref = messageId_;
      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();
        messageId_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * The message id of the message. This is required and created by the
     * message creator.
     * </pre>
     *
     * <code>string message_id = 1;</code>
     * @return The bytes for messageId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getMessageIdBytes() {
      java.lang.Object ref = messageId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        messageId_ = 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 context id of the message. This is optional and if set, the message
     * will be associated with the given context.
     * </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 context id of the message. This is optional and if set, the message
     * will be associated with the given context.
     * </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 TASK_ID_FIELD_NUMBER = 3;
    @SuppressWarnings("serial")
    private volatile java.lang.Object taskId_ = "";
    /**
     * <pre>
     * The task id of the message. This is optional and if set, the message
     * will be associated with the given task.
     * </pre>
     *
     * <code>string task_id = 3;</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 task id of the message. This is optional and if set, the message
     * will be associated with the given task.
     * </pre>
     *
     * <code>string task_id = 3;</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 ROLE_FIELD_NUMBER = 4;
    private int role_ = 0;
    /**
     * <pre>
     * A role for the message.
     * </pre>
     *
     * <code>.a2a.v1.Role role = 4;</code>
     * @return The enum numeric value on the wire for role.
     */
    @java.lang.Override public int getRoleValue() {
      return role_;
    }
    /**
     * <pre>
     * A role for the message.
     * </pre>
     *
     * <code>.a2a.v1.Role role = 4;</code>
     * @return The role.
     */
    @java.lang.Override public io.a2a.grpc.Role getRole() {
      io.a2a.grpc.Role result = io.a2a.grpc.Role.forNumber(role_);
      return result == null ? io.a2a.grpc.Role.UNRECOGNIZED : result;
    }
  
    public static final int CONTENT_FIELD_NUMBER = 5;
    @SuppressWarnings("serial")
    private java.util.List<io.a2a.grpc.Part> content_;
    /**
     * <pre>
     * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
     * Content is the container of the message content.
     * </pre>
     *
     * <code>repeated .a2a.v1.Part content = 5;</code>
     */
    @java.lang.Override
    public java.util.List<io.a2a.grpc.Part> getContentList() {
      return content_;
    }
    /**
     * <pre>
     * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
     * Content is the container of the message content.
     * </pre>
     *
     * <code>repeated .a2a.v1.Part content = 5;</code>
     */
    @java.lang.Override
    public java.util.List<? extends io.a2a.grpc.PartOrBuilder> 
        getContentOrBuilderList() {
      return content_;
    }
    /**
     * <pre>
     * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
     * Content is the container of the message content.
     * </pre>
     *
     * <code>repeated .a2a.v1.Part content = 5;</code>
     */
    @java.lang.Override
    public int getContentCount() {
      return content_.size();
    }
    /**
     * <pre>
     * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
     * Content is the container of the message content.
     * </pre>
     *
     * <code>repeated .a2a.v1.Part content = 5;</code>
     */
    @java.lang.Override
    public io.a2a.grpc.Part getContent(int index) {
      return content_.get(index);
    }
    /**
     * <pre>
     * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
     * Content is the container of the message content.
     * </pre>
     *
     * <code>repeated .a2a.v1.Part content = 5;</code>
     */
    @java.lang.Override
    public io.a2a.grpc.PartOrBuilder getContentOrBuilder(
        int index) {
      return content_.get(index);
    }
  
    public static final int METADATA_FIELD_NUMBER = 6;
    private com.google.protobuf.Struct metadata_;
    /**
     * <pre>
     * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
     * Any optional metadata to provide along with the message.
     * </pre>
     *
     * <code>.google.protobuf.Struct metadata = 6;</code>
     * @return Whether the metadata field is set.
     */
    @java.lang.Override
    public boolean hasMetadata() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <pre>
     * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
     * Any optional metadata to provide along with the message.
     * </pre>
     *
     * <code>.google.protobuf.Struct metadata = 6;</code>
     * @return The metadata.
     */
    @java.lang.Override
    public com.google.protobuf.Struct getMetadata() {
      return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;
    }
    /**
     * <pre>
     * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
     * Any optional metadata to provide along with the message.
     * </pre>
     *
     * <code>.google.protobuf.Struct metadata = 6;</code>
     */
    @java.lang.Override
    public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
      return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;
    }
  
    public static final int EXTENSIONS_FIELD_NUMBER = 7;
    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringArrayList extensions_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    /**
     * <pre>
     * The URIs of extensions that are present or contributed to this Message.
     * </pre>
     *
     * <code>repeated string extensions = 7;</code>
     * @return A list containing the extensions.
     */
    public com.google.protobuf.ProtocolStringList
        getExtensionsList() {
      return extensions_;
    }
    /**
     * <pre>
     * The URIs of extensions that are present or contributed to this Message.
     * </pre>
     *
     * <code>repeated string extensions = 7;</code>
     * @return The count of extensions.
     */
    public int getExtensionsCount() {
      return extensions_.size();
    }
    /**
     * <pre>
     * The URIs of extensions that are present or contributed to this Message.
     * </pre>
     *
     * <code>repeated string extensions = 7;</code>
     * @param index The index of the element to return.
     * @return The extensions at the given index.
     */
    public java.lang.String getExtensions(int index) {
      return extensions_.get(index);
    }
    /**
     * <pre>
     * The URIs of extensions that are present or contributed to this Message.
     * </pre>
     *
     * <code>repeated string extensions = 7;</code>
     * @param index The index of the value to return.
     * @return The bytes of the extensions at the given index.
     */
    public com.google.protobuf.ByteString
        getExtensionsBytes(int index) {
      return extensions_.getByteString(index);
    }
  
    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(messageId_)) {
        com.google.protobuf.GeneratedMessage.writeString(output, 1, messageId_);
      }
      if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextId_)) {
        com.google.protobuf.GeneratedMessage.writeString(output, 2, contextId_);
      }
      if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskId_)) {
        com.google.protobuf.GeneratedMessage.writeString(output, 3, taskId_);
      }
      if (role_ != io.a2a.grpc.Role.ROLE_UNSPECIFIED.getNumber()) {
        output.writeEnum(4, role_);
      }
      for (int i = 0; i < content_.size(); i++) {
        output.writeMessage(5, content_.get(i));
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(6, getMetadata());
      }
      for (int i = 0; i < extensions_.size(); i++) {
        com.google.protobuf.GeneratedMessage.writeString(output, 7, extensions_.getRaw(i));
      }
      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(messageId_)) {
        size += com.google.protobuf.GeneratedMessage.computeStringSize(1, messageId_);
      }
      if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextId_)) {
        size += com.google.protobuf.GeneratedMessage.computeStringSize(2, contextId_);
      }
      if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskId_)) {
        size += com.google.protobuf.GeneratedMessage.computeStringSize(3, taskId_);
      }
      if (role_ != io.a2a.grpc.Role.ROLE_UNSPECIFIED.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(4, role_);
      }
      for (int i = 0; i < content_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, content_.get(i));
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, getMetadata());
      }
      {
        int dataSize = 0;
        for (int i = 0; i < extensions_.size(); i++) {
          dataSize += computeStringSizeNoTag(extensions_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getExtensionsList().size();
      }
      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.Message)) {
        return super.equals(obj);
      }
      io.a2a.grpc.Message other = (io.a2a.grpc.Message) obj;
  
      if (!getMessageId()
          .equals(other.getMessageId())) return false;
      if (!getContextId()
          .equals(other.getContextId())) return false;
      if (!getTaskId()
          .equals(other.getTaskId())) return false;
      if (role_ != other.role_) return false;
      if (!getContentList()
          .equals(other.getContentList())) return false;
      if (hasMetadata() != other.hasMetadata()) return false;
      if (hasMetadata()) {
        if (!getMetadata()
            .equals(other.getMetadata())) return false;
      }
      if (!getExtensionsList()
          .equals(other.getExtensionsList())) 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) + MESSAGE_ID_FIELD_NUMBER;
      hash = (53 * hash) + getMessageId().hashCode();
      hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER;
      hash = (53 * hash) + getContextId().hashCode();
      hash = (37 * hash) + TASK_ID_FIELD_NUMBER;
      hash = (53 * hash) + getTaskId().hashCode();
      hash = (37 * hash) + ROLE_FIELD_NUMBER;
      hash = (53 * hash) + role_;
      if (getContentCount() > 0) {
        hash = (37 * hash) + CONTENT_FIELD_NUMBER;
        hash = (53 * hash) + getContentList().hashCode();
      }
      if (hasMetadata()) {
        hash = (37 * hash) + METADATA_FIELD_NUMBER;
        hash = (53 * hash) + getMetadata().hashCode();
      }
      if (getExtensionsCount() > 0) {
        hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER;
        hash = (53 * hash) + getExtensionsList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }
  
    public static io.a2a.grpc.Message parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.a2a.grpc.Message 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.Message parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.a2a.grpc.Message 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.Message parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.a2a.grpc.Message parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.a2a.grpc.Message parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static io.a2a.grpc.Message 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.Message parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }
  
    public static io.a2a.grpc.Message 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.Message parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static io.a2a.grpc.Message 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.Message 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>
     * Message is one unit of communication between client and server. It is
     * associated with a context and optionally a task. Since the server is
     * responsible for the context definition, it must always provide a context_id
     * in its messages. The client can optionally provide the context_id if it
     * knows the context to associate the message to. Similarly for task_id,
     * except the server decides if a task is created and whether to include the
     * task_id.
     * </pre>
     *
     * Protobuf type {@code a2a.v1.Message}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:a2a.v1.Message)
        io.a2a.grpc.MessageOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return io.a2a.grpc.A2A.internal_static_a2a_v1_Message_descriptor;
      }
  
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.a2a.grpc.A2A.internal_static_a2a_v1_Message_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.a2a.grpc.Message.class, io.a2a.grpc.Message.Builder.class);
      }
  
      // Construct using io.a2a.grpc.Message.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }
  
      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage
                .alwaysUseFieldBuilders) {
          internalGetContentFieldBuilder();
          internalGetMetadataFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        messageId_ = "";
        contextId_ = "";
        taskId_ = "";
        role_ = 0;
        if (contentBuilder_ == null) {
          content_ = java.util.Collections.emptyList();
        } else {
          content_ = null;
          contentBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000010);
        metadata_ = null;
        if (metadataBuilder_ != null) {
          metadataBuilder_.dispose();
          metadataBuilder_ = null;
        }
        extensions_ =
            com.google.protobuf.LazyStringArrayList.emptyList();
        return this;
      }
  
      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.a2a.grpc.A2A.internal_static_a2a_v1_Message_descriptor;
      }
  
      @java.lang.Override
      public io.a2a.grpc.Message getDefaultInstanceForType() {
        return io.a2a.grpc.Message.getDefaultInstance();
      }
  
      @java.lang.Override
      public io.a2a.grpc.Message build() {
        io.a2a.grpc.Message result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
  
      @java.lang.Override
      public io.a2a.grpc.Message buildPartial() {
        io.a2a.grpc.Message result = new io.a2a.grpc.Message(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }
  
      private void buildPartialRepeatedFields(io.a2a.grpc.Message result) {
        if (contentBuilder_ == null) {
          if (((bitField0_ & 0x00000010) != 0)) {
            content_ = java.util.Collections.unmodifiableList(content_);
            bitField0_ = (bitField0_ & ~0x00000010);
          }
          result.content_ = content_;
        } else {
          result.content_ = contentBuilder_.build();
        }
      }
  
      private void buildPartial0(io.a2a.grpc.Message result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.messageId_ = messageId_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.contextId_ = contextId_;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.taskId_ = taskId_;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.role_ = role_;
        }
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000020) != 0)) {
          result.metadata_ = metadataBuilder_ == null
              ? metadata_
              : metadataBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000040) != 0)) {
          extensions_.makeImmutable();
          result.extensions_ = extensions_;
        }
        result.bitField0_ |= to_bitField0_;
      }
  
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof io.a2a.grpc.Message) {
          return mergeFrom((io.a2a.grpc.Message)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
  
      public Builder mergeFrom(io.a2a.grpc.Message other) {
        if (other == io.a2a.grpc.Message.getDefaultInstance()) return this;
        if (!other.getMessageId().isEmpty()) {
          messageId_ = other.messageId_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (!other.getContextId().isEmpty()) {
          contextId_ = other.contextId_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        if (!other.getTaskId().isEmpty()) {
          taskId_ = other.taskId_;
          bitField0_ |= 0x00000004;
          onChanged();
        }
        if (other.role_ != 0) {
          setRoleValue(other.getRoleValue());
        }
        if (contentBuilder_ == null) {
          if (!other.content_.isEmpty()) {
            if (content_.isEmpty()) {
              content_ = other.content_;
              bitField0_ = (bitField0_ & ~0x00000010);
            } else {
              ensureContentIsMutable();
              content_.addAll(other.content_);
            }
            onChanged();
          }
        } else {
          if (!other.content_.isEmpty()) {
            if (contentBuilder_.isEmpty()) {
              contentBuilder_.dispose();
              contentBuilder_ = null;
              content_ = other.content_;
              bitField0_ = (bitField0_ & ~0x00000010);
              contentBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   internalGetContentFieldBuilder() : null;
            } else {
              contentBuilder_.addAllMessages(other.content_);
            }
          }
        }
        if (other.hasMetadata()) {
          mergeMetadata(other.getMetadata());
        }
        if (!other.extensions_.isEmpty()) {
          if (extensions_.isEmpty()) {
            extensions_ = other.extensions_;
            bitField0_ |= 0x00000040;
          } else {
            ensureExtensionsIsMutable();
            extensions_.addAll(other.extensions_);
          }
          onChanged();
        }
        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: {
                messageId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                contextId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              case 26: {
                taskId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
              case 32: {
                role_ = input.readEnum();
                bitField0_ |= 0x00000008;
                break;
              } // case 32
              case 42: {
                io.a2a.grpc.Part m =
                    input.readMessage(
                        io.a2a.grpc.Part.parser(),
                        extensionRegistry);
                if (contentBuilder_ == null) {
                  ensureContentIsMutable();
                  content_.add(m);
                } else {
                  contentBuilder_.addMessage(m);
                }
                break;
              } // case 42
              case 50: {
                input.readMessage(
                    internalGetMetadataFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000020;
                break;
              } // case 50
              case 58: {
                java.lang.String s = input.readStringRequireUtf8();
                ensureExtensionsIsMutable();
                extensions_.add(s);
                break;
              } // case 58
              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 messageId_ = "";
      /**
       * <pre>
       * The message id of the message. This is required and created by the
       * message creator.
       * </pre>
       *
       * <code>string message_id = 1;</code>
       * @return The messageId.
       */
      public java.lang.String getMessageId() {
        java.lang.Object ref = messageId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          messageId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * The message id of the message. This is required and created by the
       * message creator.
       * </pre>
       *
       * <code>string message_id = 1;</code>
       * @return The bytes for messageId.
       */
      public com.google.protobuf.ByteString
          getMessageIdBytes() {
        java.lang.Object ref = messageId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          messageId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * The message id of the message. This is required and created by the
       * message creator.
       * </pre>
       *
       * <code>string message_id = 1;</code>
       * @param value The messageId to set.
       * @return This builder for chaining.
       */
      public Builder setMessageId(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        messageId_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The message id of the message. This is required and created by the
       * message creator.
       * </pre>
       *
       * <code>string message_id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearMessageId() {
        messageId_ = getDefaultInstance().getMessageId();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The message id of the message. This is required and created by the
       * message creator.
       * </pre>
       *
       * <code>string message_id = 1;</code>
       * @param value The bytes for messageId to set.
       * @return This builder for chaining.
       */
      public Builder setMessageIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        messageId_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
  
      private java.lang.Object contextId_ = "";
      /**
       * <pre>
       * The context id of the message. This is optional and if set, the message
       * will be associated with the given context.
       * </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 context id of the message. This is optional and if set, the message
       * will be associated with the given context.
       * </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 context id of the message. This is optional and if set, the message
       * will be associated with the given context.
       * </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 context id of the message. This is optional and if set, the message
       * will be associated with the given context.
       * </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 context id of the message. This is optional and if set, the message
       * will be associated with the given context.
       * </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 java.lang.Object taskId_ = "";
      /**
       * <pre>
       * The task id of the message. This is optional and if set, the message
       * will be associated with the given task.
       * </pre>
       *
       * <code>string task_id = 3;</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 task id of the message. This is optional and if set, the message
       * will be associated with the given task.
       * </pre>
       *
       * <code>string task_id = 3;</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 task id of the message. This is optional and if set, the message
       * will be associated with the given task.
       * </pre>
       *
       * <code>string task_id = 3;</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_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The task id of the message. This is optional and if set, the message
       * will be associated with the given task.
       * </pre>
       *
       * <code>string task_id = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearTaskId() {
        taskId_ = getDefaultInstance().getTaskId();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The task id of the message. This is optional and if set, the message
       * will be associated with the given task.
       * </pre>
       *
       * <code>string task_id = 3;</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_ |= 0x00000004;
        onChanged();
        return this;
      }
  
      private int role_ = 0;
      /**
       * <pre>
       * A role for the message.
       * </pre>
       *
       * <code>.a2a.v1.Role role = 4;</code>
       * @return The enum numeric value on the wire for role.
       */
      @java.lang.Override public int getRoleValue() {
        return role_;
      }
      /**
       * <pre>
       * A role for the message.
       * </pre>
       *
       * <code>.a2a.v1.Role role = 4;</code>
       * @param value The enum numeric value on the wire for role to set.
       * @return This builder for chaining.
       */
      public Builder setRoleValue(int value) {
        role_ = value;
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * A role for the message.
       * </pre>
       *
       * <code>.a2a.v1.Role role = 4;</code>
       * @return The role.
       */
      @java.lang.Override
      public io.a2a.grpc.Role getRole() {
        io.a2a.grpc.Role result = io.a2a.grpc.Role.forNumber(role_);
        return result == null ? io.a2a.grpc.Role.UNRECOGNIZED : result;
      }
      /**
       * <pre>
       * A role for the message.
       * </pre>
       *
       * <code>.a2a.v1.Role role = 4;</code>
       * @param value The role to set.
       * @return This builder for chaining.
       */
      public Builder setRole(io.a2a.grpc.Role value) {
        if (value == null) { throw new NullPointerException(); }
        bitField0_ |= 0x00000008;
        role_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * A role for the message.
       * </pre>
       *
       * <code>.a2a.v1.Role role = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearRole() {
        bitField0_ = (bitField0_ & ~0x00000008);
        role_ = 0;
        onChanged();
        return this;
      }
  
      private java.util.List<io.a2a.grpc.Part> content_ =
        java.util.Collections.emptyList();
      private void ensureContentIsMutable() {
        if (!((bitField0_ & 0x00000010) != 0)) {
          content_ = new java.util.ArrayList<io.a2a.grpc.Part>(content_);
          bitField0_ |= 0x00000010;
         }
      }
  
      private com.google.protobuf.RepeatedFieldBuilder<
          io.a2a.grpc.Part, io.a2a.grpc.Part.Builder, io.a2a.grpc.PartOrBuilder> contentBuilder_;
  
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public java.util.List<io.a2a.grpc.Part> getContentList() {
        if (contentBuilder_ == null) {
          return java.util.Collections.unmodifiableList(content_);
        } else {
          return contentBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public int getContentCount() {
        if (contentBuilder_ == null) {
          return content_.size();
        } else {
          return contentBuilder_.getCount();
        }
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public io.a2a.grpc.Part getContent(int index) {
        if (contentBuilder_ == null) {
          return content_.get(index);
        } else {
          return contentBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public Builder setContent(
          int index, io.a2a.grpc.Part value) {
        if (contentBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureContentIsMutable();
          content_.set(index, value);
          onChanged();
        } else {
          contentBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public Builder setContent(
          int index, io.a2a.grpc.Part.Builder builderForValue) {
        if (contentBuilder_ == null) {
          ensureContentIsMutable();
          content_.set(index, builderForValue.build());
          onChanged();
        } else {
          contentBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public Builder addContent(io.a2a.grpc.Part value) {
        if (contentBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureContentIsMutable();
          content_.add(value);
          onChanged();
        } else {
          contentBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public Builder addContent(
          int index, io.a2a.grpc.Part value) {
        if (contentBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureContentIsMutable();
          content_.add(index, value);
          onChanged();
        } else {
          contentBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public Builder addContent(
          io.a2a.grpc.Part.Builder builderForValue) {
        if (contentBuilder_ == null) {
          ensureContentIsMutable();
          content_.add(builderForValue.build());
          onChanged();
        } else {
          contentBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public Builder addContent(
          int index, io.a2a.grpc.Part.Builder builderForValue) {
        if (contentBuilder_ == null) {
          ensureContentIsMutable();
          content_.add(index, builderForValue.build());
          onChanged();
        } else {
          contentBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public Builder addAllContent(
          java.lang.Iterable<? extends io.a2a.grpc.Part> values) {
        if (contentBuilder_ == null) {
          ensureContentIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, content_);
          onChanged();
        } else {
          contentBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public Builder clearContent() {
        if (contentBuilder_ == null) {
          content_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000010);
          onChanged();
        } else {
          contentBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public Builder removeContent(int index) {
        if (contentBuilder_ == null) {
          ensureContentIsMutable();
          content_.remove(index);
          onChanged();
        } else {
          contentBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public io.a2a.grpc.Part.Builder getContentBuilder(
          int index) {
        return internalGetContentFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public io.a2a.grpc.PartOrBuilder getContentOrBuilder(
          int index) {
        if (contentBuilder_ == null) {
          return content_.get(index);  } else {
          return contentBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public java.util.List<? extends io.a2a.grpc.PartOrBuilder> 
           getContentOrBuilderList() {
        if (contentBuilder_ != null) {
          return contentBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(content_);
        }
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public io.a2a.grpc.Part.Builder addContentBuilder() {
        return internalGetContentFieldBuilder().addBuilder(
            io.a2a.grpc.Part.getDefaultInstance());
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public io.a2a.grpc.Part.Builder addContentBuilder(
          int index) {
        return internalGetContentFieldBuilder().addBuilder(
            index, io.a2a.grpc.Part.getDefaultInstance());
      }
      /**
       * <pre>
       * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       * Content is the container of the message content.
       * </pre>
       *
       * <code>repeated .a2a.v1.Part content = 5;</code>
       */
      public java.util.List<io.a2a.grpc.Part.Builder> 
           getContentBuilderList() {
        return internalGetContentFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          io.a2a.grpc.Part, io.a2a.grpc.Part.Builder, io.a2a.grpc.PartOrBuilder> 
          internalGetContentFieldBuilder() {
        if (contentBuilder_ == null) {
          contentBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              io.a2a.grpc.Part, io.a2a.grpc.Part.Builder, io.a2a.grpc.PartOrBuilder>(
                  content_,
                  ((bitField0_ & 0x00000010) != 0),
                  getParentForChildren(),
                  isClean());
          content_ = null;
        }
        return contentBuilder_;
      }
  
      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>
       * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
       * Any optional metadata to provide along with the message.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 6;</code>
       * @return Whether the metadata field is set.
       */
      public boolean hasMetadata() {
        return ((bitField0_ & 0x00000020) != 0);
      }
      /**
       * <pre>
       * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
       * Any optional metadata to provide along with the message.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 6;</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>
       * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
       * Any optional metadata to provide along with the message.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 6;</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_ |= 0x00000020;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
       * Any optional metadata to provide along with the message.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 6;</code>
       */
      public Builder setMetadata(
          com.google.protobuf.Struct.Builder builderForValue) {
        if (metadataBuilder_ == null) {
          metadata_ = builderForValue.build();
        } else {
          metadataBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000020;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
       * Any optional metadata to provide along with the message.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 6;</code>
       */
      public Builder mergeMetadata(com.google.protobuf.Struct value) {
        if (metadataBuilder_ == null) {
          if (((bitField0_ & 0x00000020) != 0) &&
            metadata_ != null &&
            metadata_ != com.google.protobuf.Struct.getDefaultInstance()) {
            getMetadataBuilder().mergeFrom(value);
          } else {
            metadata_ = value;
          }
        } else {
          metadataBuilder_.mergeFrom(value);
        }
        if (metadata_ != null) {
          bitField0_ |= 0x00000020;
          onChanged();
        }
        return this;
      }
      /**
       * <pre>
       * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
       * Any optional metadata to provide along with the message.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 6;</code>
       */
      public Builder clearMetadata() {
        bitField0_ = (bitField0_ & ~0x00000020);
        metadata_ = null;
        if (metadataBuilder_ != null) {
          metadataBuilder_.dispose();
          metadataBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <pre>
       * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
       * Any optional metadata to provide along with the message.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 6;</code>
       */
      public com.google.protobuf.Struct.Builder getMetadataBuilder() {
        bitField0_ |= 0x00000020;
        onChanged();
        return internalGetMetadataFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
       * Any optional metadata to provide along with the message.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 6;</code>
       */
      public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
        if (metadataBuilder_ != null) {
          return metadataBuilder_.getMessageOrBuilder();
        } else {
          return metadata_ == null ?
              com.google.protobuf.Struct.getDefaultInstance() : metadata_;
        }
      }
      /**
       * <pre>
       * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
       * Any optional metadata to provide along with the message.
       * </pre>
       *
       * <code>.google.protobuf.Struct metadata = 6;</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_;
      }
  
      private com.google.protobuf.LazyStringArrayList extensions_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
      private void ensureExtensionsIsMutable() {
        if (!extensions_.isModifiable()) {
          extensions_ = new com.google.protobuf.LazyStringArrayList(extensions_);
        }
        bitField0_ |= 0x00000040;
      }
      /**
       * <pre>
       * The URIs of extensions that are present or contributed to this Message.
       * </pre>
       *
       * <code>repeated string extensions = 7;</code>
       * @return A list containing the extensions.
       */
      public com.google.protobuf.ProtocolStringList
          getExtensionsList() {
        extensions_.makeImmutable();
        return extensions_;
      }
      /**
       * <pre>
       * The URIs of extensions that are present or contributed to this Message.
       * </pre>
       *
       * <code>repeated string extensions = 7;</code>
       * @return The count of extensions.
       */
      public int getExtensionsCount() {
        return extensions_.size();
      }
      /**
       * <pre>
       * The URIs of extensions that are present or contributed to this Message.
       * </pre>
       *
       * <code>repeated string extensions = 7;</code>
       * @param index The index of the element to return.
       * @return The extensions at the given index.
       */
      public java.lang.String getExtensions(int index) {
        return extensions_.get(index);
      }
      /**
       * <pre>
       * The URIs of extensions that are present or contributed to this Message.
       * </pre>
       *
       * <code>repeated string extensions = 7;</code>
       * @param index The index of the value to return.
       * @return The bytes of the extensions at the given index.
       */
      public com.google.protobuf.ByteString
          getExtensionsBytes(int index) {
        return extensions_.getByteString(index);
      }
      /**
       * <pre>
       * The URIs of extensions that are present or contributed to this Message.
       * </pre>
       *
       * <code>repeated string extensions = 7;</code>
       * @param index The index to set the value at.
       * @param value The extensions to set.
       * @return This builder for chaining.
       */
      public Builder setExtensions(
          int index, java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        ensureExtensionsIsMutable();
        extensions_.set(index, value);
        bitField0_ |= 0x00000040;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The URIs of extensions that are present or contributed to this Message.
       * </pre>
       *
       * <code>repeated string extensions = 7;</code>
       * @param value The extensions to add.
       * @return This builder for chaining.
       */
      public Builder addExtensions(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        ensureExtensionsIsMutable();
        extensions_.add(value);
        bitField0_ |= 0x00000040;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The URIs of extensions that are present or contributed to this Message.
       * </pre>
       *
       * <code>repeated string extensions = 7;</code>
       * @param values The extensions to add.
       * @return This builder for chaining.
       */
      public Builder addAllExtensions(
          java.lang.Iterable<java.lang.String> values) {
        ensureExtensionsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, extensions_);
        bitField0_ |= 0x00000040;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The URIs of extensions that are present or contributed to this Message.
       * </pre>
       *
       * <code>repeated string extensions = 7;</code>
       * @return This builder for chaining.
       */
      public Builder clearExtensions() {
        extensions_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
        bitField0_ = (bitField0_ & ~0x00000040);;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The URIs of extensions that are present or contributed to this Message.
       * </pre>
       *
       * <code>repeated string extensions = 7;</code>
       * @param value The bytes of the extensions to add.
       * @return This builder for chaining.
       */
      public Builder addExtensionsBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        ensureExtensionsIsMutable();
        extensions_.add(value);
        bitField0_ |= 0x00000040;
        onChanged();
        return this;
      }
  
      // @@protoc_insertion_point(builder_scope:a2a.v1.Message)
    }
  
    // @@protoc_insertion_point(class_scope:a2a.v1.Message)
    private static final io.a2a.grpc.Message DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.a2a.grpc.Message();
    }
  
    public static io.a2a.grpc.Message getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }
  
    private static final com.google.protobuf.Parser<Message>
        PARSER = new com.google.protobuf.AbstractParser<Message>() {
      @java.lang.Override
      public Message 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<Message> parser() {
      return PARSER;
    }
  
    @java.lang.Override
    public com.google.protobuf.Parser<Message> getParserForType() {
      return PARSER;
    }
  
    @java.lang.Override
    public io.a2a.grpc.Message getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  
  }
  
  