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>
   * Part represents a container for a section of communication content.
   * Parts can be purely textual, some sort of file (image, video, etc) or
   * a structured data blob (i.e. JSON).
   * </pre>
   *
   * Protobuf type {@code a2a.v1.Part}
   */
  @com.google.protobuf.Generated
  public final class Part extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:a2a.v1.Part)
      PartOrBuilder {
  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= */ "",
        Part.class.getName());
    }
    // Use Part.newBuilder() to construct.
    private Part(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private Part() {
    }
  
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.a2a.grpc.A2A.internal_static_a2a_v1_Part_descriptor;
    }
  
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.a2a.grpc.A2A.internal_static_a2a_v1_Part_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.a2a.grpc.Part.class, io.a2a.grpc.Part.Builder.class);
    }
  
    private int partCase_ = 0;
    @SuppressWarnings("serial")
    private java.lang.Object part_;
    public enum PartCase
        implements com.google.protobuf.Internal.EnumLite,
            com.google.protobuf.AbstractMessage.InternalOneOfEnum {
      TEXT(1),
      FILE(2),
      DATA(3),
      PART_NOT_SET(0);
      private final int value;
      private PartCase(int value) {
        this.value = value;
      }
      /**
       * @param value The number of the enum to look for.
       * @return The enum associated with the given number.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static PartCase valueOf(int value) {
        return forNumber(value);
      }
  
      public static PartCase forNumber(int value) {
        switch (value) {
          case 1: return TEXT;
          case 2: return FILE;
          case 3: return DATA;
          case 0: return PART_NOT_SET;
          default: return null;
        }
      }
      public int getNumber() {
        return this.value;
      }
    };
  
    public PartCase
    getPartCase() {
      return PartCase.forNumber(
          partCase_);
    }
  
    public static final int TEXT_FIELD_NUMBER = 1;
    /**
     * <code>string text = 1;</code>
     * @return Whether the text field is set.
     */
    public boolean hasText() {
      return partCase_ == 1;
    }
    /**
     * <code>string text = 1;</code>
     * @return The text.
     */
    public java.lang.String getText() {
      java.lang.Object ref = "";
      if (partCase_ == 1) {
        ref = part_;
      }
      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();
        if (partCase_ == 1) {
          part_ = s;
        }
        return s;
      }
    }
    /**
     * <code>string text = 1;</code>
     * @return The bytes for text.
     */
    public com.google.protobuf.ByteString
        getTextBytes() {
      java.lang.Object ref = "";
      if (partCase_ == 1) {
        ref = part_;
      }
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        if (partCase_ == 1) {
          part_ = b;
        }
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
  
    public static final int FILE_FIELD_NUMBER = 2;
    /**
     * <code>.a2a.v1.FilePart file = 2;</code>
     * @return Whether the file field is set.
     */
    @java.lang.Override
    public boolean hasFile() {
      return partCase_ == 2;
    }
    /**
     * <code>.a2a.v1.FilePart file = 2;</code>
     * @return The file.
     */
    @java.lang.Override
    public io.a2a.grpc.FilePart getFile() {
      if (partCase_ == 2) {
         return (io.a2a.grpc.FilePart) part_;
      }
      return io.a2a.grpc.FilePart.getDefaultInstance();
    }
    /**
     * <code>.a2a.v1.FilePart file = 2;</code>
     */
    @java.lang.Override
    public io.a2a.grpc.FilePartOrBuilder getFileOrBuilder() {
      if (partCase_ == 2) {
         return (io.a2a.grpc.FilePart) part_;
      }
      return io.a2a.grpc.FilePart.getDefaultInstance();
    }
  
    public static final int DATA_FIELD_NUMBER = 3;
    /**
     * <code>.a2a.v1.DataPart data = 3;</code>
     * @return Whether the data field is set.
     */
    @java.lang.Override
    public boolean hasData() {
      return partCase_ == 3;
    }
    /**
     * <code>.a2a.v1.DataPart data = 3;</code>
     * @return The data.
     */
    @java.lang.Override
    public io.a2a.grpc.DataPart getData() {
      if (partCase_ == 3) {
         return (io.a2a.grpc.DataPart) part_;
      }
      return io.a2a.grpc.DataPart.getDefaultInstance();
    }
    /**
     * <code>.a2a.v1.DataPart data = 3;</code>
     */
    @java.lang.Override
    public io.a2a.grpc.DataPartOrBuilder getDataOrBuilder() {
      if (partCase_ == 3) {
         return (io.a2a.grpc.DataPart) part_;
      }
      return io.a2a.grpc.DataPart.getDefaultInstance();
    }
  
    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 (partCase_ == 1) {
        com.google.protobuf.GeneratedMessage.writeString(output, 1, part_);
      }
      if (partCase_ == 2) {
        output.writeMessage(2, (io.a2a.grpc.FilePart) part_);
      }
      if (partCase_ == 3) {
        output.writeMessage(3, (io.a2a.grpc.DataPart) part_);
      }
      getUnknownFields().writeTo(output);
    }
  
    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;
  
      size = 0;
      if (partCase_ == 1) {
        size += com.google.protobuf.GeneratedMessage.computeStringSize(1, part_);
      }
      if (partCase_ == 2) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, (io.a2a.grpc.FilePart) part_);
      }
      if (partCase_ == 3) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, (io.a2a.grpc.DataPart) part_);
      }
      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.Part)) {
        return super.equals(obj);
      }
      io.a2a.grpc.Part other = (io.a2a.grpc.Part) obj;
  
      if (!getPartCase().equals(other.getPartCase())) return false;
      switch (partCase_) {
        case 1:
          if (!getText()
              .equals(other.getText())) return false;
          break;
        case 2:
          if (!getFile()
              .equals(other.getFile())) return false;
          break;
        case 3:
          if (!getData()
              .equals(other.getData())) return false;
          break;
        case 0:
        default:
      }
      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();
      switch (partCase_) {
        case 1:
          hash = (37 * hash) + TEXT_FIELD_NUMBER;
          hash = (53 * hash) + getText().hashCode();
          break;
        case 2:
          hash = (37 * hash) + FILE_FIELD_NUMBER;
          hash = (53 * hash) + getFile().hashCode();
          break;
        case 3:
          hash = (37 * hash) + DATA_FIELD_NUMBER;
          hash = (53 * hash) + getData().hashCode();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }
  
    public static io.a2a.grpc.Part parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.a2a.grpc.Part 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.Part parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.a2a.grpc.Part 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.Part parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.a2a.grpc.Part parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.a2a.grpc.Part parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static io.a2a.grpc.Part 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.Part parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }
  
    public static io.a2a.grpc.Part 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.Part parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static io.a2a.grpc.Part 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.Part 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>
     * Part represents a container for a section of communication content.
     * Parts can be purely textual, some sort of file (image, video, etc) or
     * a structured data blob (i.e. JSON).
     * </pre>
     *
     * Protobuf type {@code a2a.v1.Part}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:a2a.v1.Part)
        io.a2a.grpc.PartOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return io.a2a.grpc.A2A.internal_static_a2a_v1_Part_descriptor;
      }
  
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.a2a.grpc.A2A.internal_static_a2a_v1_Part_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.a2a.grpc.Part.class, io.a2a.grpc.Part.Builder.class);
      }
  
      // Construct using io.a2a.grpc.Part.newBuilder()
      private Builder() {
  
      }
  
      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
  
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        if (fileBuilder_ != null) {
          fileBuilder_.clear();
        }
        if (dataBuilder_ != null) {
          dataBuilder_.clear();
        }
        partCase_ = 0;
        part_ = null;
        return this;
      }
  
      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.a2a.grpc.A2A.internal_static_a2a_v1_Part_descriptor;
      }
  
      @java.lang.Override
      public io.a2a.grpc.Part getDefaultInstanceForType() {
        return io.a2a.grpc.Part.getDefaultInstance();
      }
  
      @java.lang.Override
      public io.a2a.grpc.Part build() {
        io.a2a.grpc.Part result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
  
      @java.lang.Override
      public io.a2a.grpc.Part buildPartial() {
        io.a2a.grpc.Part result = new io.a2a.grpc.Part(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        buildPartialOneofs(result);
        onBuilt();
        return result;
      }
  
      private void buildPartial0(io.a2a.grpc.Part result) {
        int from_bitField0_ = bitField0_;
      }
  
      private void buildPartialOneofs(io.a2a.grpc.Part result) {
        result.partCase_ = partCase_;
        result.part_ = this.part_;
        if (partCase_ == 2 &&
            fileBuilder_ != null) {
          result.part_ = fileBuilder_.build();
        }
        if (partCase_ == 3 &&
            dataBuilder_ != null) {
          result.part_ = dataBuilder_.build();
        }
      }
  
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof io.a2a.grpc.Part) {
          return mergeFrom((io.a2a.grpc.Part)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
  
      public Builder mergeFrom(io.a2a.grpc.Part other) {
        if (other == io.a2a.grpc.Part.getDefaultInstance()) return this;
        switch (other.getPartCase()) {
          case TEXT: {
            partCase_ = 1;
            part_ = other.part_;
            onChanged();
            break;
          }
          case FILE: {
            mergeFile(other.getFile());
            break;
          }
          case DATA: {
            mergeData(other.getData());
            break;
          }
          case PART_NOT_SET: {
            break;
          }
        }
        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: {
                java.lang.String s = input.readStringRequireUtf8();
                partCase_ = 1;
                part_ = s;
                break;
              } // case 10
              case 18: {
                input.readMessage(
                    internalGetFileFieldBuilder().getBuilder(),
                    extensionRegistry);
                partCase_ = 2;
                break;
              } // case 18
              case 26: {
                input.readMessage(
                    internalGetDataFieldBuilder().getBuilder(),
                    extensionRegistry);
                partCase_ = 3;
                break;
              } // case 26
              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 partCase_ = 0;
      private java.lang.Object part_;
      public PartCase
          getPartCase() {
        return PartCase.forNumber(
            partCase_);
      }
  
      public Builder clearPart() {
        partCase_ = 0;
        part_ = null;
        onChanged();
        return this;
      }
  
      private int bitField0_;
  
      /**
       * <code>string text = 1;</code>
       * @return Whether the text field is set.
       */
      @java.lang.Override
      public boolean hasText() {
        return partCase_ == 1;
      }
      /**
       * <code>string text = 1;</code>
       * @return The text.
       */
      @java.lang.Override
      public java.lang.String getText() {
        java.lang.Object ref = "";
        if (partCase_ == 1) {
          ref = part_;
        }
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (partCase_ == 1) {
            part_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string text = 1;</code>
       * @return The bytes for text.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getTextBytes() {
        java.lang.Object ref = "";
        if (partCase_ == 1) {
          ref = part_;
        }
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          if (partCase_ == 1) {
            part_ = b;
          }
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string text = 1;</code>
       * @param value The text to set.
       * @return This builder for chaining.
       */
      public Builder setText(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        partCase_ = 1;
        part_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string text = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearText() {
        if (partCase_ == 1) {
          partCase_ = 0;
          part_ = null;
          onChanged();
        }
        return this;
      }
      /**
       * <code>string text = 1;</code>
       * @param value The bytes for text to set.
       * @return This builder for chaining.
       */
      public Builder setTextBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        partCase_ = 1;
        part_ = value;
        onChanged();
        return this;
      }
  
      private com.google.protobuf.SingleFieldBuilder<
          io.a2a.grpc.FilePart, io.a2a.grpc.FilePart.Builder, io.a2a.grpc.FilePartOrBuilder> fileBuilder_;
      /**
       * <code>.a2a.v1.FilePart file = 2;</code>
       * @return Whether the file field is set.
       */
      @java.lang.Override
      public boolean hasFile() {
        return partCase_ == 2;
      }
      /**
       * <code>.a2a.v1.FilePart file = 2;</code>
       * @return The file.
       */
      @java.lang.Override
      public io.a2a.grpc.FilePart getFile() {
        if (fileBuilder_ == null) {
          if (partCase_ == 2) {
            return (io.a2a.grpc.FilePart) part_;
          }
          return io.a2a.grpc.FilePart.getDefaultInstance();
        } else {
          if (partCase_ == 2) {
            return fileBuilder_.getMessage();
          }
          return io.a2a.grpc.FilePart.getDefaultInstance();
        }
      }
      /**
       * <code>.a2a.v1.FilePart file = 2;</code>
       */
      public Builder setFile(io.a2a.grpc.FilePart value) {
        if (fileBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          part_ = value;
          onChanged();
        } else {
          fileBuilder_.setMessage(value);
        }
        partCase_ = 2;
        return this;
      }
      /**
       * <code>.a2a.v1.FilePart file = 2;</code>
       */
      public Builder setFile(
          io.a2a.grpc.FilePart.Builder builderForValue) {
        if (fileBuilder_ == null) {
          part_ = builderForValue.build();
          onChanged();
        } else {
          fileBuilder_.setMessage(builderForValue.build());
        }
        partCase_ = 2;
        return this;
      }
      /**
       * <code>.a2a.v1.FilePart file = 2;</code>
       */
      public Builder mergeFile(io.a2a.grpc.FilePart value) {
        if (fileBuilder_ == null) {
          if (partCase_ == 2 &&
              part_ != io.a2a.grpc.FilePart.getDefaultInstance()) {
            part_ = io.a2a.grpc.FilePart.newBuilder((io.a2a.grpc.FilePart) part_)
                .mergeFrom(value).buildPartial();
          } else {
            part_ = value;
          }
          onChanged();
        } else {
          if (partCase_ == 2) {
            fileBuilder_.mergeFrom(value);
          } else {
            fileBuilder_.setMessage(value);
          }
        }
        partCase_ = 2;
        return this;
      }
      /**
       * <code>.a2a.v1.FilePart file = 2;</code>
       */
      public Builder clearFile() {
        if (fileBuilder_ == null) {
          if (partCase_ == 2) {
            partCase_ = 0;
            part_ = null;
            onChanged();
          }
        } else {
          if (partCase_ == 2) {
            partCase_ = 0;
            part_ = null;
          }
          fileBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>.a2a.v1.FilePart file = 2;</code>
       */
      public io.a2a.grpc.FilePart.Builder getFileBuilder() {
        return internalGetFileFieldBuilder().getBuilder();
      }
      /**
       * <code>.a2a.v1.FilePart file = 2;</code>
       */
      @java.lang.Override
      public io.a2a.grpc.FilePartOrBuilder getFileOrBuilder() {
        if ((partCase_ == 2) && (fileBuilder_ != null)) {
          return fileBuilder_.getMessageOrBuilder();
        } else {
          if (partCase_ == 2) {
            return (io.a2a.grpc.FilePart) part_;
          }
          return io.a2a.grpc.FilePart.getDefaultInstance();
        }
      }
      /**
       * <code>.a2a.v1.FilePart file = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilder<
          io.a2a.grpc.FilePart, io.a2a.grpc.FilePart.Builder, io.a2a.grpc.FilePartOrBuilder> 
          internalGetFileFieldBuilder() {
        if (fileBuilder_ == null) {
          if (!(partCase_ == 2)) {
            part_ = io.a2a.grpc.FilePart.getDefaultInstance();
          }
          fileBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              io.a2a.grpc.FilePart, io.a2a.grpc.FilePart.Builder, io.a2a.grpc.FilePartOrBuilder>(
                  (io.a2a.grpc.FilePart) part_,
                  getParentForChildren(),
                  isClean());
          part_ = null;
        }
        partCase_ = 2;
        onChanged();
        return fileBuilder_;
      }
  
      private com.google.protobuf.SingleFieldBuilder<
          io.a2a.grpc.DataPart, io.a2a.grpc.DataPart.Builder, io.a2a.grpc.DataPartOrBuilder> dataBuilder_;
      /**
       * <code>.a2a.v1.DataPart data = 3;</code>
       * @return Whether the data field is set.
       */
      @java.lang.Override
      public boolean hasData() {
        return partCase_ == 3;
      }
      /**
       * <code>.a2a.v1.DataPart data = 3;</code>
       * @return The data.
       */
      @java.lang.Override
      public io.a2a.grpc.DataPart getData() {
        if (dataBuilder_ == null) {
          if (partCase_ == 3) {
            return (io.a2a.grpc.DataPart) part_;
          }
          return io.a2a.grpc.DataPart.getDefaultInstance();
        } else {
          if (partCase_ == 3) {
            return dataBuilder_.getMessage();
          }
          return io.a2a.grpc.DataPart.getDefaultInstance();
        }
      }
      /**
       * <code>.a2a.v1.DataPart data = 3;</code>
       */
      public Builder setData(io.a2a.grpc.DataPart value) {
        if (dataBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          part_ = value;
          onChanged();
        } else {
          dataBuilder_.setMessage(value);
        }
        partCase_ = 3;
        return this;
      }
      /**
       * <code>.a2a.v1.DataPart data = 3;</code>
       */
      public Builder setData(
          io.a2a.grpc.DataPart.Builder builderForValue) {
        if (dataBuilder_ == null) {
          part_ = builderForValue.build();
          onChanged();
        } else {
          dataBuilder_.setMessage(builderForValue.build());
        }
        partCase_ = 3;
        return this;
      }
      /**
       * <code>.a2a.v1.DataPart data = 3;</code>
       */
      public Builder mergeData(io.a2a.grpc.DataPart value) {
        if (dataBuilder_ == null) {
          if (partCase_ == 3 &&
              part_ != io.a2a.grpc.DataPart.getDefaultInstance()) {
            part_ = io.a2a.grpc.DataPart.newBuilder((io.a2a.grpc.DataPart) part_)
                .mergeFrom(value).buildPartial();
          } else {
            part_ = value;
          }
          onChanged();
        } else {
          if (partCase_ == 3) {
            dataBuilder_.mergeFrom(value);
          } else {
            dataBuilder_.setMessage(value);
          }
        }
        partCase_ = 3;
        return this;
      }
      /**
       * <code>.a2a.v1.DataPart data = 3;</code>
       */
      public Builder clearData() {
        if (dataBuilder_ == null) {
          if (partCase_ == 3) {
            partCase_ = 0;
            part_ = null;
            onChanged();
          }
        } else {
          if (partCase_ == 3) {
            partCase_ = 0;
            part_ = null;
          }
          dataBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>.a2a.v1.DataPart data = 3;</code>
       */
      public io.a2a.grpc.DataPart.Builder getDataBuilder() {
        return internalGetDataFieldBuilder().getBuilder();
      }
      /**
       * <code>.a2a.v1.DataPart data = 3;</code>
       */
      @java.lang.Override
      public io.a2a.grpc.DataPartOrBuilder getDataOrBuilder() {
        if ((partCase_ == 3) && (dataBuilder_ != null)) {
          return dataBuilder_.getMessageOrBuilder();
        } else {
          if (partCase_ == 3) {
            return (io.a2a.grpc.DataPart) part_;
          }
          return io.a2a.grpc.DataPart.getDefaultInstance();
        }
      }
      /**
       * <code>.a2a.v1.DataPart data = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilder<
          io.a2a.grpc.DataPart, io.a2a.grpc.DataPart.Builder, io.a2a.grpc.DataPartOrBuilder> 
          internalGetDataFieldBuilder() {
        if (dataBuilder_ == null) {
          if (!(partCase_ == 3)) {
            part_ = io.a2a.grpc.DataPart.getDefaultInstance();
          }
          dataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              io.a2a.grpc.DataPart, io.a2a.grpc.DataPart.Builder, io.a2a.grpc.DataPartOrBuilder>(
                  (io.a2a.grpc.DataPart) part_,
                  getParentForChildren(),
                  isClean());
          part_ = null;
        }
        partCase_ = 3;
        onChanged();
        return dataBuilder_;
      }
  
      // @@protoc_insertion_point(builder_scope:a2a.v1.Part)
    }
  
    // @@protoc_insertion_point(class_scope:a2a.v1.Part)
    private static final io.a2a.grpc.Part DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.a2a.grpc.Part();
    }
  
    public static io.a2a.grpc.Part getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }
  
    private static final com.google.protobuf.Parser<Part>
        PARSER = new com.google.protobuf.AbstractParser<Part>() {
      @java.lang.Override
      public Part 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<Part> parser() {
      return PARSER;
    }
  
    @java.lang.Override
    public com.google.protobuf.Parser<Part> getParserForType() {
      return PARSER;
    }
  
    @java.lang.Override
    public io.a2a.grpc.Part getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  
  }
  
  