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

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

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

package com.wire.messages;

public final class Otr {
  private Otr() {}
  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 proteus.Priority}
   */
  public enum Priority
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * 
     * 0 is reserved for errors
     * 
* * LOW_PRIORITY = 1; */ LOW_PRIORITY(1), /** * HIGH_PRIORITY = 2; */ HIGH_PRIORITY(2), ; /** *
     * 0 is reserved for errors
     * 
* * LOW_PRIORITY = 1; */ public static final int LOW_PRIORITY_VALUE = 1; /** * HIGH_PRIORITY = 2; */ public static final int HIGH_PRIORITY_VALUE = 2; 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 Priority 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 Priority forNumber(int value) { switch (value) { case 1: return LOW_PRIORITY; case 2: return HIGH_PRIORITY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Priority> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Priority findValueByNumber(int number) { return Priority.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.Otr.getDescriptor().getEnumTypes().get(0); } private static final Priority[] VALUES = values(); public static Priority 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 Priority(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proteus.Priority) } public interface UserIdOrBuilder extends // @@protoc_insertion_point(interface_extends:proteus.UserId) com.google.protobuf.MessageOrBuilder { /** * required bytes uuid = 1; * @return Whether the uuid field is set. */ boolean hasUuid(); /** * required bytes uuid = 1; * @return The uuid. */ com.google.protobuf.ByteString getUuid(); } /** * Protobuf type {@code proteus.UserId} */ public static final class UserId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proteus.UserId) UserIdOrBuilder { private static final long serialVersionUID = 0L; // Use UserId.newBuilder() to construct. private UserId(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UserId() { uuid_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UserId(); } @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.Otr.internal_static_proteus_UserId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_UserId_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.UserId.class, com.wire.messages.Otr.UserId.Builder.class); } private int bitField0_; public static final int UUID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString uuid_; /** * required bytes uuid = 1; * @return Whether the uuid field is set. */ @java.lang.Override public boolean hasUuid() { return ((bitField0_ & 0x00000001) != 0); } /** * required bytes uuid = 1; * @return The uuid. */ @java.lang.Override public com.google.protobuf.ByteString getUuid() { return uuid_; } 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 (!hasUuid()) { 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, uuid_); } 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, uuid_); } 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.Otr.UserId)) { return super.equals(obj); } com.wire.messages.Otr.UserId other = (com.wire.messages.Otr.UserId) obj; if (hasUuid() != other.hasUuid()) return false; if (hasUuid()) { if (!getUuid() .equals(other.getUuid())) 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 (hasUuid()) { hash = (37 * hash) + UUID_FIELD_NUMBER; hash = (53 * hash) + getUuid().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wire.messages.Otr.UserId parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.UserId 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.Otr.UserId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.UserId 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.Otr.UserId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.UserId parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Otr.UserId parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.UserId 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.Otr.UserId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wire.messages.Otr.UserId 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.Otr.UserId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.UserId 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.Otr.UserId 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 proteus.UserId} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proteus.UserId) com.wire.messages.Otr.UserIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wire.messages.Otr.internal_static_proteus_UserId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_UserId_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.UserId.class, com.wire.messages.Otr.UserId.Builder.class); } // Construct using com.wire.messages.Otr.UserId.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); uuid_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wire.messages.Otr.internal_static_proteus_UserId_descriptor; } @java.lang.Override public com.wire.messages.Otr.UserId getDefaultInstanceForType() { return com.wire.messages.Otr.UserId.getDefaultInstance(); } @java.lang.Override public com.wire.messages.Otr.UserId build() { com.wire.messages.Otr.UserId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wire.messages.Otr.UserId buildPartial() { com.wire.messages.Otr.UserId result = new com.wire.messages.Otr.UserId(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.uuid_ = uuid_; 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.Otr.UserId) { return mergeFrom((com.wire.messages.Otr.UserId)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wire.messages.Otr.UserId other) { if (other == com.wire.messages.Otr.UserId.getDefaultInstance()) return this; if (other.hasUuid()) { setUuid(other.getUuid()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasUuid()) { 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: { uuid_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 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 uuid_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes uuid = 1; * @return Whether the uuid field is set. */ @java.lang.Override public boolean hasUuid() { return ((bitField0_ & 0x00000001) != 0); } /** * required bytes uuid = 1; * @return The uuid. */ @java.lang.Override public com.google.protobuf.ByteString getUuid() { return uuid_; } /** * required bytes uuid = 1; * @param value The uuid to set. * @return This builder for chaining. */ public Builder setUuid(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uuid_ = value; onChanged(); return this; } /** * required bytes uuid = 1; * @return This builder for chaining. */ public Builder clearUuid() { bitField0_ = (bitField0_ & ~0x00000001); uuid_ = getDefaultInstance().getUuid(); 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:proteus.UserId) } // @@protoc_insertion_point(class_scope:proteus.UserId) private static final com.wire.messages.Otr.UserId DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wire.messages.Otr.UserId(); } public static com.wire.messages.Otr.UserId getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UserId 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.Otr.UserId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QualifiedUserIdOrBuilder extends // @@protoc_insertion_point(interface_extends:proteus.QualifiedUserId) com.google.protobuf.MessageOrBuilder { /** * required string id = 1; * @return Whether the id field is set. */ boolean hasId(); /** * required string id = 1; * @return The id. */ java.lang.String getId(); /** * required string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * required string domain = 2; * @return Whether the domain field is set. */ boolean hasDomain(); /** * required string domain = 2; * @return The domain. */ java.lang.String getDomain(); /** * required string domain = 2; * @return The bytes for domain. */ com.google.protobuf.ByteString getDomainBytes(); } /** * Protobuf type {@code proteus.QualifiedUserId} */ public static final class QualifiedUserId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proteus.QualifiedUserId) QualifiedUserIdOrBuilder { private static final long serialVersionUID = 0L; // Use QualifiedUserId.newBuilder() to construct. private QualifiedUserId(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QualifiedUserId() { id_ = ""; domain_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QualifiedUserId(); } @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.Otr.internal_static_proteus_QualifiedUserId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_QualifiedUserId_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.QualifiedUserId.class, com.wire.messages.Otr.QualifiedUserId.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * required string id = 1; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * required string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { id_ = s; } return s; } } /** * required string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOMAIN_FIELD_NUMBER = 2; private volatile java.lang.Object domain_; /** * required string domain = 2; * @return Whether the domain field is set. */ @java.lang.Override public boolean hasDomain() { return ((bitField0_ & 0x00000002) != 0); } /** * required string domain = 2; * @return The domain. */ @java.lang.Override public java.lang.String getDomain() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { domain_ = s; } return s; } } /** * required string domain = 2; * @return The bytes for domain. */ @java.lang.Override public com.google.protobuf.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = 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; if (!hasId()) { memoizedIsInitialized = 0; return false; } if (!hasDomain()) { 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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); } 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.GeneratedMessageV3.computeStringSize(1, id_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); } 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.Otr.QualifiedUserId)) { return super.equals(obj); } com.wire.messages.Otr.QualifiedUserId other = (com.wire.messages.Otr.QualifiedUserId) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (!getId() .equals(other.getId())) return false; } if (hasDomain() != other.hasDomain()) return false; if (hasDomain()) { if (!getDomain() .equals(other.getDomain())) 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 (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasDomain()) { hash = (37 * hash) + DOMAIN_FIELD_NUMBER; hash = (53 * hash) + getDomain().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wire.messages.Otr.QualifiedUserId parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.QualifiedUserId 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.Otr.QualifiedUserId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.QualifiedUserId 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.Otr.QualifiedUserId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.QualifiedUserId parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Otr.QualifiedUserId parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.QualifiedUserId 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.Otr.QualifiedUserId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wire.messages.Otr.QualifiedUserId 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.Otr.QualifiedUserId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.QualifiedUserId 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.Otr.QualifiedUserId 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 proteus.QualifiedUserId} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proteus.QualifiedUserId) com.wire.messages.Otr.QualifiedUserIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wire.messages.Otr.internal_static_proteus_QualifiedUserId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_QualifiedUserId_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.QualifiedUserId.class, com.wire.messages.Otr.QualifiedUserId.Builder.class); } // Construct using com.wire.messages.Otr.QualifiedUserId.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; bitField0_ = (bitField0_ & ~0x00000001); domain_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wire.messages.Otr.internal_static_proteus_QualifiedUserId_descriptor; } @java.lang.Override public com.wire.messages.Otr.QualifiedUserId getDefaultInstanceForType() { return com.wire.messages.Otr.QualifiedUserId.getDefaultInstance(); } @java.lang.Override public com.wire.messages.Otr.QualifiedUserId build() { com.wire.messages.Otr.QualifiedUserId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wire.messages.Otr.QualifiedUserId buildPartial() { com.wire.messages.Otr.QualifiedUserId result = new com.wire.messages.Otr.QualifiedUserId(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.domain_ = domain_; 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.Otr.QualifiedUserId) { return mergeFrom((com.wire.messages.Otr.QualifiedUserId)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wire.messages.Otr.QualifiedUserId other) { if (other == com.wire.messages.Otr.QualifiedUserId.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasDomain()) { bitField0_ |= 0x00000002; domain_ = other.domain_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasId()) { return false; } if (!hasDomain()) { 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: { id_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { domain_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * required string id = 1; * @return Whether the id field is set. */ public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * required string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * required string id = 1; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * required string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } private java.lang.Object domain_ = ""; /** * required string domain = 2; * @return Whether the domain field is set. */ public boolean hasDomain() { return ((bitField0_ & 0x00000002) != 0); } /** * required string domain = 2; * @return The domain. */ public java.lang.String getDomain() { java.lang.Object ref = domain_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { domain_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string domain = 2; * @return The bytes for domain. */ public com.google.protobuf.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string domain = 2; * @param value The domain to set. * @return This builder for chaining. */ public Builder setDomain( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; domain_ = value; onChanged(); return this; } /** * required string domain = 2; * @return This builder for chaining. */ public Builder clearDomain() { bitField0_ = (bitField0_ & ~0x00000002); domain_ = getDefaultInstance().getDomain(); onChanged(); return this; } /** * required string domain = 2; * @param value The bytes for domain to set. * @return This builder for chaining. */ public Builder setDomainBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; domain_ = 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:proteus.QualifiedUserId) } // @@protoc_insertion_point(class_scope:proteus.QualifiedUserId) private static final com.wire.messages.Otr.QualifiedUserId DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wire.messages.Otr.QualifiedUserId(); } public static com.wire.messages.Otr.QualifiedUserId getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QualifiedUserId 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.Otr.QualifiedUserId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClientIdOrBuilder extends // @@protoc_insertion_point(interface_extends:proteus.ClientId) com.google.protobuf.MessageOrBuilder { /** * required uint64 client = 1; * @return Whether the client field is set. */ boolean hasClient(); /** * required uint64 client = 1; * @return The client. */ long getClient(); } /** * Protobuf type {@code proteus.ClientId} */ public static final class ClientId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proteus.ClientId) ClientIdOrBuilder { private static final long serialVersionUID = 0L; // Use ClientId.newBuilder() to construct. private ClientId(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClientId() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClientId(); } @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.Otr.internal_static_proteus_ClientId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_ClientId_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.ClientId.class, com.wire.messages.Otr.ClientId.Builder.class); } private int bitField0_; public static final int CLIENT_FIELD_NUMBER = 1; private long client_; /** * required uint64 client = 1; * @return Whether the client field is set. */ @java.lang.Override public boolean hasClient() { return ((bitField0_ & 0x00000001) != 0); } /** * required uint64 client = 1; * @return The client. */ @java.lang.Override public long getClient() { return client_; } 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 (!hasClient()) { 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.writeUInt64(1, client_); } 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 .computeUInt64Size(1, client_); } 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.Otr.ClientId)) { return super.equals(obj); } com.wire.messages.Otr.ClientId other = (com.wire.messages.Otr.ClientId) obj; if (hasClient() != other.hasClient()) return false; if (hasClient()) { if (getClient() != other.getClient()) 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 (hasClient()) { hash = (37 * hash) + CLIENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getClient()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wire.messages.Otr.ClientId parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientId 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.Otr.ClientId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientId 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.Otr.ClientId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientId parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Otr.ClientId parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientId 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.Otr.ClientId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientId 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.Otr.ClientId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientId 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.Otr.ClientId 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 proteus.ClientId} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proteus.ClientId) com.wire.messages.Otr.ClientIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wire.messages.Otr.internal_static_proteus_ClientId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_ClientId_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.ClientId.class, com.wire.messages.Otr.ClientId.Builder.class); } // Construct using com.wire.messages.Otr.ClientId.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); client_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wire.messages.Otr.internal_static_proteus_ClientId_descriptor; } @java.lang.Override public com.wire.messages.Otr.ClientId getDefaultInstanceForType() { return com.wire.messages.Otr.ClientId.getDefaultInstance(); } @java.lang.Override public com.wire.messages.Otr.ClientId build() { com.wire.messages.Otr.ClientId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wire.messages.Otr.ClientId buildPartial() { com.wire.messages.Otr.ClientId result = new com.wire.messages.Otr.ClientId(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.client_ = client_; to_bitField0_ |= 0x00000001; } 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.Otr.ClientId) { return mergeFrom((com.wire.messages.Otr.ClientId)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wire.messages.Otr.ClientId other) { if (other == com.wire.messages.Otr.ClientId.getDefaultInstance()) return this; if (other.hasClient()) { setClient(other.getClient()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasClient()) { 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: { client_ = input.readUInt64(); bitField0_ |= 0x00000001; break; } // case 8 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 long client_ ; /** * required uint64 client = 1; * @return Whether the client field is set. */ @java.lang.Override public boolean hasClient() { return ((bitField0_ & 0x00000001) != 0); } /** * required uint64 client = 1; * @return The client. */ @java.lang.Override public long getClient() { return client_; } /** * required uint64 client = 1; * @param value The client to set. * @return This builder for chaining. */ public Builder setClient(long value) { bitField0_ |= 0x00000001; client_ = value; onChanged(); return this; } /** * required uint64 client = 1; * @return This builder for chaining. */ public Builder clearClient() { bitField0_ = (bitField0_ & ~0x00000001); client_ = 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:proteus.ClientId) } // @@protoc_insertion_point(class_scope:proteus.ClientId) private static final com.wire.messages.Otr.ClientId DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wire.messages.Otr.ClientId(); } public static com.wire.messages.Otr.ClientId getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClientId 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.Otr.ClientId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClientEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:proteus.ClientEntry) com.google.protobuf.MessageOrBuilder { /** * required .proteus.ClientId client = 1; * @return Whether the client field is set. */ boolean hasClient(); /** * required .proteus.ClientId client = 1; * @return The client. */ com.wire.messages.Otr.ClientId getClient(); /** * required .proteus.ClientId client = 1; */ com.wire.messages.Otr.ClientIdOrBuilder getClientOrBuilder(); /** * required bytes text = 2; * @return Whether the text field is set. */ boolean hasText(); /** * required bytes text = 2; * @return The text. */ com.google.protobuf.ByteString getText(); } /** * Protobuf type {@code proteus.ClientEntry} */ public static final class ClientEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proteus.ClientEntry) ClientEntryOrBuilder { private static final long serialVersionUID = 0L; // Use ClientEntry.newBuilder() to construct. private ClientEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClientEntry() { text_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClientEntry(); } @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.Otr.internal_static_proteus_ClientEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_ClientEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.ClientEntry.class, com.wire.messages.Otr.ClientEntry.Builder.class); } private int bitField0_; public static final int CLIENT_FIELD_NUMBER = 1; private com.wire.messages.Otr.ClientId client_; /** * required .proteus.ClientId client = 1; * @return Whether the client field is set. */ @java.lang.Override public boolean hasClient() { return ((bitField0_ & 0x00000001) != 0); } /** * required .proteus.ClientId client = 1; * @return The client. */ @java.lang.Override public com.wire.messages.Otr.ClientId getClient() { return client_ == null ? com.wire.messages.Otr.ClientId.getDefaultInstance() : client_; } /** * required .proteus.ClientId client = 1; */ @java.lang.Override public com.wire.messages.Otr.ClientIdOrBuilder getClientOrBuilder() { return client_ == null ? com.wire.messages.Otr.ClientId.getDefaultInstance() : client_; } public static final int TEXT_FIELD_NUMBER = 2; private com.google.protobuf.ByteString text_; /** * required bytes text = 2; * @return Whether the text field is set. */ @java.lang.Override public boolean hasText() { return ((bitField0_ & 0x00000002) != 0); } /** * required bytes text = 2; * @return The text. */ @java.lang.Override public com.google.protobuf.ByteString getText() { return text_; } 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 (!hasClient()) { memoizedIsInitialized = 0; return false; } if (!hasText()) { memoizedIsInitialized = 0; return false; } if (!getClient().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.writeMessage(1, getClient()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, text_); } 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 .computeMessageSize(1, getClient()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, text_); } 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.Otr.ClientEntry)) { return super.equals(obj); } com.wire.messages.Otr.ClientEntry other = (com.wire.messages.Otr.ClientEntry) obj; if (hasClient() != other.hasClient()) return false; if (hasClient()) { if (!getClient() .equals(other.getClient())) return false; } if (hasText() != other.hasText()) return false; if (hasText()) { if (!getText() .equals(other.getText())) 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 (hasClient()) { hash = (37 * hash) + CLIENT_FIELD_NUMBER; hash = (53 * hash) + getClient().hashCode(); } if (hasText()) { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wire.messages.Otr.ClientEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientEntry 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.Otr.ClientEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientEntry 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.Otr.ClientEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Otr.ClientEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientEntry 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.Otr.ClientEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientEntry 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.Otr.ClientEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientEntry 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.Otr.ClientEntry 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 proteus.ClientEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proteus.ClientEntry) com.wire.messages.Otr.ClientEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wire.messages.Otr.internal_static_proteus_ClientEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_ClientEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.ClientEntry.class, com.wire.messages.Otr.ClientEntry.Builder.class); } // Construct using com.wire.messages.Otr.ClientEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getClientFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (clientBuilder_ == null) { client_ = null; } else { clientBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); text_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wire.messages.Otr.internal_static_proteus_ClientEntry_descriptor; } @java.lang.Override public com.wire.messages.Otr.ClientEntry getDefaultInstanceForType() { return com.wire.messages.Otr.ClientEntry.getDefaultInstance(); } @java.lang.Override public com.wire.messages.Otr.ClientEntry build() { com.wire.messages.Otr.ClientEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wire.messages.Otr.ClientEntry buildPartial() { com.wire.messages.Otr.ClientEntry result = new com.wire.messages.Otr.ClientEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (clientBuilder_ == null) { result.client_ = client_; } else { result.client_ = clientBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.text_ = text_; 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.Otr.ClientEntry) { return mergeFrom((com.wire.messages.Otr.ClientEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wire.messages.Otr.ClientEntry other) { if (other == com.wire.messages.Otr.ClientEntry.getDefaultInstance()) return this; if (other.hasClient()) { mergeClient(other.getClient()); } if (other.hasText()) { setText(other.getText()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasClient()) { return false; } if (!hasText()) { return false; } if (!getClient().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: { input.readMessage( getClientFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { text_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 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.wire.messages.Otr.ClientId client_; private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientId, com.wire.messages.Otr.ClientId.Builder, com.wire.messages.Otr.ClientIdOrBuilder> clientBuilder_; /** * required .proteus.ClientId client = 1; * @return Whether the client field is set. */ public boolean hasClient() { return ((bitField0_ & 0x00000001) != 0); } /** * required .proteus.ClientId client = 1; * @return The client. */ public com.wire.messages.Otr.ClientId getClient() { if (clientBuilder_ == null) { return client_ == null ? com.wire.messages.Otr.ClientId.getDefaultInstance() : client_; } else { return clientBuilder_.getMessage(); } } /** * required .proteus.ClientId client = 1; */ public Builder setClient(com.wire.messages.Otr.ClientId value) { if (clientBuilder_ == null) { if (value == null) { throw new NullPointerException(); } client_ = value; onChanged(); } else { clientBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .proteus.ClientId client = 1; */ public Builder setClient( com.wire.messages.Otr.ClientId.Builder builderForValue) { if (clientBuilder_ == null) { client_ = builderForValue.build(); onChanged(); } else { clientBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .proteus.ClientId client = 1; */ public Builder mergeClient(com.wire.messages.Otr.ClientId value) { if (clientBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && client_ != null && client_ != com.wire.messages.Otr.ClientId.getDefaultInstance()) { client_ = com.wire.messages.Otr.ClientId.newBuilder(client_).mergeFrom(value).buildPartial(); } else { client_ = value; } onChanged(); } else { clientBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .proteus.ClientId client = 1; */ public Builder clearClient() { if (clientBuilder_ == null) { client_ = null; onChanged(); } else { clientBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .proteus.ClientId client = 1; */ public com.wire.messages.Otr.ClientId.Builder getClientBuilder() { bitField0_ |= 0x00000001; onChanged(); return getClientFieldBuilder().getBuilder(); } /** * required .proteus.ClientId client = 1; */ public com.wire.messages.Otr.ClientIdOrBuilder getClientOrBuilder() { if (clientBuilder_ != null) { return clientBuilder_.getMessageOrBuilder(); } else { return client_ == null ? com.wire.messages.Otr.ClientId.getDefaultInstance() : client_; } } /** * required .proteus.ClientId client = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientId, com.wire.messages.Otr.ClientId.Builder, com.wire.messages.Otr.ClientIdOrBuilder> getClientFieldBuilder() { if (clientBuilder_ == null) { clientBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientId, com.wire.messages.Otr.ClientId.Builder, com.wire.messages.Otr.ClientIdOrBuilder>( getClient(), getParentForChildren(), isClean()); client_ = null; } return clientBuilder_; } private com.google.protobuf.ByteString text_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes text = 2; * @return Whether the text field is set. */ @java.lang.Override public boolean hasText() { return ((bitField0_ & 0x00000002) != 0); } /** * required bytes text = 2; * @return The text. */ @java.lang.Override public com.google.protobuf.ByteString getText() { return text_; } /** * required bytes text = 2; * @param value The text to set. * @return This builder for chaining. */ public Builder setText(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; text_ = value; onChanged(); return this; } /** * required bytes text = 2; * @return This builder for chaining. */ public Builder clearText() { bitField0_ = (bitField0_ & ~0x00000002); text_ = getDefaultInstance().getText(); 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:proteus.ClientEntry) } // @@protoc_insertion_point(class_scope:proteus.ClientEntry) private static final com.wire.messages.Otr.ClientEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wire.messages.Otr.ClientEntry(); } public static com.wire.messages.Otr.ClientEntry getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClientEntry 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.Otr.ClientEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UserEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:proteus.UserEntry) com.google.protobuf.MessageOrBuilder { /** * required .proteus.UserId user = 1; * @return Whether the user field is set. */ boolean hasUser(); /** * required .proteus.UserId user = 1; * @return The user. */ com.wire.messages.Otr.UserId getUser(); /** * required .proteus.UserId user = 1; */ com.wire.messages.Otr.UserIdOrBuilder getUserOrBuilder(); /** * repeated .proteus.ClientEntry clients = 2; */ java.util.List getClientsList(); /** * repeated .proteus.ClientEntry clients = 2; */ com.wire.messages.Otr.ClientEntry getClients(int index); /** * repeated .proteus.ClientEntry clients = 2; */ int getClientsCount(); /** * repeated .proteus.ClientEntry clients = 2; */ java.util.List getClientsOrBuilderList(); /** * repeated .proteus.ClientEntry clients = 2; */ com.wire.messages.Otr.ClientEntryOrBuilder getClientsOrBuilder( int index); } /** * Protobuf type {@code proteus.UserEntry} */ public static final class UserEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proteus.UserEntry) UserEntryOrBuilder { private static final long serialVersionUID = 0L; // Use UserEntry.newBuilder() to construct. private UserEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UserEntry() { clients_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UserEntry(); } @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.Otr.internal_static_proteus_UserEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_UserEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.UserEntry.class, com.wire.messages.Otr.UserEntry.Builder.class); } private int bitField0_; public static final int USER_FIELD_NUMBER = 1; private com.wire.messages.Otr.UserId user_; /** * required .proteus.UserId user = 1; * @return Whether the user field is set. */ @java.lang.Override public boolean hasUser() { return ((bitField0_ & 0x00000001) != 0); } /** * required .proteus.UserId user = 1; * @return The user. */ @java.lang.Override public com.wire.messages.Otr.UserId getUser() { return user_ == null ? com.wire.messages.Otr.UserId.getDefaultInstance() : user_; } /** * required .proteus.UserId user = 1; */ @java.lang.Override public com.wire.messages.Otr.UserIdOrBuilder getUserOrBuilder() { return user_ == null ? com.wire.messages.Otr.UserId.getDefaultInstance() : user_; } public static final int CLIENTS_FIELD_NUMBER = 2; private java.util.List clients_; /** * repeated .proteus.ClientEntry clients = 2; */ @java.lang.Override public java.util.List getClientsList() { return clients_; } /** * repeated .proteus.ClientEntry clients = 2; */ @java.lang.Override public java.util.List getClientsOrBuilderList() { return clients_; } /** * repeated .proteus.ClientEntry clients = 2; */ @java.lang.Override public int getClientsCount() { return clients_.size(); } /** * repeated .proteus.ClientEntry clients = 2; */ @java.lang.Override public com.wire.messages.Otr.ClientEntry getClients(int index) { return clients_.get(index); } /** * repeated .proteus.ClientEntry clients = 2; */ @java.lang.Override public com.wire.messages.Otr.ClientEntryOrBuilder getClientsOrBuilder( int index) { return clients_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasUser()) { memoizedIsInitialized = 0; return false; } if (!getUser().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getClientsCount(); i++) { if (!getClients(i).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.writeMessage(1, getUser()); } for (int i = 0; i < clients_.size(); i++) { output.writeMessage(2, clients_.get(i)); } 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 .computeMessageSize(1, getUser()); } for (int i = 0; i < clients_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, clients_.get(i)); } 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.Otr.UserEntry)) { return super.equals(obj); } com.wire.messages.Otr.UserEntry other = (com.wire.messages.Otr.UserEntry) obj; if (hasUser() != other.hasUser()) return false; if (hasUser()) { if (!getUser() .equals(other.getUser())) return false; } if (!getClientsList() .equals(other.getClientsList())) 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 (hasUser()) { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } if (getClientsCount() > 0) { hash = (37 * hash) + CLIENTS_FIELD_NUMBER; hash = (53 * hash) + getClientsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wire.messages.Otr.UserEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.UserEntry 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.Otr.UserEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.UserEntry 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.Otr.UserEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.UserEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Otr.UserEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.UserEntry 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.Otr.UserEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wire.messages.Otr.UserEntry 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.Otr.UserEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.UserEntry 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.Otr.UserEntry 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 proteus.UserEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proteus.UserEntry) com.wire.messages.Otr.UserEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wire.messages.Otr.internal_static_proteus_UserEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_UserEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.UserEntry.class, com.wire.messages.Otr.UserEntry.Builder.class); } // Construct using com.wire.messages.Otr.UserEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUserFieldBuilder(); getClientsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (userBuilder_ == null) { user_ = null; } else { userBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (clientsBuilder_ == null) { clients_ = java.util.Collections.emptyList(); } else { clients_ = null; clientsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wire.messages.Otr.internal_static_proteus_UserEntry_descriptor; } @java.lang.Override public com.wire.messages.Otr.UserEntry getDefaultInstanceForType() { return com.wire.messages.Otr.UserEntry.getDefaultInstance(); } @java.lang.Override public com.wire.messages.Otr.UserEntry build() { com.wire.messages.Otr.UserEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wire.messages.Otr.UserEntry buildPartial() { com.wire.messages.Otr.UserEntry result = new com.wire.messages.Otr.UserEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (userBuilder_ == null) { result.user_ = user_; } else { result.user_ = userBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (clientsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { clients_ = java.util.Collections.unmodifiableList(clients_); bitField0_ = (bitField0_ & ~0x00000002); } result.clients_ = clients_; } else { result.clients_ = clientsBuilder_.build(); } 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.Otr.UserEntry) { return mergeFrom((com.wire.messages.Otr.UserEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wire.messages.Otr.UserEntry other) { if (other == com.wire.messages.Otr.UserEntry.getDefaultInstance()) return this; if (other.hasUser()) { mergeUser(other.getUser()); } if (clientsBuilder_ == null) { if (!other.clients_.isEmpty()) { if (clients_.isEmpty()) { clients_ = other.clients_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureClientsIsMutable(); clients_.addAll(other.clients_); } onChanged(); } } else { if (!other.clients_.isEmpty()) { if (clientsBuilder_.isEmpty()) { clientsBuilder_.dispose(); clientsBuilder_ = null; clients_ = other.clients_; bitField0_ = (bitField0_ & ~0x00000002); clientsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getClientsFieldBuilder() : null; } else { clientsBuilder_.addAllMessages(other.clients_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasUser()) { return false; } if (!getUser().isInitialized()) { return false; } for (int i = 0; i < getClientsCount(); i++) { if (!getClients(i).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: { input.readMessage( getUserFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.wire.messages.Otr.ClientEntry m = input.readMessage( com.wire.messages.Otr.ClientEntry.PARSER, extensionRegistry); if (clientsBuilder_ == null) { ensureClientsIsMutable(); clients_.add(m); } else { clientsBuilder_.addMessage(m); } break; } // case 18 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.wire.messages.Otr.UserId user_; private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.UserId, com.wire.messages.Otr.UserId.Builder, com.wire.messages.Otr.UserIdOrBuilder> userBuilder_; /** * required .proteus.UserId user = 1; * @return Whether the user field is set. */ public boolean hasUser() { return ((bitField0_ & 0x00000001) != 0); } /** * required .proteus.UserId user = 1; * @return The user. */ public com.wire.messages.Otr.UserId getUser() { if (userBuilder_ == null) { return user_ == null ? com.wire.messages.Otr.UserId.getDefaultInstance() : user_; } else { return userBuilder_.getMessage(); } } /** * required .proteus.UserId user = 1; */ public Builder setUser(com.wire.messages.Otr.UserId value) { if (userBuilder_ == null) { if (value == null) { throw new NullPointerException(); } user_ = value; onChanged(); } else { userBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .proteus.UserId user = 1; */ public Builder setUser( com.wire.messages.Otr.UserId.Builder builderForValue) { if (userBuilder_ == null) { user_ = builderForValue.build(); onChanged(); } else { userBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .proteus.UserId user = 1; */ public Builder mergeUser(com.wire.messages.Otr.UserId value) { if (userBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && user_ != null && user_ != com.wire.messages.Otr.UserId.getDefaultInstance()) { user_ = com.wire.messages.Otr.UserId.newBuilder(user_).mergeFrom(value).buildPartial(); } else { user_ = value; } onChanged(); } else { userBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .proteus.UserId user = 1; */ public Builder clearUser() { if (userBuilder_ == null) { user_ = null; onChanged(); } else { userBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .proteus.UserId user = 1; */ public com.wire.messages.Otr.UserId.Builder getUserBuilder() { bitField0_ |= 0x00000001; onChanged(); return getUserFieldBuilder().getBuilder(); } /** * required .proteus.UserId user = 1; */ public com.wire.messages.Otr.UserIdOrBuilder getUserOrBuilder() { if (userBuilder_ != null) { return userBuilder_.getMessageOrBuilder(); } else { return user_ == null ? com.wire.messages.Otr.UserId.getDefaultInstance() : user_; } } /** * required .proteus.UserId user = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.UserId, com.wire.messages.Otr.UserId.Builder, com.wire.messages.Otr.UserIdOrBuilder> getUserFieldBuilder() { if (userBuilder_ == null) { userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.UserId, com.wire.messages.Otr.UserId.Builder, com.wire.messages.Otr.UserIdOrBuilder>( getUser(), getParentForChildren(), isClean()); user_ = null; } return userBuilder_; } private java.util.List clients_ = java.util.Collections.emptyList(); private void ensureClientsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { clients_ = new java.util.ArrayList(clients_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.ClientEntry, com.wire.messages.Otr.ClientEntry.Builder, com.wire.messages.Otr.ClientEntryOrBuilder> clientsBuilder_; /** * repeated .proteus.ClientEntry clients = 2; */ public java.util.List getClientsList() { if (clientsBuilder_ == null) { return java.util.Collections.unmodifiableList(clients_); } else { return clientsBuilder_.getMessageList(); } } /** * repeated .proteus.ClientEntry clients = 2; */ public int getClientsCount() { if (clientsBuilder_ == null) { return clients_.size(); } else { return clientsBuilder_.getCount(); } } /** * repeated .proteus.ClientEntry clients = 2; */ public com.wire.messages.Otr.ClientEntry getClients(int index) { if (clientsBuilder_ == null) { return clients_.get(index); } else { return clientsBuilder_.getMessage(index); } } /** * repeated .proteus.ClientEntry clients = 2; */ public Builder setClients( int index, com.wire.messages.Otr.ClientEntry value) { if (clientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClientsIsMutable(); clients_.set(index, value); onChanged(); } else { clientsBuilder_.setMessage(index, value); } return this; } /** * repeated .proteus.ClientEntry clients = 2; */ public Builder setClients( int index, com.wire.messages.Otr.ClientEntry.Builder builderForValue) { if (clientsBuilder_ == null) { ensureClientsIsMutable(); clients_.set(index, builderForValue.build()); onChanged(); } else { clientsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proteus.ClientEntry clients = 2; */ public Builder addClients(com.wire.messages.Otr.ClientEntry value) { if (clientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClientsIsMutable(); clients_.add(value); onChanged(); } else { clientsBuilder_.addMessage(value); } return this; } /** * repeated .proteus.ClientEntry clients = 2; */ public Builder addClients( int index, com.wire.messages.Otr.ClientEntry value) { if (clientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClientsIsMutable(); clients_.add(index, value); onChanged(); } else { clientsBuilder_.addMessage(index, value); } return this; } /** * repeated .proteus.ClientEntry clients = 2; */ public Builder addClients( com.wire.messages.Otr.ClientEntry.Builder builderForValue) { if (clientsBuilder_ == null) { ensureClientsIsMutable(); clients_.add(builderForValue.build()); onChanged(); } else { clientsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proteus.ClientEntry clients = 2; */ public Builder addClients( int index, com.wire.messages.Otr.ClientEntry.Builder builderForValue) { if (clientsBuilder_ == null) { ensureClientsIsMutable(); clients_.add(index, builderForValue.build()); onChanged(); } else { clientsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proteus.ClientEntry clients = 2; */ public Builder addAllClients( java.lang.Iterable values) { if (clientsBuilder_ == null) { ensureClientsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, clients_); onChanged(); } else { clientsBuilder_.addAllMessages(values); } return this; } /** * repeated .proteus.ClientEntry clients = 2; */ public Builder clearClients() { if (clientsBuilder_ == null) { clients_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { clientsBuilder_.clear(); } return this; } /** * repeated .proteus.ClientEntry clients = 2; */ public Builder removeClients(int index) { if (clientsBuilder_ == null) { ensureClientsIsMutable(); clients_.remove(index); onChanged(); } else { clientsBuilder_.remove(index); } return this; } /** * repeated .proteus.ClientEntry clients = 2; */ public com.wire.messages.Otr.ClientEntry.Builder getClientsBuilder( int index) { return getClientsFieldBuilder().getBuilder(index); } /** * repeated .proteus.ClientEntry clients = 2; */ public com.wire.messages.Otr.ClientEntryOrBuilder getClientsOrBuilder( int index) { if (clientsBuilder_ == null) { return clients_.get(index); } else { return clientsBuilder_.getMessageOrBuilder(index); } } /** * repeated .proteus.ClientEntry clients = 2; */ public java.util.List getClientsOrBuilderList() { if (clientsBuilder_ != null) { return clientsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(clients_); } } /** * repeated .proteus.ClientEntry clients = 2; */ public com.wire.messages.Otr.ClientEntry.Builder addClientsBuilder() { return getClientsFieldBuilder().addBuilder( com.wire.messages.Otr.ClientEntry.getDefaultInstance()); } /** * repeated .proteus.ClientEntry clients = 2; */ public com.wire.messages.Otr.ClientEntry.Builder addClientsBuilder( int index) { return getClientsFieldBuilder().addBuilder( index, com.wire.messages.Otr.ClientEntry.getDefaultInstance()); } /** * repeated .proteus.ClientEntry clients = 2; */ public java.util.List getClientsBuilderList() { return getClientsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.ClientEntry, com.wire.messages.Otr.ClientEntry.Builder, com.wire.messages.Otr.ClientEntryOrBuilder> getClientsFieldBuilder() { if (clientsBuilder_ == null) { clientsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.ClientEntry, com.wire.messages.Otr.ClientEntry.Builder, com.wire.messages.Otr.ClientEntryOrBuilder>( clients_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); clients_ = null; } return clientsBuilder_; } @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:proteus.UserEntry) } // @@protoc_insertion_point(class_scope:proteus.UserEntry) private static final com.wire.messages.Otr.UserEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wire.messages.Otr.UserEntry(); } public static com.wire.messages.Otr.UserEntry getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UserEntry 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.Otr.UserEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QualifiedUserEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:proteus.QualifiedUserEntry) com.google.protobuf.MessageOrBuilder { /** * required string domain = 1; * @return Whether the domain field is set. */ boolean hasDomain(); /** * required string domain = 1; * @return The domain. */ java.lang.String getDomain(); /** * required string domain = 1; * @return The bytes for domain. */ com.google.protobuf.ByteString getDomainBytes(); /** * repeated .proteus.UserEntry entries = 2; */ java.util.List getEntriesList(); /** * repeated .proteus.UserEntry entries = 2; */ com.wire.messages.Otr.UserEntry getEntries(int index); /** * repeated .proteus.UserEntry entries = 2; */ int getEntriesCount(); /** * repeated .proteus.UserEntry entries = 2; */ java.util.List getEntriesOrBuilderList(); /** * repeated .proteus.UserEntry entries = 2; */ com.wire.messages.Otr.UserEntryOrBuilder getEntriesOrBuilder( int index); } /** * Protobuf type {@code proteus.QualifiedUserEntry} */ public static final class QualifiedUserEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proteus.QualifiedUserEntry) QualifiedUserEntryOrBuilder { private static final long serialVersionUID = 0L; // Use QualifiedUserEntry.newBuilder() to construct. private QualifiedUserEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QualifiedUserEntry() { domain_ = ""; entries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QualifiedUserEntry(); } @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.Otr.internal_static_proteus_QualifiedUserEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_QualifiedUserEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.QualifiedUserEntry.class, com.wire.messages.Otr.QualifiedUserEntry.Builder.class); } private int bitField0_; public static final int DOMAIN_FIELD_NUMBER = 1; private volatile java.lang.Object domain_; /** * required string domain = 1; * @return Whether the domain field is set. */ @java.lang.Override public boolean hasDomain() { return ((bitField0_ & 0x00000001) != 0); } /** * required string domain = 1; * @return The domain. */ @java.lang.Override public java.lang.String getDomain() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { domain_ = s; } return s; } } /** * required string domain = 1; * @return The bytes for domain. */ @java.lang.Override public com.google.protobuf.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENTRIES_FIELD_NUMBER = 2; private java.util.List entries_; /** * repeated .proteus.UserEntry entries = 2; */ @java.lang.Override public java.util.List getEntriesList() { return entries_; } /** * repeated .proteus.UserEntry entries = 2; */ @java.lang.Override public java.util.List getEntriesOrBuilderList() { return entries_; } /** * repeated .proteus.UserEntry entries = 2; */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** * repeated .proteus.UserEntry entries = 2; */ @java.lang.Override public com.wire.messages.Otr.UserEntry getEntries(int index) { return entries_.get(index); } /** * repeated .proteus.UserEntry entries = 2; */ @java.lang.Override public com.wire.messages.Otr.UserEntryOrBuilder getEntriesOrBuilder( int index) { return entries_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasDomain()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getEntriesCount(); i++) { if (!getEntries(i).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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domain_); } for (int i = 0; i < entries_.size(); i++) { output.writeMessage(2, entries_.get(i)); } 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.GeneratedMessageV3.computeStringSize(1, domain_); } for (int i = 0; i < entries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, entries_.get(i)); } 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.Otr.QualifiedUserEntry)) { return super.equals(obj); } com.wire.messages.Otr.QualifiedUserEntry other = (com.wire.messages.Otr.QualifiedUserEntry) obj; if (hasDomain() != other.hasDomain()) return false; if (hasDomain()) { if (!getDomain() .equals(other.getDomain())) return false; } if (!getEntriesList() .equals(other.getEntriesList())) 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 (hasDomain()) { hash = (37 * hash) + DOMAIN_FIELD_NUMBER; hash = (53 * hash) + getDomain().hashCode(); } if (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wire.messages.Otr.QualifiedUserEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.QualifiedUserEntry 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.Otr.QualifiedUserEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.QualifiedUserEntry 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.Otr.QualifiedUserEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.QualifiedUserEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Otr.QualifiedUserEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.QualifiedUserEntry 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.Otr.QualifiedUserEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wire.messages.Otr.QualifiedUserEntry 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.Otr.QualifiedUserEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.QualifiedUserEntry 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.Otr.QualifiedUserEntry 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 proteus.QualifiedUserEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proteus.QualifiedUserEntry) com.wire.messages.Otr.QualifiedUserEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wire.messages.Otr.internal_static_proteus_QualifiedUserEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_QualifiedUserEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.QualifiedUserEntry.class, com.wire.messages.Otr.QualifiedUserEntry.Builder.class); } // Construct using com.wire.messages.Otr.QualifiedUserEntry.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); domain_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); } else { entries_ = null; entriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wire.messages.Otr.internal_static_proteus_QualifiedUserEntry_descriptor; } @java.lang.Override public com.wire.messages.Otr.QualifiedUserEntry getDefaultInstanceForType() { return com.wire.messages.Otr.QualifiedUserEntry.getDefaultInstance(); } @java.lang.Override public com.wire.messages.Otr.QualifiedUserEntry build() { com.wire.messages.Otr.QualifiedUserEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wire.messages.Otr.QualifiedUserEntry buildPartial() { com.wire.messages.Otr.QualifiedUserEntry result = new com.wire.messages.Otr.QualifiedUserEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.domain_ = domain_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000002); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.build(); } 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.Otr.QualifiedUserEntry) { return mergeFrom((com.wire.messages.Otr.QualifiedUserEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wire.messages.Otr.QualifiedUserEntry other) { if (other == com.wire.messages.Otr.QualifiedUserEntry.getDefaultInstance()) return this; if (other.hasDomain()) { bitField0_ |= 0x00000001; domain_ = other.domain_; onChanged(); } if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEntriesIsMutable(); entries_.addAll(other.entries_); } onChanged(); } } else { if (!other.entries_.isEmpty()) { if (entriesBuilder_.isEmpty()) { entriesBuilder_.dispose(); entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000002); entriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasDomain()) { return false; } for (int i = 0; i < getEntriesCount(); i++) { if (!getEntries(i).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: { domain_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.wire.messages.Otr.UserEntry m = input.readMessage( com.wire.messages.Otr.UserEntry.PARSER, extensionRegistry); if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(m); } else { entriesBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object domain_ = ""; /** * required string domain = 1; * @return Whether the domain field is set. */ public boolean hasDomain() { return ((bitField0_ & 0x00000001) != 0); } /** * required string domain = 1; * @return The domain. */ public java.lang.String getDomain() { java.lang.Object ref = domain_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { domain_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string domain = 1; * @return The bytes for domain. */ public com.google.protobuf.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string domain = 1; * @param value The domain to set. * @return This builder for chaining. */ public Builder setDomain( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; domain_ = value; onChanged(); return this; } /** * required string domain = 1; * @return This builder for chaining. */ public Builder clearDomain() { bitField0_ = (bitField0_ & ~0x00000001); domain_ = getDefaultInstance().getDomain(); onChanged(); return this; } /** * required string domain = 1; * @param value The bytes for domain to set. * @return This builder for chaining. */ public Builder setDomainBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; domain_ = value; onChanged(); return this; } private java.util.List entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.UserEntry, com.wire.messages.Otr.UserEntry.Builder, com.wire.messages.Otr.UserEntryOrBuilder> entriesBuilder_; /** * repeated .proteus.UserEntry entries = 2; */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { return entriesBuilder_.getMessageList(); } } /** * repeated .proteus.UserEntry entries = 2; */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** * repeated .proteus.UserEntry entries = 2; */ public com.wire.messages.Otr.UserEntry getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(index); } } /** * repeated .proteus.UserEntry entries = 2; */ public Builder setEntries( int index, com.wire.messages.Otr.UserEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); } else { entriesBuilder_.setMessage(index, value); } return this; } /** * repeated .proteus.UserEntry entries = 2; */ public Builder setEntries( int index, com.wire.messages.Otr.UserEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proteus.UserEntry entries = 2; */ public Builder addEntries(com.wire.messages.Otr.UserEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); } else { entriesBuilder_.addMessage(value); } return this; } /** * repeated .proteus.UserEntry entries = 2; */ public Builder addEntries( int index, com.wire.messages.Otr.UserEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(index, value); onChanged(); } else { entriesBuilder_.addMessage(index, value); } return this; } /** * repeated .proteus.UserEntry entries = 2; */ public Builder addEntries( com.wire.messages.Otr.UserEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proteus.UserEntry entries = 2; */ public Builder addEntries( int index, com.wire.messages.Otr.UserEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proteus.UserEntry entries = 2; */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); } return this; } /** * repeated .proteus.UserEntry entries = 2; */ public Builder clearEntries() { if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { entriesBuilder_.clear(); } return this; } /** * repeated .proteus.UserEntry entries = 2; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.remove(index); onChanged(); } else { entriesBuilder_.remove(index); } return this; } /** * repeated .proteus.UserEntry entries = 2; */ public com.wire.messages.Otr.UserEntry.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** * repeated .proteus.UserEntry entries = 2; */ public com.wire.messages.Otr.UserEntryOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .proteus.UserEntry entries = 2; */ public java.util.List getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entries_); } } /** * repeated .proteus.UserEntry entries = 2; */ public com.wire.messages.Otr.UserEntry.Builder addEntriesBuilder() { return getEntriesFieldBuilder().addBuilder( com.wire.messages.Otr.UserEntry.getDefaultInstance()); } /** * repeated .proteus.UserEntry entries = 2; */ public com.wire.messages.Otr.UserEntry.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder().addBuilder( index, com.wire.messages.Otr.UserEntry.getDefaultInstance()); } /** * repeated .proteus.UserEntry entries = 2; */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.UserEntry, com.wire.messages.Otr.UserEntry.Builder, com.wire.messages.Otr.UserEntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.UserEntry, com.wire.messages.Otr.UserEntry.Builder, com.wire.messages.Otr.UserEntryOrBuilder>( entries_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } @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:proteus.QualifiedUserEntry) } // @@protoc_insertion_point(class_scope:proteus.QualifiedUserEntry) private static final com.wire.messages.Otr.QualifiedUserEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wire.messages.Otr.QualifiedUserEntry(); } public static com.wire.messages.Otr.QualifiedUserEntry getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QualifiedUserEntry 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.Otr.QualifiedUserEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NewOtrMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proteus.NewOtrMessage) com.google.protobuf.MessageOrBuilder { /** * required .proteus.ClientId sender = 1; * @return Whether the sender field is set. */ boolean hasSender(); /** * required .proteus.ClientId sender = 1; * @return The sender. */ com.wire.messages.Otr.ClientId getSender(); /** * required .proteus.ClientId sender = 1; */ com.wire.messages.Otr.ClientIdOrBuilder getSenderOrBuilder(); /** * repeated .proteus.UserEntry recipients = 2; */ java.util.List getRecipientsList(); /** * repeated .proteus.UserEntry recipients = 2; */ com.wire.messages.Otr.UserEntry getRecipients(int index); /** * repeated .proteus.UserEntry recipients = 2; */ int getRecipientsCount(); /** * repeated .proteus.UserEntry recipients = 2; */ java.util.List getRecipientsOrBuilderList(); /** * repeated .proteus.UserEntry recipients = 2; */ com.wire.messages.Otr.UserEntryOrBuilder getRecipientsOrBuilder( int index); /** * optional bool native_push = 3 [default = true]; * @return Whether the nativePush field is set. */ boolean hasNativePush(); /** * optional bool native_push = 3 [default = true]; * @return The nativePush. */ boolean getNativePush(); /** * optional bytes blob = 4; * @return Whether the blob field is set. */ boolean hasBlob(); /** * optional bytes blob = 4; * @return The blob. */ com.google.protobuf.ByteString getBlob(); /** * optional .proteus.Priority native_priority = 5; * @return Whether the nativePriority field is set. */ boolean hasNativePriority(); /** * optional .proteus.Priority native_priority = 5; * @return The nativePriority. */ com.wire.messages.Otr.Priority getNativePriority(); /** * optional bool transient = 6; * @return Whether the transient field is set. */ boolean hasTransient(); /** * optional bool transient = 6; * @return The transient. */ boolean getTransient(); /** * repeated .proteus.UserId report_missing = 7; */ java.util.List getReportMissingList(); /** * repeated .proteus.UserId report_missing = 7; */ com.wire.messages.Otr.UserId getReportMissing(int index); /** * repeated .proteus.UserId report_missing = 7; */ int getReportMissingCount(); /** * repeated .proteus.UserId report_missing = 7; */ java.util.List getReportMissingOrBuilderList(); /** * repeated .proteus.UserId report_missing = 7; */ com.wire.messages.Otr.UserIdOrBuilder getReportMissingOrBuilder( int index); } /** *
   * deprecated, use QualifiedNewOtrMessage
   * 
* * Protobuf type {@code proteus.NewOtrMessage} */ public static final class NewOtrMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proteus.NewOtrMessage) NewOtrMessageOrBuilder { private static final long serialVersionUID = 0L; // Use NewOtrMessage.newBuilder() to construct. private NewOtrMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NewOtrMessage() { recipients_ = java.util.Collections.emptyList(); nativePush_ = true; blob_ = com.google.protobuf.ByteString.EMPTY; nativePriority_ = 1; reportMissing_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NewOtrMessage(); } @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.Otr.internal_static_proteus_NewOtrMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_NewOtrMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.NewOtrMessage.class, com.wire.messages.Otr.NewOtrMessage.Builder.class); } private int bitField0_; public static final int SENDER_FIELD_NUMBER = 1; private com.wire.messages.Otr.ClientId sender_; /** * required .proteus.ClientId sender = 1; * @return Whether the sender field is set. */ @java.lang.Override public boolean hasSender() { return ((bitField0_ & 0x00000001) != 0); } /** * required .proteus.ClientId sender = 1; * @return The sender. */ @java.lang.Override public com.wire.messages.Otr.ClientId getSender() { return sender_ == null ? com.wire.messages.Otr.ClientId.getDefaultInstance() : sender_; } /** * required .proteus.ClientId sender = 1; */ @java.lang.Override public com.wire.messages.Otr.ClientIdOrBuilder getSenderOrBuilder() { return sender_ == null ? com.wire.messages.Otr.ClientId.getDefaultInstance() : sender_; } public static final int RECIPIENTS_FIELD_NUMBER = 2; private java.util.List recipients_; /** * repeated .proteus.UserEntry recipients = 2; */ @java.lang.Override public java.util.List getRecipientsList() { return recipients_; } /** * repeated .proteus.UserEntry recipients = 2; */ @java.lang.Override public java.util.List getRecipientsOrBuilderList() { return recipients_; } /** * repeated .proteus.UserEntry recipients = 2; */ @java.lang.Override public int getRecipientsCount() { return recipients_.size(); } /** * repeated .proteus.UserEntry recipients = 2; */ @java.lang.Override public com.wire.messages.Otr.UserEntry getRecipients(int index) { return recipients_.get(index); } /** * repeated .proteus.UserEntry recipients = 2; */ @java.lang.Override public com.wire.messages.Otr.UserEntryOrBuilder getRecipientsOrBuilder( int index) { return recipients_.get(index); } public static final int NATIVE_PUSH_FIELD_NUMBER = 3; private boolean nativePush_; /** * optional bool native_push = 3 [default = true]; * @return Whether the nativePush field is set. */ @java.lang.Override public boolean hasNativePush() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bool native_push = 3 [default = true]; * @return The nativePush. */ @java.lang.Override public boolean getNativePush() { return nativePush_; } public static final int BLOB_FIELD_NUMBER = 4; private com.google.protobuf.ByteString blob_; /** * optional bytes blob = 4; * @return Whether the blob field is set. */ @java.lang.Override public boolean hasBlob() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bytes blob = 4; * @return The blob. */ @java.lang.Override public com.google.protobuf.ByteString getBlob() { return blob_; } public static final int NATIVE_PRIORITY_FIELD_NUMBER = 5; private int nativePriority_; /** * optional .proteus.Priority native_priority = 5; * @return Whether the nativePriority field is set. */ @java.lang.Override public boolean hasNativePriority() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .proteus.Priority native_priority = 5; * @return The nativePriority. */ @java.lang.Override public com.wire.messages.Otr.Priority getNativePriority() { @SuppressWarnings("deprecation") com.wire.messages.Otr.Priority result = com.wire.messages.Otr.Priority.valueOf(nativePriority_); return result == null ? com.wire.messages.Otr.Priority.LOW_PRIORITY : result; } public static final int TRANSIENT_FIELD_NUMBER = 6; private boolean transient_; /** * optional bool transient = 6; * @return Whether the transient field is set. */ @java.lang.Override public boolean hasTransient() { return ((bitField0_ & 0x00000010) != 0); } /** * optional bool transient = 6; * @return The transient. */ @java.lang.Override public boolean getTransient() { return transient_; } public static final int REPORT_MISSING_FIELD_NUMBER = 7; private java.util.List reportMissing_; /** * repeated .proteus.UserId report_missing = 7; */ @java.lang.Override public java.util.List getReportMissingList() { return reportMissing_; } /** * repeated .proteus.UserId report_missing = 7; */ @java.lang.Override public java.util.List getReportMissingOrBuilderList() { return reportMissing_; } /** * repeated .proteus.UserId report_missing = 7; */ @java.lang.Override public int getReportMissingCount() { return reportMissing_.size(); } /** * repeated .proteus.UserId report_missing = 7; */ @java.lang.Override public com.wire.messages.Otr.UserId getReportMissing(int index) { return reportMissing_.get(index); } /** * repeated .proteus.UserId report_missing = 7; */ @java.lang.Override public com.wire.messages.Otr.UserIdOrBuilder getReportMissingOrBuilder( int index) { return reportMissing_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasSender()) { memoizedIsInitialized = 0; return false; } if (!getSender().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getRecipientsCount(); i++) { if (!getRecipients(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getReportMissingCount(); i++) { if (!getReportMissing(i).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.writeMessage(1, getSender()); } for (int i = 0; i < recipients_.size(); i++) { output.writeMessage(2, recipients_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(3, nativePush_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBytes(4, blob_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(5, nativePriority_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(6, transient_); } for (int i = 0; i < reportMissing_.size(); i++) { output.writeMessage(7, reportMissing_.get(i)); } 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 .computeMessageSize(1, getSender()); } for (int i = 0; i < recipients_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, recipients_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, nativePush_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, blob_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, nativePriority_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, transient_); } for (int i = 0; i < reportMissing_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, reportMissing_.get(i)); } 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.Otr.NewOtrMessage)) { return super.equals(obj); } com.wire.messages.Otr.NewOtrMessage other = (com.wire.messages.Otr.NewOtrMessage) obj; if (hasSender() != other.hasSender()) return false; if (hasSender()) { if (!getSender() .equals(other.getSender())) return false; } if (!getRecipientsList() .equals(other.getRecipientsList())) return false; if (hasNativePush() != other.hasNativePush()) return false; if (hasNativePush()) { if (getNativePush() != other.getNativePush()) return false; } if (hasBlob() != other.hasBlob()) return false; if (hasBlob()) { if (!getBlob() .equals(other.getBlob())) return false; } if (hasNativePriority() != other.hasNativePriority()) return false; if (hasNativePriority()) { if (nativePriority_ != other.nativePriority_) return false; } if (hasTransient() != other.hasTransient()) return false; if (hasTransient()) { if (getTransient() != other.getTransient()) return false; } if (!getReportMissingList() .equals(other.getReportMissingList())) 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 (hasSender()) { hash = (37 * hash) + SENDER_FIELD_NUMBER; hash = (53 * hash) + getSender().hashCode(); } if (getRecipientsCount() > 0) { hash = (37 * hash) + RECIPIENTS_FIELD_NUMBER; hash = (53 * hash) + getRecipientsList().hashCode(); } if (hasNativePush()) { hash = (37 * hash) + NATIVE_PUSH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNativePush()); } if (hasBlob()) { hash = (37 * hash) + BLOB_FIELD_NUMBER; hash = (53 * hash) + getBlob().hashCode(); } if (hasNativePriority()) { hash = (37 * hash) + NATIVE_PRIORITY_FIELD_NUMBER; hash = (53 * hash) + nativePriority_; } if (hasTransient()) { hash = (37 * hash) + TRANSIENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTransient()); } if (getReportMissingCount() > 0) { hash = (37 * hash) + REPORT_MISSING_FIELD_NUMBER; hash = (53 * hash) + getReportMissingList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wire.messages.Otr.NewOtrMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.NewOtrMessage 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.Otr.NewOtrMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.NewOtrMessage 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.Otr.NewOtrMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.NewOtrMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Otr.NewOtrMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.NewOtrMessage 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.Otr.NewOtrMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wire.messages.Otr.NewOtrMessage 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.Otr.NewOtrMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.NewOtrMessage 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.Otr.NewOtrMessage 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; } /** *
     * deprecated, use QualifiedNewOtrMessage
     * 
* * Protobuf type {@code proteus.NewOtrMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proteus.NewOtrMessage) com.wire.messages.Otr.NewOtrMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wire.messages.Otr.internal_static_proteus_NewOtrMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_NewOtrMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.NewOtrMessage.class, com.wire.messages.Otr.NewOtrMessage.Builder.class); } // Construct using com.wire.messages.Otr.NewOtrMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSenderFieldBuilder(); getRecipientsFieldBuilder(); getReportMissingFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (senderBuilder_ == null) { sender_ = null; } else { senderBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (recipientsBuilder_ == null) { recipients_ = java.util.Collections.emptyList(); } else { recipients_ = null; recipientsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); nativePush_ = true; bitField0_ = (bitField0_ & ~0x00000004); blob_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); nativePriority_ = 1; bitField0_ = (bitField0_ & ~0x00000010); transient_ = false; bitField0_ = (bitField0_ & ~0x00000020); if (reportMissingBuilder_ == null) { reportMissing_ = java.util.Collections.emptyList(); } else { reportMissing_ = null; reportMissingBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wire.messages.Otr.internal_static_proteus_NewOtrMessage_descriptor; } @java.lang.Override public com.wire.messages.Otr.NewOtrMessage getDefaultInstanceForType() { return com.wire.messages.Otr.NewOtrMessage.getDefaultInstance(); } @java.lang.Override public com.wire.messages.Otr.NewOtrMessage build() { com.wire.messages.Otr.NewOtrMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wire.messages.Otr.NewOtrMessage buildPartial() { com.wire.messages.Otr.NewOtrMessage result = new com.wire.messages.Otr.NewOtrMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (senderBuilder_ == null) { result.sender_ = sender_; } else { result.sender_ = senderBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (recipientsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { recipients_ = java.util.Collections.unmodifiableList(recipients_); bitField0_ = (bitField0_ & ~0x00000002); } result.recipients_ = recipients_; } else { result.recipients_ = recipientsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000002; } result.nativePush_ = nativePush_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000004; } result.blob_ = blob_; if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000008; } result.nativePriority_ = nativePriority_; if (((from_bitField0_ & 0x00000020) != 0)) { result.transient_ = transient_; to_bitField0_ |= 0x00000010; } if (reportMissingBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { reportMissing_ = java.util.Collections.unmodifiableList(reportMissing_); bitField0_ = (bitField0_ & ~0x00000040); } result.reportMissing_ = reportMissing_; } else { result.reportMissing_ = reportMissingBuilder_.build(); } 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.Otr.NewOtrMessage) { return mergeFrom((com.wire.messages.Otr.NewOtrMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wire.messages.Otr.NewOtrMessage other) { if (other == com.wire.messages.Otr.NewOtrMessage.getDefaultInstance()) return this; if (other.hasSender()) { mergeSender(other.getSender()); } if (recipientsBuilder_ == null) { if (!other.recipients_.isEmpty()) { if (recipients_.isEmpty()) { recipients_ = other.recipients_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRecipientsIsMutable(); recipients_.addAll(other.recipients_); } onChanged(); } } else { if (!other.recipients_.isEmpty()) { if (recipientsBuilder_.isEmpty()) { recipientsBuilder_.dispose(); recipientsBuilder_ = null; recipients_ = other.recipients_; bitField0_ = (bitField0_ & ~0x00000002); recipientsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRecipientsFieldBuilder() : null; } else { recipientsBuilder_.addAllMessages(other.recipients_); } } } if (other.hasNativePush()) { setNativePush(other.getNativePush()); } if (other.hasBlob()) { setBlob(other.getBlob()); } if (other.hasNativePriority()) { setNativePriority(other.getNativePriority()); } if (other.hasTransient()) { setTransient(other.getTransient()); } if (reportMissingBuilder_ == null) { if (!other.reportMissing_.isEmpty()) { if (reportMissing_.isEmpty()) { reportMissing_ = other.reportMissing_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureReportMissingIsMutable(); reportMissing_.addAll(other.reportMissing_); } onChanged(); } } else { if (!other.reportMissing_.isEmpty()) { if (reportMissingBuilder_.isEmpty()) { reportMissingBuilder_.dispose(); reportMissingBuilder_ = null; reportMissing_ = other.reportMissing_; bitField0_ = (bitField0_ & ~0x00000040); reportMissingBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getReportMissingFieldBuilder() : null; } else { reportMissingBuilder_.addAllMessages(other.reportMissing_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasSender()) { return false; } if (!getSender().isInitialized()) { return false; } for (int i = 0; i < getRecipientsCount(); i++) { if (!getRecipients(i).isInitialized()) { return false; } } for (int i = 0; i < getReportMissingCount(); i++) { if (!getReportMissing(i).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: { input.readMessage( getSenderFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.wire.messages.Otr.UserEntry m = input.readMessage( com.wire.messages.Otr.UserEntry.PARSER, extensionRegistry); if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); recipients_.add(m); } else { recipientsBuilder_.addMessage(m); } break; } // case 18 case 24: { nativePush_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { blob_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { int tmpRaw = input.readEnum(); com.wire.messages.Otr.Priority tmpValue = com.wire.messages.Otr.Priority.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(5, tmpRaw); } else { nativePriority_ = tmpRaw; bitField0_ |= 0x00000010; } break; } // case 40 case 48: { transient_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { com.wire.messages.Otr.UserId m = input.readMessage( com.wire.messages.Otr.UserId.PARSER, extensionRegistry); if (reportMissingBuilder_ == null) { ensureReportMissingIsMutable(); reportMissing_.add(m); } else { reportMissingBuilder_.addMessage(m); } break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.wire.messages.Otr.ClientId sender_; private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientId, com.wire.messages.Otr.ClientId.Builder, com.wire.messages.Otr.ClientIdOrBuilder> senderBuilder_; /** * required .proteus.ClientId sender = 1; * @return Whether the sender field is set. */ public boolean hasSender() { return ((bitField0_ & 0x00000001) != 0); } /** * required .proteus.ClientId sender = 1; * @return The sender. */ public com.wire.messages.Otr.ClientId getSender() { if (senderBuilder_ == null) { return sender_ == null ? com.wire.messages.Otr.ClientId.getDefaultInstance() : sender_; } else { return senderBuilder_.getMessage(); } } /** * required .proteus.ClientId sender = 1; */ public Builder setSender(com.wire.messages.Otr.ClientId value) { if (senderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sender_ = value; onChanged(); } else { senderBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .proteus.ClientId sender = 1; */ public Builder setSender( com.wire.messages.Otr.ClientId.Builder builderForValue) { if (senderBuilder_ == null) { sender_ = builderForValue.build(); onChanged(); } else { senderBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .proteus.ClientId sender = 1; */ public Builder mergeSender(com.wire.messages.Otr.ClientId value) { if (senderBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && sender_ != null && sender_ != com.wire.messages.Otr.ClientId.getDefaultInstance()) { sender_ = com.wire.messages.Otr.ClientId.newBuilder(sender_).mergeFrom(value).buildPartial(); } else { sender_ = value; } onChanged(); } else { senderBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .proteus.ClientId sender = 1; */ public Builder clearSender() { if (senderBuilder_ == null) { sender_ = null; onChanged(); } else { senderBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .proteus.ClientId sender = 1; */ public com.wire.messages.Otr.ClientId.Builder getSenderBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSenderFieldBuilder().getBuilder(); } /** * required .proteus.ClientId sender = 1; */ public com.wire.messages.Otr.ClientIdOrBuilder getSenderOrBuilder() { if (senderBuilder_ != null) { return senderBuilder_.getMessageOrBuilder(); } else { return sender_ == null ? com.wire.messages.Otr.ClientId.getDefaultInstance() : sender_; } } /** * required .proteus.ClientId sender = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientId, com.wire.messages.Otr.ClientId.Builder, com.wire.messages.Otr.ClientIdOrBuilder> getSenderFieldBuilder() { if (senderBuilder_ == null) { senderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientId, com.wire.messages.Otr.ClientId.Builder, com.wire.messages.Otr.ClientIdOrBuilder>( getSender(), getParentForChildren(), isClean()); sender_ = null; } return senderBuilder_; } private java.util.List recipients_ = java.util.Collections.emptyList(); private void ensureRecipientsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { recipients_ = new java.util.ArrayList(recipients_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.UserEntry, com.wire.messages.Otr.UserEntry.Builder, com.wire.messages.Otr.UserEntryOrBuilder> recipientsBuilder_; /** * repeated .proteus.UserEntry recipients = 2; */ public java.util.List getRecipientsList() { if (recipientsBuilder_ == null) { return java.util.Collections.unmodifiableList(recipients_); } else { return recipientsBuilder_.getMessageList(); } } /** * repeated .proteus.UserEntry recipients = 2; */ public int getRecipientsCount() { if (recipientsBuilder_ == null) { return recipients_.size(); } else { return recipientsBuilder_.getCount(); } } /** * repeated .proteus.UserEntry recipients = 2; */ public com.wire.messages.Otr.UserEntry getRecipients(int index) { if (recipientsBuilder_ == null) { return recipients_.get(index); } else { return recipientsBuilder_.getMessage(index); } } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder setRecipients( int index, com.wire.messages.Otr.UserEntry value) { if (recipientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecipientsIsMutable(); recipients_.set(index, value); onChanged(); } else { recipientsBuilder_.setMessage(index, value); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder setRecipients( int index, com.wire.messages.Otr.UserEntry.Builder builderForValue) { if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); recipients_.set(index, builderForValue.build()); onChanged(); } else { recipientsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder addRecipients(com.wire.messages.Otr.UserEntry value) { if (recipientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecipientsIsMutable(); recipients_.add(value); onChanged(); } else { recipientsBuilder_.addMessage(value); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder addRecipients( int index, com.wire.messages.Otr.UserEntry value) { if (recipientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecipientsIsMutable(); recipients_.add(index, value); onChanged(); } else { recipientsBuilder_.addMessage(index, value); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder addRecipients( com.wire.messages.Otr.UserEntry.Builder builderForValue) { if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); recipients_.add(builderForValue.build()); onChanged(); } else { recipientsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder addRecipients( int index, com.wire.messages.Otr.UserEntry.Builder builderForValue) { if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); recipients_.add(index, builderForValue.build()); onChanged(); } else { recipientsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder addAllRecipients( java.lang.Iterable values) { if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recipients_); onChanged(); } else { recipientsBuilder_.addAllMessages(values); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder clearRecipients() { if (recipientsBuilder_ == null) { recipients_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { recipientsBuilder_.clear(); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder removeRecipients(int index) { if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); recipients_.remove(index); onChanged(); } else { recipientsBuilder_.remove(index); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public com.wire.messages.Otr.UserEntry.Builder getRecipientsBuilder( int index) { return getRecipientsFieldBuilder().getBuilder(index); } /** * repeated .proteus.UserEntry recipients = 2; */ public com.wire.messages.Otr.UserEntryOrBuilder getRecipientsOrBuilder( int index) { if (recipientsBuilder_ == null) { return recipients_.get(index); } else { return recipientsBuilder_.getMessageOrBuilder(index); } } /** * repeated .proteus.UserEntry recipients = 2; */ public java.util.List getRecipientsOrBuilderList() { if (recipientsBuilder_ != null) { return recipientsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(recipients_); } } /** * repeated .proteus.UserEntry recipients = 2; */ public com.wire.messages.Otr.UserEntry.Builder addRecipientsBuilder() { return getRecipientsFieldBuilder().addBuilder( com.wire.messages.Otr.UserEntry.getDefaultInstance()); } /** * repeated .proteus.UserEntry recipients = 2; */ public com.wire.messages.Otr.UserEntry.Builder addRecipientsBuilder( int index) { return getRecipientsFieldBuilder().addBuilder( index, com.wire.messages.Otr.UserEntry.getDefaultInstance()); } /** * repeated .proteus.UserEntry recipients = 2; */ public java.util.List getRecipientsBuilderList() { return getRecipientsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.UserEntry, com.wire.messages.Otr.UserEntry.Builder, com.wire.messages.Otr.UserEntryOrBuilder> getRecipientsFieldBuilder() { if (recipientsBuilder_ == null) { recipientsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.UserEntry, com.wire.messages.Otr.UserEntry.Builder, com.wire.messages.Otr.UserEntryOrBuilder>( recipients_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); recipients_ = null; } return recipientsBuilder_; } private boolean nativePush_ = true; /** * optional bool native_push = 3 [default = true]; * @return Whether the nativePush field is set. */ @java.lang.Override public boolean hasNativePush() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bool native_push = 3 [default = true]; * @return The nativePush. */ @java.lang.Override public boolean getNativePush() { return nativePush_; } /** * optional bool native_push = 3 [default = true]; * @param value The nativePush to set. * @return This builder for chaining. */ public Builder setNativePush(boolean value) { bitField0_ |= 0x00000004; nativePush_ = value; onChanged(); return this; } /** * optional bool native_push = 3 [default = true]; * @return This builder for chaining. */ public Builder clearNativePush() { bitField0_ = (bitField0_ & ~0x00000004); nativePush_ = true; onChanged(); return this; } private com.google.protobuf.ByteString blob_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes blob = 4; * @return Whether the blob field is set. */ @java.lang.Override public boolean hasBlob() { return ((bitField0_ & 0x00000008) != 0); } /** * optional bytes blob = 4; * @return The blob. */ @java.lang.Override public com.google.protobuf.ByteString getBlob() { return blob_; } /** * optional bytes blob = 4; * @param value The blob to set. * @return This builder for chaining. */ public Builder setBlob(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; blob_ = value; onChanged(); return this; } /** * optional bytes blob = 4; * @return This builder for chaining. */ public Builder clearBlob() { bitField0_ = (bitField0_ & ~0x00000008); blob_ = getDefaultInstance().getBlob(); onChanged(); return this; } private int nativePriority_ = 1; /** * optional .proteus.Priority native_priority = 5; * @return Whether the nativePriority field is set. */ @java.lang.Override public boolean hasNativePriority() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .proteus.Priority native_priority = 5; * @return The nativePriority. */ @java.lang.Override public com.wire.messages.Otr.Priority getNativePriority() { @SuppressWarnings("deprecation") com.wire.messages.Otr.Priority result = com.wire.messages.Otr.Priority.valueOf(nativePriority_); return result == null ? com.wire.messages.Otr.Priority.LOW_PRIORITY : result; } /** * optional .proteus.Priority native_priority = 5; * @param value The nativePriority to set. * @return This builder for chaining. */ public Builder setNativePriority(com.wire.messages.Otr.Priority value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; nativePriority_ = value.getNumber(); onChanged(); return this; } /** * optional .proteus.Priority native_priority = 5; * @return This builder for chaining. */ public Builder clearNativePriority() { bitField0_ = (bitField0_ & ~0x00000010); nativePriority_ = 1; onChanged(); return this; } private boolean transient_ ; /** * optional bool transient = 6; * @return Whether the transient field is set. */ @java.lang.Override public boolean hasTransient() { return ((bitField0_ & 0x00000020) != 0); } /** * optional bool transient = 6; * @return The transient. */ @java.lang.Override public boolean getTransient() { return transient_; } /** * optional bool transient = 6; * @param value The transient to set. * @return This builder for chaining. */ public Builder setTransient(boolean value) { bitField0_ |= 0x00000020; transient_ = value; onChanged(); return this; } /** * optional bool transient = 6; * @return This builder for chaining. */ public Builder clearTransient() { bitField0_ = (bitField0_ & ~0x00000020); transient_ = false; onChanged(); return this; } private java.util.List reportMissing_ = java.util.Collections.emptyList(); private void ensureReportMissingIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { reportMissing_ = new java.util.ArrayList(reportMissing_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.UserId, com.wire.messages.Otr.UserId.Builder, com.wire.messages.Otr.UserIdOrBuilder> reportMissingBuilder_; /** * repeated .proteus.UserId report_missing = 7; */ public java.util.List getReportMissingList() { if (reportMissingBuilder_ == null) { return java.util.Collections.unmodifiableList(reportMissing_); } else { return reportMissingBuilder_.getMessageList(); } } /** * repeated .proteus.UserId report_missing = 7; */ public int getReportMissingCount() { if (reportMissingBuilder_ == null) { return reportMissing_.size(); } else { return reportMissingBuilder_.getCount(); } } /** * repeated .proteus.UserId report_missing = 7; */ public com.wire.messages.Otr.UserId getReportMissing(int index) { if (reportMissingBuilder_ == null) { return reportMissing_.get(index); } else { return reportMissingBuilder_.getMessage(index); } } /** * repeated .proteus.UserId report_missing = 7; */ public Builder setReportMissing( int index, com.wire.messages.Otr.UserId value) { if (reportMissingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReportMissingIsMutable(); reportMissing_.set(index, value); onChanged(); } else { reportMissingBuilder_.setMessage(index, value); } return this; } /** * repeated .proteus.UserId report_missing = 7; */ public Builder setReportMissing( int index, com.wire.messages.Otr.UserId.Builder builderForValue) { if (reportMissingBuilder_ == null) { ensureReportMissingIsMutable(); reportMissing_.set(index, builderForValue.build()); onChanged(); } else { reportMissingBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proteus.UserId report_missing = 7; */ public Builder addReportMissing(com.wire.messages.Otr.UserId value) { if (reportMissingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReportMissingIsMutable(); reportMissing_.add(value); onChanged(); } else { reportMissingBuilder_.addMessage(value); } return this; } /** * repeated .proteus.UserId report_missing = 7; */ public Builder addReportMissing( int index, com.wire.messages.Otr.UserId value) { if (reportMissingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReportMissingIsMutable(); reportMissing_.add(index, value); onChanged(); } else { reportMissingBuilder_.addMessage(index, value); } return this; } /** * repeated .proteus.UserId report_missing = 7; */ public Builder addReportMissing( com.wire.messages.Otr.UserId.Builder builderForValue) { if (reportMissingBuilder_ == null) { ensureReportMissingIsMutable(); reportMissing_.add(builderForValue.build()); onChanged(); } else { reportMissingBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proteus.UserId report_missing = 7; */ public Builder addReportMissing( int index, com.wire.messages.Otr.UserId.Builder builderForValue) { if (reportMissingBuilder_ == null) { ensureReportMissingIsMutable(); reportMissing_.add(index, builderForValue.build()); onChanged(); } else { reportMissingBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proteus.UserId report_missing = 7; */ public Builder addAllReportMissing( java.lang.Iterable values) { if (reportMissingBuilder_ == null) { ensureReportMissingIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, reportMissing_); onChanged(); } else { reportMissingBuilder_.addAllMessages(values); } return this; } /** * repeated .proteus.UserId report_missing = 7; */ public Builder clearReportMissing() { if (reportMissingBuilder_ == null) { reportMissing_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { reportMissingBuilder_.clear(); } return this; } /** * repeated .proteus.UserId report_missing = 7; */ public Builder removeReportMissing(int index) { if (reportMissingBuilder_ == null) { ensureReportMissingIsMutable(); reportMissing_.remove(index); onChanged(); } else { reportMissingBuilder_.remove(index); } return this; } /** * repeated .proteus.UserId report_missing = 7; */ public com.wire.messages.Otr.UserId.Builder getReportMissingBuilder( int index) { return getReportMissingFieldBuilder().getBuilder(index); } /** * repeated .proteus.UserId report_missing = 7; */ public com.wire.messages.Otr.UserIdOrBuilder getReportMissingOrBuilder( int index) { if (reportMissingBuilder_ == null) { return reportMissing_.get(index); } else { return reportMissingBuilder_.getMessageOrBuilder(index); } } /** * repeated .proteus.UserId report_missing = 7; */ public java.util.List getReportMissingOrBuilderList() { if (reportMissingBuilder_ != null) { return reportMissingBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(reportMissing_); } } /** * repeated .proteus.UserId report_missing = 7; */ public com.wire.messages.Otr.UserId.Builder addReportMissingBuilder() { return getReportMissingFieldBuilder().addBuilder( com.wire.messages.Otr.UserId.getDefaultInstance()); } /** * repeated .proteus.UserId report_missing = 7; */ public com.wire.messages.Otr.UserId.Builder addReportMissingBuilder( int index) { return getReportMissingFieldBuilder().addBuilder( index, com.wire.messages.Otr.UserId.getDefaultInstance()); } /** * repeated .proteus.UserId report_missing = 7; */ public java.util.List getReportMissingBuilderList() { return getReportMissingFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.UserId, com.wire.messages.Otr.UserId.Builder, com.wire.messages.Otr.UserIdOrBuilder> getReportMissingFieldBuilder() { if (reportMissingBuilder_ == null) { reportMissingBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.UserId, com.wire.messages.Otr.UserId.Builder, com.wire.messages.Otr.UserIdOrBuilder>( reportMissing_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); reportMissing_ = null; } return reportMissingBuilder_; } @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:proteus.NewOtrMessage) } // @@protoc_insertion_point(class_scope:proteus.NewOtrMessage) private static final com.wire.messages.Otr.NewOtrMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wire.messages.Otr.NewOtrMessage(); } public static com.wire.messages.Otr.NewOtrMessage getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NewOtrMessage 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.Otr.NewOtrMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QualifiedNewOtrMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proteus.QualifiedNewOtrMessage) com.google.protobuf.MessageOrBuilder { /** * required .proteus.ClientId sender = 1; * @return Whether the sender field is set. */ boolean hasSender(); /** * required .proteus.ClientId sender = 1; * @return The sender. */ com.wire.messages.Otr.ClientId getSender(); /** * required .proteus.ClientId sender = 1; */ com.wire.messages.Otr.ClientIdOrBuilder getSenderOrBuilder(); /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ java.util.List getRecipientsList(); /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ com.wire.messages.Otr.QualifiedUserEntry getRecipients(int index); /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ int getRecipientsCount(); /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ java.util.List getRecipientsOrBuilderList(); /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ com.wire.messages.Otr.QualifiedUserEntryOrBuilder getRecipientsOrBuilder( int index); /** * optional bool native_push = 3 [default = true]; * @return Whether the nativePush field is set. */ boolean hasNativePush(); /** * optional bool native_push = 3 [default = true]; * @return The nativePush. */ boolean getNativePush(); /** * optional bytes blob = 4; * @return Whether the blob field is set. */ boolean hasBlob(); /** * optional bytes blob = 4; * @return The blob. */ com.google.protobuf.ByteString getBlob(); /** * optional .proteus.Priority native_priority = 5; * @return Whether the nativePriority field is set. */ boolean hasNativePriority(); /** * optional .proteus.Priority native_priority = 5; * @return The nativePriority. */ com.wire.messages.Otr.Priority getNativePriority(); /** * optional bool transient = 6; * @return Whether the transient field is set. */ boolean hasTransient(); /** * optional bool transient = 6; * @return The transient. */ boolean getTransient(); /** * .proteus.ClientMismatchStrategy.ReportAll report_all = 7; * @return Whether the reportAll field is set. */ boolean hasReportAll(); /** * .proteus.ClientMismatchStrategy.ReportAll report_all = 7; * @return The reportAll. */ com.wire.messages.Otr.ClientMismatchStrategy.ReportAll getReportAll(); /** * .proteus.ClientMismatchStrategy.ReportAll report_all = 7; */ com.wire.messages.Otr.ClientMismatchStrategy.ReportAllOrBuilder getReportAllOrBuilder(); /** * .proteus.ClientMismatchStrategy.IgnoreAll ignore_all = 8; * @return Whether the ignoreAll field is set. */ boolean hasIgnoreAll(); /** * .proteus.ClientMismatchStrategy.IgnoreAll ignore_all = 8; * @return The ignoreAll. */ com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll getIgnoreAll(); /** * .proteus.ClientMismatchStrategy.IgnoreAll ignore_all = 8; */ com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAllOrBuilder getIgnoreAllOrBuilder(); /** * .proteus.ClientMismatchStrategy.ReportOnly report_only = 9; * @return Whether the reportOnly field is set. */ boolean hasReportOnly(); /** * .proteus.ClientMismatchStrategy.ReportOnly report_only = 9; * @return The reportOnly. */ com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly getReportOnly(); /** * .proteus.ClientMismatchStrategy.ReportOnly report_only = 9; */ com.wire.messages.Otr.ClientMismatchStrategy.ReportOnlyOrBuilder getReportOnlyOrBuilder(); /** * .proteus.ClientMismatchStrategy.IgnoreOnly ignore_only = 10; * @return Whether the ignoreOnly field is set. */ boolean hasIgnoreOnly(); /** * .proteus.ClientMismatchStrategy.IgnoreOnly ignore_only = 10; * @return The ignoreOnly. */ com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly getIgnoreOnly(); /** * .proteus.ClientMismatchStrategy.IgnoreOnly ignore_only = 10; */ com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnlyOrBuilder getIgnoreOnlyOrBuilder(); public com.wire.messages.Otr.QualifiedNewOtrMessage.ClientMismatchStrategyCase getClientMismatchStrategyCase(); } /** * Protobuf type {@code proteus.QualifiedNewOtrMessage} */ public static final class QualifiedNewOtrMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proteus.QualifiedNewOtrMessage) QualifiedNewOtrMessageOrBuilder { private static final long serialVersionUID = 0L; // Use QualifiedNewOtrMessage.newBuilder() to construct. private QualifiedNewOtrMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QualifiedNewOtrMessage() { recipients_ = java.util.Collections.emptyList(); nativePush_ = true; blob_ = com.google.protobuf.ByteString.EMPTY; nativePriority_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QualifiedNewOtrMessage(); } @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.Otr.internal_static_proteus_QualifiedNewOtrMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_QualifiedNewOtrMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.QualifiedNewOtrMessage.class, com.wire.messages.Otr.QualifiedNewOtrMessage.Builder.class); } private int bitField0_; private int clientMismatchStrategyCase_ = 0; private java.lang.Object clientMismatchStrategy_; public enum ClientMismatchStrategyCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { REPORT_ALL(7), IGNORE_ALL(8), REPORT_ONLY(9), IGNORE_ONLY(10), CLIENTMISMATCHSTRATEGY_NOT_SET(0); private final int value; private ClientMismatchStrategyCase(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 ClientMismatchStrategyCase valueOf(int value) { return forNumber(value); } public static ClientMismatchStrategyCase forNumber(int value) { switch (value) { case 7: return REPORT_ALL; case 8: return IGNORE_ALL; case 9: return REPORT_ONLY; case 10: return IGNORE_ONLY; case 0: return CLIENTMISMATCHSTRATEGY_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ClientMismatchStrategyCase getClientMismatchStrategyCase() { return ClientMismatchStrategyCase.forNumber( clientMismatchStrategyCase_); } public static final int SENDER_FIELD_NUMBER = 1; private com.wire.messages.Otr.ClientId sender_; /** * required .proteus.ClientId sender = 1; * @return Whether the sender field is set. */ @java.lang.Override public boolean hasSender() { return ((bitField0_ & 0x00000001) != 0); } /** * required .proteus.ClientId sender = 1; * @return The sender. */ @java.lang.Override public com.wire.messages.Otr.ClientId getSender() { return sender_ == null ? com.wire.messages.Otr.ClientId.getDefaultInstance() : sender_; } /** * required .proteus.ClientId sender = 1; */ @java.lang.Override public com.wire.messages.Otr.ClientIdOrBuilder getSenderOrBuilder() { return sender_ == null ? com.wire.messages.Otr.ClientId.getDefaultInstance() : sender_; } public static final int RECIPIENTS_FIELD_NUMBER = 2; private java.util.List recipients_; /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ @java.lang.Override public java.util.List getRecipientsList() { return recipients_; } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ @java.lang.Override public java.util.List getRecipientsOrBuilderList() { return recipients_; } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ @java.lang.Override public int getRecipientsCount() { return recipients_.size(); } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ @java.lang.Override public com.wire.messages.Otr.QualifiedUserEntry getRecipients(int index) { return recipients_.get(index); } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ @java.lang.Override public com.wire.messages.Otr.QualifiedUserEntryOrBuilder getRecipientsOrBuilder( int index) { return recipients_.get(index); } public static final int NATIVE_PUSH_FIELD_NUMBER = 3; private boolean nativePush_; /** * optional bool native_push = 3 [default = true]; * @return Whether the nativePush field is set. */ @java.lang.Override public boolean hasNativePush() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bool native_push = 3 [default = true]; * @return The nativePush. */ @java.lang.Override public boolean getNativePush() { return nativePush_; } public static final int BLOB_FIELD_NUMBER = 4; private com.google.protobuf.ByteString blob_; /** * optional bytes blob = 4; * @return Whether the blob field is set. */ @java.lang.Override public boolean hasBlob() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bytes blob = 4; * @return The blob. */ @java.lang.Override public com.google.protobuf.ByteString getBlob() { return blob_; } public static final int NATIVE_PRIORITY_FIELD_NUMBER = 5; private int nativePriority_; /** * optional .proteus.Priority native_priority = 5; * @return Whether the nativePriority field is set. */ @java.lang.Override public boolean hasNativePriority() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .proteus.Priority native_priority = 5; * @return The nativePriority. */ @java.lang.Override public com.wire.messages.Otr.Priority getNativePriority() { @SuppressWarnings("deprecation") com.wire.messages.Otr.Priority result = com.wire.messages.Otr.Priority.valueOf(nativePriority_); return result == null ? com.wire.messages.Otr.Priority.LOW_PRIORITY : result; } public static final int TRANSIENT_FIELD_NUMBER = 6; private boolean transient_; /** * optional bool transient = 6; * @return Whether the transient field is set. */ @java.lang.Override public boolean hasTransient() { return ((bitField0_ & 0x00000010) != 0); } /** * optional bool transient = 6; * @return The transient. */ @java.lang.Override public boolean getTransient() { return transient_; } public static final int REPORT_ALL_FIELD_NUMBER = 7; /** * .proteus.ClientMismatchStrategy.ReportAll report_all = 7; * @return Whether the reportAll field is set. */ @java.lang.Override public boolean hasReportAll() { return clientMismatchStrategyCase_ == 7; } /** * .proteus.ClientMismatchStrategy.ReportAll report_all = 7; * @return The reportAll. */ @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.ReportAll getReportAll() { if (clientMismatchStrategyCase_ == 7) { return (com.wire.messages.Otr.ClientMismatchStrategy.ReportAll) clientMismatchStrategy_; } return com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.getDefaultInstance(); } /** * .proteus.ClientMismatchStrategy.ReportAll report_all = 7; */ @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.ReportAllOrBuilder getReportAllOrBuilder() { if (clientMismatchStrategyCase_ == 7) { return (com.wire.messages.Otr.ClientMismatchStrategy.ReportAll) clientMismatchStrategy_; } return com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.getDefaultInstance(); } public static final int IGNORE_ALL_FIELD_NUMBER = 8; /** * .proteus.ClientMismatchStrategy.IgnoreAll ignore_all = 8; * @return Whether the ignoreAll field is set. */ @java.lang.Override public boolean hasIgnoreAll() { return clientMismatchStrategyCase_ == 8; } /** * .proteus.ClientMismatchStrategy.IgnoreAll ignore_all = 8; * @return The ignoreAll. */ @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll getIgnoreAll() { if (clientMismatchStrategyCase_ == 8) { return (com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll) clientMismatchStrategy_; } return com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.getDefaultInstance(); } /** * .proteus.ClientMismatchStrategy.IgnoreAll ignore_all = 8; */ @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAllOrBuilder getIgnoreAllOrBuilder() { if (clientMismatchStrategyCase_ == 8) { return (com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll) clientMismatchStrategy_; } return com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.getDefaultInstance(); } public static final int REPORT_ONLY_FIELD_NUMBER = 9; /** * .proteus.ClientMismatchStrategy.ReportOnly report_only = 9; * @return Whether the reportOnly field is set. */ @java.lang.Override public boolean hasReportOnly() { return clientMismatchStrategyCase_ == 9; } /** * .proteus.ClientMismatchStrategy.ReportOnly report_only = 9; * @return The reportOnly. */ @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly getReportOnly() { if (clientMismatchStrategyCase_ == 9) { return (com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly) clientMismatchStrategy_; } return com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.getDefaultInstance(); } /** * .proteus.ClientMismatchStrategy.ReportOnly report_only = 9; */ @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.ReportOnlyOrBuilder getReportOnlyOrBuilder() { if (clientMismatchStrategyCase_ == 9) { return (com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly) clientMismatchStrategy_; } return com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.getDefaultInstance(); } public static final int IGNORE_ONLY_FIELD_NUMBER = 10; /** * .proteus.ClientMismatchStrategy.IgnoreOnly ignore_only = 10; * @return Whether the ignoreOnly field is set. */ @java.lang.Override public boolean hasIgnoreOnly() { return clientMismatchStrategyCase_ == 10; } /** * .proteus.ClientMismatchStrategy.IgnoreOnly ignore_only = 10; * @return The ignoreOnly. */ @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly getIgnoreOnly() { if (clientMismatchStrategyCase_ == 10) { return (com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly) clientMismatchStrategy_; } return com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.getDefaultInstance(); } /** * .proteus.ClientMismatchStrategy.IgnoreOnly ignore_only = 10; */ @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnlyOrBuilder getIgnoreOnlyOrBuilder() { if (clientMismatchStrategyCase_ == 10) { return (com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly) clientMismatchStrategy_; } return com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.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; if (!hasSender()) { memoizedIsInitialized = 0; return false; } if (!getSender().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getRecipientsCount(); i++) { if (!getRecipients(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasReportOnly()) { if (!getReportOnly().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasIgnoreOnly()) { if (!getIgnoreOnly().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.writeMessage(1, getSender()); } for (int i = 0; i < recipients_.size(); i++) { output.writeMessage(2, recipients_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(3, nativePush_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBytes(4, blob_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(5, nativePriority_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(6, transient_); } if (clientMismatchStrategyCase_ == 7) { output.writeMessage(7, (com.wire.messages.Otr.ClientMismatchStrategy.ReportAll) clientMismatchStrategy_); } if (clientMismatchStrategyCase_ == 8) { output.writeMessage(8, (com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll) clientMismatchStrategy_); } if (clientMismatchStrategyCase_ == 9) { output.writeMessage(9, (com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly) clientMismatchStrategy_); } if (clientMismatchStrategyCase_ == 10) { output.writeMessage(10, (com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly) clientMismatchStrategy_); } 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 .computeMessageSize(1, getSender()); } for (int i = 0; i < recipients_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, recipients_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, nativePush_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, blob_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, nativePriority_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, transient_); } if (clientMismatchStrategyCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.wire.messages.Otr.ClientMismatchStrategy.ReportAll) clientMismatchStrategy_); } if (clientMismatchStrategyCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll) clientMismatchStrategy_); } if (clientMismatchStrategyCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly) clientMismatchStrategy_); } if (clientMismatchStrategyCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly) clientMismatchStrategy_); } 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.Otr.QualifiedNewOtrMessage)) { return super.equals(obj); } com.wire.messages.Otr.QualifiedNewOtrMessage other = (com.wire.messages.Otr.QualifiedNewOtrMessage) obj; if (hasSender() != other.hasSender()) return false; if (hasSender()) { if (!getSender() .equals(other.getSender())) return false; } if (!getRecipientsList() .equals(other.getRecipientsList())) return false; if (hasNativePush() != other.hasNativePush()) return false; if (hasNativePush()) { if (getNativePush() != other.getNativePush()) return false; } if (hasBlob() != other.hasBlob()) return false; if (hasBlob()) { if (!getBlob() .equals(other.getBlob())) return false; } if (hasNativePriority() != other.hasNativePriority()) return false; if (hasNativePriority()) { if (nativePriority_ != other.nativePriority_) return false; } if (hasTransient() != other.hasTransient()) return false; if (hasTransient()) { if (getTransient() != other.getTransient()) return false; } if (!getClientMismatchStrategyCase().equals(other.getClientMismatchStrategyCase())) return false; switch (clientMismatchStrategyCase_) { case 7: if (!getReportAll() .equals(other.getReportAll())) return false; break; case 8: if (!getIgnoreAll() .equals(other.getIgnoreAll())) return false; break; case 9: if (!getReportOnly() .equals(other.getReportOnly())) return false; break; case 10: if (!getIgnoreOnly() .equals(other.getIgnoreOnly())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSender()) { hash = (37 * hash) + SENDER_FIELD_NUMBER; hash = (53 * hash) + getSender().hashCode(); } if (getRecipientsCount() > 0) { hash = (37 * hash) + RECIPIENTS_FIELD_NUMBER; hash = (53 * hash) + getRecipientsList().hashCode(); } if (hasNativePush()) { hash = (37 * hash) + NATIVE_PUSH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNativePush()); } if (hasBlob()) { hash = (37 * hash) + BLOB_FIELD_NUMBER; hash = (53 * hash) + getBlob().hashCode(); } if (hasNativePriority()) { hash = (37 * hash) + NATIVE_PRIORITY_FIELD_NUMBER; hash = (53 * hash) + nativePriority_; } if (hasTransient()) { hash = (37 * hash) + TRANSIENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTransient()); } switch (clientMismatchStrategyCase_) { case 7: hash = (37 * hash) + REPORT_ALL_FIELD_NUMBER; hash = (53 * hash) + getReportAll().hashCode(); break; case 8: hash = (37 * hash) + IGNORE_ALL_FIELD_NUMBER; hash = (53 * hash) + getIgnoreAll().hashCode(); break; case 9: hash = (37 * hash) + REPORT_ONLY_FIELD_NUMBER; hash = (53 * hash) + getReportOnly().hashCode(); break; case 10: hash = (37 * hash) + IGNORE_ONLY_FIELD_NUMBER; hash = (53 * hash) + getIgnoreOnly().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wire.messages.Otr.QualifiedNewOtrMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.QualifiedNewOtrMessage 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.Otr.QualifiedNewOtrMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.QualifiedNewOtrMessage 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.Otr.QualifiedNewOtrMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.QualifiedNewOtrMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Otr.QualifiedNewOtrMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.QualifiedNewOtrMessage 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.Otr.QualifiedNewOtrMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wire.messages.Otr.QualifiedNewOtrMessage 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.Otr.QualifiedNewOtrMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.QualifiedNewOtrMessage 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.Otr.QualifiedNewOtrMessage 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 proteus.QualifiedNewOtrMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proteus.QualifiedNewOtrMessage) com.wire.messages.Otr.QualifiedNewOtrMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wire.messages.Otr.internal_static_proteus_QualifiedNewOtrMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_QualifiedNewOtrMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.QualifiedNewOtrMessage.class, com.wire.messages.Otr.QualifiedNewOtrMessage.Builder.class); } // Construct using com.wire.messages.Otr.QualifiedNewOtrMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSenderFieldBuilder(); getRecipientsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (senderBuilder_ == null) { sender_ = null; } else { senderBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (recipientsBuilder_ == null) { recipients_ = java.util.Collections.emptyList(); } else { recipients_ = null; recipientsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); nativePush_ = true; bitField0_ = (bitField0_ & ~0x00000004); blob_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); nativePriority_ = 1; bitField0_ = (bitField0_ & ~0x00000010); transient_ = false; bitField0_ = (bitField0_ & ~0x00000020); if (reportAllBuilder_ != null) { reportAllBuilder_.clear(); } if (ignoreAllBuilder_ != null) { ignoreAllBuilder_.clear(); } if (reportOnlyBuilder_ != null) { reportOnlyBuilder_.clear(); } if (ignoreOnlyBuilder_ != null) { ignoreOnlyBuilder_.clear(); } clientMismatchStrategyCase_ = 0; clientMismatchStrategy_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wire.messages.Otr.internal_static_proteus_QualifiedNewOtrMessage_descriptor; } @java.lang.Override public com.wire.messages.Otr.QualifiedNewOtrMessage getDefaultInstanceForType() { return com.wire.messages.Otr.QualifiedNewOtrMessage.getDefaultInstance(); } @java.lang.Override public com.wire.messages.Otr.QualifiedNewOtrMessage build() { com.wire.messages.Otr.QualifiedNewOtrMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wire.messages.Otr.QualifiedNewOtrMessage buildPartial() { com.wire.messages.Otr.QualifiedNewOtrMessage result = new com.wire.messages.Otr.QualifiedNewOtrMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (senderBuilder_ == null) { result.sender_ = sender_; } else { result.sender_ = senderBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (recipientsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { recipients_ = java.util.Collections.unmodifiableList(recipients_); bitField0_ = (bitField0_ & ~0x00000002); } result.recipients_ = recipients_; } else { result.recipients_ = recipientsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000002; } result.nativePush_ = nativePush_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000004; } result.blob_ = blob_; if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000008; } result.nativePriority_ = nativePriority_; if (((from_bitField0_ & 0x00000020) != 0)) { result.transient_ = transient_; to_bitField0_ |= 0x00000010; } if (clientMismatchStrategyCase_ == 7) { if (reportAllBuilder_ == null) { result.clientMismatchStrategy_ = clientMismatchStrategy_; } else { result.clientMismatchStrategy_ = reportAllBuilder_.build(); } } if (clientMismatchStrategyCase_ == 8) { if (ignoreAllBuilder_ == null) { result.clientMismatchStrategy_ = clientMismatchStrategy_; } else { result.clientMismatchStrategy_ = ignoreAllBuilder_.build(); } } if (clientMismatchStrategyCase_ == 9) { if (reportOnlyBuilder_ == null) { result.clientMismatchStrategy_ = clientMismatchStrategy_; } else { result.clientMismatchStrategy_ = reportOnlyBuilder_.build(); } } if (clientMismatchStrategyCase_ == 10) { if (ignoreOnlyBuilder_ == null) { result.clientMismatchStrategy_ = clientMismatchStrategy_; } else { result.clientMismatchStrategy_ = ignoreOnlyBuilder_.build(); } } result.bitField0_ = to_bitField0_; result.clientMismatchStrategyCase_ = clientMismatchStrategyCase_; 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.Otr.QualifiedNewOtrMessage) { return mergeFrom((com.wire.messages.Otr.QualifiedNewOtrMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wire.messages.Otr.QualifiedNewOtrMessage other) { if (other == com.wire.messages.Otr.QualifiedNewOtrMessage.getDefaultInstance()) return this; if (other.hasSender()) { mergeSender(other.getSender()); } if (recipientsBuilder_ == null) { if (!other.recipients_.isEmpty()) { if (recipients_.isEmpty()) { recipients_ = other.recipients_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRecipientsIsMutable(); recipients_.addAll(other.recipients_); } onChanged(); } } else { if (!other.recipients_.isEmpty()) { if (recipientsBuilder_.isEmpty()) { recipientsBuilder_.dispose(); recipientsBuilder_ = null; recipients_ = other.recipients_; bitField0_ = (bitField0_ & ~0x00000002); recipientsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRecipientsFieldBuilder() : null; } else { recipientsBuilder_.addAllMessages(other.recipients_); } } } if (other.hasNativePush()) { setNativePush(other.getNativePush()); } if (other.hasBlob()) { setBlob(other.getBlob()); } if (other.hasNativePriority()) { setNativePriority(other.getNativePriority()); } if (other.hasTransient()) { setTransient(other.getTransient()); } switch (other.getClientMismatchStrategyCase()) { case REPORT_ALL: { mergeReportAll(other.getReportAll()); break; } case IGNORE_ALL: { mergeIgnoreAll(other.getIgnoreAll()); break; } case REPORT_ONLY: { mergeReportOnly(other.getReportOnly()); break; } case IGNORE_ONLY: { mergeIgnoreOnly(other.getIgnoreOnly()); break; } case CLIENTMISMATCHSTRATEGY_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasSender()) { return false; } if (!getSender().isInitialized()) { return false; } for (int i = 0; i < getRecipientsCount(); i++) { if (!getRecipients(i).isInitialized()) { return false; } } if (hasReportOnly()) { if (!getReportOnly().isInitialized()) { return false; } } if (hasIgnoreOnly()) { if (!getIgnoreOnly().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: { input.readMessage( getSenderFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.wire.messages.Otr.QualifiedUserEntry m = input.readMessage( com.wire.messages.Otr.QualifiedUserEntry.PARSER, extensionRegistry); if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); recipients_.add(m); } else { recipientsBuilder_.addMessage(m); } break; } // case 18 case 24: { nativePush_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { blob_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { int tmpRaw = input.readEnum(); com.wire.messages.Otr.Priority tmpValue = com.wire.messages.Otr.Priority.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(5, tmpRaw); } else { nativePriority_ = tmpRaw; bitField0_ |= 0x00000010; } break; } // case 40 case 48: { transient_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { input.readMessage( getReportAllFieldBuilder().getBuilder(), extensionRegistry); clientMismatchStrategyCase_ = 7; break; } // case 58 case 66: { input.readMessage( getIgnoreAllFieldBuilder().getBuilder(), extensionRegistry); clientMismatchStrategyCase_ = 8; break; } // case 66 case 74: { input.readMessage( getReportOnlyFieldBuilder().getBuilder(), extensionRegistry); clientMismatchStrategyCase_ = 9; break; } // case 74 case 82: { input.readMessage( getIgnoreOnlyFieldBuilder().getBuilder(), extensionRegistry); clientMismatchStrategyCase_ = 10; break; } // case 82 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 clientMismatchStrategyCase_ = 0; private java.lang.Object clientMismatchStrategy_; public ClientMismatchStrategyCase getClientMismatchStrategyCase() { return ClientMismatchStrategyCase.forNumber( clientMismatchStrategyCase_); } public Builder clearClientMismatchStrategy() { clientMismatchStrategyCase_ = 0; clientMismatchStrategy_ = null; onChanged(); return this; } private int bitField0_; private com.wire.messages.Otr.ClientId sender_; private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientId, com.wire.messages.Otr.ClientId.Builder, com.wire.messages.Otr.ClientIdOrBuilder> senderBuilder_; /** * required .proteus.ClientId sender = 1; * @return Whether the sender field is set. */ public boolean hasSender() { return ((bitField0_ & 0x00000001) != 0); } /** * required .proteus.ClientId sender = 1; * @return The sender. */ public com.wire.messages.Otr.ClientId getSender() { if (senderBuilder_ == null) { return sender_ == null ? com.wire.messages.Otr.ClientId.getDefaultInstance() : sender_; } else { return senderBuilder_.getMessage(); } } /** * required .proteus.ClientId sender = 1; */ public Builder setSender(com.wire.messages.Otr.ClientId value) { if (senderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sender_ = value; onChanged(); } else { senderBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .proteus.ClientId sender = 1; */ public Builder setSender( com.wire.messages.Otr.ClientId.Builder builderForValue) { if (senderBuilder_ == null) { sender_ = builderForValue.build(); onChanged(); } else { senderBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .proteus.ClientId sender = 1; */ public Builder mergeSender(com.wire.messages.Otr.ClientId value) { if (senderBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && sender_ != null && sender_ != com.wire.messages.Otr.ClientId.getDefaultInstance()) { sender_ = com.wire.messages.Otr.ClientId.newBuilder(sender_).mergeFrom(value).buildPartial(); } else { sender_ = value; } onChanged(); } else { senderBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .proteus.ClientId sender = 1; */ public Builder clearSender() { if (senderBuilder_ == null) { sender_ = null; onChanged(); } else { senderBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .proteus.ClientId sender = 1; */ public com.wire.messages.Otr.ClientId.Builder getSenderBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSenderFieldBuilder().getBuilder(); } /** * required .proteus.ClientId sender = 1; */ public com.wire.messages.Otr.ClientIdOrBuilder getSenderOrBuilder() { if (senderBuilder_ != null) { return senderBuilder_.getMessageOrBuilder(); } else { return sender_ == null ? com.wire.messages.Otr.ClientId.getDefaultInstance() : sender_; } } /** * required .proteus.ClientId sender = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientId, com.wire.messages.Otr.ClientId.Builder, com.wire.messages.Otr.ClientIdOrBuilder> getSenderFieldBuilder() { if (senderBuilder_ == null) { senderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientId, com.wire.messages.Otr.ClientId.Builder, com.wire.messages.Otr.ClientIdOrBuilder>( getSender(), getParentForChildren(), isClean()); sender_ = null; } return senderBuilder_; } private java.util.List recipients_ = java.util.Collections.emptyList(); private void ensureRecipientsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { recipients_ = new java.util.ArrayList(recipients_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.QualifiedUserEntry, com.wire.messages.Otr.QualifiedUserEntry.Builder, com.wire.messages.Otr.QualifiedUserEntryOrBuilder> recipientsBuilder_; /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public java.util.List getRecipientsList() { if (recipientsBuilder_ == null) { return java.util.Collections.unmodifiableList(recipients_); } else { return recipientsBuilder_.getMessageList(); } } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public int getRecipientsCount() { if (recipientsBuilder_ == null) { return recipients_.size(); } else { return recipientsBuilder_.getCount(); } } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public com.wire.messages.Otr.QualifiedUserEntry getRecipients(int index) { if (recipientsBuilder_ == null) { return recipients_.get(index); } else { return recipientsBuilder_.getMessage(index); } } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public Builder setRecipients( int index, com.wire.messages.Otr.QualifiedUserEntry value) { if (recipientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecipientsIsMutable(); recipients_.set(index, value); onChanged(); } else { recipientsBuilder_.setMessage(index, value); } return this; } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public Builder setRecipients( int index, com.wire.messages.Otr.QualifiedUserEntry.Builder builderForValue) { if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); recipients_.set(index, builderForValue.build()); onChanged(); } else { recipientsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public Builder addRecipients(com.wire.messages.Otr.QualifiedUserEntry value) { if (recipientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecipientsIsMutable(); recipients_.add(value); onChanged(); } else { recipientsBuilder_.addMessage(value); } return this; } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public Builder addRecipients( int index, com.wire.messages.Otr.QualifiedUserEntry value) { if (recipientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecipientsIsMutable(); recipients_.add(index, value); onChanged(); } else { recipientsBuilder_.addMessage(index, value); } return this; } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public Builder addRecipients( com.wire.messages.Otr.QualifiedUserEntry.Builder builderForValue) { if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); recipients_.add(builderForValue.build()); onChanged(); } else { recipientsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public Builder addRecipients( int index, com.wire.messages.Otr.QualifiedUserEntry.Builder builderForValue) { if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); recipients_.add(index, builderForValue.build()); onChanged(); } else { recipientsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public Builder addAllRecipients( java.lang.Iterable values) { if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recipients_); onChanged(); } else { recipientsBuilder_.addAllMessages(values); } return this; } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public Builder clearRecipients() { if (recipientsBuilder_ == null) { recipients_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { recipientsBuilder_.clear(); } return this; } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public Builder removeRecipients(int index) { if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); recipients_.remove(index); onChanged(); } else { recipientsBuilder_.remove(index); } return this; } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public com.wire.messages.Otr.QualifiedUserEntry.Builder getRecipientsBuilder( int index) { return getRecipientsFieldBuilder().getBuilder(index); } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public com.wire.messages.Otr.QualifiedUserEntryOrBuilder getRecipientsOrBuilder( int index) { if (recipientsBuilder_ == null) { return recipients_.get(index); } else { return recipientsBuilder_.getMessageOrBuilder(index); } } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public java.util.List getRecipientsOrBuilderList() { if (recipientsBuilder_ != null) { return recipientsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(recipients_); } } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public com.wire.messages.Otr.QualifiedUserEntry.Builder addRecipientsBuilder() { return getRecipientsFieldBuilder().addBuilder( com.wire.messages.Otr.QualifiedUserEntry.getDefaultInstance()); } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public com.wire.messages.Otr.QualifiedUserEntry.Builder addRecipientsBuilder( int index) { return getRecipientsFieldBuilder().addBuilder( index, com.wire.messages.Otr.QualifiedUserEntry.getDefaultInstance()); } /** * repeated .proteus.QualifiedUserEntry recipients = 2; */ public java.util.List getRecipientsBuilderList() { return getRecipientsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.QualifiedUserEntry, com.wire.messages.Otr.QualifiedUserEntry.Builder, com.wire.messages.Otr.QualifiedUserEntryOrBuilder> getRecipientsFieldBuilder() { if (recipientsBuilder_ == null) { recipientsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.QualifiedUserEntry, com.wire.messages.Otr.QualifiedUserEntry.Builder, com.wire.messages.Otr.QualifiedUserEntryOrBuilder>( recipients_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); recipients_ = null; } return recipientsBuilder_; } private boolean nativePush_ = true; /** * optional bool native_push = 3 [default = true]; * @return Whether the nativePush field is set. */ @java.lang.Override public boolean hasNativePush() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bool native_push = 3 [default = true]; * @return The nativePush. */ @java.lang.Override public boolean getNativePush() { return nativePush_; } /** * optional bool native_push = 3 [default = true]; * @param value The nativePush to set. * @return This builder for chaining. */ public Builder setNativePush(boolean value) { bitField0_ |= 0x00000004; nativePush_ = value; onChanged(); return this; } /** * optional bool native_push = 3 [default = true]; * @return This builder for chaining. */ public Builder clearNativePush() { bitField0_ = (bitField0_ & ~0x00000004); nativePush_ = true; onChanged(); return this; } private com.google.protobuf.ByteString blob_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes blob = 4; * @return Whether the blob field is set. */ @java.lang.Override public boolean hasBlob() { return ((bitField0_ & 0x00000008) != 0); } /** * optional bytes blob = 4; * @return The blob. */ @java.lang.Override public com.google.protobuf.ByteString getBlob() { return blob_; } /** * optional bytes blob = 4; * @param value The blob to set. * @return This builder for chaining. */ public Builder setBlob(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; blob_ = value; onChanged(); return this; } /** * optional bytes blob = 4; * @return This builder for chaining. */ public Builder clearBlob() { bitField0_ = (bitField0_ & ~0x00000008); blob_ = getDefaultInstance().getBlob(); onChanged(); return this; } private int nativePriority_ = 1; /** * optional .proteus.Priority native_priority = 5; * @return Whether the nativePriority field is set. */ @java.lang.Override public boolean hasNativePriority() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .proteus.Priority native_priority = 5; * @return The nativePriority. */ @java.lang.Override public com.wire.messages.Otr.Priority getNativePriority() { @SuppressWarnings("deprecation") com.wire.messages.Otr.Priority result = com.wire.messages.Otr.Priority.valueOf(nativePriority_); return result == null ? com.wire.messages.Otr.Priority.LOW_PRIORITY : result; } /** * optional .proteus.Priority native_priority = 5; * @param value The nativePriority to set. * @return This builder for chaining. */ public Builder setNativePriority(com.wire.messages.Otr.Priority value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; nativePriority_ = value.getNumber(); onChanged(); return this; } /** * optional .proteus.Priority native_priority = 5; * @return This builder for chaining. */ public Builder clearNativePriority() { bitField0_ = (bitField0_ & ~0x00000010); nativePriority_ = 1; onChanged(); return this; } private boolean transient_ ; /** * optional bool transient = 6; * @return Whether the transient field is set. */ @java.lang.Override public boolean hasTransient() { return ((bitField0_ & 0x00000020) != 0); } /** * optional bool transient = 6; * @return The transient. */ @java.lang.Override public boolean getTransient() { return transient_; } /** * optional bool transient = 6; * @param value The transient to set. * @return This builder for chaining. */ public Builder setTransient(boolean value) { bitField0_ |= 0x00000020; transient_ = value; onChanged(); return this; } /** * optional bool transient = 6; * @return This builder for chaining. */ public Builder clearTransient() { bitField0_ = (bitField0_ & ~0x00000020); transient_ = false; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientMismatchStrategy.ReportAll, com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.Builder, com.wire.messages.Otr.ClientMismatchStrategy.ReportAllOrBuilder> reportAllBuilder_; /** * .proteus.ClientMismatchStrategy.ReportAll report_all = 7; * @return Whether the reportAll field is set. */ @java.lang.Override public boolean hasReportAll() { return clientMismatchStrategyCase_ == 7; } /** * .proteus.ClientMismatchStrategy.ReportAll report_all = 7; * @return The reportAll. */ @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.ReportAll getReportAll() { if (reportAllBuilder_ == null) { if (clientMismatchStrategyCase_ == 7) { return (com.wire.messages.Otr.ClientMismatchStrategy.ReportAll) clientMismatchStrategy_; } return com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.getDefaultInstance(); } else { if (clientMismatchStrategyCase_ == 7) { return reportAllBuilder_.getMessage(); } return com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.getDefaultInstance(); } } /** * .proteus.ClientMismatchStrategy.ReportAll report_all = 7; */ public Builder setReportAll(com.wire.messages.Otr.ClientMismatchStrategy.ReportAll value) { if (reportAllBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMismatchStrategy_ = value; onChanged(); } else { reportAllBuilder_.setMessage(value); } clientMismatchStrategyCase_ = 7; return this; } /** * .proteus.ClientMismatchStrategy.ReportAll report_all = 7; */ public Builder setReportAll( com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.Builder builderForValue) { if (reportAllBuilder_ == null) { clientMismatchStrategy_ = builderForValue.build(); onChanged(); } else { reportAllBuilder_.setMessage(builderForValue.build()); } clientMismatchStrategyCase_ = 7; return this; } /** * .proteus.ClientMismatchStrategy.ReportAll report_all = 7; */ public Builder mergeReportAll(com.wire.messages.Otr.ClientMismatchStrategy.ReportAll value) { if (reportAllBuilder_ == null) { if (clientMismatchStrategyCase_ == 7 && clientMismatchStrategy_ != com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.getDefaultInstance()) { clientMismatchStrategy_ = com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.newBuilder((com.wire.messages.Otr.ClientMismatchStrategy.ReportAll) clientMismatchStrategy_) .mergeFrom(value).buildPartial(); } else { clientMismatchStrategy_ = value; } onChanged(); } else { if (clientMismatchStrategyCase_ == 7) { reportAllBuilder_.mergeFrom(value); } else { reportAllBuilder_.setMessage(value); } } clientMismatchStrategyCase_ = 7; return this; } /** * .proteus.ClientMismatchStrategy.ReportAll report_all = 7; */ public Builder clearReportAll() { if (reportAllBuilder_ == null) { if (clientMismatchStrategyCase_ == 7) { clientMismatchStrategyCase_ = 0; clientMismatchStrategy_ = null; onChanged(); } } else { if (clientMismatchStrategyCase_ == 7) { clientMismatchStrategyCase_ = 0; clientMismatchStrategy_ = null; } reportAllBuilder_.clear(); } return this; } /** * .proteus.ClientMismatchStrategy.ReportAll report_all = 7; */ public com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.Builder getReportAllBuilder() { return getReportAllFieldBuilder().getBuilder(); } /** * .proteus.ClientMismatchStrategy.ReportAll report_all = 7; */ @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.ReportAllOrBuilder getReportAllOrBuilder() { if ((clientMismatchStrategyCase_ == 7) && (reportAllBuilder_ != null)) { return reportAllBuilder_.getMessageOrBuilder(); } else { if (clientMismatchStrategyCase_ == 7) { return (com.wire.messages.Otr.ClientMismatchStrategy.ReportAll) clientMismatchStrategy_; } return com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.getDefaultInstance(); } } /** * .proteus.ClientMismatchStrategy.ReportAll report_all = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientMismatchStrategy.ReportAll, com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.Builder, com.wire.messages.Otr.ClientMismatchStrategy.ReportAllOrBuilder> getReportAllFieldBuilder() { if (reportAllBuilder_ == null) { if (!(clientMismatchStrategyCase_ == 7)) { clientMismatchStrategy_ = com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.getDefaultInstance(); } reportAllBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientMismatchStrategy.ReportAll, com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.Builder, com.wire.messages.Otr.ClientMismatchStrategy.ReportAllOrBuilder>( (com.wire.messages.Otr.ClientMismatchStrategy.ReportAll) clientMismatchStrategy_, getParentForChildren(), isClean()); clientMismatchStrategy_ = null; } clientMismatchStrategyCase_ = 7; onChanged();; return reportAllBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll, com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.Builder, com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAllOrBuilder> ignoreAllBuilder_; /** * .proteus.ClientMismatchStrategy.IgnoreAll ignore_all = 8; * @return Whether the ignoreAll field is set. */ @java.lang.Override public boolean hasIgnoreAll() { return clientMismatchStrategyCase_ == 8; } /** * .proteus.ClientMismatchStrategy.IgnoreAll ignore_all = 8; * @return The ignoreAll. */ @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll getIgnoreAll() { if (ignoreAllBuilder_ == null) { if (clientMismatchStrategyCase_ == 8) { return (com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll) clientMismatchStrategy_; } return com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.getDefaultInstance(); } else { if (clientMismatchStrategyCase_ == 8) { return ignoreAllBuilder_.getMessage(); } return com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.getDefaultInstance(); } } /** * .proteus.ClientMismatchStrategy.IgnoreAll ignore_all = 8; */ public Builder setIgnoreAll(com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll value) { if (ignoreAllBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMismatchStrategy_ = value; onChanged(); } else { ignoreAllBuilder_.setMessage(value); } clientMismatchStrategyCase_ = 8; return this; } /** * .proteus.ClientMismatchStrategy.IgnoreAll ignore_all = 8; */ public Builder setIgnoreAll( com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.Builder builderForValue) { if (ignoreAllBuilder_ == null) { clientMismatchStrategy_ = builderForValue.build(); onChanged(); } else { ignoreAllBuilder_.setMessage(builderForValue.build()); } clientMismatchStrategyCase_ = 8; return this; } /** * .proteus.ClientMismatchStrategy.IgnoreAll ignore_all = 8; */ public Builder mergeIgnoreAll(com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll value) { if (ignoreAllBuilder_ == null) { if (clientMismatchStrategyCase_ == 8 && clientMismatchStrategy_ != com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.getDefaultInstance()) { clientMismatchStrategy_ = com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.newBuilder((com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll) clientMismatchStrategy_) .mergeFrom(value).buildPartial(); } else { clientMismatchStrategy_ = value; } onChanged(); } else { if (clientMismatchStrategyCase_ == 8) { ignoreAllBuilder_.mergeFrom(value); } else { ignoreAllBuilder_.setMessage(value); } } clientMismatchStrategyCase_ = 8; return this; } /** * .proteus.ClientMismatchStrategy.IgnoreAll ignore_all = 8; */ public Builder clearIgnoreAll() { if (ignoreAllBuilder_ == null) { if (clientMismatchStrategyCase_ == 8) { clientMismatchStrategyCase_ = 0; clientMismatchStrategy_ = null; onChanged(); } } else { if (clientMismatchStrategyCase_ == 8) { clientMismatchStrategyCase_ = 0; clientMismatchStrategy_ = null; } ignoreAllBuilder_.clear(); } return this; } /** * .proteus.ClientMismatchStrategy.IgnoreAll ignore_all = 8; */ public com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.Builder getIgnoreAllBuilder() { return getIgnoreAllFieldBuilder().getBuilder(); } /** * .proteus.ClientMismatchStrategy.IgnoreAll ignore_all = 8; */ @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAllOrBuilder getIgnoreAllOrBuilder() { if ((clientMismatchStrategyCase_ == 8) && (ignoreAllBuilder_ != null)) { return ignoreAllBuilder_.getMessageOrBuilder(); } else { if (clientMismatchStrategyCase_ == 8) { return (com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll) clientMismatchStrategy_; } return com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.getDefaultInstance(); } } /** * .proteus.ClientMismatchStrategy.IgnoreAll ignore_all = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll, com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.Builder, com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAllOrBuilder> getIgnoreAllFieldBuilder() { if (ignoreAllBuilder_ == null) { if (!(clientMismatchStrategyCase_ == 8)) { clientMismatchStrategy_ = com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.getDefaultInstance(); } ignoreAllBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll, com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.Builder, com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAllOrBuilder>( (com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll) clientMismatchStrategy_, getParentForChildren(), isClean()); clientMismatchStrategy_ = null; } clientMismatchStrategyCase_ = 8; onChanged();; return ignoreAllBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly, com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.Builder, com.wire.messages.Otr.ClientMismatchStrategy.ReportOnlyOrBuilder> reportOnlyBuilder_; /** * .proteus.ClientMismatchStrategy.ReportOnly report_only = 9; * @return Whether the reportOnly field is set. */ @java.lang.Override public boolean hasReportOnly() { return clientMismatchStrategyCase_ == 9; } /** * .proteus.ClientMismatchStrategy.ReportOnly report_only = 9; * @return The reportOnly. */ @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly getReportOnly() { if (reportOnlyBuilder_ == null) { if (clientMismatchStrategyCase_ == 9) { return (com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly) clientMismatchStrategy_; } return com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.getDefaultInstance(); } else { if (clientMismatchStrategyCase_ == 9) { return reportOnlyBuilder_.getMessage(); } return com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.getDefaultInstance(); } } /** * .proteus.ClientMismatchStrategy.ReportOnly report_only = 9; */ public Builder setReportOnly(com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly value) { if (reportOnlyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMismatchStrategy_ = value; onChanged(); } else { reportOnlyBuilder_.setMessage(value); } clientMismatchStrategyCase_ = 9; return this; } /** * .proteus.ClientMismatchStrategy.ReportOnly report_only = 9; */ public Builder setReportOnly( com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.Builder builderForValue) { if (reportOnlyBuilder_ == null) { clientMismatchStrategy_ = builderForValue.build(); onChanged(); } else { reportOnlyBuilder_.setMessage(builderForValue.build()); } clientMismatchStrategyCase_ = 9; return this; } /** * .proteus.ClientMismatchStrategy.ReportOnly report_only = 9; */ public Builder mergeReportOnly(com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly value) { if (reportOnlyBuilder_ == null) { if (clientMismatchStrategyCase_ == 9 && clientMismatchStrategy_ != com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.getDefaultInstance()) { clientMismatchStrategy_ = com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.newBuilder((com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly) clientMismatchStrategy_) .mergeFrom(value).buildPartial(); } else { clientMismatchStrategy_ = value; } onChanged(); } else { if (clientMismatchStrategyCase_ == 9) { reportOnlyBuilder_.mergeFrom(value); } else { reportOnlyBuilder_.setMessage(value); } } clientMismatchStrategyCase_ = 9; return this; } /** * .proteus.ClientMismatchStrategy.ReportOnly report_only = 9; */ public Builder clearReportOnly() { if (reportOnlyBuilder_ == null) { if (clientMismatchStrategyCase_ == 9) { clientMismatchStrategyCase_ = 0; clientMismatchStrategy_ = null; onChanged(); } } else { if (clientMismatchStrategyCase_ == 9) { clientMismatchStrategyCase_ = 0; clientMismatchStrategy_ = null; } reportOnlyBuilder_.clear(); } return this; } /** * .proteus.ClientMismatchStrategy.ReportOnly report_only = 9; */ public com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.Builder getReportOnlyBuilder() { return getReportOnlyFieldBuilder().getBuilder(); } /** * .proteus.ClientMismatchStrategy.ReportOnly report_only = 9; */ @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.ReportOnlyOrBuilder getReportOnlyOrBuilder() { if ((clientMismatchStrategyCase_ == 9) && (reportOnlyBuilder_ != null)) { return reportOnlyBuilder_.getMessageOrBuilder(); } else { if (clientMismatchStrategyCase_ == 9) { return (com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly) clientMismatchStrategy_; } return com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.getDefaultInstance(); } } /** * .proteus.ClientMismatchStrategy.ReportOnly report_only = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly, com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.Builder, com.wire.messages.Otr.ClientMismatchStrategy.ReportOnlyOrBuilder> getReportOnlyFieldBuilder() { if (reportOnlyBuilder_ == null) { if (!(clientMismatchStrategyCase_ == 9)) { clientMismatchStrategy_ = com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.getDefaultInstance(); } reportOnlyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly, com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.Builder, com.wire.messages.Otr.ClientMismatchStrategy.ReportOnlyOrBuilder>( (com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly) clientMismatchStrategy_, getParentForChildren(), isClean()); clientMismatchStrategy_ = null; } clientMismatchStrategyCase_ = 9; onChanged();; return reportOnlyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly, com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.Builder, com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnlyOrBuilder> ignoreOnlyBuilder_; /** * .proteus.ClientMismatchStrategy.IgnoreOnly ignore_only = 10; * @return Whether the ignoreOnly field is set. */ @java.lang.Override public boolean hasIgnoreOnly() { return clientMismatchStrategyCase_ == 10; } /** * .proteus.ClientMismatchStrategy.IgnoreOnly ignore_only = 10; * @return The ignoreOnly. */ @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly getIgnoreOnly() { if (ignoreOnlyBuilder_ == null) { if (clientMismatchStrategyCase_ == 10) { return (com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly) clientMismatchStrategy_; } return com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.getDefaultInstance(); } else { if (clientMismatchStrategyCase_ == 10) { return ignoreOnlyBuilder_.getMessage(); } return com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.getDefaultInstance(); } } /** * .proteus.ClientMismatchStrategy.IgnoreOnly ignore_only = 10; */ public Builder setIgnoreOnly(com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly value) { if (ignoreOnlyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMismatchStrategy_ = value; onChanged(); } else { ignoreOnlyBuilder_.setMessage(value); } clientMismatchStrategyCase_ = 10; return this; } /** * .proteus.ClientMismatchStrategy.IgnoreOnly ignore_only = 10; */ public Builder setIgnoreOnly( com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.Builder builderForValue) { if (ignoreOnlyBuilder_ == null) { clientMismatchStrategy_ = builderForValue.build(); onChanged(); } else { ignoreOnlyBuilder_.setMessage(builderForValue.build()); } clientMismatchStrategyCase_ = 10; return this; } /** * .proteus.ClientMismatchStrategy.IgnoreOnly ignore_only = 10; */ public Builder mergeIgnoreOnly(com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly value) { if (ignoreOnlyBuilder_ == null) { if (clientMismatchStrategyCase_ == 10 && clientMismatchStrategy_ != com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.getDefaultInstance()) { clientMismatchStrategy_ = com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.newBuilder((com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly) clientMismatchStrategy_) .mergeFrom(value).buildPartial(); } else { clientMismatchStrategy_ = value; } onChanged(); } else { if (clientMismatchStrategyCase_ == 10) { ignoreOnlyBuilder_.mergeFrom(value); } else { ignoreOnlyBuilder_.setMessage(value); } } clientMismatchStrategyCase_ = 10; return this; } /** * .proteus.ClientMismatchStrategy.IgnoreOnly ignore_only = 10; */ public Builder clearIgnoreOnly() { if (ignoreOnlyBuilder_ == null) { if (clientMismatchStrategyCase_ == 10) { clientMismatchStrategyCase_ = 0; clientMismatchStrategy_ = null; onChanged(); } } else { if (clientMismatchStrategyCase_ == 10) { clientMismatchStrategyCase_ = 0; clientMismatchStrategy_ = null; } ignoreOnlyBuilder_.clear(); } return this; } /** * .proteus.ClientMismatchStrategy.IgnoreOnly ignore_only = 10; */ public com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.Builder getIgnoreOnlyBuilder() { return getIgnoreOnlyFieldBuilder().getBuilder(); } /** * .proteus.ClientMismatchStrategy.IgnoreOnly ignore_only = 10; */ @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnlyOrBuilder getIgnoreOnlyOrBuilder() { if ((clientMismatchStrategyCase_ == 10) && (ignoreOnlyBuilder_ != null)) { return ignoreOnlyBuilder_.getMessageOrBuilder(); } else { if (clientMismatchStrategyCase_ == 10) { return (com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly) clientMismatchStrategy_; } return com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.getDefaultInstance(); } } /** * .proteus.ClientMismatchStrategy.IgnoreOnly ignore_only = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly, com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.Builder, com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnlyOrBuilder> getIgnoreOnlyFieldBuilder() { if (ignoreOnlyBuilder_ == null) { if (!(clientMismatchStrategyCase_ == 10)) { clientMismatchStrategy_ = com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.getDefaultInstance(); } ignoreOnlyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly, com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.Builder, com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnlyOrBuilder>( (com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly) clientMismatchStrategy_, getParentForChildren(), isClean()); clientMismatchStrategy_ = null; } clientMismatchStrategyCase_ = 10; onChanged();; return ignoreOnlyBuilder_; } @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:proteus.QualifiedNewOtrMessage) } // @@protoc_insertion_point(class_scope:proteus.QualifiedNewOtrMessage) private static final com.wire.messages.Otr.QualifiedNewOtrMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wire.messages.Otr.QualifiedNewOtrMessage(); } public static com.wire.messages.Otr.QualifiedNewOtrMessage getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QualifiedNewOtrMessage 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.Otr.QualifiedNewOtrMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClientMismatchStrategyOrBuilder extends // @@protoc_insertion_point(interface_extends:proteus.ClientMismatchStrategy) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code proteus.ClientMismatchStrategy} */ public static final class ClientMismatchStrategy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proteus.ClientMismatchStrategy) ClientMismatchStrategyOrBuilder { private static final long serialVersionUID = 0L; // Use ClientMismatchStrategy.newBuilder() to construct. private ClientMismatchStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClientMismatchStrategy() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClientMismatchStrategy(); } @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.Otr.internal_static_proteus_ClientMismatchStrategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.ClientMismatchStrategy.class, com.wire.messages.Otr.ClientMismatchStrategy.Builder.class); } public interface ReportAllOrBuilder extends // @@protoc_insertion_point(interface_extends:proteus.ClientMismatchStrategy.ReportAll) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code proteus.ClientMismatchStrategy.ReportAll} */ public static final class ReportAll extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proteus.ClientMismatchStrategy.ReportAll) ReportAllOrBuilder { private static final long serialVersionUID = 0L; // Use ReportAll.newBuilder() to construct. private ReportAll(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReportAll() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReportAll(); } @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.Otr.internal_static_proteus_ClientMismatchStrategy_ReportAll_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_ReportAll_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.class, com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Otr.ClientMismatchStrategy.ReportAll)) { return super.equals(obj); } com.wire.messages.Otr.ClientMismatchStrategy.ReportAll other = (com.wire.messages.Otr.ClientMismatchStrategy.ReportAll) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportAll parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportAll 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.Otr.ClientMismatchStrategy.ReportAll parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportAll 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.Otr.ClientMismatchStrategy.ReportAll parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportAll parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportAll parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportAll 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.Otr.ClientMismatchStrategy.ReportAll parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportAll 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.Otr.ClientMismatchStrategy.ReportAll parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportAll 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.Otr.ClientMismatchStrategy.ReportAll 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 proteus.ClientMismatchStrategy.ReportAll} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proteus.ClientMismatchStrategy.ReportAll) com.wire.messages.Otr.ClientMismatchStrategy.ReportAllOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_ReportAll_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_ReportAll_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.class, com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.Builder.class); } // Construct using com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_ReportAll_descriptor; } @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.ReportAll getDefaultInstanceForType() { return com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.getDefaultInstance(); } @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.ReportAll build() { com.wire.messages.Otr.ClientMismatchStrategy.ReportAll result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.ReportAll buildPartial() { com.wire.messages.Otr.ClientMismatchStrategy.ReportAll result = new com.wire.messages.Otr.ClientMismatchStrategy.ReportAll(this); 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.Otr.ClientMismatchStrategy.ReportAll) { return mergeFrom((com.wire.messages.Otr.ClientMismatchStrategy.ReportAll)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wire.messages.Otr.ClientMismatchStrategy.ReportAll other) { if (other == com.wire.messages.Otr.ClientMismatchStrategy.ReportAll.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; 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; } @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:proteus.ClientMismatchStrategy.ReportAll) } // @@protoc_insertion_point(class_scope:proteus.ClientMismatchStrategy.ReportAll) private static final com.wire.messages.Otr.ClientMismatchStrategy.ReportAll DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wire.messages.Otr.ClientMismatchStrategy.ReportAll(); } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportAll getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReportAll 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.Otr.ClientMismatchStrategy.ReportAll getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IgnoreAllOrBuilder extends // @@protoc_insertion_point(interface_extends:proteus.ClientMismatchStrategy.IgnoreAll) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code proteus.ClientMismatchStrategy.IgnoreAll} */ public static final class IgnoreAll extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proteus.ClientMismatchStrategy.IgnoreAll) IgnoreAllOrBuilder { private static final long serialVersionUID = 0L; // Use IgnoreAll.newBuilder() to construct. private IgnoreAll(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IgnoreAll() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IgnoreAll(); } @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.Otr.internal_static_proteus_ClientMismatchStrategy_IgnoreAll_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_IgnoreAll_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.class, com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Otr.ClientMismatchStrategy.IgnoreAll)) { return super.equals(obj); } com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll other = (com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll 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.Otr.ClientMismatchStrategy.IgnoreAll parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll 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.Otr.ClientMismatchStrategy.IgnoreAll parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll 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.Otr.ClientMismatchStrategy.IgnoreAll parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll 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.Otr.ClientMismatchStrategy.IgnoreAll parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll 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.Otr.ClientMismatchStrategy.IgnoreAll 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 proteus.ClientMismatchStrategy.IgnoreAll} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proteus.ClientMismatchStrategy.IgnoreAll) com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAllOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_IgnoreAll_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_IgnoreAll_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.class, com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.Builder.class); } // Construct using com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_IgnoreAll_descriptor; } @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll getDefaultInstanceForType() { return com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.getDefaultInstance(); } @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll build() { com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll buildPartial() { com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll result = new com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll(this); 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.Otr.ClientMismatchStrategy.IgnoreAll) { return mergeFrom((com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll other) { if (other == com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; 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; } @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:proteus.ClientMismatchStrategy.IgnoreAll) } // @@protoc_insertion_point(class_scope:proteus.ClientMismatchStrategy.IgnoreAll) private static final com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll(); } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreAll getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IgnoreAll 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.Otr.ClientMismatchStrategy.IgnoreAll getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReportOnlyOrBuilder extends // @@protoc_insertion_point(interface_extends:proteus.ClientMismatchStrategy.ReportOnly) com.google.protobuf.MessageOrBuilder { /** * repeated .proteus.QualifiedUserId user_ids = 1; */ java.util.List getUserIdsList(); /** * repeated .proteus.QualifiedUserId user_ids = 1; */ com.wire.messages.Otr.QualifiedUserId getUserIds(int index); /** * repeated .proteus.QualifiedUserId user_ids = 1; */ int getUserIdsCount(); /** * repeated .proteus.QualifiedUserId user_ids = 1; */ java.util.List getUserIdsOrBuilderList(); /** * repeated .proteus.QualifiedUserId user_ids = 1; */ com.wire.messages.Otr.QualifiedUserIdOrBuilder getUserIdsOrBuilder( int index); } /** * Protobuf type {@code proteus.ClientMismatchStrategy.ReportOnly} */ public static final class ReportOnly extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proteus.ClientMismatchStrategy.ReportOnly) ReportOnlyOrBuilder { private static final long serialVersionUID = 0L; // Use ReportOnly.newBuilder() to construct. private ReportOnly(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReportOnly() { userIds_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReportOnly(); } @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.Otr.internal_static_proteus_ClientMismatchStrategy_ReportOnly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_ReportOnly_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.class, com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.Builder.class); } public static final int USER_IDS_FIELD_NUMBER = 1; private java.util.List userIds_; /** * repeated .proteus.QualifiedUserId user_ids = 1; */ @java.lang.Override public java.util.List getUserIdsList() { return userIds_; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ @java.lang.Override public java.util.List getUserIdsOrBuilderList() { return userIds_; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ @java.lang.Override public int getUserIdsCount() { return userIds_.size(); } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ @java.lang.Override public com.wire.messages.Otr.QualifiedUserId getUserIds(int index) { return userIds_.get(index); } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ @java.lang.Override public com.wire.messages.Otr.QualifiedUserIdOrBuilder getUserIdsOrBuilder( int index) { return userIds_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getUserIdsCount(); i++) { if (!getUserIds(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < userIds_.size(); i++) { output.writeMessage(1, userIds_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < userIds_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, userIds_.get(i)); } 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.Otr.ClientMismatchStrategy.ReportOnly)) { return super.equals(obj); } com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly other = (com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly) obj; if (!getUserIdsList() .equals(other.getUserIdsList())) 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 (getUserIdsCount() > 0) { hash = (37 * hash) + USER_IDS_FIELD_NUMBER; hash = (53 * hash) + getUserIdsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly 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.Otr.ClientMismatchStrategy.ReportOnly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly 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.Otr.ClientMismatchStrategy.ReportOnly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly 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.Otr.ClientMismatchStrategy.ReportOnly parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly 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.Otr.ClientMismatchStrategy.ReportOnly parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly 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.Otr.ClientMismatchStrategy.ReportOnly 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 proteus.ClientMismatchStrategy.ReportOnly} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proteus.ClientMismatchStrategy.ReportOnly) com.wire.messages.Otr.ClientMismatchStrategy.ReportOnlyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_ReportOnly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_ReportOnly_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.class, com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.Builder.class); } // Construct using com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (userIdsBuilder_ == null) { userIds_ = java.util.Collections.emptyList(); } else { userIds_ = null; userIdsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_ReportOnly_descriptor; } @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly getDefaultInstanceForType() { return com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.getDefaultInstance(); } @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly build() { com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly buildPartial() { com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly result = new com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly(this); int from_bitField0_ = bitField0_; if (userIdsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { userIds_ = java.util.Collections.unmodifiableList(userIds_); bitField0_ = (bitField0_ & ~0x00000001); } result.userIds_ = userIds_; } else { result.userIds_ = userIdsBuilder_.build(); } 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.Otr.ClientMismatchStrategy.ReportOnly) { return mergeFrom((com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly other) { if (other == com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly.getDefaultInstance()) return this; if (userIdsBuilder_ == null) { if (!other.userIds_.isEmpty()) { if (userIds_.isEmpty()) { userIds_ = other.userIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUserIdsIsMutable(); userIds_.addAll(other.userIds_); } onChanged(); } } else { if (!other.userIds_.isEmpty()) { if (userIdsBuilder_.isEmpty()) { userIdsBuilder_.dispose(); userIdsBuilder_ = null; userIds_ = other.userIds_; bitField0_ = (bitField0_ & ~0x00000001); userIdsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUserIdsFieldBuilder() : null; } else { userIdsBuilder_.addAllMessages(other.userIds_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getUserIdsCount(); i++) { if (!getUserIds(i).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: { com.wire.messages.Otr.QualifiedUserId m = input.readMessage( com.wire.messages.Otr.QualifiedUserId.PARSER, extensionRegistry); if (userIdsBuilder_ == null) { ensureUserIdsIsMutable(); userIds_.add(m); } else { userIdsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List userIds_ = java.util.Collections.emptyList(); private void ensureUserIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { userIds_ = new java.util.ArrayList(userIds_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.QualifiedUserId, com.wire.messages.Otr.QualifiedUserId.Builder, com.wire.messages.Otr.QualifiedUserIdOrBuilder> userIdsBuilder_; /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public java.util.List getUserIdsList() { if (userIdsBuilder_ == null) { return java.util.Collections.unmodifiableList(userIds_); } else { return userIdsBuilder_.getMessageList(); } } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public int getUserIdsCount() { if (userIdsBuilder_ == null) { return userIds_.size(); } else { return userIdsBuilder_.getCount(); } } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public com.wire.messages.Otr.QualifiedUserId getUserIds(int index) { if (userIdsBuilder_ == null) { return userIds_.get(index); } else { return userIdsBuilder_.getMessage(index); } } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder setUserIds( int index, com.wire.messages.Otr.QualifiedUserId value) { if (userIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUserIdsIsMutable(); userIds_.set(index, value); onChanged(); } else { userIdsBuilder_.setMessage(index, value); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder setUserIds( int index, com.wire.messages.Otr.QualifiedUserId.Builder builderForValue) { if (userIdsBuilder_ == null) { ensureUserIdsIsMutable(); userIds_.set(index, builderForValue.build()); onChanged(); } else { userIdsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder addUserIds(com.wire.messages.Otr.QualifiedUserId value) { if (userIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUserIdsIsMutable(); userIds_.add(value); onChanged(); } else { userIdsBuilder_.addMessage(value); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder addUserIds( int index, com.wire.messages.Otr.QualifiedUserId value) { if (userIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUserIdsIsMutable(); userIds_.add(index, value); onChanged(); } else { userIdsBuilder_.addMessage(index, value); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder addUserIds( com.wire.messages.Otr.QualifiedUserId.Builder builderForValue) { if (userIdsBuilder_ == null) { ensureUserIdsIsMutable(); userIds_.add(builderForValue.build()); onChanged(); } else { userIdsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder addUserIds( int index, com.wire.messages.Otr.QualifiedUserId.Builder builderForValue) { if (userIdsBuilder_ == null) { ensureUserIdsIsMutable(); userIds_.add(index, builderForValue.build()); onChanged(); } else { userIdsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder addAllUserIds( java.lang.Iterable values) { if (userIdsBuilder_ == null) { ensureUserIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, userIds_); onChanged(); } else { userIdsBuilder_.addAllMessages(values); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder clearUserIds() { if (userIdsBuilder_ == null) { userIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { userIdsBuilder_.clear(); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder removeUserIds(int index) { if (userIdsBuilder_ == null) { ensureUserIdsIsMutable(); userIds_.remove(index); onChanged(); } else { userIdsBuilder_.remove(index); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public com.wire.messages.Otr.QualifiedUserId.Builder getUserIdsBuilder( int index) { return getUserIdsFieldBuilder().getBuilder(index); } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public com.wire.messages.Otr.QualifiedUserIdOrBuilder getUserIdsOrBuilder( int index) { if (userIdsBuilder_ == null) { return userIds_.get(index); } else { return userIdsBuilder_.getMessageOrBuilder(index); } } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public java.util.List getUserIdsOrBuilderList() { if (userIdsBuilder_ != null) { return userIdsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(userIds_); } } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public com.wire.messages.Otr.QualifiedUserId.Builder addUserIdsBuilder() { return getUserIdsFieldBuilder().addBuilder( com.wire.messages.Otr.QualifiedUserId.getDefaultInstance()); } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public com.wire.messages.Otr.QualifiedUserId.Builder addUserIdsBuilder( int index) { return getUserIdsFieldBuilder().addBuilder( index, com.wire.messages.Otr.QualifiedUserId.getDefaultInstance()); } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public java.util.List getUserIdsBuilderList() { return getUserIdsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.QualifiedUserId, com.wire.messages.Otr.QualifiedUserId.Builder, com.wire.messages.Otr.QualifiedUserIdOrBuilder> getUserIdsFieldBuilder() { if (userIdsBuilder_ == null) { userIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.QualifiedUserId, com.wire.messages.Otr.QualifiedUserId.Builder, com.wire.messages.Otr.QualifiedUserIdOrBuilder>( userIds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); userIds_ = null; } return userIdsBuilder_; } @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:proteus.ClientMismatchStrategy.ReportOnly) } // @@protoc_insertion_point(class_scope:proteus.ClientMismatchStrategy.ReportOnly) private static final com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly(); } public static com.wire.messages.Otr.ClientMismatchStrategy.ReportOnly getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReportOnly 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.Otr.ClientMismatchStrategy.ReportOnly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IgnoreOnlyOrBuilder extends // @@protoc_insertion_point(interface_extends:proteus.ClientMismatchStrategy.IgnoreOnly) com.google.protobuf.MessageOrBuilder { /** * repeated .proteus.QualifiedUserId user_ids = 1; */ java.util.List getUserIdsList(); /** * repeated .proteus.QualifiedUserId user_ids = 1; */ com.wire.messages.Otr.QualifiedUserId getUserIds(int index); /** * repeated .proteus.QualifiedUserId user_ids = 1; */ int getUserIdsCount(); /** * repeated .proteus.QualifiedUserId user_ids = 1; */ java.util.List getUserIdsOrBuilderList(); /** * repeated .proteus.QualifiedUserId user_ids = 1; */ com.wire.messages.Otr.QualifiedUserIdOrBuilder getUserIdsOrBuilder( int index); } /** * Protobuf type {@code proteus.ClientMismatchStrategy.IgnoreOnly} */ public static final class IgnoreOnly extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proteus.ClientMismatchStrategy.IgnoreOnly) IgnoreOnlyOrBuilder { private static final long serialVersionUID = 0L; // Use IgnoreOnly.newBuilder() to construct. private IgnoreOnly(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IgnoreOnly() { userIds_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IgnoreOnly(); } @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.Otr.internal_static_proteus_ClientMismatchStrategy_IgnoreOnly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_IgnoreOnly_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.class, com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.Builder.class); } public static final int USER_IDS_FIELD_NUMBER = 1; private java.util.List userIds_; /** * repeated .proteus.QualifiedUserId user_ids = 1; */ @java.lang.Override public java.util.List getUserIdsList() { return userIds_; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ @java.lang.Override public java.util.List getUserIdsOrBuilderList() { return userIds_; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ @java.lang.Override public int getUserIdsCount() { return userIds_.size(); } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ @java.lang.Override public com.wire.messages.Otr.QualifiedUserId getUserIds(int index) { return userIds_.get(index); } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ @java.lang.Override public com.wire.messages.Otr.QualifiedUserIdOrBuilder getUserIdsOrBuilder( int index) { return userIds_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getUserIdsCount(); i++) { if (!getUserIds(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < userIds_.size(); i++) { output.writeMessage(1, userIds_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < userIds_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, userIds_.get(i)); } 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.Otr.ClientMismatchStrategy.IgnoreOnly)) { return super.equals(obj); } com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly other = (com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly) obj; if (!getUserIdsList() .equals(other.getUserIdsList())) 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 (getUserIdsCount() > 0) { hash = (37 * hash) + USER_IDS_FIELD_NUMBER; hash = (53 * hash) + getUserIdsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly 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.Otr.ClientMismatchStrategy.IgnoreOnly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly 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.Otr.ClientMismatchStrategy.IgnoreOnly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly 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.Otr.ClientMismatchStrategy.IgnoreOnly parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly 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.Otr.ClientMismatchStrategy.IgnoreOnly parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly 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.Otr.ClientMismatchStrategy.IgnoreOnly 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 proteus.ClientMismatchStrategy.IgnoreOnly} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proteus.ClientMismatchStrategy.IgnoreOnly) com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnlyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_IgnoreOnly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_IgnoreOnly_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.class, com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.Builder.class); } // Construct using com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (userIdsBuilder_ == null) { userIds_ = java.util.Collections.emptyList(); } else { userIds_ = null; userIdsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_IgnoreOnly_descriptor; } @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly getDefaultInstanceForType() { return com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.getDefaultInstance(); } @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly build() { com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly buildPartial() { com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly result = new com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly(this); int from_bitField0_ = bitField0_; if (userIdsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { userIds_ = java.util.Collections.unmodifiableList(userIds_); bitField0_ = (bitField0_ & ~0x00000001); } result.userIds_ = userIds_; } else { result.userIds_ = userIdsBuilder_.build(); } 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.Otr.ClientMismatchStrategy.IgnoreOnly) { return mergeFrom((com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly other) { if (other == com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly.getDefaultInstance()) return this; if (userIdsBuilder_ == null) { if (!other.userIds_.isEmpty()) { if (userIds_.isEmpty()) { userIds_ = other.userIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUserIdsIsMutable(); userIds_.addAll(other.userIds_); } onChanged(); } } else { if (!other.userIds_.isEmpty()) { if (userIdsBuilder_.isEmpty()) { userIdsBuilder_.dispose(); userIdsBuilder_ = null; userIds_ = other.userIds_; bitField0_ = (bitField0_ & ~0x00000001); userIdsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUserIdsFieldBuilder() : null; } else { userIdsBuilder_.addAllMessages(other.userIds_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getUserIdsCount(); i++) { if (!getUserIds(i).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: { com.wire.messages.Otr.QualifiedUserId m = input.readMessage( com.wire.messages.Otr.QualifiedUserId.PARSER, extensionRegistry); if (userIdsBuilder_ == null) { ensureUserIdsIsMutable(); userIds_.add(m); } else { userIdsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List userIds_ = java.util.Collections.emptyList(); private void ensureUserIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { userIds_ = new java.util.ArrayList(userIds_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.QualifiedUserId, com.wire.messages.Otr.QualifiedUserId.Builder, com.wire.messages.Otr.QualifiedUserIdOrBuilder> userIdsBuilder_; /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public java.util.List getUserIdsList() { if (userIdsBuilder_ == null) { return java.util.Collections.unmodifiableList(userIds_); } else { return userIdsBuilder_.getMessageList(); } } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public int getUserIdsCount() { if (userIdsBuilder_ == null) { return userIds_.size(); } else { return userIdsBuilder_.getCount(); } } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public com.wire.messages.Otr.QualifiedUserId getUserIds(int index) { if (userIdsBuilder_ == null) { return userIds_.get(index); } else { return userIdsBuilder_.getMessage(index); } } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder setUserIds( int index, com.wire.messages.Otr.QualifiedUserId value) { if (userIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUserIdsIsMutable(); userIds_.set(index, value); onChanged(); } else { userIdsBuilder_.setMessage(index, value); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder setUserIds( int index, com.wire.messages.Otr.QualifiedUserId.Builder builderForValue) { if (userIdsBuilder_ == null) { ensureUserIdsIsMutable(); userIds_.set(index, builderForValue.build()); onChanged(); } else { userIdsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder addUserIds(com.wire.messages.Otr.QualifiedUserId value) { if (userIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUserIdsIsMutable(); userIds_.add(value); onChanged(); } else { userIdsBuilder_.addMessage(value); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder addUserIds( int index, com.wire.messages.Otr.QualifiedUserId value) { if (userIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUserIdsIsMutable(); userIds_.add(index, value); onChanged(); } else { userIdsBuilder_.addMessage(index, value); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder addUserIds( com.wire.messages.Otr.QualifiedUserId.Builder builderForValue) { if (userIdsBuilder_ == null) { ensureUserIdsIsMutable(); userIds_.add(builderForValue.build()); onChanged(); } else { userIdsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder addUserIds( int index, com.wire.messages.Otr.QualifiedUserId.Builder builderForValue) { if (userIdsBuilder_ == null) { ensureUserIdsIsMutable(); userIds_.add(index, builderForValue.build()); onChanged(); } else { userIdsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder addAllUserIds( java.lang.Iterable values) { if (userIdsBuilder_ == null) { ensureUserIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, userIds_); onChanged(); } else { userIdsBuilder_.addAllMessages(values); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder clearUserIds() { if (userIdsBuilder_ == null) { userIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { userIdsBuilder_.clear(); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public Builder removeUserIds(int index) { if (userIdsBuilder_ == null) { ensureUserIdsIsMutable(); userIds_.remove(index); onChanged(); } else { userIdsBuilder_.remove(index); } return this; } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public com.wire.messages.Otr.QualifiedUserId.Builder getUserIdsBuilder( int index) { return getUserIdsFieldBuilder().getBuilder(index); } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public com.wire.messages.Otr.QualifiedUserIdOrBuilder getUserIdsOrBuilder( int index) { if (userIdsBuilder_ == null) { return userIds_.get(index); } else { return userIdsBuilder_.getMessageOrBuilder(index); } } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public java.util.List getUserIdsOrBuilderList() { if (userIdsBuilder_ != null) { return userIdsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(userIds_); } } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public com.wire.messages.Otr.QualifiedUserId.Builder addUserIdsBuilder() { return getUserIdsFieldBuilder().addBuilder( com.wire.messages.Otr.QualifiedUserId.getDefaultInstance()); } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public com.wire.messages.Otr.QualifiedUserId.Builder addUserIdsBuilder( int index) { return getUserIdsFieldBuilder().addBuilder( index, com.wire.messages.Otr.QualifiedUserId.getDefaultInstance()); } /** * repeated .proteus.QualifiedUserId user_ids = 1; */ public java.util.List getUserIdsBuilderList() { return getUserIdsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.QualifiedUserId, com.wire.messages.Otr.QualifiedUserId.Builder, com.wire.messages.Otr.QualifiedUserIdOrBuilder> getUserIdsFieldBuilder() { if (userIdsBuilder_ == null) { userIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.QualifiedUserId, com.wire.messages.Otr.QualifiedUserId.Builder, com.wire.messages.Otr.QualifiedUserIdOrBuilder>( userIds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); userIds_ = null; } return userIdsBuilder_; } @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:proteus.ClientMismatchStrategy.IgnoreOnly) } // @@protoc_insertion_point(class_scope:proteus.ClientMismatchStrategy.IgnoreOnly) private static final com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly(); } public static com.wire.messages.Otr.ClientMismatchStrategy.IgnoreOnly getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IgnoreOnly 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.Otr.ClientMismatchStrategy.IgnoreOnly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Otr.ClientMismatchStrategy)) { return super.equals(obj); } com.wire.messages.Otr.ClientMismatchStrategy other = (com.wire.messages.Otr.ClientMismatchStrategy) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wire.messages.Otr.ClientMismatchStrategy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientMismatchStrategy 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.Otr.ClientMismatchStrategy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientMismatchStrategy 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.Otr.ClientMismatchStrategy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.ClientMismatchStrategy parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Otr.ClientMismatchStrategy parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientMismatchStrategy 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.Otr.ClientMismatchStrategy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientMismatchStrategy 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.Otr.ClientMismatchStrategy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.ClientMismatchStrategy 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.Otr.ClientMismatchStrategy 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 proteus.ClientMismatchStrategy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proteus.ClientMismatchStrategy) com.wire.messages.Otr.ClientMismatchStrategyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.ClientMismatchStrategy.class, com.wire.messages.Otr.ClientMismatchStrategy.Builder.class); } // Construct using com.wire.messages.Otr.ClientMismatchStrategy.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wire.messages.Otr.internal_static_proteus_ClientMismatchStrategy_descriptor; } @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy getDefaultInstanceForType() { return com.wire.messages.Otr.ClientMismatchStrategy.getDefaultInstance(); } @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy build() { com.wire.messages.Otr.ClientMismatchStrategy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wire.messages.Otr.ClientMismatchStrategy buildPartial() { com.wire.messages.Otr.ClientMismatchStrategy result = new com.wire.messages.Otr.ClientMismatchStrategy(this); 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.Otr.ClientMismatchStrategy) { return mergeFrom((com.wire.messages.Otr.ClientMismatchStrategy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wire.messages.Otr.ClientMismatchStrategy other) { if (other == com.wire.messages.Otr.ClientMismatchStrategy.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; 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; } @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:proteus.ClientMismatchStrategy) } // @@protoc_insertion_point(class_scope:proteus.ClientMismatchStrategy) private static final com.wire.messages.Otr.ClientMismatchStrategy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wire.messages.Otr.ClientMismatchStrategy(); } public static com.wire.messages.Otr.ClientMismatchStrategy getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClientMismatchStrategy 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.Otr.ClientMismatchStrategy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OtrAssetMetaOrBuilder extends // @@protoc_insertion_point(interface_extends:proteus.OtrAssetMeta) com.google.protobuf.MessageOrBuilder { /** * required .proteus.ClientId sender = 1; * @return Whether the sender field is set. */ boolean hasSender(); /** * required .proteus.ClientId sender = 1; * @return The sender. */ com.wire.messages.Otr.ClientId getSender(); /** * required .proteus.ClientId sender = 1; */ com.wire.messages.Otr.ClientIdOrBuilder getSenderOrBuilder(); /** * repeated .proteus.UserEntry recipients = 2; */ java.util.List getRecipientsList(); /** * repeated .proteus.UserEntry recipients = 2; */ com.wire.messages.Otr.UserEntry getRecipients(int index); /** * repeated .proteus.UserEntry recipients = 2; */ int getRecipientsCount(); /** * repeated .proteus.UserEntry recipients = 2; */ java.util.List getRecipientsOrBuilderList(); /** * repeated .proteus.UserEntry recipients = 2; */ com.wire.messages.Otr.UserEntryOrBuilder getRecipientsOrBuilder( int index); /** * optional bool isInline = 3 [default = false]; * @return Whether the isInline field is set. */ boolean hasIsInline(); /** * optional bool isInline = 3 [default = false]; * @return The isInline. */ boolean getIsInline(); /** * optional bool native_push = 4 [default = true]; * @return Whether the nativePush field is set. */ boolean hasNativePush(); /** * optional bool native_push = 4 [default = true]; * @return The nativePush. */ boolean getNativePush(); } /** * Protobuf type {@code proteus.OtrAssetMeta} */ public static final class OtrAssetMeta extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proteus.OtrAssetMeta) OtrAssetMetaOrBuilder { private static final long serialVersionUID = 0L; // Use OtrAssetMeta.newBuilder() to construct. private OtrAssetMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OtrAssetMeta() { recipients_ = java.util.Collections.emptyList(); nativePush_ = true; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OtrAssetMeta(); } @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.Otr.internal_static_proteus_OtrAssetMeta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_OtrAssetMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.OtrAssetMeta.class, com.wire.messages.Otr.OtrAssetMeta.Builder.class); } private int bitField0_; public static final int SENDER_FIELD_NUMBER = 1; private com.wire.messages.Otr.ClientId sender_; /** * required .proteus.ClientId sender = 1; * @return Whether the sender field is set. */ @java.lang.Override public boolean hasSender() { return ((bitField0_ & 0x00000001) != 0); } /** * required .proteus.ClientId sender = 1; * @return The sender. */ @java.lang.Override public com.wire.messages.Otr.ClientId getSender() { return sender_ == null ? com.wire.messages.Otr.ClientId.getDefaultInstance() : sender_; } /** * required .proteus.ClientId sender = 1; */ @java.lang.Override public com.wire.messages.Otr.ClientIdOrBuilder getSenderOrBuilder() { return sender_ == null ? com.wire.messages.Otr.ClientId.getDefaultInstance() : sender_; } public static final int RECIPIENTS_FIELD_NUMBER = 2; private java.util.List recipients_; /** * repeated .proteus.UserEntry recipients = 2; */ @java.lang.Override public java.util.List getRecipientsList() { return recipients_; } /** * repeated .proteus.UserEntry recipients = 2; */ @java.lang.Override public java.util.List getRecipientsOrBuilderList() { return recipients_; } /** * repeated .proteus.UserEntry recipients = 2; */ @java.lang.Override public int getRecipientsCount() { return recipients_.size(); } /** * repeated .proteus.UserEntry recipients = 2; */ @java.lang.Override public com.wire.messages.Otr.UserEntry getRecipients(int index) { return recipients_.get(index); } /** * repeated .proteus.UserEntry recipients = 2; */ @java.lang.Override public com.wire.messages.Otr.UserEntryOrBuilder getRecipientsOrBuilder( int index) { return recipients_.get(index); } public static final int ISINLINE_FIELD_NUMBER = 3; private boolean isInline_; /** * optional bool isInline = 3 [default = false]; * @return Whether the isInline field is set. */ @java.lang.Override public boolean hasIsInline() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bool isInline = 3 [default = false]; * @return The isInline. */ @java.lang.Override public boolean getIsInline() { return isInline_; } public static final int NATIVE_PUSH_FIELD_NUMBER = 4; private boolean nativePush_; /** * optional bool native_push = 4 [default = true]; * @return Whether the nativePush field is set. */ @java.lang.Override public boolean hasNativePush() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bool native_push = 4 [default = true]; * @return The nativePush. */ @java.lang.Override public boolean getNativePush() { return nativePush_; } 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 (!hasSender()) { memoizedIsInitialized = 0; return false; } if (!getSender().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getRecipientsCount(); i++) { if (!getRecipients(i).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.writeMessage(1, getSender()); } for (int i = 0; i < recipients_.size(); i++) { output.writeMessage(2, recipients_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(3, isInline_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(4, nativePush_); } 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 .computeMessageSize(1, getSender()); } for (int i = 0; i < recipients_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, recipients_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isInline_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, nativePush_); } 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.Otr.OtrAssetMeta)) { return super.equals(obj); } com.wire.messages.Otr.OtrAssetMeta other = (com.wire.messages.Otr.OtrAssetMeta) obj; if (hasSender() != other.hasSender()) return false; if (hasSender()) { if (!getSender() .equals(other.getSender())) return false; } if (!getRecipientsList() .equals(other.getRecipientsList())) return false; if (hasIsInline() != other.hasIsInline()) return false; if (hasIsInline()) { if (getIsInline() != other.getIsInline()) return false; } if (hasNativePush() != other.hasNativePush()) return false; if (hasNativePush()) { if (getNativePush() != other.getNativePush()) 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 (hasSender()) { hash = (37 * hash) + SENDER_FIELD_NUMBER; hash = (53 * hash) + getSender().hashCode(); } if (getRecipientsCount() > 0) { hash = (37 * hash) + RECIPIENTS_FIELD_NUMBER; hash = (53 * hash) + getRecipientsList().hashCode(); } if (hasIsInline()) { hash = (37 * hash) + ISINLINE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsInline()); } if (hasNativePush()) { hash = (37 * hash) + NATIVE_PUSH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNativePush()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wire.messages.Otr.OtrAssetMeta parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.OtrAssetMeta 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.Otr.OtrAssetMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.OtrAssetMeta 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.Otr.OtrAssetMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wire.messages.Otr.OtrAssetMeta parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wire.messages.Otr.OtrAssetMeta parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.OtrAssetMeta 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.Otr.OtrAssetMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wire.messages.Otr.OtrAssetMeta 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.Otr.OtrAssetMeta parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wire.messages.Otr.OtrAssetMeta 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.Otr.OtrAssetMeta 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 proteus.OtrAssetMeta} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proteus.OtrAssetMeta) com.wire.messages.Otr.OtrAssetMetaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wire.messages.Otr.internal_static_proteus_OtrAssetMeta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wire.messages.Otr.internal_static_proteus_OtrAssetMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wire.messages.Otr.OtrAssetMeta.class, com.wire.messages.Otr.OtrAssetMeta.Builder.class); } // Construct using com.wire.messages.Otr.OtrAssetMeta.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSenderFieldBuilder(); getRecipientsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (senderBuilder_ == null) { sender_ = null; } else { senderBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (recipientsBuilder_ == null) { recipients_ = java.util.Collections.emptyList(); } else { recipients_ = null; recipientsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); isInline_ = false; bitField0_ = (bitField0_ & ~0x00000004); nativePush_ = true; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wire.messages.Otr.internal_static_proteus_OtrAssetMeta_descriptor; } @java.lang.Override public com.wire.messages.Otr.OtrAssetMeta getDefaultInstanceForType() { return com.wire.messages.Otr.OtrAssetMeta.getDefaultInstance(); } @java.lang.Override public com.wire.messages.Otr.OtrAssetMeta build() { com.wire.messages.Otr.OtrAssetMeta result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wire.messages.Otr.OtrAssetMeta buildPartial() { com.wire.messages.Otr.OtrAssetMeta result = new com.wire.messages.Otr.OtrAssetMeta(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (senderBuilder_ == null) { result.sender_ = sender_; } else { result.sender_ = senderBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (recipientsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { recipients_ = java.util.Collections.unmodifiableList(recipients_); bitField0_ = (bitField0_ & ~0x00000002); } result.recipients_ = recipients_; } else { result.recipients_ = recipientsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.isInline_ = isInline_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000004; } result.nativePush_ = nativePush_; 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.Otr.OtrAssetMeta) { return mergeFrom((com.wire.messages.Otr.OtrAssetMeta)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wire.messages.Otr.OtrAssetMeta other) { if (other == com.wire.messages.Otr.OtrAssetMeta.getDefaultInstance()) return this; if (other.hasSender()) { mergeSender(other.getSender()); } if (recipientsBuilder_ == null) { if (!other.recipients_.isEmpty()) { if (recipients_.isEmpty()) { recipients_ = other.recipients_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRecipientsIsMutable(); recipients_.addAll(other.recipients_); } onChanged(); } } else { if (!other.recipients_.isEmpty()) { if (recipientsBuilder_.isEmpty()) { recipientsBuilder_.dispose(); recipientsBuilder_ = null; recipients_ = other.recipients_; bitField0_ = (bitField0_ & ~0x00000002); recipientsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRecipientsFieldBuilder() : null; } else { recipientsBuilder_.addAllMessages(other.recipients_); } } } if (other.hasIsInline()) { setIsInline(other.getIsInline()); } if (other.hasNativePush()) { setNativePush(other.getNativePush()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasSender()) { return false; } if (!getSender().isInitialized()) { return false; } for (int i = 0; i < getRecipientsCount(); i++) { if (!getRecipients(i).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: { input.readMessage( getSenderFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.wire.messages.Otr.UserEntry m = input.readMessage( com.wire.messages.Otr.UserEntry.PARSER, extensionRegistry); if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); recipients_.add(m); } else { recipientsBuilder_.addMessage(m); } break; } // case 18 case 24: { isInline_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { nativePush_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 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.wire.messages.Otr.ClientId sender_; private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientId, com.wire.messages.Otr.ClientId.Builder, com.wire.messages.Otr.ClientIdOrBuilder> senderBuilder_; /** * required .proteus.ClientId sender = 1; * @return Whether the sender field is set. */ public boolean hasSender() { return ((bitField0_ & 0x00000001) != 0); } /** * required .proteus.ClientId sender = 1; * @return The sender. */ public com.wire.messages.Otr.ClientId getSender() { if (senderBuilder_ == null) { return sender_ == null ? com.wire.messages.Otr.ClientId.getDefaultInstance() : sender_; } else { return senderBuilder_.getMessage(); } } /** * required .proteus.ClientId sender = 1; */ public Builder setSender(com.wire.messages.Otr.ClientId value) { if (senderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sender_ = value; onChanged(); } else { senderBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .proteus.ClientId sender = 1; */ public Builder setSender( com.wire.messages.Otr.ClientId.Builder builderForValue) { if (senderBuilder_ == null) { sender_ = builderForValue.build(); onChanged(); } else { senderBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .proteus.ClientId sender = 1; */ public Builder mergeSender(com.wire.messages.Otr.ClientId value) { if (senderBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && sender_ != null && sender_ != com.wire.messages.Otr.ClientId.getDefaultInstance()) { sender_ = com.wire.messages.Otr.ClientId.newBuilder(sender_).mergeFrom(value).buildPartial(); } else { sender_ = value; } onChanged(); } else { senderBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .proteus.ClientId sender = 1; */ public Builder clearSender() { if (senderBuilder_ == null) { sender_ = null; onChanged(); } else { senderBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .proteus.ClientId sender = 1; */ public com.wire.messages.Otr.ClientId.Builder getSenderBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSenderFieldBuilder().getBuilder(); } /** * required .proteus.ClientId sender = 1; */ public com.wire.messages.Otr.ClientIdOrBuilder getSenderOrBuilder() { if (senderBuilder_ != null) { return senderBuilder_.getMessageOrBuilder(); } else { return sender_ == null ? com.wire.messages.Otr.ClientId.getDefaultInstance() : sender_; } } /** * required .proteus.ClientId sender = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientId, com.wire.messages.Otr.ClientId.Builder, com.wire.messages.Otr.ClientIdOrBuilder> getSenderFieldBuilder() { if (senderBuilder_ == null) { senderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wire.messages.Otr.ClientId, com.wire.messages.Otr.ClientId.Builder, com.wire.messages.Otr.ClientIdOrBuilder>( getSender(), getParentForChildren(), isClean()); sender_ = null; } return senderBuilder_; } private java.util.List recipients_ = java.util.Collections.emptyList(); private void ensureRecipientsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { recipients_ = new java.util.ArrayList(recipients_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.UserEntry, com.wire.messages.Otr.UserEntry.Builder, com.wire.messages.Otr.UserEntryOrBuilder> recipientsBuilder_; /** * repeated .proteus.UserEntry recipients = 2; */ public java.util.List getRecipientsList() { if (recipientsBuilder_ == null) { return java.util.Collections.unmodifiableList(recipients_); } else { return recipientsBuilder_.getMessageList(); } } /** * repeated .proteus.UserEntry recipients = 2; */ public int getRecipientsCount() { if (recipientsBuilder_ == null) { return recipients_.size(); } else { return recipientsBuilder_.getCount(); } } /** * repeated .proteus.UserEntry recipients = 2; */ public com.wire.messages.Otr.UserEntry getRecipients(int index) { if (recipientsBuilder_ == null) { return recipients_.get(index); } else { return recipientsBuilder_.getMessage(index); } } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder setRecipients( int index, com.wire.messages.Otr.UserEntry value) { if (recipientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecipientsIsMutable(); recipients_.set(index, value); onChanged(); } else { recipientsBuilder_.setMessage(index, value); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder setRecipients( int index, com.wire.messages.Otr.UserEntry.Builder builderForValue) { if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); recipients_.set(index, builderForValue.build()); onChanged(); } else { recipientsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder addRecipients(com.wire.messages.Otr.UserEntry value) { if (recipientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecipientsIsMutable(); recipients_.add(value); onChanged(); } else { recipientsBuilder_.addMessage(value); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder addRecipients( int index, com.wire.messages.Otr.UserEntry value) { if (recipientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecipientsIsMutable(); recipients_.add(index, value); onChanged(); } else { recipientsBuilder_.addMessage(index, value); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder addRecipients( com.wire.messages.Otr.UserEntry.Builder builderForValue) { if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); recipients_.add(builderForValue.build()); onChanged(); } else { recipientsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder addRecipients( int index, com.wire.messages.Otr.UserEntry.Builder builderForValue) { if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); recipients_.add(index, builderForValue.build()); onChanged(); } else { recipientsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder addAllRecipients( java.lang.Iterable values) { if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recipients_); onChanged(); } else { recipientsBuilder_.addAllMessages(values); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder clearRecipients() { if (recipientsBuilder_ == null) { recipients_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { recipientsBuilder_.clear(); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public Builder removeRecipients(int index) { if (recipientsBuilder_ == null) { ensureRecipientsIsMutable(); recipients_.remove(index); onChanged(); } else { recipientsBuilder_.remove(index); } return this; } /** * repeated .proteus.UserEntry recipients = 2; */ public com.wire.messages.Otr.UserEntry.Builder getRecipientsBuilder( int index) { return getRecipientsFieldBuilder().getBuilder(index); } /** * repeated .proteus.UserEntry recipients = 2; */ public com.wire.messages.Otr.UserEntryOrBuilder getRecipientsOrBuilder( int index) { if (recipientsBuilder_ == null) { return recipients_.get(index); } else { return recipientsBuilder_.getMessageOrBuilder(index); } } /** * repeated .proteus.UserEntry recipients = 2; */ public java.util.List getRecipientsOrBuilderList() { if (recipientsBuilder_ != null) { return recipientsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(recipients_); } } /** * repeated .proteus.UserEntry recipients = 2; */ public com.wire.messages.Otr.UserEntry.Builder addRecipientsBuilder() { return getRecipientsFieldBuilder().addBuilder( com.wire.messages.Otr.UserEntry.getDefaultInstance()); } /** * repeated .proteus.UserEntry recipients = 2; */ public com.wire.messages.Otr.UserEntry.Builder addRecipientsBuilder( int index) { return getRecipientsFieldBuilder().addBuilder( index, com.wire.messages.Otr.UserEntry.getDefaultInstance()); } /** * repeated .proteus.UserEntry recipients = 2; */ public java.util.List getRecipientsBuilderList() { return getRecipientsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.UserEntry, com.wire.messages.Otr.UserEntry.Builder, com.wire.messages.Otr.UserEntryOrBuilder> getRecipientsFieldBuilder() { if (recipientsBuilder_ == null) { recipientsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wire.messages.Otr.UserEntry, com.wire.messages.Otr.UserEntry.Builder, com.wire.messages.Otr.UserEntryOrBuilder>( recipients_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); recipients_ = null; } return recipientsBuilder_; } private boolean isInline_ ; /** * optional bool isInline = 3 [default = false]; * @return Whether the isInline field is set. */ @java.lang.Override public boolean hasIsInline() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bool isInline = 3 [default = false]; * @return The isInline. */ @java.lang.Override public boolean getIsInline() { return isInline_; } /** * optional bool isInline = 3 [default = false]; * @param value The isInline to set. * @return This builder for chaining. */ public Builder setIsInline(boolean value) { bitField0_ |= 0x00000004; isInline_ = value; onChanged(); return this; } /** * optional bool isInline = 3 [default = false]; * @return This builder for chaining. */ public Builder clearIsInline() { bitField0_ = (bitField0_ & ~0x00000004); isInline_ = false; onChanged(); return this; } private boolean nativePush_ = true; /** * optional bool native_push = 4 [default = true]; * @return Whether the nativePush field is set. */ @java.lang.Override public boolean hasNativePush() { return ((bitField0_ & 0x00000008) != 0); } /** * optional bool native_push = 4 [default = true]; * @return The nativePush. */ @java.lang.Override public boolean getNativePush() { return nativePush_; } /** * optional bool native_push = 4 [default = true]; * @param value The nativePush to set. * @return This builder for chaining. */ public Builder setNativePush(boolean value) { bitField0_ |= 0x00000008; nativePush_ = value; onChanged(); return this; } /** * optional bool native_push = 4 [default = true]; * @return This builder for chaining. */ public Builder clearNativePush() { bitField0_ = (bitField0_ & ~0x00000008); nativePush_ = true; 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:proteus.OtrAssetMeta) } // @@protoc_insertion_point(class_scope:proteus.OtrAssetMeta) private static final com.wire.messages.Otr.OtrAssetMeta DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wire.messages.Otr.OtrAssetMeta(); } public static com.wire.messages.Otr.OtrAssetMeta getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OtrAssetMeta 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.Otr.OtrAssetMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_proteus_UserId_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proteus_UserId_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proteus_QualifiedUserId_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proteus_QualifiedUserId_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proteus_ClientId_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proteus_ClientId_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proteus_ClientEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proteus_ClientEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proteus_UserEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proteus_UserEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proteus_QualifiedUserEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proteus_QualifiedUserEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proteus_NewOtrMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proteus_NewOtrMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proteus_QualifiedNewOtrMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proteus_QualifiedNewOtrMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proteus_ClientMismatchStrategy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proteus_ClientMismatchStrategy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proteus_ClientMismatchStrategy_ReportAll_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proteus_ClientMismatchStrategy_ReportAll_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proteus_ClientMismatchStrategy_IgnoreAll_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proteus_ClientMismatchStrategy_IgnoreAll_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proteus_ClientMismatchStrategy_ReportOnly_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proteus_ClientMismatchStrategy_ReportOnly_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proteus_ClientMismatchStrategy_IgnoreOnly_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proteus_ClientMismatchStrategy_IgnoreOnly_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proteus_OtrAssetMeta_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proteus_OtrAssetMeta_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\totr.proto\022\007proteus\"\026\n\006UserId\022\014\n\004uuid\030\001" + " \002(\014\"-\n\017QualifiedUserId\022\n\n\002id\030\001 \002(\t\022\016\n\006d" + "omain\030\002 \002(\t\"\032\n\010ClientId\022\016\n\006client\030\001 \002(\004\"" + ">\n\013ClientEntry\022!\n\006client\030\001 \002(\0132\021.proteus" + ".ClientId\022\014\n\004text\030\002 \002(\014\"Q\n\tUserEntry\022\035\n\004" + "user\030\001 \002(\0132\017.proteus.UserId\022%\n\007clients\030\002" + " \003(\0132\024.proteus.ClientEntry\"I\n\022QualifiedU" + "serEntry\022\016\n\006domain\030\001 \002(\t\022#\n\007entries\030\002 \003(" + "\0132\022.proteus.UserEntry\"\353\001\n\rNewOtrMessage\022" + "!\n\006sender\030\001 \002(\0132\021.proteus.ClientId\022&\n\nre" + "cipients\030\002 \003(\0132\022.proteus.UserEntry\022\031\n\013na" + "tive_push\030\003 \001(\010:\004true\022\014\n\004blob\030\004 \001(\014\022*\n\017n" + "ative_priority\030\005 \001(\0162\021.proteus.Priority\022" + "\021\n\ttransient\030\006 \001(\010\022\'\n\016report_missing\030\007 \003" + "(\0132\017.proteus.UserId\"\370\003\n\026QualifiedNewOtrM" + "essage\022!\n\006sender\030\001 \002(\0132\021.proteus.ClientI" + "d\022/\n\nrecipients\030\002 \003(\0132\033.proteus.Qualifie" + "dUserEntry\022\031\n\013native_push\030\003 \001(\010:\004true\022\014\n" + "\004blob\030\004 \001(\014\022*\n\017native_priority\030\005 \001(\0162\021.p" + "roteus.Priority\022\021\n\ttransient\030\006 \001(\010\022?\n\nre" + "port_all\030\007 \001(\0132).proteus.ClientMismatchS" + "trategy.ReportAllH\000\022?\n\nignore_all\030\010 \001(\0132" + ").proteus.ClientMismatchStrategy.IgnoreA" + "llH\000\022A\n\013report_only\030\t \001(\0132*.proteus.Clie" + "ntMismatchStrategy.ReportOnlyH\000\022A\n\013ignor" + "e_only\030\n \001(\0132*.proteus.ClientMismatchStr" + "ategy.IgnoreOnlyH\000B\032\n\030client_mismatch_st" + "rategy\"\246\001\n\026ClientMismatchStrategy\032\013\n\tRep" + "ortAll\032\013\n\tIgnoreAll\0328\n\nReportOnly\022*\n\010use" + "r_ids\030\001 \003(\0132\030.proteus.QualifiedUserId\0328\n" + "\nIgnoreOnly\022*\n\010user_ids\030\001 \003(\0132\030.proteus." + "QualifiedUserId\"\215\001\n\014OtrAssetMeta\022!\n\006send" + "er\030\001 \002(\0132\021.proteus.ClientId\022&\n\nrecipient" + "s\030\002 \003(\0132\022.proteus.UserEntry\022\027\n\010isInline\030" + "\003 \001(\010:\005false\022\031\n\013native_push\030\004 \001(\010:\004true*" + "/\n\010Priority\022\020\n\014LOW_PRIORITY\020\001\022\021\n\rHIGH_PR" + "IORITY\020\002B\032\n\021com.wire.messagesB\003OtrH\003" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_proteus_UserId_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_proteus_UserId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proteus_UserId_descriptor, new java.lang.String[] { "Uuid", }); internal_static_proteus_QualifiedUserId_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_proteus_QualifiedUserId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proteus_QualifiedUserId_descriptor, new java.lang.String[] { "Id", "Domain", }); internal_static_proteus_ClientId_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_proteus_ClientId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proteus_ClientId_descriptor, new java.lang.String[] { "Client", }); internal_static_proteus_ClientEntry_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_proteus_ClientEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proteus_ClientEntry_descriptor, new java.lang.String[] { "Client", "Text", }); internal_static_proteus_UserEntry_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_proteus_UserEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proteus_UserEntry_descriptor, new java.lang.String[] { "User", "Clients", }); internal_static_proteus_QualifiedUserEntry_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_proteus_QualifiedUserEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proteus_QualifiedUserEntry_descriptor, new java.lang.String[] { "Domain", "Entries", }); internal_static_proteus_NewOtrMessage_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_proteus_NewOtrMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proteus_NewOtrMessage_descriptor, new java.lang.String[] { "Sender", "Recipients", "NativePush", "Blob", "NativePriority", "Transient", "ReportMissing", }); internal_static_proteus_QualifiedNewOtrMessage_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_proteus_QualifiedNewOtrMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proteus_QualifiedNewOtrMessage_descriptor, new java.lang.String[] { "Sender", "Recipients", "NativePush", "Blob", "NativePriority", "Transient", "ReportAll", "IgnoreAll", "ReportOnly", "IgnoreOnly", "ClientMismatchStrategy", }); internal_static_proteus_ClientMismatchStrategy_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_proteus_ClientMismatchStrategy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proteus_ClientMismatchStrategy_descriptor, new java.lang.String[] { }); internal_static_proteus_ClientMismatchStrategy_ReportAll_descriptor = internal_static_proteus_ClientMismatchStrategy_descriptor.getNestedTypes().get(0); internal_static_proteus_ClientMismatchStrategy_ReportAll_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proteus_ClientMismatchStrategy_ReportAll_descriptor, new java.lang.String[] { }); internal_static_proteus_ClientMismatchStrategy_IgnoreAll_descriptor = internal_static_proteus_ClientMismatchStrategy_descriptor.getNestedTypes().get(1); internal_static_proteus_ClientMismatchStrategy_IgnoreAll_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proteus_ClientMismatchStrategy_IgnoreAll_descriptor, new java.lang.String[] { }); internal_static_proteus_ClientMismatchStrategy_ReportOnly_descriptor = internal_static_proteus_ClientMismatchStrategy_descriptor.getNestedTypes().get(2); internal_static_proteus_ClientMismatchStrategy_ReportOnly_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proteus_ClientMismatchStrategy_ReportOnly_descriptor, new java.lang.String[] { "UserIds", }); internal_static_proteus_ClientMismatchStrategy_IgnoreOnly_descriptor = internal_static_proteus_ClientMismatchStrategy_descriptor.getNestedTypes().get(3); internal_static_proteus_ClientMismatchStrategy_IgnoreOnly_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proteus_ClientMismatchStrategy_IgnoreOnly_descriptor, new java.lang.String[] { "UserIds", }); internal_static_proteus_OtrAssetMeta_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_proteus_OtrAssetMeta_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proteus_OtrAssetMeta_descriptor, new java.lang.String[] { "Sender", "Recipients", "IsInline", "NativePush", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy