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

com.wire.messages.Mls Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: mls.proto

package com.wire.messages;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code mls.GroupInfoType}
   */
  public enum GroupInfoType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * PUBLIC_GROUP_STATE = 1;
     */
    PUBLIC_GROUP_STATE(1),
    /**
     * GROUP_INFO = 2;
     */
    GROUP_INFO(2),
    /**
     * GROUP_INFO_JWE = 3;
     */
    GROUP_INFO_JWE(3),
    ;

    /**
     * PUBLIC_GROUP_STATE = 1;
     */
    public static final int PUBLIC_GROUP_STATE_VALUE = 1;
    /**
     * GROUP_INFO = 2;
     */
    public static final int GROUP_INFO_VALUE = 2;
    /**
     * GROUP_INFO_JWE = 3;
     */
    public static final int GROUP_INFO_JWE_VALUE = 3;


    public final int getNumber() {
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static GroupInfoType valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static GroupInfoType forNumber(int value) {
      switch (value) {
        case 1: return PUBLIC_GROUP_STATE;
        case 2: return GROUP_INFO;
        case 3: return GROUP_INFO_JWE;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        GroupInfoType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public GroupInfoType findValueByNumber(int number) {
              return GroupInfoType.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.wire.messages.Mls.getDescriptor().getEnumTypes().get(0);
    }

    private static final GroupInfoType[] VALUES = values();

    public static GroupInfoType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private GroupInfoType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:mls.GroupInfoType)
  }

  /**
   * Protobuf enum {@code mls.RatchetTreeType}
   */
  public enum RatchetTreeType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * FULL = 1;
     */
    FULL(1),
    /**
     * DELTA = 2;
     */
    DELTA(2),
    /**
     * REFERENCE = 3;
     */
    REFERENCE(3),
    ;

    /**
     * FULL = 1;
     */
    public static final int FULL_VALUE = 1;
    /**
     * DELTA = 2;
     */
    public static final int DELTA_VALUE = 2;
    /**
     * REFERENCE = 3;
     */
    public static final int REFERENCE_VALUE = 3;


    public final int getNumber() {
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static RatchetTreeType valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static RatchetTreeType forNumber(int value) {
      switch (value) {
        case 1: return FULL;
        case 2: return DELTA;
        case 3: return REFERENCE;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        RatchetTreeType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public RatchetTreeType findValueByNumber(int number) {
              return RatchetTreeType.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.wire.messages.Mls.getDescriptor().getEnumTypes().get(1);
    }

    private static final RatchetTreeType[] VALUES = values();

    public static RatchetTreeType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private RatchetTreeType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:mls.RatchetTreeType)
  }

  public interface GroupInfoBundleOrBuilder extends
      // @@protoc_insertion_point(interface_extends:mls.GroupInfoBundle)
      com.google.protobuf.MessageOrBuilder {

    /**
     * required .mls.GroupInfoType group_info_type = 1;
     * @return Whether the groupInfoType field is set.
     */
    boolean hasGroupInfoType();
    /**
     * required .mls.GroupInfoType group_info_type = 1;
     * @return The groupInfoType.
     */
    com.wire.messages.Mls.GroupInfoType getGroupInfoType();

    /**
     * required .mls.RatchetTreeType ratchet_tree_type = 2;
     * @return Whether the ratchetTreeType field is set.
     */
    boolean hasRatchetTreeType();
    /**
     * required .mls.RatchetTreeType ratchet_tree_type = 2;
     * @return The ratchetTreeType.
     */
    com.wire.messages.Mls.RatchetTreeType getRatchetTreeType();

    /**
     * required bytes group_info = 3;
     * @return Whether the groupInfo field is set.
     */
    boolean hasGroupInfo();
    /**
     * required bytes group_info = 3;
     * @return The groupInfo.
     */
    com.google.protobuf.ByteString getGroupInfo();
  }
  /**
   * Protobuf type {@code mls.GroupInfoBundle}
   */
  public static final class GroupInfoBundle extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:mls.GroupInfoBundle)
      GroupInfoBundleOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use GroupInfoBundle.newBuilder() to construct.
    private GroupInfoBundle(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private GroupInfoBundle() {
      groupInfoType_ = 1;
      ratchetTreeType_ = 1;
      groupInfo_ = com.google.protobuf.ByteString.EMPTY;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.wire.messages.Mls.internal_static_mls_GroupInfoBundle_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.wire.messages.Mls.internal_static_mls_GroupInfoBundle_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.wire.messages.Mls.GroupInfoBundle.class, com.wire.messages.Mls.GroupInfoBundle.Builder.class);
    }

    private int bitField0_;
    public static final int GROUP_INFO_TYPE_FIELD_NUMBER = 1;
    private int groupInfoType_;
    /**
     * required .mls.GroupInfoType group_info_type = 1;
     * @return Whether the groupInfoType field is set.
     */
    @java.lang.Override public boolean hasGroupInfoType() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * required .mls.GroupInfoType group_info_type = 1;
     * @return The groupInfoType.
     */
    @java.lang.Override public com.wire.messages.Mls.GroupInfoType getGroupInfoType() {
      @SuppressWarnings("deprecation")
      com.wire.messages.Mls.GroupInfoType result = com.wire.messages.Mls.GroupInfoType.valueOf(groupInfoType_);
      return result == null ? com.wire.messages.Mls.GroupInfoType.PUBLIC_GROUP_STATE : result;
    }

    public static final int RATCHET_TREE_TYPE_FIELD_NUMBER = 2;
    private int ratchetTreeType_;
    /**
     * required .mls.RatchetTreeType ratchet_tree_type = 2;
     * @return Whether the ratchetTreeType field is set.
     */
    @java.lang.Override public boolean hasRatchetTreeType() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * required .mls.RatchetTreeType ratchet_tree_type = 2;
     * @return The ratchetTreeType.
     */
    @java.lang.Override public com.wire.messages.Mls.RatchetTreeType getRatchetTreeType() {
      @SuppressWarnings("deprecation")
      com.wire.messages.Mls.RatchetTreeType result = com.wire.messages.Mls.RatchetTreeType.valueOf(ratchetTreeType_);
      return result == null ? com.wire.messages.Mls.RatchetTreeType.FULL : result;
    }

    public static final int GROUP_INFO_FIELD_NUMBER = 3;
    private com.google.protobuf.ByteString groupInfo_;
    /**
     * required bytes group_info = 3;
     * @return Whether the groupInfo field is set.
     */
    @java.lang.Override
    public boolean hasGroupInfo() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * required bytes group_info = 3;
     * @return The groupInfo.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getGroupInfo() {
      return groupInfo_;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      if (!hasGroupInfoType()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRatchetTreeType()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasGroupInfo()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeEnum(1, groupInfoType_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeEnum(2, ratchetTreeType_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        output.writeBytes(3, groupInfo_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(1, groupInfoType_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(2, ratchetTreeType_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, groupInfo_);
      }
      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 com.wire.messages.Mls.GroupInfoBundle)) {
        return super.equals(obj);
      }
      com.wire.messages.Mls.GroupInfoBundle other = (com.wire.messages.Mls.GroupInfoBundle) obj;

      if (hasGroupInfoType() != other.hasGroupInfoType()) return false;
      if (hasGroupInfoType()) {
        if (groupInfoType_ != other.groupInfoType_) return false;
      }
      if (hasRatchetTreeType() != other.hasRatchetTreeType()) return false;
      if (hasRatchetTreeType()) {
        if (ratchetTreeType_ != other.ratchetTreeType_) return false;
      }
      if (hasGroupInfo() != other.hasGroupInfo()) return false;
      if (hasGroupInfo()) {
        if (!getGroupInfo()
            .equals(other.getGroupInfo())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasGroupInfoType()) {
        hash = (37 * hash) + GROUP_INFO_TYPE_FIELD_NUMBER;
        hash = (53 * hash) + groupInfoType_;
      }
      if (hasRatchetTreeType()) {
        hash = (37 * hash) + RATCHET_TREE_TYPE_FIELD_NUMBER;
        hash = (53 * hash) + ratchetTreeType_;
      }
      if (hasGroupInfo()) {
        hash = (37 * hash) + GROUP_INFO_FIELD_NUMBER;
        hash = (53 * hash) + getGroupInfo().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.wire.messages.Mls.GroupInfoBundle parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.wire.messages.Mls.GroupInfoBundle parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.wire.messages.Mls.GroupInfoBundle parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.wire.messages.Mls.GroupInfoBundle parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.wire.messages.Mls.GroupInfoBundle parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.wire.messages.Mls.GroupInfoBundle parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.wire.messages.Mls.GroupInfoBundle parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.wire.messages.Mls.GroupInfoBundle 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.wire.messages.Mls.GroupInfoBundle parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.wire.messages.Mls.GroupInfoBundle 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.wire.messages.Mls.GroupInfoBundle parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.wire.messages.Mls.GroupInfoBundle 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.wire.messages.Mls.GroupInfoBundle 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 mls.GroupInfoBundle}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:mls.GroupInfoBundle)
        com.wire.messages.Mls.GroupInfoBundleOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.wire.messages.Mls.internal_static_mls_GroupInfoBundle_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wire.messages.Mls.internal_static_mls_GroupInfoBundle_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wire.messages.Mls.GroupInfoBundle.class, com.wire.messages.Mls.GroupInfoBundle.Builder.class);
      }

      // Construct using com.wire.messages.Mls.GroupInfoBundle.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        groupInfoType_ = 1;
        bitField0_ = (bitField0_ & ~0x00000001);
        ratchetTreeType_ = 1;
        bitField0_ = (bitField0_ & ~0x00000002);
        groupInfo_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.wire.messages.Mls.internal_static_mls_GroupInfoBundle_descriptor;
      }

      @java.lang.Override
      public com.wire.messages.Mls.GroupInfoBundle getDefaultInstanceForType() {
        return com.wire.messages.Mls.GroupInfoBundle.getDefaultInstance();
      }

      @java.lang.Override
      public com.wire.messages.Mls.GroupInfoBundle build() {
        com.wire.messages.Mls.GroupInfoBundle result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.wire.messages.Mls.GroupInfoBundle buildPartial() {
        com.wire.messages.Mls.GroupInfoBundle result = new com.wire.messages.Mls.GroupInfoBundle(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          to_bitField0_ |= 0x00000001;
        }
        result.groupInfoType_ = groupInfoType_;
        if (((from_bitField0_ & 0x00000002) != 0)) {
          to_bitField0_ |= 0x00000002;
        }
        result.ratchetTreeType_ = ratchetTreeType_;
        if (((from_bitField0_ & 0x00000004) != 0)) {
          to_bitField0_ |= 0x00000004;
        }
        result.groupInfo_ = groupInfo_;
        result.bitField0_ = to_bitField0_;
        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.wire.messages.Mls.GroupInfoBundle) {
          return mergeFrom((com.wire.messages.Mls.GroupInfoBundle)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.wire.messages.Mls.GroupInfoBundle other) {
        if (other == com.wire.messages.Mls.GroupInfoBundle.getDefaultInstance()) return this;
        if (other.hasGroupInfoType()) {
          setGroupInfoType(other.getGroupInfoType());
        }
        if (other.hasRatchetTreeType()) {
          setRatchetTreeType(other.getRatchetTreeType());
        }
        if (other.hasGroupInfo()) {
          setGroupInfo(other.getGroupInfo());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        if (!hasGroupInfoType()) {
          return false;
        }
        if (!hasRatchetTreeType()) {
          return false;
        }
        if (!hasGroupInfo()) {
          return false;
        }
        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 8: {
                int tmpRaw = input.readEnum();
                com.wire.messages.Mls.GroupInfoType tmpValue =
                    com.wire.messages.Mls.GroupInfoType.forNumber(tmpRaw);
                if (tmpValue == null) {
                  mergeUnknownVarintField(1, tmpRaw);
                } else {
                  groupInfoType_ = tmpRaw;
                  bitField0_ |= 0x00000001;
                }
                break;
              } // case 8
              case 16: {
                int tmpRaw = input.readEnum();
                com.wire.messages.Mls.RatchetTreeType tmpValue =
                    com.wire.messages.Mls.RatchetTreeType.forNumber(tmpRaw);
                if (tmpValue == null) {
                  mergeUnknownVarintField(2, tmpRaw);
                } else {
                  ratchetTreeType_ = tmpRaw;
                  bitField0_ |= 0x00000002;
                }
                break;
              } // case 16
              case 26: {
                groupInfo_ = input.readBytes();
                bitField0_ |= 0x00000004;
                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 bitField0_;

      private int groupInfoType_ = 1;
      /**
       * required .mls.GroupInfoType group_info_type = 1;
       * @return Whether the groupInfoType field is set.
       */
      @java.lang.Override public boolean hasGroupInfoType() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * required .mls.GroupInfoType group_info_type = 1;
       * @return The groupInfoType.
       */
      @java.lang.Override
      public com.wire.messages.Mls.GroupInfoType getGroupInfoType() {
        @SuppressWarnings("deprecation")
        com.wire.messages.Mls.GroupInfoType result = com.wire.messages.Mls.GroupInfoType.valueOf(groupInfoType_);
        return result == null ? com.wire.messages.Mls.GroupInfoType.PUBLIC_GROUP_STATE : result;
      }
      /**
       * required .mls.GroupInfoType group_info_type = 1;
       * @param value The groupInfoType to set.
       * @return This builder for chaining.
       */
      public Builder setGroupInfoType(com.wire.messages.Mls.GroupInfoType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000001;
        groupInfoType_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * required .mls.GroupInfoType group_info_type = 1;
       * @return This builder for chaining.
       */
      public Builder clearGroupInfoType() {
        bitField0_ = (bitField0_ & ~0x00000001);
        groupInfoType_ = 1;
        onChanged();
        return this;
      }

      private int ratchetTreeType_ = 1;
      /**
       * required .mls.RatchetTreeType ratchet_tree_type = 2;
       * @return Whether the ratchetTreeType field is set.
       */
      @java.lang.Override public boolean hasRatchetTreeType() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * required .mls.RatchetTreeType ratchet_tree_type = 2;
       * @return The ratchetTreeType.
       */
      @java.lang.Override
      public com.wire.messages.Mls.RatchetTreeType getRatchetTreeType() {
        @SuppressWarnings("deprecation")
        com.wire.messages.Mls.RatchetTreeType result = com.wire.messages.Mls.RatchetTreeType.valueOf(ratchetTreeType_);
        return result == null ? com.wire.messages.Mls.RatchetTreeType.FULL : result;
      }
      /**
       * required .mls.RatchetTreeType ratchet_tree_type = 2;
       * @param value The ratchetTreeType to set.
       * @return This builder for chaining.
       */
      public Builder setRatchetTreeType(com.wire.messages.Mls.RatchetTreeType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000002;
        ratchetTreeType_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * required .mls.RatchetTreeType ratchet_tree_type = 2;
       * @return This builder for chaining.
       */
      public Builder clearRatchetTreeType() {
        bitField0_ = (bitField0_ & ~0x00000002);
        ratchetTreeType_ = 1;
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString groupInfo_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * required bytes group_info = 3;
       * @return Whether the groupInfo field is set.
       */
      @java.lang.Override
      public boolean hasGroupInfo() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * required bytes group_info = 3;
       * @return The groupInfo.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getGroupInfo() {
        return groupInfo_;
      }
      /**
       * required bytes group_info = 3;
       * @param value The groupInfo to set.
       * @return This builder for chaining.
       */
      public Builder setGroupInfo(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        groupInfo_ = value;
        onChanged();
        return this;
      }
      /**
       * required bytes group_info = 3;
       * @return This builder for chaining.
       */
      public Builder clearGroupInfo() {
        bitField0_ = (bitField0_ & ~0x00000004);
        groupInfo_ = getDefaultInstance().getGroupInfo();
        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:mls.GroupInfoBundle)
    }

    // @@protoc_insertion_point(class_scope:mls.GroupInfoBundle)
    private static final com.wire.messages.Mls.GroupInfoBundle DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.wire.messages.Mls.GroupInfoBundle();
    }

    public static com.wire.messages.Mls.GroupInfoBundle getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public GroupInfoBundle 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 parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public com.wire.messages.Mls.GroupInfoBundle getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface CommitBundleOrBuilder extends
      // @@protoc_insertion_point(interface_extends:mls.CommitBundle)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * MlsMessage containing an MlsPlaintext Commit
     * 
* * required bytes commit = 1; * @return Whether the commit field is set. */ boolean hasCommit(); /** *
     * MlsMessage containing an MlsPlaintext Commit
     * 
* * required bytes commit = 1; * @return The commit. */ com.google.protobuf.ByteString getCommit(); /** *
     * MlsMessage containing a Welcome
     * 
* * optional bytes welcome = 2; * @return Whether the welcome field is set. */ boolean hasWelcome(); /** *
     * MlsMessage containing a Welcome
     * 
* * optional bytes welcome = 2; * @return The welcome. */ com.google.protobuf.ByteString getWelcome(); /** * required .mls.GroupInfoBundle group_info_bundle = 3; * @return Whether the groupInfoBundle field is set. */ boolean hasGroupInfoBundle(); /** * required .mls.GroupInfoBundle group_info_bundle = 3; * @return The groupInfoBundle. */ com.wire.messages.Mls.GroupInfoBundle getGroupInfoBundle(); /** * required .mls.GroupInfoBundle group_info_bundle = 3; */ com.wire.messages.Mls.GroupInfoBundleOrBuilder getGroupInfoBundleOrBuilder(); } /** * Protobuf type {@code mls.CommitBundle} */ public static final class CommitBundle extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mls.CommitBundle) CommitBundleOrBuilder { private static final long serialVersionUID = 0L; // Use CommitBundle.newBuilder() to construct. private CommitBundle(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitBundle() { commit_ = com.google.protobuf.ByteString.EMPTY; welcome_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommitBundle(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wire.messages.Mls.internal_static_mls_CommitBundle_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Mls.internal_static_mls_CommitBundle_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Mls.CommitBundle.class, com.wire.messages.Mls.CommitBundle.Builder.class); } private int bitField0_; public static final int COMMIT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString commit_; /** *
     * MlsMessage containing an MlsPlaintext Commit
     * 
* * required bytes commit = 1; * @return Whether the commit field is set. */ @java.lang.Override public boolean hasCommit() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * MlsMessage containing an MlsPlaintext Commit
     * 
* * required bytes commit = 1; * @return The commit. */ @java.lang.Override public com.google.protobuf.ByteString getCommit() { return commit_; } public static final int WELCOME_FIELD_NUMBER = 2; private com.google.protobuf.ByteString welcome_; /** *
     * MlsMessage containing a Welcome
     * 
* * optional bytes welcome = 2; * @return Whether the welcome field is set. */ @java.lang.Override public boolean hasWelcome() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * MlsMessage containing a Welcome
     * 
* * optional bytes welcome = 2; * @return The welcome. */ @java.lang.Override public com.google.protobuf.ByteString getWelcome() { return welcome_; } public static final int GROUP_INFO_BUNDLE_FIELD_NUMBER = 3; private com.wire.messages.Mls.GroupInfoBundle groupInfoBundle_; /** * required .mls.GroupInfoBundle group_info_bundle = 3; * @return Whether the groupInfoBundle field is set. */ @java.lang.Override public boolean hasGroupInfoBundle() { return ((bitField0_ & 0x00000004) != 0); } /** * required .mls.GroupInfoBundle group_info_bundle = 3; * @return The groupInfoBundle. */ @java.lang.Override public com.wire.messages.Mls.GroupInfoBundle getGroupInfoBundle() { return groupInfoBundle_ == null ? com.wire.messages.Mls.GroupInfoBundle.getDefaultInstance() : groupInfoBundle_; } /** * required .mls.GroupInfoBundle group_info_bundle = 3; */ @java.lang.Override public com.wire.messages.Mls.GroupInfoBundleOrBuilder getGroupInfoBundleOrBuilder() { return groupInfoBundle_ == null ? com.wire.messages.Mls.GroupInfoBundle.getDefaultInstance() : groupInfoBundle_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasCommit()) { memoizedIsInitialized = 0; return false; } if (!hasGroupInfoBundle()) { memoizedIsInitialized = 0; return false; } if (!getGroupInfoBundle().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeBytes(1, commit_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, welcome_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getGroupInfoBundle()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, commit_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, welcome_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getGroupInfoBundle()); } 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 com.wire.messages.Mls.CommitBundle)) { return super.equals(obj); } com.wire.messages.Mls.CommitBundle other = (com.wire.messages.Mls.CommitBundle) obj; if (hasCommit() != other.hasCommit()) return false; if (hasCommit()) { if (!getCommit() .equals(other.getCommit())) return false; } if (hasWelcome() != other.hasWelcome()) return false; if (hasWelcome()) { if (!getWelcome() .equals(other.getWelcome())) return false; } if (hasGroupInfoBundle() != other.hasGroupInfoBundle()) return false; if (hasGroupInfoBundle()) { if (!getGroupInfoBundle() .equals(other.getGroupInfoBundle())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCommit()) { hash = (37 * hash) + COMMIT_FIELD_NUMBER; hash = (53 * hash) + getCommit().hashCode(); } if (hasWelcome()) { hash = (37 * hash) + WELCOME_FIELD_NUMBER; hash = (53 * hash) + getWelcome().hashCode(); } if (hasGroupInfoBundle()) { hash = (37 * hash) + GROUP_INFO_BUNDLE_FIELD_NUMBER; hash = (53 * hash) + getGroupInfoBundle().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wire.messages.Mls.CommitBundle parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Mls.CommitBundle parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Mls.CommitBundle parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Mls.CommitBundle parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Mls.CommitBundle parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Mls.CommitBundle parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Mls.CommitBundle parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Mls.CommitBundle 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.wire.messages.Mls.CommitBundle parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wire.messages.Mls.CommitBundle 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.wire.messages.Mls.CommitBundle parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Mls.CommitBundle 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.wire.messages.Mls.CommitBundle 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 mls.CommitBundle} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mls.CommitBundle) com.wire.messages.Mls.CommitBundleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wire.messages.Mls.internal_static_mls_CommitBundle_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Mls.internal_static_mls_CommitBundle_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Mls.CommitBundle.class, com.wire.messages.Mls.CommitBundle.Builder.class); } // Construct using com.wire.messages.Mls.CommitBundle.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getGroupInfoBundleFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); commit_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); welcome_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); if (groupInfoBundleBuilder_ == null) { groupInfoBundle_ = null; } else { groupInfoBundleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wire.messages.Mls.internal_static_mls_CommitBundle_descriptor; } @java.lang.Override public com.wire.messages.Mls.CommitBundle getDefaultInstanceForType() { return com.wire.messages.Mls.CommitBundle.getDefaultInstance(); } @java.lang.Override public com.wire.messages.Mls.CommitBundle build() { com.wire.messages.Mls.CommitBundle result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wire.messages.Mls.CommitBundle buildPartial() { com.wire.messages.Mls.CommitBundle result = new com.wire.messages.Mls.CommitBundle(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.commit_ = commit_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.welcome_ = welcome_; if (((from_bitField0_ & 0x00000004) != 0)) { if (groupInfoBundleBuilder_ == null) { result.groupInfoBundle_ = groupInfoBundle_; } else { result.groupInfoBundle_ = groupInfoBundleBuilder_.build(); } to_bitField0_ |= 0x00000004; } result.bitField0_ = to_bitField0_; 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.wire.messages.Mls.CommitBundle) { return mergeFrom((com.wire.messages.Mls.CommitBundle)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wire.messages.Mls.CommitBundle other) { if (other == com.wire.messages.Mls.CommitBundle.getDefaultInstance()) return this; if (other.hasCommit()) { setCommit(other.getCommit()); } if (other.hasWelcome()) { setWelcome(other.getWelcome()); } if (other.hasGroupInfoBundle()) { mergeGroupInfoBundle(other.getGroupInfoBundle()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasCommit()) { return false; } if (!hasGroupInfoBundle()) { return false; } if (!getGroupInfoBundle().isInitialized()) { return false; } 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: { commit_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { welcome_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getGroupInfoBundleFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; 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 bitField0_; private com.google.protobuf.ByteString commit_ = com.google.protobuf.ByteString.EMPTY; /** *
       * MlsMessage containing an MlsPlaintext Commit
       * 
* * required bytes commit = 1; * @return Whether the commit field is set. */ @java.lang.Override public boolean hasCommit() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * MlsMessage containing an MlsPlaintext Commit
       * 
* * required bytes commit = 1; * @return The commit. */ @java.lang.Override public com.google.protobuf.ByteString getCommit() { return commit_; } /** *
       * MlsMessage containing an MlsPlaintext Commit
       * 
* * required bytes commit = 1; * @param value The commit to set. * @return This builder for chaining. */ public Builder setCommit(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; commit_ = value; onChanged(); return this; } /** *
       * MlsMessage containing an MlsPlaintext Commit
       * 
* * required bytes commit = 1; * @return This builder for chaining. */ public Builder clearCommit() { bitField0_ = (bitField0_ & ~0x00000001); commit_ = getDefaultInstance().getCommit(); onChanged(); return this; } private com.google.protobuf.ByteString welcome_ = com.google.protobuf.ByteString.EMPTY; /** *
       * MlsMessage containing a Welcome
       * 
* * optional bytes welcome = 2; * @return Whether the welcome field is set. */ @java.lang.Override public boolean hasWelcome() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * MlsMessage containing a Welcome
       * 
* * optional bytes welcome = 2; * @return The welcome. */ @java.lang.Override public com.google.protobuf.ByteString getWelcome() { return welcome_; } /** *
       * MlsMessage containing a Welcome
       * 
* * optional bytes welcome = 2; * @param value The welcome to set. * @return This builder for chaining. */ public Builder setWelcome(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; welcome_ = value; onChanged(); return this; } /** *
       * MlsMessage containing a Welcome
       * 
* * optional bytes welcome = 2; * @return This builder for chaining. */ public Builder clearWelcome() { bitField0_ = (bitField0_ & ~0x00000002); welcome_ = getDefaultInstance().getWelcome(); onChanged(); return this; } private com.wire.messages.Mls.GroupInfoBundle groupInfoBundle_; private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Mls.GroupInfoBundle, com.wire.messages.Mls.GroupInfoBundle.Builder, com.wire.messages.Mls.GroupInfoBundleOrBuilder> groupInfoBundleBuilder_; /** * required .mls.GroupInfoBundle group_info_bundle = 3; * @return Whether the groupInfoBundle field is set. */ public boolean hasGroupInfoBundle() { return ((bitField0_ & 0x00000004) != 0); } /** * required .mls.GroupInfoBundle group_info_bundle = 3; * @return The groupInfoBundle. */ public com.wire.messages.Mls.GroupInfoBundle getGroupInfoBundle() { if (groupInfoBundleBuilder_ == null) { return groupInfoBundle_ == null ? com.wire.messages.Mls.GroupInfoBundle.getDefaultInstance() : groupInfoBundle_; } else { return groupInfoBundleBuilder_.getMessage(); } } /** * required .mls.GroupInfoBundle group_info_bundle = 3; */ public Builder setGroupInfoBundle(com.wire.messages.Mls.GroupInfoBundle value) { if (groupInfoBundleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } groupInfoBundle_ = value; onChanged(); } else { groupInfoBundleBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * required .mls.GroupInfoBundle group_info_bundle = 3; */ public Builder setGroupInfoBundle( com.wire.messages.Mls.GroupInfoBundle.Builder builderForValue) { if (groupInfoBundleBuilder_ == null) { groupInfoBundle_ = builderForValue.build(); onChanged(); } else { groupInfoBundleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * required .mls.GroupInfoBundle group_info_bundle = 3; */ public Builder mergeGroupInfoBundle(com.wire.messages.Mls.GroupInfoBundle value) { if (groupInfoBundleBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && groupInfoBundle_ != null && groupInfoBundle_ != com.wire.messages.Mls.GroupInfoBundle.getDefaultInstance()) { groupInfoBundle_ = com.wire.messages.Mls.GroupInfoBundle.newBuilder(groupInfoBundle_).mergeFrom(value).buildPartial(); } else { groupInfoBundle_ = value; } onChanged(); } else { groupInfoBundleBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * required .mls.GroupInfoBundle group_info_bundle = 3; */ public Builder clearGroupInfoBundle() { if (groupInfoBundleBuilder_ == null) { groupInfoBundle_ = null; onChanged(); } else { groupInfoBundleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * required .mls.GroupInfoBundle group_info_bundle = 3; */ public com.wire.messages.Mls.GroupInfoBundle.Builder getGroupInfoBundleBuilder() { bitField0_ |= 0x00000004; onChanged(); return getGroupInfoBundleFieldBuilder().getBuilder(); } /** * required .mls.GroupInfoBundle group_info_bundle = 3; */ public com.wire.messages.Mls.GroupInfoBundleOrBuilder getGroupInfoBundleOrBuilder() { if (groupInfoBundleBuilder_ != null) { return groupInfoBundleBuilder_.getMessageOrBuilder(); } else { return groupInfoBundle_ == null ? com.wire.messages.Mls.GroupInfoBundle.getDefaultInstance() : groupInfoBundle_; } } /** * required .mls.GroupInfoBundle group_info_bundle = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Mls.GroupInfoBundle, com.wire.messages.Mls.GroupInfoBundle.Builder, com.wire.messages.Mls.GroupInfoBundleOrBuilder> getGroupInfoBundleFieldBuilder() { if (groupInfoBundleBuilder_ == null) { groupInfoBundleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Mls.GroupInfoBundle, com.wire.messages.Mls.GroupInfoBundle.Builder, com.wire.messages.Mls.GroupInfoBundleOrBuilder>( getGroupInfoBundle(), getParentForChildren(), isClean()); groupInfoBundle_ = null; } return groupInfoBundleBuilder_; } @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:mls.CommitBundle) } // @@protoc_insertion_point(class_scope:mls.CommitBundle) private static final com.wire.messages.Mls.CommitBundle DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wire.messages.Mls.CommitBundle(); } public static com.wire.messages.Mls.CommitBundle getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommitBundle 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 parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wire.messages.Mls.CommitBundle getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_mls_GroupInfoBundle_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_mls_GroupInfoBundle_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mls_CommitBundle_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_mls_CommitBundle_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\tmls.proto\022\003mls\"\203\001\n\017GroupInfoBundle\022+\n\017" + "group_info_type\030\001 \002(\0162\022.mls.GroupInfoTyp" + "e\022/\n\021ratchet_tree_type\030\002 \002(\0162\024.mls.Ratch" + "etTreeType\022\022\n\ngroup_info\030\003 \002(\014\"`\n\014Commit" + "Bundle\022\016\n\006commit\030\001 \002(\014\022\017\n\007welcome\030\002 \001(\014\022" + "/\n\021group_info_bundle\030\003 \002(\0132\024.mls.GroupIn" + "foBundle*K\n\rGroupInfoType\022\026\n\022PUBLIC_GROU" + "P_STATE\020\001\022\016\n\nGROUP_INFO\020\002\022\022\n\016GROUP_INFO_" + "JWE\020\003*5\n\017RatchetTreeType\022\010\n\004FULL\020\001\022\t\n\005DE" + "LTA\020\002\022\r\n\tREFERENCE\020\003B\032\n\021com.wire.message" + "sB\003MlsH\003" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_mls_GroupInfoBundle_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_mls_GroupInfoBundle_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_mls_GroupInfoBundle_descriptor, new java.lang.String[] { "GroupInfoType", "RatchetTreeType", "GroupInfo", }); internal_static_mls_CommitBundle_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_mls_CommitBundle_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_mls_CommitBundle_descriptor, new java.lang.String[] { "Commit", "Welcome", "GroupInfoBundle", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy