All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ironcorelabs.proto.DocumentHeader Maven / Gradle / Ivy

There is a newer version: 7.2.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: document_header.proto

package com.ironcorelabs.proto;

public final class DocumentHeader {
  private DocumentHeader() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface DataControlPlatformHeaderOrBuilder extends
      // @@protoc_insertion_point(interface_extends:ironcorelabs.proto.DataControlPlatformHeader)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string document_id = 1;
     * @return The documentId.
     */
    java.lang.String getDocumentId();
    /**
     * string document_id = 1;
     * @return The bytes for documentId.
     */
    com.google.protobuf.ByteString
        getDocumentIdBytes();

    /**
     * uint64 segment_id = 2;
     * @return The segmentId.
     */
    long getSegmentId();
  }
  /**
   * Protobuf type {@code ironcorelabs.proto.DataControlPlatformHeader}
   */
  public static final class DataControlPlatformHeader extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:ironcorelabs.proto.DataControlPlatformHeader)
      DataControlPlatformHeaderOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use DataControlPlatformHeader.newBuilder() to construct.
    private DataControlPlatformHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private DataControlPlatformHeader() {
      documentId_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new DataControlPlatformHeader();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private DataControlPlatformHeader(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      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();

              documentId_ = s;
              break;
            }
            case 16: {

              segmentId_ = input.readUInt64();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ironcorelabs.proto.DocumentHeader.internal_static_ironcorelabs_proto_DataControlPlatformHeader_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ironcorelabs.proto.DocumentHeader.internal_static_ironcorelabs_proto_DataControlPlatformHeader_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.class, com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.Builder.class);
    }

    public static final int DOCUMENT_ID_FIELD_NUMBER = 1;
    private volatile java.lang.Object documentId_;
    /**
     * string document_id = 1;
     * @return The documentId.
     */
    @java.lang.Override
    public java.lang.String getDocumentId() {
      java.lang.Object ref = documentId_;
      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();
        documentId_ = s;
        return s;
      }
    }
    /**
     * string document_id = 1;
     * @return The bytes for documentId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getDocumentIdBytes() {
      java.lang.Object ref = documentId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        documentId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int SEGMENT_ID_FIELD_NUMBER = 2;
    private long segmentId_;
    /**
     * uint64 segment_id = 2;
     * @return The segmentId.
     */
    @java.lang.Override
    public long getSegmentId() {
      return segmentId_;
    }

    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.GeneratedMessageV3.isStringEmpty(documentId_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentId_);
      }
      if (segmentId_ != 0L) {
        output.writeUInt64(2, segmentId_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentId_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, documentId_);
      }
      if (segmentId_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(2, segmentId_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader)) {
        return super.equals(obj);
      }
      com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader other = (com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader) obj;

      if (!getDocumentId()
          .equals(other.getDocumentId())) return false;
      if (getSegmentId()
          != other.getSegmentId()) return false;
      if (!unknownFields.equals(other.unknownFields)) 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) + DOCUMENT_ID_FIELD_NUMBER;
      hash = (53 * hash) + getDocumentId().hashCode();
      hash = (37 * hash) + SEGMENT_ID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getSegmentId());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader 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.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code ironcorelabs.proto.DataControlPlatformHeader}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:ironcorelabs.proto.DataControlPlatformHeader)
        com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeaderOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.ironcorelabs.proto.DocumentHeader.internal_static_ironcorelabs_proto_DataControlPlatformHeader_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.ironcorelabs.proto.DocumentHeader.internal_static_ironcorelabs_proto_DataControlPlatformHeader_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.class, com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.Builder.class);
      }

      // Construct using com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        documentId_ = "";

        segmentId_ = 0L;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.ironcorelabs.proto.DocumentHeader.internal_static_ironcorelabs_proto_DataControlPlatformHeader_descriptor;
      }

      @java.lang.Override
      public com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader getDefaultInstanceForType() {
        return com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.getDefaultInstance();
      }

      @java.lang.Override
      public com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader build() {
        com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader buildPartial() {
        com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader result = new com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader(this);
        result.documentId_ = documentId_;
        result.segmentId_ = segmentId_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader) {
          return mergeFrom((com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader other) {
        if (other == com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.getDefaultInstance()) return this;
        if (!other.getDocumentId().isEmpty()) {
          documentId_ = other.documentId_;
          onChanged();
        }
        if (other.getSegmentId() != 0L) {
          setSegmentId(other.getSegmentId());
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object documentId_ = "";
      /**
       * string document_id = 1;
       * @return The documentId.
       */
      public java.lang.String getDocumentId() {
        java.lang.Object ref = documentId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          documentId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string document_id = 1;
       * @return The bytes for documentId.
       */
      public com.google.protobuf.ByteString
          getDocumentIdBytes() {
        java.lang.Object ref = documentId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          documentId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string document_id = 1;
       * @param value The documentId to set.
       * @return This builder for chaining.
       */
      public Builder setDocumentId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        documentId_ = value;
        onChanged();
        return this;
      }
      /**
       * string document_id = 1;
       * @return This builder for chaining.
       */
      public Builder clearDocumentId() {
        
        documentId_ = getDefaultInstance().getDocumentId();
        onChanged();
        return this;
      }
      /**
       * string document_id = 1;
       * @param value The bytes for documentId to set.
       * @return This builder for chaining.
       */
      public Builder setDocumentIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        documentId_ = value;
        onChanged();
        return this;
      }

      private long segmentId_ ;
      /**
       * uint64 segment_id = 2;
       * @return The segmentId.
       */
      @java.lang.Override
      public long getSegmentId() {
        return segmentId_;
      }
      /**
       * uint64 segment_id = 2;
       * @param value The segmentId to set.
       * @return This builder for chaining.
       */
      public Builder setSegmentId(long value) {
        
        segmentId_ = value;
        onChanged();
        return this;
      }
      /**
       * uint64 segment_id = 2;
       * @return This builder for chaining.
       */
      public Builder clearSegmentId() {
        
        segmentId_ = 0L;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:ironcorelabs.proto.DataControlPlatformHeader)
    }

    // @@protoc_insertion_point(class_scope:ironcorelabs.proto.DataControlPlatformHeader)
    private static final com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader();
    }

    public static com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public DataControlPlatformHeader parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new DataControlPlatformHeader(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface SaaSShieldHeaderOrBuilder extends
      // @@protoc_insertion_point(interface_extends:ironcorelabs.proto.SaaSShieldHeader)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string tenant_id = 1;
     * @return The tenantId.
     */
    java.lang.String getTenantId();
    /**
     * string tenant_id = 1;
     * @return The bytes for tenantId.
     */
    com.google.protobuf.ByteString
        getTenantIdBytes();
  }
  /**
   * Protobuf type {@code ironcorelabs.proto.SaaSShieldHeader}
   */
  public static final class SaaSShieldHeader extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:ironcorelabs.proto.SaaSShieldHeader)
      SaaSShieldHeaderOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use SaaSShieldHeader.newBuilder() to construct.
    private SaaSShieldHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private SaaSShieldHeader() {
      tenantId_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new SaaSShieldHeader();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private SaaSShieldHeader(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      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();

              tenantId_ = s;
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ironcorelabs.proto.DocumentHeader.internal_static_ironcorelabs_proto_SaaSShieldHeader_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ironcorelabs.proto.DocumentHeader.internal_static_ironcorelabs_proto_SaaSShieldHeader_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.class, com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.Builder.class);
    }

    public static final int TENANT_ID_FIELD_NUMBER = 1;
    private volatile java.lang.Object tenantId_;
    /**
     * string tenant_id = 1;
     * @return The tenantId.
     */
    @java.lang.Override
    public java.lang.String getTenantId() {
      java.lang.Object ref = tenantId_;
      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();
        tenantId_ = s;
        return s;
      }
    }
    /**
     * string tenant_id = 1;
     * @return The bytes for tenantId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTenantIdBytes() {
      java.lang.Object ref = tenantId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        tenantId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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.GeneratedMessageV3.isStringEmpty(tenantId_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tenantId_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantId_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tenantId_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader)) {
        return super.equals(obj);
      }
      com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader other = (com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader) obj;

      if (!getTenantId()
          .equals(other.getTenantId())) return false;
      if (!unknownFields.equals(other.unknownFields)) 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) + TENANT_ID_FIELD_NUMBER;
      hash = (53 * hash) + getTenantId().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader 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.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code ironcorelabs.proto.SaaSShieldHeader}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:ironcorelabs.proto.SaaSShieldHeader)
        com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeaderOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.ironcorelabs.proto.DocumentHeader.internal_static_ironcorelabs_proto_SaaSShieldHeader_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.ironcorelabs.proto.DocumentHeader.internal_static_ironcorelabs_proto_SaaSShieldHeader_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.class, com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.Builder.class);
      }

      // Construct using com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        tenantId_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.ironcorelabs.proto.DocumentHeader.internal_static_ironcorelabs_proto_SaaSShieldHeader_descriptor;
      }

      @java.lang.Override
      public com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader getDefaultInstanceForType() {
        return com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.getDefaultInstance();
      }

      @java.lang.Override
      public com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader build() {
        com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader buildPartial() {
        com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader result = new com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader(this);
        result.tenantId_ = tenantId_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader) {
          return mergeFrom((com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader other) {
        if (other == com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.getDefaultInstance()) return this;
        if (!other.getTenantId().isEmpty()) {
          tenantId_ = other.tenantId_;
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object tenantId_ = "";
      /**
       * string tenant_id = 1;
       * @return The tenantId.
       */
      public java.lang.String getTenantId() {
        java.lang.Object ref = tenantId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          tenantId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string tenant_id = 1;
       * @return The bytes for tenantId.
       */
      public com.google.protobuf.ByteString
          getTenantIdBytes() {
        java.lang.Object ref = tenantId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          tenantId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string tenant_id = 1;
       * @param value The tenantId to set.
       * @return This builder for chaining.
       */
      public Builder setTenantId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        tenantId_ = value;
        onChanged();
        return this;
      }
      /**
       * string tenant_id = 1;
       * @return This builder for chaining.
       */
      public Builder clearTenantId() {
        
        tenantId_ = getDefaultInstance().getTenantId();
        onChanged();
        return this;
      }
      /**
       * string tenant_id = 1;
       * @param value The bytes for tenantId to set.
       * @return This builder for chaining.
       */
      public Builder setTenantIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        tenantId_ = value;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:ironcorelabs.proto.SaaSShieldHeader)
    }

    // @@protoc_insertion_point(class_scope:ironcorelabs.proto.SaaSShieldHeader)
    private static final com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader();
    }

    public static com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public SaaSShieldHeader parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new SaaSShieldHeader(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface v3DocumentHeaderOrBuilder extends
      // @@protoc_insertion_point(interface_extends:ironcorelabs.proto.v3DocumentHeader)
      com.google.protobuf.MessageOrBuilder {

    /**
     * bytes sig = 1;
     * @return The sig.
     */
    com.google.protobuf.ByteString getSig();

    /**
     * .ironcorelabs.proto.DataControlPlatformHeader data_control = 2;
     * @return Whether the dataControl field is set.
     */
    boolean hasDataControl();
    /**
     * .ironcorelabs.proto.DataControlPlatformHeader data_control = 2;
     * @return The dataControl.
     */
    com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader getDataControl();
    /**
     * .ironcorelabs.proto.DataControlPlatformHeader data_control = 2;
     */
    com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeaderOrBuilder getDataControlOrBuilder();

    /**
     * .ironcorelabs.proto.SaaSShieldHeader saas_shield = 3;
     * @return Whether the saasShield field is set.
     */
    boolean hasSaasShield();
    /**
     * .ironcorelabs.proto.SaaSShieldHeader saas_shield = 3;
     * @return The saasShield.
     */
    com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader getSaasShield();
    /**
     * .ironcorelabs.proto.SaaSShieldHeader saas_shield = 3;
     */
    com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeaderOrBuilder getSaasShieldOrBuilder();

    public com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader.HeaderCase getHeaderCase();
  }
  /**
   * Protobuf type {@code ironcorelabs.proto.v3DocumentHeader}
   */
  public static final class v3DocumentHeader extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:ironcorelabs.proto.v3DocumentHeader)
      v3DocumentHeaderOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use v3DocumentHeader.newBuilder() to construct.
    private v3DocumentHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private v3DocumentHeader() {
      sig_ = com.google.protobuf.ByteString.EMPTY;
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new v3DocumentHeader();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private v3DocumentHeader(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {

              sig_ = input.readBytes();
              break;
            }
            case 18: {
              com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.Builder subBuilder = null;
              if (headerCase_ == 2) {
                subBuilder = ((com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader) header_).toBuilder();
              }
              header_ =
                  input.readMessage(com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader) header_);
                header_ = subBuilder.buildPartial();
              }
              headerCase_ = 2;
              break;
            }
            case 26: {
              com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.Builder subBuilder = null;
              if (headerCase_ == 3) {
                subBuilder = ((com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader) header_).toBuilder();
              }
              header_ =
                  input.readMessage(com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader) header_);
                header_ = subBuilder.buildPartial();
              }
              headerCase_ = 3;
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ironcorelabs.proto.DocumentHeader.internal_static_ironcorelabs_proto_v3DocumentHeader_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ironcorelabs.proto.DocumentHeader.internal_static_ironcorelabs_proto_v3DocumentHeader_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader.class, com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader.Builder.class);
    }

    private int headerCase_ = 0;
    private java.lang.Object header_;
    public enum HeaderCase
        implements com.google.protobuf.Internal.EnumLite,
            com.google.protobuf.AbstractMessage.InternalOneOfEnum {
      DATA_CONTROL(2),
      SAAS_SHIELD(3),
      HEADER_NOT_SET(0);
      private final int value;
      private HeaderCase(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 HeaderCase valueOf(int value) {
        return forNumber(value);
      }

      public static HeaderCase forNumber(int value) {
        switch (value) {
          case 2: return DATA_CONTROL;
          case 3: return SAAS_SHIELD;
          case 0: return HEADER_NOT_SET;
          default: return null;
        }
      }
      public int getNumber() {
        return this.value;
      }
    };

    public HeaderCase
    getHeaderCase() {
      return HeaderCase.forNumber(
          headerCase_);
    }

    public static final int SIG_FIELD_NUMBER = 1;
    private com.google.protobuf.ByteString sig_;
    /**
     * bytes sig = 1;
     * @return The sig.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getSig() {
      return sig_;
    }

    public static final int DATA_CONTROL_FIELD_NUMBER = 2;
    /**
     * .ironcorelabs.proto.DataControlPlatformHeader data_control = 2;
     * @return Whether the dataControl field is set.
     */
    @java.lang.Override
    public boolean hasDataControl() {
      return headerCase_ == 2;
    }
    /**
     * .ironcorelabs.proto.DataControlPlatformHeader data_control = 2;
     * @return The dataControl.
     */
    @java.lang.Override
    public com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader getDataControl() {
      if (headerCase_ == 2) {
         return (com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader) header_;
      }
      return com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.getDefaultInstance();
    }
    /**
     * .ironcorelabs.proto.DataControlPlatformHeader data_control = 2;
     */
    @java.lang.Override
    public com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeaderOrBuilder getDataControlOrBuilder() {
      if (headerCase_ == 2) {
         return (com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader) header_;
      }
      return com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.getDefaultInstance();
    }

    public static final int SAAS_SHIELD_FIELD_NUMBER = 3;
    /**
     * .ironcorelabs.proto.SaaSShieldHeader saas_shield = 3;
     * @return Whether the saasShield field is set.
     */
    @java.lang.Override
    public boolean hasSaasShield() {
      return headerCase_ == 3;
    }
    /**
     * .ironcorelabs.proto.SaaSShieldHeader saas_shield = 3;
     * @return The saasShield.
     */
    @java.lang.Override
    public com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader getSaasShield() {
      if (headerCase_ == 3) {
         return (com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader) header_;
      }
      return com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.getDefaultInstance();
    }
    /**
     * .ironcorelabs.proto.SaaSShieldHeader saas_shield = 3;
     */
    @java.lang.Override
    public com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeaderOrBuilder getSaasShieldOrBuilder() {
      if (headerCase_ == 3) {
         return (com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader) header_;
      }
      return com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.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 (!sig_.isEmpty()) {
        output.writeBytes(1, sig_);
      }
      if (headerCase_ == 2) {
        output.writeMessage(2, (com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader) header_);
      }
      if (headerCase_ == 3) {
        output.writeMessage(3, (com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader) header_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!sig_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, sig_);
      }
      if (headerCase_ == 2) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, (com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader) header_);
      }
      if (headerCase_ == 3) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, (com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader) header_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader)) {
        return super.equals(obj);
      }
      com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader other = (com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader) obj;

      if (!getSig()
          .equals(other.getSig())) return false;
      if (!getHeaderCase().equals(other.getHeaderCase())) return false;
      switch (headerCase_) {
        case 2:
          if (!getDataControl()
              .equals(other.getDataControl())) return false;
          break;
        case 3:
          if (!getSaasShield()
              .equals(other.getSaasShield())) return false;
          break;
        case 0:
        default:
      }
      if (!unknownFields.equals(other.unknownFields)) 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) + SIG_FIELD_NUMBER;
      hash = (53 * hash) + getSig().hashCode();
      switch (headerCase_) {
        case 2:
          hash = (37 * hash) + DATA_CONTROL_FIELD_NUMBER;
          hash = (53 * hash) + getDataControl().hashCode();
          break;
        case 3:
          hash = (37 * hash) + SAAS_SHIELD_FIELD_NUMBER;
          hash = (53 * hash) + getSaasShield().hashCode();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader 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.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code ironcorelabs.proto.v3DocumentHeader}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:ironcorelabs.proto.v3DocumentHeader)
        com.ironcorelabs.proto.DocumentHeader.v3DocumentHeaderOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.ironcorelabs.proto.DocumentHeader.internal_static_ironcorelabs_proto_v3DocumentHeader_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.ironcorelabs.proto.DocumentHeader.internal_static_ironcorelabs_proto_v3DocumentHeader_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader.class, com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader.Builder.class);
      }

      // Construct using com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        sig_ = com.google.protobuf.ByteString.EMPTY;

        headerCase_ = 0;
        header_ = null;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.ironcorelabs.proto.DocumentHeader.internal_static_ironcorelabs_proto_v3DocumentHeader_descriptor;
      }

      @java.lang.Override
      public com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader getDefaultInstanceForType() {
        return com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader.getDefaultInstance();
      }

      @java.lang.Override
      public com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader build() {
        com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader buildPartial() {
        com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader result = new com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader(this);
        result.sig_ = sig_;
        if (headerCase_ == 2) {
          if (dataControlBuilder_ == null) {
            result.header_ = header_;
          } else {
            result.header_ = dataControlBuilder_.build();
          }
        }
        if (headerCase_ == 3) {
          if (saasShieldBuilder_ == null) {
            result.header_ = header_;
          } else {
            result.header_ = saasShieldBuilder_.build();
          }
        }
        result.headerCase_ = headerCase_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader) {
          return mergeFrom((com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader other) {
        if (other == com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader.getDefaultInstance()) return this;
        if (other.getSig() != com.google.protobuf.ByteString.EMPTY) {
          setSig(other.getSig());
        }
        switch (other.getHeaderCase()) {
          case DATA_CONTROL: {
            mergeDataControl(other.getDataControl());
            break;
          }
          case SAAS_SHIELD: {
            mergeSaasShield(other.getSaasShield());
            break;
          }
          case HEADER_NOT_SET: {
            break;
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int headerCase_ = 0;
      private java.lang.Object header_;
      public HeaderCase
          getHeaderCase() {
        return HeaderCase.forNumber(
            headerCase_);
      }

      public Builder clearHeader() {
        headerCase_ = 0;
        header_ = null;
        onChanged();
        return this;
      }


      private com.google.protobuf.ByteString sig_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes sig = 1;
       * @return The sig.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getSig() {
        return sig_;
      }
      /**
       * bytes sig = 1;
       * @param value The sig to set.
       * @return This builder for chaining.
       */
      public Builder setSig(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        sig_ = value;
        onChanged();
        return this;
      }
      /**
       * bytes sig = 1;
       * @return This builder for chaining.
       */
      public Builder clearSig() {
        
        sig_ = getDefaultInstance().getSig();
        onChanged();
        return this;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader, com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.Builder, com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeaderOrBuilder> dataControlBuilder_;
      /**
       * .ironcorelabs.proto.DataControlPlatformHeader data_control = 2;
       * @return Whether the dataControl field is set.
       */
      @java.lang.Override
      public boolean hasDataControl() {
        return headerCase_ == 2;
      }
      /**
       * .ironcorelabs.proto.DataControlPlatformHeader data_control = 2;
       * @return The dataControl.
       */
      @java.lang.Override
      public com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader getDataControl() {
        if (dataControlBuilder_ == null) {
          if (headerCase_ == 2) {
            return (com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader) header_;
          }
          return com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.getDefaultInstance();
        } else {
          if (headerCase_ == 2) {
            return dataControlBuilder_.getMessage();
          }
          return com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.getDefaultInstance();
        }
      }
      /**
       * .ironcorelabs.proto.DataControlPlatformHeader data_control = 2;
       */
      public Builder setDataControl(com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader value) {
        if (dataControlBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          header_ = value;
          onChanged();
        } else {
          dataControlBuilder_.setMessage(value);
        }
        headerCase_ = 2;
        return this;
      }
      /**
       * .ironcorelabs.proto.DataControlPlatformHeader data_control = 2;
       */
      public Builder setDataControl(
          com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.Builder builderForValue) {
        if (dataControlBuilder_ == null) {
          header_ = builderForValue.build();
          onChanged();
        } else {
          dataControlBuilder_.setMessage(builderForValue.build());
        }
        headerCase_ = 2;
        return this;
      }
      /**
       * .ironcorelabs.proto.DataControlPlatformHeader data_control = 2;
       */
      public Builder mergeDataControl(com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader value) {
        if (dataControlBuilder_ == null) {
          if (headerCase_ == 2 &&
              header_ != com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.getDefaultInstance()) {
            header_ = com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.newBuilder((com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader) header_)
                .mergeFrom(value).buildPartial();
          } else {
            header_ = value;
          }
          onChanged();
        } else {
          if (headerCase_ == 2) {
            dataControlBuilder_.mergeFrom(value);
          } else {
            dataControlBuilder_.setMessage(value);
          }
        }
        headerCase_ = 2;
        return this;
      }
      /**
       * .ironcorelabs.proto.DataControlPlatformHeader data_control = 2;
       */
      public Builder clearDataControl() {
        if (dataControlBuilder_ == null) {
          if (headerCase_ == 2) {
            headerCase_ = 0;
            header_ = null;
            onChanged();
          }
        } else {
          if (headerCase_ == 2) {
            headerCase_ = 0;
            header_ = null;
          }
          dataControlBuilder_.clear();
        }
        return this;
      }
      /**
       * .ironcorelabs.proto.DataControlPlatformHeader data_control = 2;
       */
      public com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.Builder getDataControlBuilder() {
        return getDataControlFieldBuilder().getBuilder();
      }
      /**
       * .ironcorelabs.proto.DataControlPlatformHeader data_control = 2;
       */
      @java.lang.Override
      public com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeaderOrBuilder getDataControlOrBuilder() {
        if ((headerCase_ == 2) && (dataControlBuilder_ != null)) {
          return dataControlBuilder_.getMessageOrBuilder();
        } else {
          if (headerCase_ == 2) {
            return (com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader) header_;
          }
          return com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.getDefaultInstance();
        }
      }
      /**
       * .ironcorelabs.proto.DataControlPlatformHeader data_control = 2;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader, com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.Builder, com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeaderOrBuilder> 
          getDataControlFieldBuilder() {
        if (dataControlBuilder_ == null) {
          if (!(headerCase_ == 2)) {
            header_ = com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.getDefaultInstance();
          }
          dataControlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader, com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader.Builder, com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeaderOrBuilder>(
                  (com.ironcorelabs.proto.DocumentHeader.DataControlPlatformHeader) header_,
                  getParentForChildren(),
                  isClean());
          header_ = null;
        }
        headerCase_ = 2;
        onChanged();;
        return dataControlBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader, com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.Builder, com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeaderOrBuilder> saasShieldBuilder_;
      /**
       * .ironcorelabs.proto.SaaSShieldHeader saas_shield = 3;
       * @return Whether the saasShield field is set.
       */
      @java.lang.Override
      public boolean hasSaasShield() {
        return headerCase_ == 3;
      }
      /**
       * .ironcorelabs.proto.SaaSShieldHeader saas_shield = 3;
       * @return The saasShield.
       */
      @java.lang.Override
      public com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader getSaasShield() {
        if (saasShieldBuilder_ == null) {
          if (headerCase_ == 3) {
            return (com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader) header_;
          }
          return com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.getDefaultInstance();
        } else {
          if (headerCase_ == 3) {
            return saasShieldBuilder_.getMessage();
          }
          return com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.getDefaultInstance();
        }
      }
      /**
       * .ironcorelabs.proto.SaaSShieldHeader saas_shield = 3;
       */
      public Builder setSaasShield(com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader value) {
        if (saasShieldBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          header_ = value;
          onChanged();
        } else {
          saasShieldBuilder_.setMessage(value);
        }
        headerCase_ = 3;
        return this;
      }
      /**
       * .ironcorelabs.proto.SaaSShieldHeader saas_shield = 3;
       */
      public Builder setSaasShield(
          com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.Builder builderForValue) {
        if (saasShieldBuilder_ == null) {
          header_ = builderForValue.build();
          onChanged();
        } else {
          saasShieldBuilder_.setMessage(builderForValue.build());
        }
        headerCase_ = 3;
        return this;
      }
      /**
       * .ironcorelabs.proto.SaaSShieldHeader saas_shield = 3;
       */
      public Builder mergeSaasShield(com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader value) {
        if (saasShieldBuilder_ == null) {
          if (headerCase_ == 3 &&
              header_ != com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.getDefaultInstance()) {
            header_ = com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.newBuilder((com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader) header_)
                .mergeFrom(value).buildPartial();
          } else {
            header_ = value;
          }
          onChanged();
        } else {
          if (headerCase_ == 3) {
            saasShieldBuilder_.mergeFrom(value);
          } else {
            saasShieldBuilder_.setMessage(value);
          }
        }
        headerCase_ = 3;
        return this;
      }
      /**
       * .ironcorelabs.proto.SaaSShieldHeader saas_shield = 3;
       */
      public Builder clearSaasShield() {
        if (saasShieldBuilder_ == null) {
          if (headerCase_ == 3) {
            headerCase_ = 0;
            header_ = null;
            onChanged();
          }
        } else {
          if (headerCase_ == 3) {
            headerCase_ = 0;
            header_ = null;
          }
          saasShieldBuilder_.clear();
        }
        return this;
      }
      /**
       * .ironcorelabs.proto.SaaSShieldHeader saas_shield = 3;
       */
      public com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.Builder getSaasShieldBuilder() {
        return getSaasShieldFieldBuilder().getBuilder();
      }
      /**
       * .ironcorelabs.proto.SaaSShieldHeader saas_shield = 3;
       */
      @java.lang.Override
      public com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeaderOrBuilder getSaasShieldOrBuilder() {
        if ((headerCase_ == 3) && (saasShieldBuilder_ != null)) {
          return saasShieldBuilder_.getMessageOrBuilder();
        } else {
          if (headerCase_ == 3) {
            return (com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader) header_;
          }
          return com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.getDefaultInstance();
        }
      }
      /**
       * .ironcorelabs.proto.SaaSShieldHeader saas_shield = 3;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader, com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.Builder, com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeaderOrBuilder> 
          getSaasShieldFieldBuilder() {
        if (saasShieldBuilder_ == null) {
          if (!(headerCase_ == 3)) {
            header_ = com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.getDefaultInstance();
          }
          saasShieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader, com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader.Builder, com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeaderOrBuilder>(
                  (com.ironcorelabs.proto.DocumentHeader.SaaSShieldHeader) header_,
                  getParentForChildren(),
                  isClean());
          header_ = null;
        }
        headerCase_ = 3;
        onChanged();;
        return saasShieldBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:ironcorelabs.proto.v3DocumentHeader)
    }

    // @@protoc_insertion_point(class_scope:ironcorelabs.proto.v3DocumentHeader)
    private static final com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader();
    }

    public static com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public v3DocumentHeader parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new v3DocumentHeader(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.ironcorelabs.proto.DocumentHeader.v3DocumentHeader getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_ironcorelabs_proto_DataControlPlatformHeader_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_ironcorelabs_proto_DataControlPlatformHeader_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_ironcorelabs_proto_SaaSShieldHeader_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_ironcorelabs_proto_SaaSShieldHeader_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_ironcorelabs_proto_v3DocumentHeader_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_ironcorelabs_proto_v3DocumentHeader_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\025document_header.proto\022\022ironcorelabs.pr" +
      "oto\"D\n\031DataControlPlatformHeader\022\023\n\013docu" +
      "ment_id\030\001 \001(\t\022\022\n\nsegment_id\030\002 \001(\004\"%\n\020Saa" +
      "SShieldHeader\022\021\n\ttenant_id\030\001 \001(\t\"\255\001\n\020v3D" +
      "ocumentHeader\022\013\n\003sig\030\001 \001(\014\022E\n\014data_contr" +
      "ol\030\002 \001(\0132-.ironcorelabs.proto.DataContro" +
      "lPlatformHeaderH\000\022;\n\013saas_shield\030\003 \001(\0132$" +
      ".ironcorelabs.proto.SaaSShieldHeaderH\000B\010" +
      "\n\006headerB\030\n\026com.ironcorelabs.protob\006prot" +
      "o3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_ironcorelabs_proto_DataControlPlatformHeader_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_ironcorelabs_proto_DataControlPlatformHeader_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_ironcorelabs_proto_DataControlPlatformHeader_descriptor,
        new java.lang.String[] { "DocumentId", "SegmentId", });
    internal_static_ironcorelabs_proto_SaaSShieldHeader_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_ironcorelabs_proto_SaaSShieldHeader_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_ironcorelabs_proto_SaaSShieldHeader_descriptor,
        new java.lang.String[] { "TenantId", });
    internal_static_ironcorelabs_proto_v3DocumentHeader_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_ironcorelabs_proto_v3DocumentHeader_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_ironcorelabs_proto_v3DocumentHeader_descriptor,
        new java.lang.String[] { "Sig", "DataControl", "SaasShield", "Header", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy