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

com.truward.orion.user.service.model.UserModel Maven / Gradle / Ivy

There is a newer version: 1.0.9
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: src/main/protobuf/user.proto

package com.truward.orion.user.service.model;

public final class UserModel {
  private UserModel() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  /**
   * Protobuf enum {@code truward.orion.user.ContactType}
   */
  public enum ContactType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * PHONE = 1;
     */
    PHONE(0, 1),
    /**
     * EMAIL = 2;
     */
    EMAIL(1, 2),
    ;

    /**
     * PHONE = 1;
     */
    public static final int PHONE_VALUE = 1;
    /**
     * EMAIL = 2;
     */
    public static final int EMAIL_VALUE = 2;


    public final int getNumber() { return value; }

    public static ContactType valueOf(int value) {
      switch (value) {
        case 1: return PHONE;
        case 2: return EMAIL;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static com.google.protobuf.Internal.EnumLiteMap
        internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public ContactType findValueByNumber(int number) {
              return ContactType.valueOf(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(index);
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.truward.orion.user.service.model.UserModel.getDescriptor().getEnumTypes().get(0);
    }

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

    public static ContactType 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 index;
    private final int value;

    private ContactType(int index, int value) {
      this.index = index;
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:truward.orion.user.ContactType)
  }

  public interface ContactOrBuilder extends
      // @@protoc_insertion_point(interface_extends:truward.orion.user.Contact)
      com.google.protobuf.MessageOrBuilder {

    /**
     * required string number = 1;
     */
    boolean hasNumber();
    /**
     * required string number = 1;
     */
    java.lang.String getNumber();
    /**
     * required string number = 1;
     */
    com.google.protobuf.ByteString
        getNumberBytes();

    /**
     * required .truward.orion.user.ContactType type = 2;
     */
    boolean hasType();
    /**
     * required .truward.orion.user.ContactType type = 2;
     */
    com.truward.orion.user.service.model.UserModel.ContactType getType();
  }
  /**
   * Protobuf type {@code truward.orion.user.Contact}
   */
  public static final class Contact extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:truward.orion.user.Contact)
      ContactOrBuilder {
    // Use Contact.newBuilder() to construct.
    private Contact(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Contact(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final Contact defaultInstance;
    public static Contact getDefaultInstance() {
      return defaultInstance;
    }

    public Contact getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Contact(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              com.google.protobuf.ByteString bs = input.readBytes();
              bitField0_ |= 0x00000001;
              number_ = bs;
              break;
            }
            case 16: {
              int rawValue = input.readEnum();
              com.truward.orion.user.service.model.UserModel.ContactType value = com.truward.orion.user.service.model.UserModel.ContactType.valueOf(rawValue);
              if (value == null) {
                unknownFields.mergeVarintField(2, rawValue);
              } else {
                bitField0_ |= 0x00000002;
                type_ = value;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_Contact_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_Contact_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.truward.orion.user.service.model.UserModel.Contact.class, com.truward.orion.user.service.model.UserModel.Contact.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public Contact parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Contact(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    public static final int NUMBER_FIELD_NUMBER = 1;
    private java.lang.Object number_;
    /**
     * required string number = 1;
     */
    public boolean hasNumber() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * required string number = 1;
     */
    public java.lang.String getNumber() {
      java.lang.Object ref = number_;
      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()) {
          number_ = s;
        }
        return s;
      }
    }
    /**
     * required string number = 1;
     */
    public com.google.protobuf.ByteString
        getNumberBytes() {
      java.lang.Object ref = number_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        number_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int TYPE_FIELD_NUMBER = 2;
    private com.truward.orion.user.service.model.UserModel.ContactType type_;
    /**
     * required .truward.orion.user.ContactType type = 2;
     */
    public boolean hasType() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * required .truward.orion.user.ContactType type = 2;
     */
    public com.truward.orion.user.service.model.UserModel.ContactType getType() {
      return type_;
    }

    private void initFields() {
      number_ = "";
      type_ = com.truward.orion.user.service.model.UserModel.ContactType.PHONE;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      if (!hasNumber()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasType()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getNumberBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeEnum(2, type_.getNumber());
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, getNumberBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(2, type_.getNumber());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static com.truward.orion.user.service.model.UserModel.Contact parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.truward.orion.user.service.model.UserModel.Contact parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.truward.orion.user.service.model.UserModel.Contact parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.truward.orion.user.service.model.UserModel.Contact parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.truward.orion.user.service.model.UserModel.Contact parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.truward.orion.user.service.model.UserModel.Contact parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static com.truward.orion.user.service.model.UserModel.Contact parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.truward.orion.user.service.model.UserModel.Contact parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static com.truward.orion.user.service.model.UserModel.Contact parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.truward.orion.user.service.model.UserModel.Contact parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.Contact prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code truward.orion.user.Contact}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:truward.orion.user.Contact)
        com.truward.orion.user.service.model.UserModel.ContactOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_Contact_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_Contact_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.truward.orion.user.service.model.UserModel.Contact.class, com.truward.orion.user.service.model.UserModel.Contact.Builder.class);
      }

      // Construct using com.truward.orion.user.service.model.UserModel.Contact.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        number_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        type_ = com.truward.orion.user.service.model.UserModel.ContactType.PHONE;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_Contact_descriptor;
      }

      public com.truward.orion.user.service.model.UserModel.Contact getDefaultInstanceForType() {
        return com.truward.orion.user.service.model.UserModel.Contact.getDefaultInstance();
      }

      public com.truward.orion.user.service.model.UserModel.Contact build() {
        com.truward.orion.user.service.model.UserModel.Contact result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.truward.orion.user.service.model.UserModel.Contact buildPartial() {
        com.truward.orion.user.service.model.UserModel.Contact result = new com.truward.orion.user.service.model.UserModel.Contact(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.number_ = number_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.type_ = type_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.truward.orion.user.service.model.UserModel.Contact) {
          return mergeFrom((com.truward.orion.user.service.model.UserModel.Contact)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.Contact other) {
        if (other == com.truward.orion.user.service.model.UserModel.Contact.getDefaultInstance()) return this;
        if (other.hasNumber()) {
          bitField0_ |= 0x00000001;
          number_ = other.number_;
          onChanged();
        }
        if (other.hasType()) {
          setType(other.getType());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (!hasNumber()) {
          
          return false;
        }
        if (!hasType()) {
          
          return false;
        }
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.truward.orion.user.service.model.UserModel.Contact parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.truward.orion.user.service.model.UserModel.Contact) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.lang.Object number_ = "";
      /**
       * required string number = 1;
       */
      public boolean hasNumber() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * required string number = 1;
       */
      public java.lang.String getNumber() {
        java.lang.Object ref = number_;
        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()) {
            number_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * required string number = 1;
       */
      public com.google.protobuf.ByteString
          getNumberBytes() {
        java.lang.Object ref = number_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          number_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * required string number = 1;
       */
      public Builder setNumber(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        number_ = value;
        onChanged();
        return this;
      }
      /**
       * required string number = 1;
       */
      public Builder clearNumber() {
        bitField0_ = (bitField0_ & ~0x00000001);
        number_ = getDefaultInstance().getNumber();
        onChanged();
        return this;
      }
      /**
       * required string number = 1;
       */
      public Builder setNumberBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        number_ = value;
        onChanged();
        return this;
      }

      private com.truward.orion.user.service.model.UserModel.ContactType type_ = com.truward.orion.user.service.model.UserModel.ContactType.PHONE;
      /**
       * required .truward.orion.user.ContactType type = 2;
       */
      public boolean hasType() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * required .truward.orion.user.ContactType type = 2;
       */
      public com.truward.orion.user.service.model.UserModel.ContactType getType() {
        return type_;
      }
      /**
       * required .truward.orion.user.ContactType type = 2;
       */
      public Builder setType(com.truward.orion.user.service.model.UserModel.ContactType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000002;
        type_ = value;
        onChanged();
        return this;
      }
      /**
       * required .truward.orion.user.ContactType type = 2;
       */
      public Builder clearType() {
        bitField0_ = (bitField0_ & ~0x00000002);
        type_ = com.truward.orion.user.service.model.UserModel.ContactType.PHONE;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:truward.orion.user.Contact)
    }

    static {
      defaultInstance = new Contact(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:truward.orion.user.Contact)
  }

  public interface UserAccountOrBuilder extends
      // @@protoc_insertion_point(interface_extends:truward.orion.user.UserAccount)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional int64 id = 1;
     */
    boolean hasId();
    /**
     * optional int64 id = 1;
     */
    long getId();

    /**
     * required string nickname = 2;
     */
    boolean hasNickname();
    /**
     * required string nickname = 2;
     */
    java.lang.String getNickname();
    /**
     * required string nickname = 2;
     */
    com.google.protobuf.ByteString
        getNicknameBytes();

    /**
     * required string passwordHash = 3;
     */
    boolean hasPasswordHash();
    /**
     * required string passwordHash = 3;
     */
    java.lang.String getPasswordHash();
    /**
     * required string passwordHash = 3;
     */
    com.google.protobuf.ByteString
        getPasswordHashBytes();

    /**
     * repeated .truward.orion.user.Contact contacts = 4;
     */
    java.util.List 
        getContactsList();
    /**
     * repeated .truward.orion.user.Contact contacts = 4;
     */
    com.truward.orion.user.service.model.UserModel.Contact getContacts(int index);
    /**
     * repeated .truward.orion.user.Contact contacts = 4;
     */
    int getContactsCount();
    /**
     * repeated .truward.orion.user.Contact contacts = 4;
     */
    java.util.List 
        getContactsOrBuilderList();
    /**
     * repeated .truward.orion.user.Contact contacts = 4;
     */
    com.truward.orion.user.service.model.UserModel.ContactOrBuilder getContactsOrBuilder(
        int index);

    /**
     * repeated string authorities = 5;
     */
    com.google.protobuf.ProtocolStringList
        getAuthoritiesList();
    /**
     * repeated string authorities = 5;
     */
    int getAuthoritiesCount();
    /**
     * repeated string authorities = 5;
     */
    java.lang.String getAuthorities(int index);
    /**
     * repeated string authorities = 5;
     */
    com.google.protobuf.ByteString
        getAuthoritiesBytes(int index);

    /**
     * required int64 created = 6;
     */
    boolean hasCreated();
    /**
     * required int64 created = 6;
     */
    long getCreated();

    /**
     * required bool active = 7;
     */
    boolean hasActive();
    /**
     * required bool active = 7;
     */
    boolean getActive();
  }
  /**
   * Protobuf type {@code truward.orion.user.UserAccount}
   */
  public static final class UserAccount extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:truward.orion.user.UserAccount)
      UserAccountOrBuilder {
    // Use UserAccount.newBuilder() to construct.
    private UserAccount(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private UserAccount(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final UserAccount defaultInstance;
    public static UserAccount getDefaultInstance() {
      return defaultInstance;
    }

    public UserAccount getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private UserAccount(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 8: {
              bitField0_ |= 0x00000001;
              id_ = input.readInt64();
              break;
            }
            case 18: {
              com.google.protobuf.ByteString bs = input.readBytes();
              bitField0_ |= 0x00000002;
              nickname_ = bs;
              break;
            }
            case 26: {
              com.google.protobuf.ByteString bs = input.readBytes();
              bitField0_ |= 0x00000004;
              passwordHash_ = bs;
              break;
            }
            case 34: {
              if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
                contacts_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000008;
              }
              contacts_.add(input.readMessage(com.truward.orion.user.service.model.UserModel.Contact.PARSER, extensionRegistry));
              break;
            }
            case 42: {
              com.google.protobuf.ByteString bs = input.readBytes();
              if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
                authorities_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00000010;
              }
              authorities_.add(bs);
              break;
            }
            case 48: {
              bitField0_ |= 0x00000008;
              created_ = input.readInt64();
              break;
            }
            case 56: {
              bitField0_ |= 0x00000010;
              active_ = input.readBool();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
          contacts_ = java.util.Collections.unmodifiableList(contacts_);
        }
        if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
          authorities_ = authorities_.getUnmodifiableView();
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_UserAccount_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_UserAccount_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.truward.orion.user.service.model.UserModel.UserAccount.class, com.truward.orion.user.service.model.UserModel.UserAccount.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public UserAccount parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new UserAccount(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    public static final int ID_FIELD_NUMBER = 1;
    private long id_;
    /**
     * optional int64 id = 1;
     */
    public boolean hasId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional int64 id = 1;
     */
    public long getId() {
      return id_;
    }

    public static final int NICKNAME_FIELD_NUMBER = 2;
    private java.lang.Object nickname_;
    /**
     * required string nickname = 2;
     */
    public boolean hasNickname() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * required string nickname = 2;
     */
    public java.lang.String getNickname() {
      java.lang.Object ref = nickname_;
      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()) {
          nickname_ = s;
        }
        return s;
      }
    }
    /**
     * required string nickname = 2;
     */
    public com.google.protobuf.ByteString
        getNicknameBytes() {
      java.lang.Object ref = nickname_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        nickname_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int PASSWORDHASH_FIELD_NUMBER = 3;
    private java.lang.Object passwordHash_;
    /**
     * required string passwordHash = 3;
     */
    public boolean hasPasswordHash() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * required string passwordHash = 3;
     */
    public java.lang.String getPasswordHash() {
      java.lang.Object ref = passwordHash_;
      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()) {
          passwordHash_ = s;
        }
        return s;
      }
    }
    /**
     * required string passwordHash = 3;
     */
    public com.google.protobuf.ByteString
        getPasswordHashBytes() {
      java.lang.Object ref = passwordHash_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        passwordHash_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int CONTACTS_FIELD_NUMBER = 4;
    private java.util.List contacts_;
    /**
     * repeated .truward.orion.user.Contact contacts = 4;
     */
    public java.util.List getContactsList() {
      return contacts_;
    }
    /**
     * repeated .truward.orion.user.Contact contacts = 4;
     */
    public java.util.List 
        getContactsOrBuilderList() {
      return contacts_;
    }
    /**
     * repeated .truward.orion.user.Contact contacts = 4;
     */
    public int getContactsCount() {
      return contacts_.size();
    }
    /**
     * repeated .truward.orion.user.Contact contacts = 4;
     */
    public com.truward.orion.user.service.model.UserModel.Contact getContacts(int index) {
      return contacts_.get(index);
    }
    /**
     * repeated .truward.orion.user.Contact contacts = 4;
     */
    public com.truward.orion.user.service.model.UserModel.ContactOrBuilder getContactsOrBuilder(
        int index) {
      return contacts_.get(index);
    }

    public static final int AUTHORITIES_FIELD_NUMBER = 5;
    private com.google.protobuf.LazyStringList authorities_;
    /**
     * repeated string authorities = 5;
     */
    public com.google.protobuf.ProtocolStringList
        getAuthoritiesList() {
      return authorities_;
    }
    /**
     * repeated string authorities = 5;
     */
    public int getAuthoritiesCount() {
      return authorities_.size();
    }
    /**
     * repeated string authorities = 5;
     */
    public java.lang.String getAuthorities(int index) {
      return authorities_.get(index);
    }
    /**
     * repeated string authorities = 5;
     */
    public com.google.protobuf.ByteString
        getAuthoritiesBytes(int index) {
      return authorities_.getByteString(index);
    }

    public static final int CREATED_FIELD_NUMBER = 6;
    private long created_;
    /**
     * required int64 created = 6;
     */
    public boolean hasCreated() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * required int64 created = 6;
     */
    public long getCreated() {
      return created_;
    }

    public static final int ACTIVE_FIELD_NUMBER = 7;
    private boolean active_;
    /**
     * required bool active = 7;
     */
    public boolean hasActive() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    /**
     * required bool active = 7;
     */
    public boolean getActive() {
      return active_;
    }

    private void initFields() {
      id_ = 0L;
      nickname_ = "";
      passwordHash_ = "";
      contacts_ = java.util.Collections.emptyList();
      authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      created_ = 0L;
      active_ = false;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      if (!hasNickname()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasPasswordHash()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasCreated()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasActive()) {
        memoizedIsInitialized = 0;
        return false;
      }
      for (int i = 0; i < getContactsCount(); i++) {
        if (!getContacts(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt64(1, id_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getNicknameBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBytes(3, getPasswordHashBytes());
      }
      for (int i = 0; i < contacts_.size(); i++) {
        output.writeMessage(4, contacts_.get(i));
      }
      for (int i = 0; i < authorities_.size(); i++) {
        output.writeBytes(5, authorities_.getByteString(i));
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeInt64(6, created_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeBool(7, active_);
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, id_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getNicknameBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, getPasswordHashBytes());
      }
      for (int i = 0; i < contacts_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, contacts_.get(i));
      }
      {
        int dataSize = 0;
        for (int i = 0; i < authorities_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeBytesSizeNoTag(authorities_.getByteString(i));
        }
        size += dataSize;
        size += 1 * getAuthoritiesList().size();
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(6, created_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(7, active_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static com.truward.orion.user.service.model.UserModel.UserAccount parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.truward.orion.user.service.model.UserModel.UserAccount parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.truward.orion.user.service.model.UserModel.UserAccount parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.truward.orion.user.service.model.UserModel.UserAccount parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.truward.orion.user.service.model.UserModel.UserAccount parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.truward.orion.user.service.model.UserModel.UserAccount parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static com.truward.orion.user.service.model.UserModel.UserAccount parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.truward.orion.user.service.model.UserModel.UserAccount parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static com.truward.orion.user.service.model.UserModel.UserAccount parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.truward.orion.user.service.model.UserModel.UserAccount parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.UserAccount prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code truward.orion.user.UserAccount}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:truward.orion.user.UserAccount)
        com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_UserAccount_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_UserAccount_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.truward.orion.user.service.model.UserModel.UserAccount.class, com.truward.orion.user.service.model.UserModel.UserAccount.Builder.class);
      }

      // Construct using com.truward.orion.user.service.model.UserModel.UserAccount.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getContactsFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        id_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000001);
        nickname_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        passwordHash_ = "";
        bitField0_ = (bitField0_ & ~0x00000004);
        if (contactsBuilder_ == null) {
          contacts_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
        } else {
          contactsBuilder_.clear();
        }
        authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000010);
        created_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000020);
        active_ = false;
        bitField0_ = (bitField0_ & ~0x00000040);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_UserAccount_descriptor;
      }

      public com.truward.orion.user.service.model.UserModel.UserAccount getDefaultInstanceForType() {
        return com.truward.orion.user.service.model.UserModel.UserAccount.getDefaultInstance();
      }

      public com.truward.orion.user.service.model.UserModel.UserAccount build() {
        com.truward.orion.user.service.model.UserModel.UserAccount result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.truward.orion.user.service.model.UserModel.UserAccount buildPartial() {
        com.truward.orion.user.service.model.UserModel.UserAccount result = new com.truward.orion.user.service.model.UserModel.UserAccount(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.id_ = id_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.nickname_ = nickname_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.passwordHash_ = passwordHash_;
        if (contactsBuilder_ == null) {
          if (((bitField0_ & 0x00000008) == 0x00000008)) {
            contacts_ = java.util.Collections.unmodifiableList(contacts_);
            bitField0_ = (bitField0_ & ~0x00000008);
          }
          result.contacts_ = contacts_;
        } else {
          result.contacts_ = contactsBuilder_.build();
        }
        if (((bitField0_ & 0x00000010) == 0x00000010)) {
          authorities_ = authorities_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000010);
        }
        result.authorities_ = authorities_;
        if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
          to_bitField0_ |= 0x00000008;
        }
        result.created_ = created_;
        if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
          to_bitField0_ |= 0x00000010;
        }
        result.active_ = active_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.truward.orion.user.service.model.UserModel.UserAccount) {
          return mergeFrom((com.truward.orion.user.service.model.UserModel.UserAccount)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.UserAccount other) {
        if (other == com.truward.orion.user.service.model.UserModel.UserAccount.getDefaultInstance()) return this;
        if (other.hasId()) {
          setId(other.getId());
        }
        if (other.hasNickname()) {
          bitField0_ |= 0x00000002;
          nickname_ = other.nickname_;
          onChanged();
        }
        if (other.hasPasswordHash()) {
          bitField0_ |= 0x00000004;
          passwordHash_ = other.passwordHash_;
          onChanged();
        }
        if (contactsBuilder_ == null) {
          if (!other.contacts_.isEmpty()) {
            if (contacts_.isEmpty()) {
              contacts_ = other.contacts_;
              bitField0_ = (bitField0_ & ~0x00000008);
            } else {
              ensureContactsIsMutable();
              contacts_.addAll(other.contacts_);
            }
            onChanged();
          }
        } else {
          if (!other.contacts_.isEmpty()) {
            if (contactsBuilder_.isEmpty()) {
              contactsBuilder_.dispose();
              contactsBuilder_ = null;
              contacts_ = other.contacts_;
              bitField0_ = (bitField0_ & ~0x00000008);
              contactsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getContactsFieldBuilder() : null;
            } else {
              contactsBuilder_.addAllMessages(other.contacts_);
            }
          }
        }
        if (!other.authorities_.isEmpty()) {
          if (authorities_.isEmpty()) {
            authorities_ = other.authorities_;
            bitField0_ = (bitField0_ & ~0x00000010);
          } else {
            ensureAuthoritiesIsMutable();
            authorities_.addAll(other.authorities_);
          }
          onChanged();
        }
        if (other.hasCreated()) {
          setCreated(other.getCreated());
        }
        if (other.hasActive()) {
          setActive(other.getActive());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (!hasNickname()) {
          
          return false;
        }
        if (!hasPasswordHash()) {
          
          return false;
        }
        if (!hasCreated()) {
          
          return false;
        }
        if (!hasActive()) {
          
          return false;
        }
        for (int i = 0; i < getContactsCount(); i++) {
          if (!getContacts(i).isInitialized()) {
            
            return false;
          }
        }
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.truward.orion.user.service.model.UserModel.UserAccount parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.truward.orion.user.service.model.UserModel.UserAccount) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private long id_ ;
      /**
       * optional int64 id = 1;
       */
      public boolean hasId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional int64 id = 1;
       */
      public long getId() {
        return id_;
      }
      /**
       * optional int64 id = 1;
       */
      public Builder setId(long value) {
        bitField0_ |= 0x00000001;
        id_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int64 id = 1;
       */
      public Builder clearId() {
        bitField0_ = (bitField0_ & ~0x00000001);
        id_ = 0L;
        onChanged();
        return this;
      }

      private java.lang.Object nickname_ = "";
      /**
       * required string nickname = 2;
       */
      public boolean hasNickname() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * required string nickname = 2;
       */
      public java.lang.String getNickname() {
        java.lang.Object ref = nickname_;
        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()) {
            nickname_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * required string nickname = 2;
       */
      public com.google.protobuf.ByteString
          getNicknameBytes() {
        java.lang.Object ref = nickname_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          nickname_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * required string nickname = 2;
       */
      public Builder setNickname(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        nickname_ = value;
        onChanged();
        return this;
      }
      /**
       * required string nickname = 2;
       */
      public Builder clearNickname() {
        bitField0_ = (bitField0_ & ~0x00000002);
        nickname_ = getDefaultInstance().getNickname();
        onChanged();
        return this;
      }
      /**
       * required string nickname = 2;
       */
      public Builder setNicknameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        nickname_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object passwordHash_ = "";
      /**
       * required string passwordHash = 3;
       */
      public boolean hasPasswordHash() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * required string passwordHash = 3;
       */
      public java.lang.String getPasswordHash() {
        java.lang.Object ref = passwordHash_;
        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()) {
            passwordHash_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * required string passwordHash = 3;
       */
      public com.google.protobuf.ByteString
          getPasswordHashBytes() {
        java.lang.Object ref = passwordHash_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          passwordHash_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * required string passwordHash = 3;
       */
      public Builder setPasswordHash(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        passwordHash_ = value;
        onChanged();
        return this;
      }
      /**
       * required string passwordHash = 3;
       */
      public Builder clearPasswordHash() {
        bitField0_ = (bitField0_ & ~0x00000004);
        passwordHash_ = getDefaultInstance().getPasswordHash();
        onChanged();
        return this;
      }
      /**
       * required string passwordHash = 3;
       */
      public Builder setPasswordHashBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        passwordHash_ = value;
        onChanged();
        return this;
      }

      private java.util.List contacts_ =
        java.util.Collections.emptyList();
      private void ensureContactsIsMutable() {
        if (!((bitField0_ & 0x00000008) == 0x00000008)) {
          contacts_ = new java.util.ArrayList(contacts_);
          bitField0_ |= 0x00000008;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          com.truward.orion.user.service.model.UserModel.Contact, com.truward.orion.user.service.model.UserModel.Contact.Builder, com.truward.orion.user.service.model.UserModel.ContactOrBuilder> contactsBuilder_;

      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public java.util.List getContactsList() {
        if (contactsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(contacts_);
        } else {
          return contactsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public int getContactsCount() {
        if (contactsBuilder_ == null) {
          return contacts_.size();
        } else {
          return contactsBuilder_.getCount();
        }
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public com.truward.orion.user.service.model.UserModel.Contact getContacts(int index) {
        if (contactsBuilder_ == null) {
          return contacts_.get(index);
        } else {
          return contactsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public Builder setContacts(
          int index, com.truward.orion.user.service.model.UserModel.Contact value) {
        if (contactsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureContactsIsMutable();
          contacts_.set(index, value);
          onChanged();
        } else {
          contactsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public Builder setContacts(
          int index, com.truward.orion.user.service.model.UserModel.Contact.Builder builderForValue) {
        if (contactsBuilder_ == null) {
          ensureContactsIsMutable();
          contacts_.set(index, builderForValue.build());
          onChanged();
        } else {
          contactsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public Builder addContacts(com.truward.orion.user.service.model.UserModel.Contact value) {
        if (contactsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureContactsIsMutable();
          contacts_.add(value);
          onChanged();
        } else {
          contactsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public Builder addContacts(
          int index, com.truward.orion.user.service.model.UserModel.Contact value) {
        if (contactsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureContactsIsMutable();
          contacts_.add(index, value);
          onChanged();
        } else {
          contactsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public Builder addContacts(
          com.truward.orion.user.service.model.UserModel.Contact.Builder builderForValue) {
        if (contactsBuilder_ == null) {
          ensureContactsIsMutable();
          contacts_.add(builderForValue.build());
          onChanged();
        } else {
          contactsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public Builder addContacts(
          int index, com.truward.orion.user.service.model.UserModel.Contact.Builder builderForValue) {
        if (contactsBuilder_ == null) {
          ensureContactsIsMutable();
          contacts_.add(index, builderForValue.build());
          onChanged();
        } else {
          contactsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public Builder addAllContacts(
          java.lang.Iterable values) {
        if (contactsBuilder_ == null) {
          ensureContactsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, contacts_);
          onChanged();
        } else {
          contactsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public Builder clearContacts() {
        if (contactsBuilder_ == null) {
          contacts_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
          onChanged();
        } else {
          contactsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public Builder removeContacts(int index) {
        if (contactsBuilder_ == null) {
          ensureContactsIsMutable();
          contacts_.remove(index);
          onChanged();
        } else {
          contactsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public com.truward.orion.user.service.model.UserModel.Contact.Builder getContactsBuilder(
          int index) {
        return getContactsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public com.truward.orion.user.service.model.UserModel.ContactOrBuilder getContactsOrBuilder(
          int index) {
        if (contactsBuilder_ == null) {
          return contacts_.get(index);  } else {
          return contactsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public java.util.List 
           getContactsOrBuilderList() {
        if (contactsBuilder_ != null) {
          return contactsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(contacts_);
        }
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public com.truward.orion.user.service.model.UserModel.Contact.Builder addContactsBuilder() {
        return getContactsFieldBuilder().addBuilder(
            com.truward.orion.user.service.model.UserModel.Contact.getDefaultInstance());
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public com.truward.orion.user.service.model.UserModel.Contact.Builder addContactsBuilder(
          int index) {
        return getContactsFieldBuilder().addBuilder(
            index, com.truward.orion.user.service.model.UserModel.Contact.getDefaultInstance());
      }
      /**
       * repeated .truward.orion.user.Contact contacts = 4;
       */
      public java.util.List 
           getContactsBuilderList() {
        return getContactsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          com.truward.orion.user.service.model.UserModel.Contact, com.truward.orion.user.service.model.UserModel.Contact.Builder, com.truward.orion.user.service.model.UserModel.ContactOrBuilder> 
          getContactsFieldBuilder() {
        if (contactsBuilder_ == null) {
          contactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              com.truward.orion.user.service.model.UserModel.Contact, com.truward.orion.user.service.model.UserModel.Contact.Builder, com.truward.orion.user.service.model.UserModel.ContactOrBuilder>(
                  contacts_,
                  ((bitField0_ & 0x00000008) == 0x00000008),
                  getParentForChildren(),
                  isClean());
          contacts_ = null;
        }
        return contactsBuilder_;
      }

      private com.google.protobuf.LazyStringList authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      private void ensureAuthoritiesIsMutable() {
        if (!((bitField0_ & 0x00000010) == 0x00000010)) {
          authorities_ = new com.google.protobuf.LazyStringArrayList(authorities_);
          bitField0_ |= 0x00000010;
         }
      }
      /**
       * repeated string authorities = 5;
       */
      public com.google.protobuf.ProtocolStringList
          getAuthoritiesList() {
        return authorities_.getUnmodifiableView();
      }
      /**
       * repeated string authorities = 5;
       */
      public int getAuthoritiesCount() {
        return authorities_.size();
      }
      /**
       * repeated string authorities = 5;
       */
      public java.lang.String getAuthorities(int index) {
        return authorities_.get(index);
      }
      /**
       * repeated string authorities = 5;
       */
      public com.google.protobuf.ByteString
          getAuthoritiesBytes(int index) {
        return authorities_.getByteString(index);
      }
      /**
       * repeated string authorities = 5;
       */
      public Builder setAuthorities(
          int index, java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureAuthoritiesIsMutable();
        authorities_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * repeated string authorities = 5;
       */
      public Builder addAuthorities(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureAuthoritiesIsMutable();
        authorities_.add(value);
        onChanged();
        return this;
      }
      /**
       * repeated string authorities = 5;
       */
      public Builder addAllAuthorities(
          java.lang.Iterable values) {
        ensureAuthoritiesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, authorities_);
        onChanged();
        return this;
      }
      /**
       * repeated string authorities = 5;
       */
      public Builder clearAuthorities() {
        authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000010);
        onChanged();
        return this;
      }
      /**
       * repeated string authorities = 5;
       */
      public Builder addAuthoritiesBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureAuthoritiesIsMutable();
        authorities_.add(value);
        onChanged();
        return this;
      }

      private long created_ ;
      /**
       * required int64 created = 6;
       */
      public boolean hasCreated() {
        return ((bitField0_ & 0x00000020) == 0x00000020);
      }
      /**
       * required int64 created = 6;
       */
      public long getCreated() {
        return created_;
      }
      /**
       * required int64 created = 6;
       */
      public Builder setCreated(long value) {
        bitField0_ |= 0x00000020;
        created_ = value;
        onChanged();
        return this;
      }
      /**
       * required int64 created = 6;
       */
      public Builder clearCreated() {
        bitField0_ = (bitField0_ & ~0x00000020);
        created_ = 0L;
        onChanged();
        return this;
      }

      private boolean active_ ;
      /**
       * required bool active = 7;
       */
      public boolean hasActive() {
        return ((bitField0_ & 0x00000040) == 0x00000040);
      }
      /**
       * required bool active = 7;
       */
      public boolean getActive() {
        return active_;
      }
      /**
       * required bool active = 7;
       */
      public Builder setActive(boolean value) {
        bitField0_ |= 0x00000040;
        active_ = value;
        onChanged();
        return this;
      }
      /**
       * required bool active = 7;
       */
      public Builder clearActive() {
        bitField0_ = (bitField0_ & ~0x00000040);
        active_ = false;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:truward.orion.user.UserAccount)
    }

    static {
      defaultInstance = new UserAccount(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:truward.orion.user.UserAccount)
  }

  public interface ListAccountsRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:truward.orion.user.ListAccountsRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional string offsetToken = 1;
     */
    boolean hasOffsetToken();
    /**
     * optional string offsetToken = 1;
     */
    java.lang.String getOffsetToken();
    /**
     * optional string offsetToken = 1;
     */
    com.google.protobuf.ByteString
        getOffsetTokenBytes();

    /**
     * required int32 limit = 2 [default = 8];
     */
    boolean hasLimit();
    /**
     * required int32 limit = 2 [default = 8];
     */
    int getLimit();
  }
  /**
   * Protobuf type {@code truward.orion.user.ListAccountsRequest}
   */
  public static final class ListAccountsRequest extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:truward.orion.user.ListAccountsRequest)
      ListAccountsRequestOrBuilder {
    // Use ListAccountsRequest.newBuilder() to construct.
    private ListAccountsRequest(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private ListAccountsRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final ListAccountsRequest defaultInstance;
    public static ListAccountsRequest getDefaultInstance() {
      return defaultInstance;
    }

    public ListAccountsRequest getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private ListAccountsRequest(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              com.google.protobuf.ByteString bs = input.readBytes();
              bitField0_ |= 0x00000001;
              offsetToken_ = bs;
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              limit_ = input.readInt32();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_ListAccountsRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_ListAccountsRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.truward.orion.user.service.model.UserModel.ListAccountsRequest.class, com.truward.orion.user.service.model.UserModel.ListAccountsRequest.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public ListAccountsRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new ListAccountsRequest(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    public static final int OFFSETTOKEN_FIELD_NUMBER = 1;
    private java.lang.Object offsetToken_;
    /**
     * optional string offsetToken = 1;
     */
    public boolean hasOffsetToken() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional string offsetToken = 1;
     */
    public java.lang.String getOffsetToken() {
      java.lang.Object ref = offsetToken_;
      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()) {
          offsetToken_ = s;
        }
        return s;
      }
    }
    /**
     * optional string offsetToken = 1;
     */
    public com.google.protobuf.ByteString
        getOffsetTokenBytes() {
      java.lang.Object ref = offsetToken_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        offsetToken_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int LIMIT_FIELD_NUMBER = 2;
    private int limit_;
    /**
     * required int32 limit = 2 [default = 8];
     */
    public boolean hasLimit() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * required int32 limit = 2 [default = 8];
     */
    public int getLimit() {
      return limit_;
    }

    private void initFields() {
      offsetToken_ = "";
      limit_ = 8;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      if (!hasLimit()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getOffsetTokenBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeInt32(2, limit_);
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, getOffsetTokenBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, limit_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static com.truward.orion.user.service.model.UserModel.ListAccountsRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsRequest parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsRequest parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.ListAccountsRequest prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code truward.orion.user.ListAccountsRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:truward.orion.user.ListAccountsRequest)
        com.truward.orion.user.service.model.UserModel.ListAccountsRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_ListAccountsRequest_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_ListAccountsRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.truward.orion.user.service.model.UserModel.ListAccountsRequest.class, com.truward.orion.user.service.model.UserModel.ListAccountsRequest.Builder.class);
      }

      // Construct using com.truward.orion.user.service.model.UserModel.ListAccountsRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        offsetToken_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        limit_ = 8;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_ListAccountsRequest_descriptor;
      }

      public com.truward.orion.user.service.model.UserModel.ListAccountsRequest getDefaultInstanceForType() {
        return com.truward.orion.user.service.model.UserModel.ListAccountsRequest.getDefaultInstance();
      }

      public com.truward.orion.user.service.model.UserModel.ListAccountsRequest build() {
        com.truward.orion.user.service.model.UserModel.ListAccountsRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.truward.orion.user.service.model.UserModel.ListAccountsRequest buildPartial() {
        com.truward.orion.user.service.model.UserModel.ListAccountsRequest result = new com.truward.orion.user.service.model.UserModel.ListAccountsRequest(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.offsetToken_ = offsetToken_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.limit_ = limit_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.truward.orion.user.service.model.UserModel.ListAccountsRequest) {
          return mergeFrom((com.truward.orion.user.service.model.UserModel.ListAccountsRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.ListAccountsRequest other) {
        if (other == com.truward.orion.user.service.model.UserModel.ListAccountsRequest.getDefaultInstance()) return this;
        if (other.hasOffsetToken()) {
          bitField0_ |= 0x00000001;
          offsetToken_ = other.offsetToken_;
          onChanged();
        }
        if (other.hasLimit()) {
          setLimit(other.getLimit());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (!hasLimit()) {
          
          return false;
        }
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.truward.orion.user.service.model.UserModel.ListAccountsRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.truward.orion.user.service.model.UserModel.ListAccountsRequest) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.lang.Object offsetToken_ = "";
      /**
       * optional string offsetToken = 1;
       */
      public boolean hasOffsetToken() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional string offsetToken = 1;
       */
      public java.lang.String getOffsetToken() {
        java.lang.Object ref = offsetToken_;
        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()) {
            offsetToken_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string offsetToken = 1;
       */
      public com.google.protobuf.ByteString
          getOffsetTokenBytes() {
        java.lang.Object ref = offsetToken_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          offsetToken_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string offsetToken = 1;
       */
      public Builder setOffsetToken(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        offsetToken_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string offsetToken = 1;
       */
      public Builder clearOffsetToken() {
        bitField0_ = (bitField0_ & ~0x00000001);
        offsetToken_ = getDefaultInstance().getOffsetToken();
        onChanged();
        return this;
      }
      /**
       * optional string offsetToken = 1;
       */
      public Builder setOffsetTokenBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        offsetToken_ = value;
        onChanged();
        return this;
      }

      private int limit_ = 8;
      /**
       * required int32 limit = 2 [default = 8];
       */
      public boolean hasLimit() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * required int32 limit = 2 [default = 8];
       */
      public int getLimit() {
        return limit_;
      }
      /**
       * required int32 limit = 2 [default = 8];
       */
      public Builder setLimit(int value) {
        bitField0_ |= 0x00000002;
        limit_ = value;
        onChanged();
        return this;
      }
      /**
       * required int32 limit = 2 [default = 8];
       */
      public Builder clearLimit() {
        bitField0_ = (bitField0_ & ~0x00000002);
        limit_ = 8;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:truward.orion.user.ListAccountsRequest)
    }

    static {
      defaultInstance = new ListAccountsRequest(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:truward.orion.user.ListAccountsRequest)
  }

  public interface ListAccountsResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:truward.orion.user.ListAccountsResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .truward.orion.user.UserAccount accounts = 1;
     */
    java.util.List 
        getAccountsList();
    /**
     * repeated .truward.orion.user.UserAccount accounts = 1;
     */
    com.truward.orion.user.service.model.UserModel.UserAccount getAccounts(int index);
    /**
     * repeated .truward.orion.user.UserAccount accounts = 1;
     */
    int getAccountsCount();
    /**
     * repeated .truward.orion.user.UserAccount accounts = 1;
     */
    java.util.List 
        getAccountsOrBuilderList();
    /**
     * repeated .truward.orion.user.UserAccount accounts = 1;
     */
    com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder getAccountsOrBuilder(
        int index);

    /**
     * optional string offsetToken = 2;
     */
    boolean hasOffsetToken();
    /**
     * optional string offsetToken = 2;
     */
    java.lang.String getOffsetToken();
    /**
     * optional string offsetToken = 2;
     */
    com.google.protobuf.ByteString
        getOffsetTokenBytes();
  }
  /**
   * Protobuf type {@code truward.orion.user.ListAccountsResponse}
   */
  public static final class ListAccountsResponse extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:truward.orion.user.ListAccountsResponse)
      ListAccountsResponseOrBuilder {
    // Use ListAccountsResponse.newBuilder() to construct.
    private ListAccountsResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private ListAccountsResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final ListAccountsResponse defaultInstance;
    public static ListAccountsResponse getDefaultInstance() {
      return defaultInstance;
    }

    public ListAccountsResponse getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private ListAccountsResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                accounts_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              accounts_.add(input.readMessage(com.truward.orion.user.service.model.UserModel.UserAccount.PARSER, extensionRegistry));
              break;
            }
            case 18: {
              com.google.protobuf.ByteString bs = input.readBytes();
              bitField0_ |= 0x00000001;
              offsetToken_ = bs;
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
          accounts_ = java.util.Collections.unmodifiableList(accounts_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_ListAccountsResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_ListAccountsResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.truward.orion.user.service.model.UserModel.ListAccountsResponse.class, com.truward.orion.user.service.model.UserModel.ListAccountsResponse.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public ListAccountsResponse parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new ListAccountsResponse(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    public static final int ACCOUNTS_FIELD_NUMBER = 1;
    private java.util.List accounts_;
    /**
     * repeated .truward.orion.user.UserAccount accounts = 1;
     */
    public java.util.List getAccountsList() {
      return accounts_;
    }
    /**
     * repeated .truward.orion.user.UserAccount accounts = 1;
     */
    public java.util.List 
        getAccountsOrBuilderList() {
      return accounts_;
    }
    /**
     * repeated .truward.orion.user.UserAccount accounts = 1;
     */
    public int getAccountsCount() {
      return accounts_.size();
    }
    /**
     * repeated .truward.orion.user.UserAccount accounts = 1;
     */
    public com.truward.orion.user.service.model.UserModel.UserAccount getAccounts(int index) {
      return accounts_.get(index);
    }
    /**
     * repeated .truward.orion.user.UserAccount accounts = 1;
     */
    public com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder getAccountsOrBuilder(
        int index) {
      return accounts_.get(index);
    }

    public static final int OFFSETTOKEN_FIELD_NUMBER = 2;
    private java.lang.Object offsetToken_;
    /**
     * optional string offsetToken = 2;
     */
    public boolean hasOffsetToken() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional string offsetToken = 2;
     */
    public java.lang.String getOffsetToken() {
      java.lang.Object ref = offsetToken_;
      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()) {
          offsetToken_ = s;
        }
        return s;
      }
    }
    /**
     * optional string offsetToken = 2;
     */
    public com.google.protobuf.ByteString
        getOffsetTokenBytes() {
      java.lang.Object ref = offsetToken_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        offsetToken_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      accounts_ = java.util.Collections.emptyList();
      offsetToken_ = "";
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      for (int i = 0; i < getAccountsCount(); i++) {
        if (!getAccounts(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      for (int i = 0; i < accounts_.size(); i++) {
        output.writeMessage(1, accounts_.get(i));
      }
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(2, getOffsetTokenBytes());
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      for (int i = 0; i < accounts_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, accounts_.get(i));
      }
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getOffsetTokenBytes());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static com.truward.orion.user.service.model.UserModel.ListAccountsResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsResponse parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsResponse parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.truward.orion.user.service.model.UserModel.ListAccountsResponse parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.ListAccountsResponse prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code truward.orion.user.ListAccountsResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:truward.orion.user.ListAccountsResponse)
        com.truward.orion.user.service.model.UserModel.ListAccountsResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_ListAccountsResponse_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_ListAccountsResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.truward.orion.user.service.model.UserModel.ListAccountsResponse.class, com.truward.orion.user.service.model.UserModel.ListAccountsResponse.Builder.class);
      }

      // Construct using com.truward.orion.user.service.model.UserModel.ListAccountsResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getAccountsFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        if (accountsBuilder_ == null) {
          accounts_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          accountsBuilder_.clear();
        }
        offsetToken_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_ListAccountsResponse_descriptor;
      }

      public com.truward.orion.user.service.model.UserModel.ListAccountsResponse getDefaultInstanceForType() {
        return com.truward.orion.user.service.model.UserModel.ListAccountsResponse.getDefaultInstance();
      }

      public com.truward.orion.user.service.model.UserModel.ListAccountsResponse build() {
        com.truward.orion.user.service.model.UserModel.ListAccountsResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.truward.orion.user.service.model.UserModel.ListAccountsResponse buildPartial() {
        com.truward.orion.user.service.model.UserModel.ListAccountsResponse result = new com.truward.orion.user.service.model.UserModel.ListAccountsResponse(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (accountsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001)) {
            accounts_ = java.util.Collections.unmodifiableList(accounts_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.accounts_ = accounts_;
        } else {
          result.accounts_ = accountsBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000001;
        }
        result.offsetToken_ = offsetToken_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.truward.orion.user.service.model.UserModel.ListAccountsResponse) {
          return mergeFrom((com.truward.orion.user.service.model.UserModel.ListAccountsResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.ListAccountsResponse other) {
        if (other == com.truward.orion.user.service.model.UserModel.ListAccountsResponse.getDefaultInstance()) return this;
        if (accountsBuilder_ == null) {
          if (!other.accounts_.isEmpty()) {
            if (accounts_.isEmpty()) {
              accounts_ = other.accounts_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureAccountsIsMutable();
              accounts_.addAll(other.accounts_);
            }
            onChanged();
          }
        } else {
          if (!other.accounts_.isEmpty()) {
            if (accountsBuilder_.isEmpty()) {
              accountsBuilder_.dispose();
              accountsBuilder_ = null;
              accounts_ = other.accounts_;
              bitField0_ = (bitField0_ & ~0x00000001);
              accountsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getAccountsFieldBuilder() : null;
            } else {
              accountsBuilder_.addAllMessages(other.accounts_);
            }
          }
        }
        if (other.hasOffsetToken()) {
          bitField0_ |= 0x00000002;
          offsetToken_ = other.offsetToken_;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        for (int i = 0; i < getAccountsCount(); i++) {
          if (!getAccounts(i).isInitialized()) {
            
            return false;
          }
        }
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.truward.orion.user.service.model.UserModel.ListAccountsResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.truward.orion.user.service.model.UserModel.ListAccountsResponse) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List accounts_ =
        java.util.Collections.emptyList();
      private void ensureAccountsIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          accounts_ = new java.util.ArrayList(accounts_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          com.truward.orion.user.service.model.UserModel.UserAccount, com.truward.orion.user.service.model.UserModel.UserAccount.Builder, com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder> accountsBuilder_;

      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public java.util.List getAccountsList() {
        if (accountsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(accounts_);
        } else {
          return accountsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public int getAccountsCount() {
        if (accountsBuilder_ == null) {
          return accounts_.size();
        } else {
          return accountsBuilder_.getCount();
        }
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public com.truward.orion.user.service.model.UserModel.UserAccount getAccounts(int index) {
        if (accountsBuilder_ == null) {
          return accounts_.get(index);
        } else {
          return accountsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public Builder setAccounts(
          int index, com.truward.orion.user.service.model.UserModel.UserAccount value) {
        if (accountsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureAccountsIsMutable();
          accounts_.set(index, value);
          onChanged();
        } else {
          accountsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public Builder setAccounts(
          int index, com.truward.orion.user.service.model.UserModel.UserAccount.Builder builderForValue) {
        if (accountsBuilder_ == null) {
          ensureAccountsIsMutable();
          accounts_.set(index, builderForValue.build());
          onChanged();
        } else {
          accountsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public Builder addAccounts(com.truward.orion.user.service.model.UserModel.UserAccount value) {
        if (accountsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureAccountsIsMutable();
          accounts_.add(value);
          onChanged();
        } else {
          accountsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public Builder addAccounts(
          int index, com.truward.orion.user.service.model.UserModel.UserAccount value) {
        if (accountsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureAccountsIsMutable();
          accounts_.add(index, value);
          onChanged();
        } else {
          accountsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public Builder addAccounts(
          com.truward.orion.user.service.model.UserModel.UserAccount.Builder builderForValue) {
        if (accountsBuilder_ == null) {
          ensureAccountsIsMutable();
          accounts_.add(builderForValue.build());
          onChanged();
        } else {
          accountsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public Builder addAccounts(
          int index, com.truward.orion.user.service.model.UserModel.UserAccount.Builder builderForValue) {
        if (accountsBuilder_ == null) {
          ensureAccountsIsMutable();
          accounts_.add(index, builderForValue.build());
          onChanged();
        } else {
          accountsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public Builder addAllAccounts(
          java.lang.Iterable values) {
        if (accountsBuilder_ == null) {
          ensureAccountsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, accounts_);
          onChanged();
        } else {
          accountsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public Builder clearAccounts() {
        if (accountsBuilder_ == null) {
          accounts_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          accountsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public Builder removeAccounts(int index) {
        if (accountsBuilder_ == null) {
          ensureAccountsIsMutable();
          accounts_.remove(index);
          onChanged();
        } else {
          accountsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public com.truward.orion.user.service.model.UserModel.UserAccount.Builder getAccountsBuilder(
          int index) {
        return getAccountsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder getAccountsOrBuilder(
          int index) {
        if (accountsBuilder_ == null) {
          return accounts_.get(index);  } else {
          return accountsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public java.util.List 
           getAccountsOrBuilderList() {
        if (accountsBuilder_ != null) {
          return accountsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(accounts_);
        }
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public com.truward.orion.user.service.model.UserModel.UserAccount.Builder addAccountsBuilder() {
        return getAccountsFieldBuilder().addBuilder(
            com.truward.orion.user.service.model.UserModel.UserAccount.getDefaultInstance());
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public com.truward.orion.user.service.model.UserModel.UserAccount.Builder addAccountsBuilder(
          int index) {
        return getAccountsFieldBuilder().addBuilder(
            index, com.truward.orion.user.service.model.UserModel.UserAccount.getDefaultInstance());
      }
      /**
       * repeated .truward.orion.user.UserAccount accounts = 1;
       */
      public java.util.List 
           getAccountsBuilderList() {
        return getAccountsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          com.truward.orion.user.service.model.UserModel.UserAccount, com.truward.orion.user.service.model.UserModel.UserAccount.Builder, com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder> 
          getAccountsFieldBuilder() {
        if (accountsBuilder_ == null) {
          accountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              com.truward.orion.user.service.model.UserModel.UserAccount, com.truward.orion.user.service.model.UserModel.UserAccount.Builder, com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder>(
                  accounts_,
                  ((bitField0_ & 0x00000001) == 0x00000001),
                  getParentForChildren(),
                  isClean());
          accounts_ = null;
        }
        return accountsBuilder_;
      }

      private java.lang.Object offsetToken_ = "";
      /**
       * optional string offsetToken = 2;
       */
      public boolean hasOffsetToken() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional string offsetToken = 2;
       */
      public java.lang.String getOffsetToken() {
        java.lang.Object ref = offsetToken_;
        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()) {
            offsetToken_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string offsetToken = 2;
       */
      public com.google.protobuf.ByteString
          getOffsetTokenBytes() {
        java.lang.Object ref = offsetToken_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          offsetToken_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string offsetToken = 2;
       */
      public Builder setOffsetToken(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        offsetToken_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string offsetToken = 2;
       */
      public Builder clearOffsetToken() {
        bitField0_ = (bitField0_ & ~0x00000002);
        offsetToken_ = getDefaultInstance().getOffsetToken();
        onChanged();
        return this;
      }
      /**
       * optional string offsetToken = 2;
       */
      public Builder setOffsetTokenBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        offsetToken_ = value;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:truward.orion.user.ListAccountsResponse)
    }

    static {
      defaultInstance = new ListAccountsResponse(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:truward.orion.user.ListAccountsResponse)
  }

  public interface AccountLookupRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:truward.orion.user.AccountLookupRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * required string username = 1;
     */
    boolean hasUsername();
    /**
     * required string username = 1;
     */
    java.lang.String getUsername();
    /**
     * required string username = 1;
     */
    com.google.protobuf.ByteString
        getUsernameBytes();

    /**
     * optional bool includeContacts = 2;
     *
     * 
     * include contacts to the resultant user account?
     * 
*/ boolean hasIncludeContacts(); /** * optional bool includeContacts = 2; * *
     * include contacts to the resultant user account?
     * 
*/ boolean getIncludeContacts(); } /** * Protobuf type {@code truward.orion.user.AccountLookupRequest} */ public static final class AccountLookupRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:truward.orion.user.AccountLookupRequest) AccountLookupRequestOrBuilder { // Use AccountLookupRequest.newBuilder() to construct. private AccountLookupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AccountLookupRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AccountLookupRequest defaultInstance; public static AccountLookupRequest getDefaultInstance() { return defaultInstance; } public AccountLookupRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AccountLookupRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; username_ = bs; break; } case 16: { bitField0_ |= 0x00000002; includeContacts_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountLookupRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountLookupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.AccountLookupRequest.class, com.truward.orion.user.service.model.UserModel.AccountLookupRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AccountLookupRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AccountLookupRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int USERNAME_FIELD_NUMBER = 1; private java.lang.Object username_; /** * required string username = 1; */ public boolean hasUsername() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string username = 1; */ public java.lang.String getUsername() { java.lang.Object ref = username_; 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()) { username_ = s; } return s; } } /** * required string username = 1; */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INCLUDECONTACTS_FIELD_NUMBER = 2; private boolean includeContacts_; /** * optional bool includeContacts = 2; * *
     * include contacts to the resultant user account?
     * 
*/ public boolean hasIncludeContacts() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bool includeContacts = 2; * *
     * include contacts to the resultant user account?
     * 
*/ public boolean getIncludeContacts() { return includeContacts_; } private void initFields() { username_ = ""; includeContacts_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasUsername()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getUsernameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, includeContacts_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getUsernameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, includeContacts_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.truward.orion.user.service.model.UserModel.AccountLookupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.AccountLookupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.AccountLookupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.AccountLookupRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.AccountLookupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.AccountLookupRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.AccountLookupRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.truward.orion.user.service.model.UserModel.AccountLookupRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.AccountLookupRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.AccountLookupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.AccountLookupRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code truward.orion.user.AccountLookupRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:truward.orion.user.AccountLookupRequest) com.truward.orion.user.service.model.UserModel.AccountLookupRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountLookupRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountLookupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.AccountLookupRequest.class, com.truward.orion.user.service.model.UserModel.AccountLookupRequest.Builder.class); } // Construct using com.truward.orion.user.service.model.UserModel.AccountLookupRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); username_ = ""; bitField0_ = (bitField0_ & ~0x00000001); includeContacts_ = false; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountLookupRequest_descriptor; } public com.truward.orion.user.service.model.UserModel.AccountLookupRequest getDefaultInstanceForType() { return com.truward.orion.user.service.model.UserModel.AccountLookupRequest.getDefaultInstance(); } public com.truward.orion.user.service.model.UserModel.AccountLookupRequest build() { com.truward.orion.user.service.model.UserModel.AccountLookupRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.truward.orion.user.service.model.UserModel.AccountLookupRequest buildPartial() { com.truward.orion.user.service.model.UserModel.AccountLookupRequest result = new com.truward.orion.user.service.model.UserModel.AccountLookupRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.username_ = username_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.includeContacts_ = includeContacts_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.truward.orion.user.service.model.UserModel.AccountLookupRequest) { return mergeFrom((com.truward.orion.user.service.model.UserModel.AccountLookupRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.AccountLookupRequest other) { if (other == com.truward.orion.user.service.model.UserModel.AccountLookupRequest.getDefaultInstance()) return this; if (other.hasUsername()) { bitField0_ |= 0x00000001; username_ = other.username_; onChanged(); } if (other.hasIncludeContacts()) { setIncludeContacts(other.getIncludeContacts()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasUsername()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.truward.orion.user.service.model.UserModel.AccountLookupRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.truward.orion.user.service.model.UserModel.AccountLookupRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object username_ = ""; /** * required string username = 1; */ public boolean hasUsername() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string username = 1; */ public java.lang.String getUsername() { java.lang.Object ref = username_; 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()) { username_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string username = 1; */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string username = 1; */ public Builder setUsername( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; username_ = value; onChanged(); return this; } /** * required string username = 1; */ public Builder clearUsername() { bitField0_ = (bitField0_ & ~0x00000001); username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** * required string username = 1; */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; username_ = value; onChanged(); return this; } private boolean includeContacts_ ; /** * optional bool includeContacts = 2; * *
       * include contacts to the resultant user account?
       * 
*/ public boolean hasIncludeContacts() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bool includeContacts = 2; * *
       * include contacts to the resultant user account?
       * 
*/ public boolean getIncludeContacts() { return includeContacts_; } /** * optional bool includeContacts = 2; * *
       * include contacts to the resultant user account?
       * 
*/ public Builder setIncludeContacts(boolean value) { bitField0_ |= 0x00000002; includeContacts_ = value; onChanged(); return this; } /** * optional bool includeContacts = 2; * *
       * include contacts to the resultant user account?
       * 
*/ public Builder clearIncludeContacts() { bitField0_ = (bitField0_ & ~0x00000002); includeContacts_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:truward.orion.user.AccountLookupRequest) } static { defaultInstance = new AccountLookupRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:truward.orion.user.AccountLookupRequest) } public interface AccountLookupResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:truward.orion.user.AccountLookupResponse) com.google.protobuf.MessageOrBuilder { /** * optional .truward.orion.user.UserAccount account = 1; */ boolean hasAccount(); /** * optional .truward.orion.user.UserAccount account = 1; */ com.truward.orion.user.service.model.UserModel.UserAccount getAccount(); /** * optional .truward.orion.user.UserAccount account = 1; */ com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder getAccountOrBuilder(); } /** * Protobuf type {@code truward.orion.user.AccountLookupResponse} */ public static final class AccountLookupResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:truward.orion.user.AccountLookupResponse) AccountLookupResponseOrBuilder { // Use AccountLookupResponse.newBuilder() to construct. private AccountLookupResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AccountLookupResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AccountLookupResponse defaultInstance; public static AccountLookupResponse getDefaultInstance() { return defaultInstance; } public AccountLookupResponse getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AccountLookupResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.truward.orion.user.service.model.UserModel.UserAccount.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = account_.toBuilder(); } account_ = input.readMessage(com.truward.orion.user.service.model.UserModel.UserAccount.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(account_); account_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountLookupResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountLookupResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.AccountLookupResponse.class, com.truward.orion.user.service.model.UserModel.AccountLookupResponse.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AccountLookupResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AccountLookupResponse(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int ACCOUNT_FIELD_NUMBER = 1; private com.truward.orion.user.service.model.UserModel.UserAccount account_; /** * optional .truward.orion.user.UserAccount account = 1; */ public boolean hasAccount() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .truward.orion.user.UserAccount account = 1; */ public com.truward.orion.user.service.model.UserModel.UserAccount getAccount() { return account_; } /** * optional .truward.orion.user.UserAccount account = 1; */ public com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder getAccountOrBuilder() { return account_; } private void initFields() { account_ = com.truward.orion.user.service.model.UserModel.UserAccount.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasAccount()) { if (!getAccount().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, account_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, account_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.truward.orion.user.service.model.UserModel.AccountLookupResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.AccountLookupResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.AccountLookupResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.AccountLookupResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.AccountLookupResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.AccountLookupResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.AccountLookupResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.truward.orion.user.service.model.UserModel.AccountLookupResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.AccountLookupResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.AccountLookupResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.AccountLookupResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code truward.orion.user.AccountLookupResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:truward.orion.user.AccountLookupResponse) com.truward.orion.user.service.model.UserModel.AccountLookupResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountLookupResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountLookupResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.AccountLookupResponse.class, com.truward.orion.user.service.model.UserModel.AccountLookupResponse.Builder.class); } // Construct using com.truward.orion.user.service.model.UserModel.AccountLookupResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAccountFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (accountBuilder_ == null) { account_ = com.truward.orion.user.service.model.UserModel.UserAccount.getDefaultInstance(); } else { accountBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountLookupResponse_descriptor; } public com.truward.orion.user.service.model.UserModel.AccountLookupResponse getDefaultInstanceForType() { return com.truward.orion.user.service.model.UserModel.AccountLookupResponse.getDefaultInstance(); } public com.truward.orion.user.service.model.UserModel.AccountLookupResponse build() { com.truward.orion.user.service.model.UserModel.AccountLookupResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.truward.orion.user.service.model.UserModel.AccountLookupResponse buildPartial() { com.truward.orion.user.service.model.UserModel.AccountLookupResponse result = new com.truward.orion.user.service.model.UserModel.AccountLookupResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (accountBuilder_ == null) { result.account_ = account_; } else { result.account_ = accountBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.truward.orion.user.service.model.UserModel.AccountLookupResponse) { return mergeFrom((com.truward.orion.user.service.model.UserModel.AccountLookupResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.AccountLookupResponse other) { if (other == com.truward.orion.user.service.model.UserModel.AccountLookupResponse.getDefaultInstance()) return this; if (other.hasAccount()) { mergeAccount(other.getAccount()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasAccount()) { if (!getAccount().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.truward.orion.user.service.model.UserModel.AccountLookupResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.truward.orion.user.service.model.UserModel.AccountLookupResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.truward.orion.user.service.model.UserModel.UserAccount account_ = com.truward.orion.user.service.model.UserModel.UserAccount.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.truward.orion.user.service.model.UserModel.UserAccount, com.truward.orion.user.service.model.UserModel.UserAccount.Builder, com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder> accountBuilder_; /** * optional .truward.orion.user.UserAccount account = 1; */ public boolean hasAccount() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .truward.orion.user.UserAccount account = 1; */ public com.truward.orion.user.service.model.UserModel.UserAccount getAccount() { if (accountBuilder_ == null) { return account_; } else { return accountBuilder_.getMessage(); } } /** * optional .truward.orion.user.UserAccount account = 1; */ public Builder setAccount(com.truward.orion.user.service.model.UserModel.UserAccount value) { if (accountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } account_ = value; onChanged(); } else { accountBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .truward.orion.user.UserAccount account = 1; */ public Builder setAccount( com.truward.orion.user.service.model.UserModel.UserAccount.Builder builderForValue) { if (accountBuilder_ == null) { account_ = builderForValue.build(); onChanged(); } else { accountBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .truward.orion.user.UserAccount account = 1; */ public Builder mergeAccount(com.truward.orion.user.service.model.UserModel.UserAccount value) { if (accountBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && account_ != com.truward.orion.user.service.model.UserModel.UserAccount.getDefaultInstance()) { account_ = com.truward.orion.user.service.model.UserModel.UserAccount.newBuilder(account_).mergeFrom(value).buildPartial(); } else { account_ = value; } onChanged(); } else { accountBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .truward.orion.user.UserAccount account = 1; */ public Builder clearAccount() { if (accountBuilder_ == null) { account_ = com.truward.orion.user.service.model.UserModel.UserAccount.getDefaultInstance(); onChanged(); } else { accountBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .truward.orion.user.UserAccount account = 1; */ public com.truward.orion.user.service.model.UserModel.UserAccount.Builder getAccountBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAccountFieldBuilder().getBuilder(); } /** * optional .truward.orion.user.UserAccount account = 1; */ public com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder getAccountOrBuilder() { if (accountBuilder_ != null) { return accountBuilder_.getMessageOrBuilder(); } else { return account_; } } /** * optional .truward.orion.user.UserAccount account = 1; */ private com.google.protobuf.SingleFieldBuilder< com.truward.orion.user.service.model.UserModel.UserAccount, com.truward.orion.user.service.model.UserModel.UserAccount.Builder, com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder> getAccountFieldBuilder() { if (accountBuilder_ == null) { accountBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.truward.orion.user.service.model.UserModel.UserAccount, com.truward.orion.user.service.model.UserModel.UserAccount.Builder, com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder>( getAccount(), getParentForChildren(), isClean()); account_ = null; } return accountBuilder_; } // @@protoc_insertion_point(builder_scope:truward.orion.user.AccountLookupResponse) } static { defaultInstance = new AccountLookupResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:truward.orion.user.AccountLookupResponse) } public interface AccountPresenceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:truward.orion.user.AccountPresenceRequest) com.google.protobuf.MessageOrBuilder { /** * required string nickname = 1; */ boolean hasNickname(); /** * required string nickname = 1; */ java.lang.String getNickname(); /** * required string nickname = 1; */ com.google.protobuf.ByteString getNicknameBytes(); /** * repeated .truward.orion.user.Contact contacts = 2; */ java.util.List getContactsList(); /** * repeated .truward.orion.user.Contact contacts = 2; */ com.truward.orion.user.service.model.UserModel.Contact getContacts(int index); /** * repeated .truward.orion.user.Contact contacts = 2; */ int getContactsCount(); /** * repeated .truward.orion.user.Contact contacts = 2; */ java.util.List getContactsOrBuilderList(); /** * repeated .truward.orion.user.Contact contacts = 2; */ com.truward.orion.user.service.model.UserModel.ContactOrBuilder getContactsOrBuilder( int index); } /** * Protobuf type {@code truward.orion.user.AccountPresenceRequest} */ public static final class AccountPresenceRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:truward.orion.user.AccountPresenceRequest) AccountPresenceRequestOrBuilder { // Use AccountPresenceRequest.newBuilder() to construct. private AccountPresenceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AccountPresenceRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AccountPresenceRequest defaultInstance; public static AccountPresenceRequest getDefaultInstance() { return defaultInstance; } public AccountPresenceRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AccountPresenceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; nickname_ = bs; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { contacts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } contacts_.add(input.readMessage(com.truward.orion.user.service.model.UserModel.Contact.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { contacts_ = java.util.Collections.unmodifiableList(contacts_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountPresenceRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountPresenceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.AccountPresenceRequest.class, com.truward.orion.user.service.model.UserModel.AccountPresenceRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AccountPresenceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AccountPresenceRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int NICKNAME_FIELD_NUMBER = 1; private java.lang.Object nickname_; /** * required string nickname = 1; */ public boolean hasNickname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string nickname = 1; */ public java.lang.String getNickname() { java.lang.Object ref = nickname_; 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()) { nickname_ = s; } return s; } } /** * required string nickname = 1; */ public com.google.protobuf.ByteString getNicknameBytes() { java.lang.Object ref = nickname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nickname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTACTS_FIELD_NUMBER = 2; private java.util.List contacts_; /** * repeated .truward.orion.user.Contact contacts = 2; */ public java.util.List getContactsList() { return contacts_; } /** * repeated .truward.orion.user.Contact contacts = 2; */ public java.util.List getContactsOrBuilderList() { return contacts_; } /** * repeated .truward.orion.user.Contact contacts = 2; */ public int getContactsCount() { return contacts_.size(); } /** * repeated .truward.orion.user.Contact contacts = 2; */ public com.truward.orion.user.service.model.UserModel.Contact getContacts(int index) { return contacts_.get(index); } /** * repeated .truward.orion.user.Contact contacts = 2; */ public com.truward.orion.user.service.model.UserModel.ContactOrBuilder getContactsOrBuilder( int index) { return contacts_.get(index); } private void initFields() { nickname_ = ""; contacts_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasNickname()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getContactsCount(); i++) { if (!getContacts(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNicknameBytes()); } for (int i = 0; i < contacts_.size(); i++) { output.writeMessage(2, contacts_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getNicknameBytes()); } for (int i = 0; i < contacts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, contacts_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.AccountPresenceRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code truward.orion.user.AccountPresenceRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:truward.orion.user.AccountPresenceRequest) com.truward.orion.user.service.model.UserModel.AccountPresenceRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountPresenceRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountPresenceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.AccountPresenceRequest.class, com.truward.orion.user.service.model.UserModel.AccountPresenceRequest.Builder.class); } // Construct using com.truward.orion.user.service.model.UserModel.AccountPresenceRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getContactsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); nickname_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (contactsBuilder_ == null) { contacts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { contactsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountPresenceRequest_descriptor; } public com.truward.orion.user.service.model.UserModel.AccountPresenceRequest getDefaultInstanceForType() { return com.truward.orion.user.service.model.UserModel.AccountPresenceRequest.getDefaultInstance(); } public com.truward.orion.user.service.model.UserModel.AccountPresenceRequest build() { com.truward.orion.user.service.model.UserModel.AccountPresenceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.truward.orion.user.service.model.UserModel.AccountPresenceRequest buildPartial() { com.truward.orion.user.service.model.UserModel.AccountPresenceRequest result = new com.truward.orion.user.service.model.UserModel.AccountPresenceRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.nickname_ = nickname_; if (contactsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { contacts_ = java.util.Collections.unmodifiableList(contacts_); bitField0_ = (bitField0_ & ~0x00000002); } result.contacts_ = contacts_; } else { result.contacts_ = contactsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.truward.orion.user.service.model.UserModel.AccountPresenceRequest) { return mergeFrom((com.truward.orion.user.service.model.UserModel.AccountPresenceRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.AccountPresenceRequest other) { if (other == com.truward.orion.user.service.model.UserModel.AccountPresenceRequest.getDefaultInstance()) return this; if (other.hasNickname()) { bitField0_ |= 0x00000001; nickname_ = other.nickname_; onChanged(); } if (contactsBuilder_ == null) { if (!other.contacts_.isEmpty()) { if (contacts_.isEmpty()) { contacts_ = other.contacts_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureContactsIsMutable(); contacts_.addAll(other.contacts_); } onChanged(); } } else { if (!other.contacts_.isEmpty()) { if (contactsBuilder_.isEmpty()) { contactsBuilder_.dispose(); contactsBuilder_ = null; contacts_ = other.contacts_; bitField0_ = (bitField0_ & ~0x00000002); contactsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getContactsFieldBuilder() : null; } else { contactsBuilder_.addAllMessages(other.contacts_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasNickname()) { return false; } for (int i = 0; i < getContactsCount(); i++) { if (!getContacts(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.truward.orion.user.service.model.UserModel.AccountPresenceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.truward.orion.user.service.model.UserModel.AccountPresenceRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object nickname_ = ""; /** * required string nickname = 1; */ public boolean hasNickname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string nickname = 1; */ public java.lang.String getNickname() { java.lang.Object ref = nickname_; 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()) { nickname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string nickname = 1; */ public com.google.protobuf.ByteString getNicknameBytes() { java.lang.Object ref = nickname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nickname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string nickname = 1; */ public Builder setNickname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; nickname_ = value; onChanged(); return this; } /** * required string nickname = 1; */ public Builder clearNickname() { bitField0_ = (bitField0_ & ~0x00000001); nickname_ = getDefaultInstance().getNickname(); onChanged(); return this; } /** * required string nickname = 1; */ public Builder setNicknameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; nickname_ = value; onChanged(); return this; } private java.util.List contacts_ = java.util.Collections.emptyList(); private void ensureContactsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { contacts_ = new java.util.ArrayList(contacts_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.truward.orion.user.service.model.UserModel.Contact, com.truward.orion.user.service.model.UserModel.Contact.Builder, com.truward.orion.user.service.model.UserModel.ContactOrBuilder> contactsBuilder_; /** * repeated .truward.orion.user.Contact contacts = 2; */ public java.util.List getContactsList() { if (contactsBuilder_ == null) { return java.util.Collections.unmodifiableList(contacts_); } else { return contactsBuilder_.getMessageList(); } } /** * repeated .truward.orion.user.Contact contacts = 2; */ public int getContactsCount() { if (contactsBuilder_ == null) { return contacts_.size(); } else { return contactsBuilder_.getCount(); } } /** * repeated .truward.orion.user.Contact contacts = 2; */ public com.truward.orion.user.service.model.UserModel.Contact getContacts(int index) { if (contactsBuilder_ == null) { return contacts_.get(index); } else { return contactsBuilder_.getMessage(index); } } /** * repeated .truward.orion.user.Contact contacts = 2; */ public Builder setContacts( int index, com.truward.orion.user.service.model.UserModel.Contact value) { if (contactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContactsIsMutable(); contacts_.set(index, value); onChanged(); } else { contactsBuilder_.setMessage(index, value); } return this; } /** * repeated .truward.orion.user.Contact contacts = 2; */ public Builder setContacts( int index, com.truward.orion.user.service.model.UserModel.Contact.Builder builderForValue) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); contacts_.set(index, builderForValue.build()); onChanged(); } else { contactsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .truward.orion.user.Contact contacts = 2; */ public Builder addContacts(com.truward.orion.user.service.model.UserModel.Contact value) { if (contactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContactsIsMutable(); contacts_.add(value); onChanged(); } else { contactsBuilder_.addMessage(value); } return this; } /** * repeated .truward.orion.user.Contact contacts = 2; */ public Builder addContacts( int index, com.truward.orion.user.service.model.UserModel.Contact value) { if (contactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContactsIsMutable(); contacts_.add(index, value); onChanged(); } else { contactsBuilder_.addMessage(index, value); } return this; } /** * repeated .truward.orion.user.Contact contacts = 2; */ public Builder addContacts( com.truward.orion.user.service.model.UserModel.Contact.Builder builderForValue) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); contacts_.add(builderForValue.build()); onChanged(); } else { contactsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .truward.orion.user.Contact contacts = 2; */ public Builder addContacts( int index, com.truward.orion.user.service.model.UserModel.Contact.Builder builderForValue) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); contacts_.add(index, builderForValue.build()); onChanged(); } else { contactsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .truward.orion.user.Contact contacts = 2; */ public Builder addAllContacts( java.lang.Iterable values) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, contacts_); onChanged(); } else { contactsBuilder_.addAllMessages(values); } return this; } /** * repeated .truward.orion.user.Contact contacts = 2; */ public Builder clearContacts() { if (contactsBuilder_ == null) { contacts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { contactsBuilder_.clear(); } return this; } /** * repeated .truward.orion.user.Contact contacts = 2; */ public Builder removeContacts(int index) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); contacts_.remove(index); onChanged(); } else { contactsBuilder_.remove(index); } return this; } /** * repeated .truward.orion.user.Contact contacts = 2; */ public com.truward.orion.user.service.model.UserModel.Contact.Builder getContactsBuilder( int index) { return getContactsFieldBuilder().getBuilder(index); } /** * repeated .truward.orion.user.Contact contacts = 2; */ public com.truward.orion.user.service.model.UserModel.ContactOrBuilder getContactsOrBuilder( int index) { if (contactsBuilder_ == null) { return contacts_.get(index); } else { return contactsBuilder_.getMessageOrBuilder(index); } } /** * repeated .truward.orion.user.Contact contacts = 2; */ public java.util.List getContactsOrBuilderList() { if (contactsBuilder_ != null) { return contactsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(contacts_); } } /** * repeated .truward.orion.user.Contact contacts = 2; */ public com.truward.orion.user.service.model.UserModel.Contact.Builder addContactsBuilder() { return getContactsFieldBuilder().addBuilder( com.truward.orion.user.service.model.UserModel.Contact.getDefaultInstance()); } /** * repeated .truward.orion.user.Contact contacts = 2; */ public com.truward.orion.user.service.model.UserModel.Contact.Builder addContactsBuilder( int index) { return getContactsFieldBuilder().addBuilder( index, com.truward.orion.user.service.model.UserModel.Contact.getDefaultInstance()); } /** * repeated .truward.orion.user.Contact contacts = 2; */ public java.util.List getContactsBuilderList() { return getContactsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.truward.orion.user.service.model.UserModel.Contact, com.truward.orion.user.service.model.UserModel.Contact.Builder, com.truward.orion.user.service.model.UserModel.ContactOrBuilder> getContactsFieldBuilder() { if (contactsBuilder_ == null) { contactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.truward.orion.user.service.model.UserModel.Contact, com.truward.orion.user.service.model.UserModel.Contact.Builder, com.truward.orion.user.service.model.UserModel.ContactOrBuilder>( contacts_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); contacts_ = null; } return contactsBuilder_; } // @@protoc_insertion_point(builder_scope:truward.orion.user.AccountPresenceRequest) } static { defaultInstance = new AccountPresenceRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:truward.orion.user.AccountPresenceRequest) } public interface AccountPresenceResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:truward.orion.user.AccountPresenceResponse) com.google.protobuf.MessageOrBuilder { /** * required bool exists = 1; */ boolean hasExists(); /** * required bool exists = 1; */ boolean getExists(); } /** * Protobuf type {@code truward.orion.user.AccountPresenceResponse} */ public static final class AccountPresenceResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:truward.orion.user.AccountPresenceResponse) AccountPresenceResponseOrBuilder { // Use AccountPresenceResponse.newBuilder() to construct. private AccountPresenceResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AccountPresenceResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AccountPresenceResponse defaultInstance; public static AccountPresenceResponse getDefaultInstance() { return defaultInstance; } public AccountPresenceResponse getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AccountPresenceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; exists_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountPresenceResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountPresenceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.AccountPresenceResponse.class, com.truward.orion.user.service.model.UserModel.AccountPresenceResponse.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AccountPresenceResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AccountPresenceResponse(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int EXISTS_FIELD_NUMBER = 1; private boolean exists_; /** * required bool exists = 1; */ public boolean hasExists() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bool exists = 1; */ public boolean getExists() { return exists_; } private void initFields() { exists_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasExists()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(1, exists_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, exists_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.AccountPresenceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.AccountPresenceResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code truward.orion.user.AccountPresenceResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:truward.orion.user.AccountPresenceResponse) com.truward.orion.user.service.model.UserModel.AccountPresenceResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountPresenceResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountPresenceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.AccountPresenceResponse.class, com.truward.orion.user.service.model.UserModel.AccountPresenceResponse.Builder.class); } // Construct using com.truward.orion.user.service.model.UserModel.AccountPresenceResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); exists_ = false; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_AccountPresenceResponse_descriptor; } public com.truward.orion.user.service.model.UserModel.AccountPresenceResponse getDefaultInstanceForType() { return com.truward.orion.user.service.model.UserModel.AccountPresenceResponse.getDefaultInstance(); } public com.truward.orion.user.service.model.UserModel.AccountPresenceResponse build() { com.truward.orion.user.service.model.UserModel.AccountPresenceResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.truward.orion.user.service.model.UserModel.AccountPresenceResponse buildPartial() { com.truward.orion.user.service.model.UserModel.AccountPresenceResponse result = new com.truward.orion.user.service.model.UserModel.AccountPresenceResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.exists_ = exists_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.truward.orion.user.service.model.UserModel.AccountPresenceResponse) { return mergeFrom((com.truward.orion.user.service.model.UserModel.AccountPresenceResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.AccountPresenceResponse other) { if (other == com.truward.orion.user.service.model.UserModel.AccountPresenceResponse.getDefaultInstance()) return this; if (other.hasExists()) { setExists(other.getExists()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasExists()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.truward.orion.user.service.model.UserModel.AccountPresenceResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.truward.orion.user.service.model.UserModel.AccountPresenceResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean exists_ ; /** * required bool exists = 1; */ public boolean hasExists() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bool exists = 1; */ public boolean getExists() { return exists_; } /** * required bool exists = 1; */ public Builder setExists(boolean value) { bitField0_ |= 0x00000001; exists_ = value; onChanged(); return this; } /** * required bool exists = 1; */ public Builder clearExists() { bitField0_ = (bitField0_ & ~0x00000001); exists_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:truward.orion.user.AccountPresenceResponse) } static { defaultInstance = new AccountPresenceResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:truward.orion.user.AccountPresenceResponse) } public interface RegisterAccountRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:truward.orion.user.RegisterAccountRequest) com.google.protobuf.MessageOrBuilder { /** * required string nickname = 1; */ boolean hasNickname(); /** * required string nickname = 1; */ java.lang.String getNickname(); /** * required string nickname = 1; */ com.google.protobuf.ByteString getNicknameBytes(); /** * required string passwordHash = 2; */ boolean hasPasswordHash(); /** * required string passwordHash = 2; */ java.lang.String getPasswordHash(); /** * required string passwordHash = 2; */ com.google.protobuf.ByteString getPasswordHashBytes(); /** * repeated .truward.orion.user.Contact contacts = 3; */ java.util.List getContactsList(); /** * repeated .truward.orion.user.Contact contacts = 3; */ com.truward.orion.user.service.model.UserModel.Contact getContacts(int index); /** * repeated .truward.orion.user.Contact contacts = 3; */ int getContactsCount(); /** * repeated .truward.orion.user.Contact contacts = 3; */ java.util.List getContactsOrBuilderList(); /** * repeated .truward.orion.user.Contact contacts = 3; */ com.truward.orion.user.service.model.UserModel.ContactOrBuilder getContactsOrBuilder( int index); /** * repeated string authorities = 4; */ com.google.protobuf.ProtocolStringList getAuthoritiesList(); /** * repeated string authorities = 4; */ int getAuthoritiesCount(); /** * repeated string authorities = 4; */ java.lang.String getAuthorities(int index); /** * repeated string authorities = 4; */ com.google.protobuf.ByteString getAuthoritiesBytes(int index); /** * optional string invitationToken = 5; */ boolean hasInvitationToken(); /** * optional string invitationToken = 5; */ java.lang.String getInvitationToken(); /** * optional string invitationToken = 5; */ com.google.protobuf.ByteString getInvitationTokenBytes(); } /** * Protobuf type {@code truward.orion.user.RegisterAccountRequest} */ public static final class RegisterAccountRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:truward.orion.user.RegisterAccountRequest) RegisterAccountRequestOrBuilder { // Use RegisterAccountRequest.newBuilder() to construct. private RegisterAccountRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RegisterAccountRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RegisterAccountRequest defaultInstance; public static RegisterAccountRequest getDefaultInstance() { return defaultInstance; } public RegisterAccountRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegisterAccountRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; nickname_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; passwordHash_ = bs; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { contacts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } contacts_.add(input.readMessage(com.truward.orion.user.service.model.UserModel.Contact.PARSER, extensionRegistry)); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { authorities_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } authorities_.add(bs); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; invitationToken_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { contacts_ = java.util.Collections.unmodifiableList(contacts_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { authorities_ = authorities_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_RegisterAccountRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_RegisterAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.RegisterAccountRequest.class, com.truward.orion.user.service.model.UserModel.RegisterAccountRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RegisterAccountRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegisterAccountRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int NICKNAME_FIELD_NUMBER = 1; private java.lang.Object nickname_; /** * required string nickname = 1; */ public boolean hasNickname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string nickname = 1; */ public java.lang.String getNickname() { java.lang.Object ref = nickname_; 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()) { nickname_ = s; } return s; } } /** * required string nickname = 1; */ public com.google.protobuf.ByteString getNicknameBytes() { java.lang.Object ref = nickname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nickname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSWORDHASH_FIELD_NUMBER = 2; private java.lang.Object passwordHash_; /** * required string passwordHash = 2; */ public boolean hasPasswordHash() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string passwordHash = 2; */ public java.lang.String getPasswordHash() { java.lang.Object ref = passwordHash_; 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()) { passwordHash_ = s; } return s; } } /** * required string passwordHash = 2; */ public com.google.protobuf.ByteString getPasswordHashBytes() { java.lang.Object ref = passwordHash_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passwordHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTACTS_FIELD_NUMBER = 3; private java.util.List contacts_; /** * repeated .truward.orion.user.Contact contacts = 3; */ public java.util.List getContactsList() { return contacts_; } /** * repeated .truward.orion.user.Contact contacts = 3; */ public java.util.List getContactsOrBuilderList() { return contacts_; } /** * repeated .truward.orion.user.Contact contacts = 3; */ public int getContactsCount() { return contacts_.size(); } /** * repeated .truward.orion.user.Contact contacts = 3; */ public com.truward.orion.user.service.model.UserModel.Contact getContacts(int index) { return contacts_.get(index); } /** * repeated .truward.orion.user.Contact contacts = 3; */ public com.truward.orion.user.service.model.UserModel.ContactOrBuilder getContactsOrBuilder( int index) { return contacts_.get(index); } public static final int AUTHORITIES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList authorities_; /** * repeated string authorities = 4; */ public com.google.protobuf.ProtocolStringList getAuthoritiesList() { return authorities_; } /** * repeated string authorities = 4; */ public int getAuthoritiesCount() { return authorities_.size(); } /** * repeated string authorities = 4; */ public java.lang.String getAuthorities(int index) { return authorities_.get(index); } /** * repeated string authorities = 4; */ public com.google.protobuf.ByteString getAuthoritiesBytes(int index) { return authorities_.getByteString(index); } public static final int INVITATIONTOKEN_FIELD_NUMBER = 5; private java.lang.Object invitationToken_; /** * optional string invitationToken = 5; */ public boolean hasInvitationToken() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string invitationToken = 5; */ public java.lang.String getInvitationToken() { java.lang.Object ref = invitationToken_; 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()) { invitationToken_ = s; } return s; } } /** * optional string invitationToken = 5; */ public com.google.protobuf.ByteString getInvitationTokenBytes() { java.lang.Object ref = invitationToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); invitationToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { nickname_ = ""; passwordHash_ = ""; contacts_ = java.util.Collections.emptyList(); authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY; invitationToken_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasNickname()) { memoizedIsInitialized = 0; return false; } if (!hasPasswordHash()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getContactsCount(); i++) { if (!getContacts(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNicknameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getPasswordHashBytes()); } for (int i = 0; i < contacts_.size(); i++) { output.writeMessage(3, contacts_.get(i)); } for (int i = 0; i < authorities_.size(); i++) { output.writeBytes(4, authorities_.getByteString(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(5, getInvitationTokenBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getNicknameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getPasswordHashBytes()); } for (int i = 0; i < contacts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, contacts_.get(i)); } { int dataSize = 0; for (int i = 0; i < authorities_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(authorities_.getByteString(i)); } size += dataSize; size += 1 * getAuthoritiesList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getInvitationTokenBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.RegisterAccountRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code truward.orion.user.RegisterAccountRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:truward.orion.user.RegisterAccountRequest) com.truward.orion.user.service.model.UserModel.RegisterAccountRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_RegisterAccountRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_RegisterAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.RegisterAccountRequest.class, com.truward.orion.user.service.model.UserModel.RegisterAccountRequest.Builder.class); } // Construct using com.truward.orion.user.service.model.UserModel.RegisterAccountRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getContactsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); nickname_ = ""; bitField0_ = (bitField0_ & ~0x00000001); passwordHash_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (contactsBuilder_ == null) { contacts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { contactsBuilder_.clear(); } authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); invitationToken_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_RegisterAccountRequest_descriptor; } public com.truward.orion.user.service.model.UserModel.RegisterAccountRequest getDefaultInstanceForType() { return com.truward.orion.user.service.model.UserModel.RegisterAccountRequest.getDefaultInstance(); } public com.truward.orion.user.service.model.UserModel.RegisterAccountRequest build() { com.truward.orion.user.service.model.UserModel.RegisterAccountRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.truward.orion.user.service.model.UserModel.RegisterAccountRequest buildPartial() { com.truward.orion.user.service.model.UserModel.RegisterAccountRequest result = new com.truward.orion.user.service.model.UserModel.RegisterAccountRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.nickname_ = nickname_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.passwordHash_ = passwordHash_; if (contactsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { contacts_ = java.util.Collections.unmodifiableList(contacts_); bitField0_ = (bitField0_ & ~0x00000004); } result.contacts_ = contacts_; } else { result.contacts_ = contactsBuilder_.build(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { authorities_ = authorities_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.authorities_ = authorities_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000004; } result.invitationToken_ = invitationToken_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.truward.orion.user.service.model.UserModel.RegisterAccountRequest) { return mergeFrom((com.truward.orion.user.service.model.UserModel.RegisterAccountRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.RegisterAccountRequest other) { if (other == com.truward.orion.user.service.model.UserModel.RegisterAccountRequest.getDefaultInstance()) return this; if (other.hasNickname()) { bitField0_ |= 0x00000001; nickname_ = other.nickname_; onChanged(); } if (other.hasPasswordHash()) { bitField0_ |= 0x00000002; passwordHash_ = other.passwordHash_; onChanged(); } if (contactsBuilder_ == null) { if (!other.contacts_.isEmpty()) { if (contacts_.isEmpty()) { contacts_ = other.contacts_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureContactsIsMutable(); contacts_.addAll(other.contacts_); } onChanged(); } } else { if (!other.contacts_.isEmpty()) { if (contactsBuilder_.isEmpty()) { contactsBuilder_.dispose(); contactsBuilder_ = null; contacts_ = other.contacts_; bitField0_ = (bitField0_ & ~0x00000004); contactsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getContactsFieldBuilder() : null; } else { contactsBuilder_.addAllMessages(other.contacts_); } } } if (!other.authorities_.isEmpty()) { if (authorities_.isEmpty()) { authorities_ = other.authorities_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAuthoritiesIsMutable(); authorities_.addAll(other.authorities_); } onChanged(); } if (other.hasInvitationToken()) { bitField0_ |= 0x00000010; invitationToken_ = other.invitationToken_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasNickname()) { return false; } if (!hasPasswordHash()) { return false; } for (int i = 0; i < getContactsCount(); i++) { if (!getContacts(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.truward.orion.user.service.model.UserModel.RegisterAccountRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.truward.orion.user.service.model.UserModel.RegisterAccountRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object nickname_ = ""; /** * required string nickname = 1; */ public boolean hasNickname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string nickname = 1; */ public java.lang.String getNickname() { java.lang.Object ref = nickname_; 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()) { nickname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string nickname = 1; */ public com.google.protobuf.ByteString getNicknameBytes() { java.lang.Object ref = nickname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nickname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string nickname = 1; */ public Builder setNickname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; nickname_ = value; onChanged(); return this; } /** * required string nickname = 1; */ public Builder clearNickname() { bitField0_ = (bitField0_ & ~0x00000001); nickname_ = getDefaultInstance().getNickname(); onChanged(); return this; } /** * required string nickname = 1; */ public Builder setNicknameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; nickname_ = value; onChanged(); return this; } private java.lang.Object passwordHash_ = ""; /** * required string passwordHash = 2; */ public boolean hasPasswordHash() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string passwordHash = 2; */ public java.lang.String getPasswordHash() { java.lang.Object ref = passwordHash_; 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()) { passwordHash_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string passwordHash = 2; */ public com.google.protobuf.ByteString getPasswordHashBytes() { java.lang.Object ref = passwordHash_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passwordHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string passwordHash = 2; */ public Builder setPasswordHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; passwordHash_ = value; onChanged(); return this; } /** * required string passwordHash = 2; */ public Builder clearPasswordHash() { bitField0_ = (bitField0_ & ~0x00000002); passwordHash_ = getDefaultInstance().getPasswordHash(); onChanged(); return this; } /** * required string passwordHash = 2; */ public Builder setPasswordHashBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; passwordHash_ = value; onChanged(); return this; } private java.util.List contacts_ = java.util.Collections.emptyList(); private void ensureContactsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { contacts_ = new java.util.ArrayList(contacts_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.truward.orion.user.service.model.UserModel.Contact, com.truward.orion.user.service.model.UserModel.Contact.Builder, com.truward.orion.user.service.model.UserModel.ContactOrBuilder> contactsBuilder_; /** * repeated .truward.orion.user.Contact contacts = 3; */ public java.util.List getContactsList() { if (contactsBuilder_ == null) { return java.util.Collections.unmodifiableList(contacts_); } else { return contactsBuilder_.getMessageList(); } } /** * repeated .truward.orion.user.Contact contacts = 3; */ public int getContactsCount() { if (contactsBuilder_ == null) { return contacts_.size(); } else { return contactsBuilder_.getCount(); } } /** * repeated .truward.orion.user.Contact contacts = 3; */ public com.truward.orion.user.service.model.UserModel.Contact getContacts(int index) { if (contactsBuilder_ == null) { return contacts_.get(index); } else { return contactsBuilder_.getMessage(index); } } /** * repeated .truward.orion.user.Contact contacts = 3; */ public Builder setContacts( int index, com.truward.orion.user.service.model.UserModel.Contact value) { if (contactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContactsIsMutable(); contacts_.set(index, value); onChanged(); } else { contactsBuilder_.setMessage(index, value); } return this; } /** * repeated .truward.orion.user.Contact contacts = 3; */ public Builder setContacts( int index, com.truward.orion.user.service.model.UserModel.Contact.Builder builderForValue) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); contacts_.set(index, builderForValue.build()); onChanged(); } else { contactsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .truward.orion.user.Contact contacts = 3; */ public Builder addContacts(com.truward.orion.user.service.model.UserModel.Contact value) { if (contactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContactsIsMutable(); contacts_.add(value); onChanged(); } else { contactsBuilder_.addMessage(value); } return this; } /** * repeated .truward.orion.user.Contact contacts = 3; */ public Builder addContacts( int index, com.truward.orion.user.service.model.UserModel.Contact value) { if (contactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContactsIsMutable(); contacts_.add(index, value); onChanged(); } else { contactsBuilder_.addMessage(index, value); } return this; } /** * repeated .truward.orion.user.Contact contacts = 3; */ public Builder addContacts( com.truward.orion.user.service.model.UserModel.Contact.Builder builderForValue) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); contacts_.add(builderForValue.build()); onChanged(); } else { contactsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .truward.orion.user.Contact contacts = 3; */ public Builder addContacts( int index, com.truward.orion.user.service.model.UserModel.Contact.Builder builderForValue) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); contacts_.add(index, builderForValue.build()); onChanged(); } else { contactsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .truward.orion.user.Contact contacts = 3; */ public Builder addAllContacts( java.lang.Iterable values) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, contacts_); onChanged(); } else { contactsBuilder_.addAllMessages(values); } return this; } /** * repeated .truward.orion.user.Contact contacts = 3; */ public Builder clearContacts() { if (contactsBuilder_ == null) { contacts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { contactsBuilder_.clear(); } return this; } /** * repeated .truward.orion.user.Contact contacts = 3; */ public Builder removeContacts(int index) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); contacts_.remove(index); onChanged(); } else { contactsBuilder_.remove(index); } return this; } /** * repeated .truward.orion.user.Contact contacts = 3; */ public com.truward.orion.user.service.model.UserModel.Contact.Builder getContactsBuilder( int index) { return getContactsFieldBuilder().getBuilder(index); } /** * repeated .truward.orion.user.Contact contacts = 3; */ public com.truward.orion.user.service.model.UserModel.ContactOrBuilder getContactsOrBuilder( int index) { if (contactsBuilder_ == null) { return contacts_.get(index); } else { return contactsBuilder_.getMessageOrBuilder(index); } } /** * repeated .truward.orion.user.Contact contacts = 3; */ public java.util.List getContactsOrBuilderList() { if (contactsBuilder_ != null) { return contactsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(contacts_); } } /** * repeated .truward.orion.user.Contact contacts = 3; */ public com.truward.orion.user.service.model.UserModel.Contact.Builder addContactsBuilder() { return getContactsFieldBuilder().addBuilder( com.truward.orion.user.service.model.UserModel.Contact.getDefaultInstance()); } /** * repeated .truward.orion.user.Contact contacts = 3; */ public com.truward.orion.user.service.model.UserModel.Contact.Builder addContactsBuilder( int index) { return getContactsFieldBuilder().addBuilder( index, com.truward.orion.user.service.model.UserModel.Contact.getDefaultInstance()); } /** * repeated .truward.orion.user.Contact contacts = 3; */ public java.util.List getContactsBuilderList() { return getContactsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.truward.orion.user.service.model.UserModel.Contact, com.truward.orion.user.service.model.UserModel.Contact.Builder, com.truward.orion.user.service.model.UserModel.ContactOrBuilder> getContactsFieldBuilder() { if (contactsBuilder_ == null) { contactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.truward.orion.user.service.model.UserModel.Contact, com.truward.orion.user.service.model.UserModel.Contact.Builder, com.truward.orion.user.service.model.UserModel.ContactOrBuilder>( contacts_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); contacts_ = null; } return contactsBuilder_; } private com.google.protobuf.LazyStringList authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAuthoritiesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { authorities_ = new com.google.protobuf.LazyStringArrayList(authorities_); bitField0_ |= 0x00000008; } } /** * repeated string authorities = 4; */ public com.google.protobuf.ProtocolStringList getAuthoritiesList() { return authorities_.getUnmodifiableView(); } /** * repeated string authorities = 4; */ public int getAuthoritiesCount() { return authorities_.size(); } /** * repeated string authorities = 4; */ public java.lang.String getAuthorities(int index) { return authorities_.get(index); } /** * repeated string authorities = 4; */ public com.google.protobuf.ByteString getAuthoritiesBytes(int index) { return authorities_.getByteString(index); } /** * repeated string authorities = 4; */ public Builder setAuthorities( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAuthoritiesIsMutable(); authorities_.set(index, value); onChanged(); return this; } /** * repeated string authorities = 4; */ public Builder addAuthorities( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAuthoritiesIsMutable(); authorities_.add(value); onChanged(); return this; } /** * repeated string authorities = 4; */ public Builder addAllAuthorities( java.lang.Iterable values) { ensureAuthoritiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, authorities_); onChanged(); return this; } /** * repeated string authorities = 4; */ public Builder clearAuthorities() { authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * repeated string authorities = 4; */ public Builder addAuthoritiesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAuthoritiesIsMutable(); authorities_.add(value); onChanged(); return this; } private java.lang.Object invitationToken_ = ""; /** * optional string invitationToken = 5; */ public boolean hasInvitationToken() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string invitationToken = 5; */ public java.lang.String getInvitationToken() { java.lang.Object ref = invitationToken_; 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()) { invitationToken_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string invitationToken = 5; */ public com.google.protobuf.ByteString getInvitationTokenBytes() { java.lang.Object ref = invitationToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); invitationToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string invitationToken = 5; */ public Builder setInvitationToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; invitationToken_ = value; onChanged(); return this; } /** * optional string invitationToken = 5; */ public Builder clearInvitationToken() { bitField0_ = (bitField0_ & ~0x00000010); invitationToken_ = getDefaultInstance().getInvitationToken(); onChanged(); return this; } /** * optional string invitationToken = 5; */ public Builder setInvitationTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; invitationToken_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:truward.orion.user.RegisterAccountRequest) } static { defaultInstance = new RegisterAccountRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:truward.orion.user.RegisterAccountRequest) } public interface RegisterAccountResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:truward.orion.user.RegisterAccountResponse) com.google.protobuf.MessageOrBuilder { /** * required int64 userId = 1; */ boolean hasUserId(); /** * required int64 userId = 1; */ long getUserId(); } /** * Protobuf type {@code truward.orion.user.RegisterAccountResponse} */ public static final class RegisterAccountResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:truward.orion.user.RegisterAccountResponse) RegisterAccountResponseOrBuilder { // Use RegisterAccountResponse.newBuilder() to construct. private RegisterAccountResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RegisterAccountResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RegisterAccountResponse defaultInstance; public static RegisterAccountResponse getDefaultInstance() { return defaultInstance; } public RegisterAccountResponse getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegisterAccountResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; userId_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_RegisterAccountResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_RegisterAccountResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.RegisterAccountResponse.class, com.truward.orion.user.service.model.UserModel.RegisterAccountResponse.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RegisterAccountResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegisterAccountResponse(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int USERID_FIELD_NUMBER = 1; private long userId_; /** * required int64 userId = 1; */ public boolean hasUserId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 userId = 1; */ public long getUserId() { return userId_; } private void initFields() { userId_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasUserId()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, userId_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, userId_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.RegisterAccountResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.RegisterAccountResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code truward.orion.user.RegisterAccountResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:truward.orion.user.RegisterAccountResponse) com.truward.orion.user.service.model.UserModel.RegisterAccountResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_RegisterAccountResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_RegisterAccountResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.RegisterAccountResponse.class, com.truward.orion.user.service.model.UserModel.RegisterAccountResponse.Builder.class); } // Construct using com.truward.orion.user.service.model.UserModel.RegisterAccountResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); userId_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_RegisterAccountResponse_descriptor; } public com.truward.orion.user.service.model.UserModel.RegisterAccountResponse getDefaultInstanceForType() { return com.truward.orion.user.service.model.UserModel.RegisterAccountResponse.getDefaultInstance(); } public com.truward.orion.user.service.model.UserModel.RegisterAccountResponse build() { com.truward.orion.user.service.model.UserModel.RegisterAccountResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.truward.orion.user.service.model.UserModel.RegisterAccountResponse buildPartial() { com.truward.orion.user.service.model.UserModel.RegisterAccountResponse result = new com.truward.orion.user.service.model.UserModel.RegisterAccountResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.userId_ = userId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.truward.orion.user.service.model.UserModel.RegisterAccountResponse) { return mergeFrom((com.truward.orion.user.service.model.UserModel.RegisterAccountResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.RegisterAccountResponse other) { if (other == com.truward.orion.user.service.model.UserModel.RegisterAccountResponse.getDefaultInstance()) return this; if (other.hasUserId()) { setUserId(other.getUserId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasUserId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.truward.orion.user.service.model.UserModel.RegisterAccountResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.truward.orion.user.service.model.UserModel.RegisterAccountResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long userId_ ; /** * required int64 userId = 1; */ public boolean hasUserId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 userId = 1; */ public long getUserId() { return userId_; } /** * required int64 userId = 1; */ public Builder setUserId(long value) { bitField0_ |= 0x00000001; userId_ = value; onChanged(); return this; } /** * required int64 userId = 1; */ public Builder clearUserId() { bitField0_ = (bitField0_ & ~0x00000001); userId_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:truward.orion.user.RegisterAccountResponse) } static { defaultInstance = new RegisterAccountResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:truward.orion.user.RegisterAccountResponse) } public interface UpdateAccountRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:truward.orion.user.UpdateAccountRequest) com.google.protobuf.MessageOrBuilder { /** * required int64 userId = 1; */ boolean hasUserId(); /** * required int64 userId = 1; */ long getUserId(); /** * required string nickname = 2; */ boolean hasNickname(); /** * required string nickname = 2; */ java.lang.String getNickname(); /** * required string nickname = 2; */ com.google.protobuf.ByteString getNicknameBytes(); /** * required string passwordHash = 3; * *
     * admin only
     * 
*/ boolean hasPasswordHash(); /** * required string passwordHash = 3; * *
     * admin only
     * 
*/ java.lang.String getPasswordHash(); /** * required string passwordHash = 3; * *
     * admin only
     * 
*/ com.google.protobuf.ByteString getPasswordHashBytes(); /** * repeated .truward.orion.user.Contact contacts = 4; */ java.util.List getContactsList(); /** * repeated .truward.orion.user.Contact contacts = 4; */ com.truward.orion.user.service.model.UserModel.Contact getContacts(int index); /** * repeated .truward.orion.user.Contact contacts = 4; */ int getContactsCount(); /** * repeated .truward.orion.user.Contact contacts = 4; */ java.util.List getContactsOrBuilderList(); /** * repeated .truward.orion.user.Contact contacts = 4; */ com.truward.orion.user.service.model.UserModel.ContactOrBuilder getContactsOrBuilder( int index); /** * repeated string authorities = 5; * *
     * admin/service only
     * 
*/ com.google.protobuf.ProtocolStringList getAuthoritiesList(); /** * repeated string authorities = 5; * *
     * admin/service only
     * 
*/ int getAuthoritiesCount(); /** * repeated string authorities = 5; * *
     * admin/service only
     * 
*/ java.lang.String getAuthorities(int index); /** * repeated string authorities = 5; * *
     * admin/service only
     * 
*/ com.google.protobuf.ByteString getAuthoritiesBytes(int index); /** * required bool active = 6; * *
     * admin only
     * 
*/ boolean hasActive(); /** * required bool active = 6; * *
     * admin only
     * 
*/ boolean getActive(); } /** * Protobuf type {@code truward.orion.user.UpdateAccountRequest} */ public static final class UpdateAccountRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:truward.orion.user.UpdateAccountRequest) UpdateAccountRequestOrBuilder { // Use UpdateAccountRequest.newBuilder() to construct. private UpdateAccountRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private UpdateAccountRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final UpdateAccountRequest defaultInstance; public static UpdateAccountRequest getDefaultInstance() { return defaultInstance; } public UpdateAccountRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateAccountRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; userId_ = input.readInt64(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; nickname_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; passwordHash_ = bs; break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { contacts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } contacts_.add(input.readMessage(com.truward.orion.user.service.model.UserModel.Contact.PARSER, extensionRegistry)); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { authorities_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } authorities_.add(bs); break; } case 48: { bitField0_ |= 0x00000008; active_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { contacts_ = java.util.Collections.unmodifiableList(contacts_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { authorities_ = authorities_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_UpdateAccountRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_UpdateAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.UpdateAccountRequest.class, com.truward.orion.user.service.model.UserModel.UpdateAccountRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UpdateAccountRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateAccountRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int USERID_FIELD_NUMBER = 1; private long userId_; /** * required int64 userId = 1; */ public boolean hasUserId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 userId = 1; */ public long getUserId() { return userId_; } public static final int NICKNAME_FIELD_NUMBER = 2; private java.lang.Object nickname_; /** * required string nickname = 2; */ public boolean hasNickname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string nickname = 2; */ public java.lang.String getNickname() { java.lang.Object ref = nickname_; 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()) { nickname_ = s; } return s; } } /** * required string nickname = 2; */ public com.google.protobuf.ByteString getNicknameBytes() { java.lang.Object ref = nickname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nickname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSWORDHASH_FIELD_NUMBER = 3; private java.lang.Object passwordHash_; /** * required string passwordHash = 3; * *
     * admin only
     * 
*/ public boolean hasPasswordHash() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string passwordHash = 3; * *
     * admin only
     * 
*/ public java.lang.String getPasswordHash() { java.lang.Object ref = passwordHash_; 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()) { passwordHash_ = s; } return s; } } /** * required string passwordHash = 3; * *
     * admin only
     * 
*/ public com.google.protobuf.ByteString getPasswordHashBytes() { java.lang.Object ref = passwordHash_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passwordHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTACTS_FIELD_NUMBER = 4; private java.util.List contacts_; /** * repeated .truward.orion.user.Contact contacts = 4; */ public java.util.List getContactsList() { return contacts_; } /** * repeated .truward.orion.user.Contact contacts = 4; */ public java.util.List getContactsOrBuilderList() { return contacts_; } /** * repeated .truward.orion.user.Contact contacts = 4; */ public int getContactsCount() { return contacts_.size(); } /** * repeated .truward.orion.user.Contact contacts = 4; */ public com.truward.orion.user.service.model.UserModel.Contact getContacts(int index) { return contacts_.get(index); } /** * repeated .truward.orion.user.Contact contacts = 4; */ public com.truward.orion.user.service.model.UserModel.ContactOrBuilder getContactsOrBuilder( int index) { return contacts_.get(index); } public static final int AUTHORITIES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList authorities_; /** * repeated string authorities = 5; * *
     * admin/service only
     * 
*/ public com.google.protobuf.ProtocolStringList getAuthoritiesList() { return authorities_; } /** * repeated string authorities = 5; * *
     * admin/service only
     * 
*/ public int getAuthoritiesCount() { return authorities_.size(); } /** * repeated string authorities = 5; * *
     * admin/service only
     * 
*/ public java.lang.String getAuthorities(int index) { return authorities_.get(index); } /** * repeated string authorities = 5; * *
     * admin/service only
     * 
*/ public com.google.protobuf.ByteString getAuthoritiesBytes(int index) { return authorities_.getByteString(index); } public static final int ACTIVE_FIELD_NUMBER = 6; private boolean active_; /** * required bool active = 6; * *
     * admin only
     * 
*/ public boolean hasActive() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required bool active = 6; * *
     * admin only
     * 
*/ public boolean getActive() { return active_; } private void initFields() { userId_ = 0L; nickname_ = ""; passwordHash_ = ""; contacts_ = java.util.Collections.emptyList(); authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY; active_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasUserId()) { memoizedIsInitialized = 0; return false; } if (!hasNickname()) { memoizedIsInitialized = 0; return false; } if (!hasPasswordHash()) { memoizedIsInitialized = 0; return false; } if (!hasActive()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getContactsCount(); i++) { if (!getContacts(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, userId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNicknameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getPasswordHashBytes()); } for (int i = 0; i < contacts_.size(); i++) { output.writeMessage(4, contacts_.get(i)); } for (int i = 0; i < authorities_.size(); i++) { output.writeBytes(5, authorities_.getByteString(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(6, active_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, userId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getNicknameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getPasswordHashBytes()); } for (int i = 0; i < contacts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, contacts_.get(i)); } { int dataSize = 0; for (int i = 0; i < authorities_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(authorities_.getByteString(i)); } size += dataSize; size += 1 * getAuthoritiesList().size(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, active_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.UpdateAccountRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code truward.orion.user.UpdateAccountRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:truward.orion.user.UpdateAccountRequest) com.truward.orion.user.service.model.UserModel.UpdateAccountRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_UpdateAccountRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_UpdateAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.UpdateAccountRequest.class, com.truward.orion.user.service.model.UserModel.UpdateAccountRequest.Builder.class); } // Construct using com.truward.orion.user.service.model.UserModel.UpdateAccountRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getContactsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); userId_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); nickname_ = ""; bitField0_ = (bitField0_ & ~0x00000002); passwordHash_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (contactsBuilder_ == null) { contacts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { contactsBuilder_.clear(); } authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); active_ = false; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_UpdateAccountRequest_descriptor; } public com.truward.orion.user.service.model.UserModel.UpdateAccountRequest getDefaultInstanceForType() { return com.truward.orion.user.service.model.UserModel.UpdateAccountRequest.getDefaultInstance(); } public com.truward.orion.user.service.model.UserModel.UpdateAccountRequest build() { com.truward.orion.user.service.model.UserModel.UpdateAccountRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.truward.orion.user.service.model.UserModel.UpdateAccountRequest buildPartial() { com.truward.orion.user.service.model.UserModel.UpdateAccountRequest result = new com.truward.orion.user.service.model.UserModel.UpdateAccountRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.userId_ = userId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.nickname_ = nickname_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.passwordHash_ = passwordHash_; if (contactsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { contacts_ = java.util.Collections.unmodifiableList(contacts_); bitField0_ = (bitField0_ & ~0x00000008); } result.contacts_ = contacts_; } else { result.contacts_ = contactsBuilder_.build(); } if (((bitField0_ & 0x00000010) == 0x00000010)) { authorities_ = authorities_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.authorities_ = authorities_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000008; } result.active_ = active_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.truward.orion.user.service.model.UserModel.UpdateAccountRequest) { return mergeFrom((com.truward.orion.user.service.model.UserModel.UpdateAccountRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.UpdateAccountRequest other) { if (other == com.truward.orion.user.service.model.UserModel.UpdateAccountRequest.getDefaultInstance()) return this; if (other.hasUserId()) { setUserId(other.getUserId()); } if (other.hasNickname()) { bitField0_ |= 0x00000002; nickname_ = other.nickname_; onChanged(); } if (other.hasPasswordHash()) { bitField0_ |= 0x00000004; passwordHash_ = other.passwordHash_; onChanged(); } if (contactsBuilder_ == null) { if (!other.contacts_.isEmpty()) { if (contacts_.isEmpty()) { contacts_ = other.contacts_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureContactsIsMutable(); contacts_.addAll(other.contacts_); } onChanged(); } } else { if (!other.contacts_.isEmpty()) { if (contactsBuilder_.isEmpty()) { contactsBuilder_.dispose(); contactsBuilder_ = null; contacts_ = other.contacts_; bitField0_ = (bitField0_ & ~0x00000008); contactsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getContactsFieldBuilder() : null; } else { contactsBuilder_.addAllMessages(other.contacts_); } } } if (!other.authorities_.isEmpty()) { if (authorities_.isEmpty()) { authorities_ = other.authorities_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureAuthoritiesIsMutable(); authorities_.addAll(other.authorities_); } onChanged(); } if (other.hasActive()) { setActive(other.getActive()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasUserId()) { return false; } if (!hasNickname()) { return false; } if (!hasPasswordHash()) { return false; } if (!hasActive()) { return false; } for (int i = 0; i < getContactsCount(); i++) { if (!getContacts(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.truward.orion.user.service.model.UserModel.UpdateAccountRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.truward.orion.user.service.model.UserModel.UpdateAccountRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long userId_ ; /** * required int64 userId = 1; */ public boolean hasUserId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 userId = 1; */ public long getUserId() { return userId_; } /** * required int64 userId = 1; */ public Builder setUserId(long value) { bitField0_ |= 0x00000001; userId_ = value; onChanged(); return this; } /** * required int64 userId = 1; */ public Builder clearUserId() { bitField0_ = (bitField0_ & ~0x00000001); userId_ = 0L; onChanged(); return this; } private java.lang.Object nickname_ = ""; /** * required string nickname = 2; */ public boolean hasNickname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string nickname = 2; */ public java.lang.String getNickname() { java.lang.Object ref = nickname_; 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()) { nickname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string nickname = 2; */ public com.google.protobuf.ByteString getNicknameBytes() { java.lang.Object ref = nickname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nickname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string nickname = 2; */ public Builder setNickname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; nickname_ = value; onChanged(); return this; } /** * required string nickname = 2; */ public Builder clearNickname() { bitField0_ = (bitField0_ & ~0x00000002); nickname_ = getDefaultInstance().getNickname(); onChanged(); return this; } /** * required string nickname = 2; */ public Builder setNicknameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; nickname_ = value; onChanged(); return this; } private java.lang.Object passwordHash_ = ""; /** * required string passwordHash = 3; * *
       * admin only
       * 
*/ public boolean hasPasswordHash() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string passwordHash = 3; * *
       * admin only
       * 
*/ public java.lang.String getPasswordHash() { java.lang.Object ref = passwordHash_; 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()) { passwordHash_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string passwordHash = 3; * *
       * admin only
       * 
*/ public com.google.protobuf.ByteString getPasswordHashBytes() { java.lang.Object ref = passwordHash_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passwordHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string passwordHash = 3; * *
       * admin only
       * 
*/ public Builder setPasswordHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; passwordHash_ = value; onChanged(); return this; } /** * required string passwordHash = 3; * *
       * admin only
       * 
*/ public Builder clearPasswordHash() { bitField0_ = (bitField0_ & ~0x00000004); passwordHash_ = getDefaultInstance().getPasswordHash(); onChanged(); return this; } /** * required string passwordHash = 3; * *
       * admin only
       * 
*/ public Builder setPasswordHashBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; passwordHash_ = value; onChanged(); return this; } private java.util.List contacts_ = java.util.Collections.emptyList(); private void ensureContactsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { contacts_ = new java.util.ArrayList(contacts_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< com.truward.orion.user.service.model.UserModel.Contact, com.truward.orion.user.service.model.UserModel.Contact.Builder, com.truward.orion.user.service.model.UserModel.ContactOrBuilder> contactsBuilder_; /** * repeated .truward.orion.user.Contact contacts = 4; */ public java.util.List getContactsList() { if (contactsBuilder_ == null) { return java.util.Collections.unmodifiableList(contacts_); } else { return contactsBuilder_.getMessageList(); } } /** * repeated .truward.orion.user.Contact contacts = 4; */ public int getContactsCount() { if (contactsBuilder_ == null) { return contacts_.size(); } else { return contactsBuilder_.getCount(); } } /** * repeated .truward.orion.user.Contact contacts = 4; */ public com.truward.orion.user.service.model.UserModel.Contact getContacts(int index) { if (contactsBuilder_ == null) { return contacts_.get(index); } else { return contactsBuilder_.getMessage(index); } } /** * repeated .truward.orion.user.Contact contacts = 4; */ public Builder setContacts( int index, com.truward.orion.user.service.model.UserModel.Contact value) { if (contactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContactsIsMutable(); contacts_.set(index, value); onChanged(); } else { contactsBuilder_.setMessage(index, value); } return this; } /** * repeated .truward.orion.user.Contact contacts = 4; */ public Builder setContacts( int index, com.truward.orion.user.service.model.UserModel.Contact.Builder builderForValue) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); contacts_.set(index, builderForValue.build()); onChanged(); } else { contactsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .truward.orion.user.Contact contacts = 4; */ public Builder addContacts(com.truward.orion.user.service.model.UserModel.Contact value) { if (contactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContactsIsMutable(); contacts_.add(value); onChanged(); } else { contactsBuilder_.addMessage(value); } return this; } /** * repeated .truward.orion.user.Contact contacts = 4; */ public Builder addContacts( int index, com.truward.orion.user.service.model.UserModel.Contact value) { if (contactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContactsIsMutable(); contacts_.add(index, value); onChanged(); } else { contactsBuilder_.addMessage(index, value); } return this; } /** * repeated .truward.orion.user.Contact contacts = 4; */ public Builder addContacts( com.truward.orion.user.service.model.UserModel.Contact.Builder builderForValue) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); contacts_.add(builderForValue.build()); onChanged(); } else { contactsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .truward.orion.user.Contact contacts = 4; */ public Builder addContacts( int index, com.truward.orion.user.service.model.UserModel.Contact.Builder builderForValue) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); contacts_.add(index, builderForValue.build()); onChanged(); } else { contactsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .truward.orion.user.Contact contacts = 4; */ public Builder addAllContacts( java.lang.Iterable values) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, contacts_); onChanged(); } else { contactsBuilder_.addAllMessages(values); } return this; } /** * repeated .truward.orion.user.Contact contacts = 4; */ public Builder clearContacts() { if (contactsBuilder_ == null) { contacts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { contactsBuilder_.clear(); } return this; } /** * repeated .truward.orion.user.Contact contacts = 4; */ public Builder removeContacts(int index) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); contacts_.remove(index); onChanged(); } else { contactsBuilder_.remove(index); } return this; } /** * repeated .truward.orion.user.Contact contacts = 4; */ public com.truward.orion.user.service.model.UserModel.Contact.Builder getContactsBuilder( int index) { return getContactsFieldBuilder().getBuilder(index); } /** * repeated .truward.orion.user.Contact contacts = 4; */ public com.truward.orion.user.service.model.UserModel.ContactOrBuilder getContactsOrBuilder( int index) { if (contactsBuilder_ == null) { return contacts_.get(index); } else { return contactsBuilder_.getMessageOrBuilder(index); } } /** * repeated .truward.orion.user.Contact contacts = 4; */ public java.util.List getContactsOrBuilderList() { if (contactsBuilder_ != null) { return contactsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(contacts_); } } /** * repeated .truward.orion.user.Contact contacts = 4; */ public com.truward.orion.user.service.model.UserModel.Contact.Builder addContactsBuilder() { return getContactsFieldBuilder().addBuilder( com.truward.orion.user.service.model.UserModel.Contact.getDefaultInstance()); } /** * repeated .truward.orion.user.Contact contacts = 4; */ public com.truward.orion.user.service.model.UserModel.Contact.Builder addContactsBuilder( int index) { return getContactsFieldBuilder().addBuilder( index, com.truward.orion.user.service.model.UserModel.Contact.getDefaultInstance()); } /** * repeated .truward.orion.user.Contact contacts = 4; */ public java.util.List getContactsBuilderList() { return getContactsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.truward.orion.user.service.model.UserModel.Contact, com.truward.orion.user.service.model.UserModel.Contact.Builder, com.truward.orion.user.service.model.UserModel.ContactOrBuilder> getContactsFieldBuilder() { if (contactsBuilder_ == null) { contactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.truward.orion.user.service.model.UserModel.Contact, com.truward.orion.user.service.model.UserModel.Contact.Builder, com.truward.orion.user.service.model.UserModel.ContactOrBuilder>( contacts_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); contacts_ = null; } return contactsBuilder_; } private com.google.protobuf.LazyStringList authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAuthoritiesIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { authorities_ = new com.google.protobuf.LazyStringArrayList(authorities_); bitField0_ |= 0x00000010; } } /** * repeated string authorities = 5; * *
       * admin/service only
       * 
*/ public com.google.protobuf.ProtocolStringList getAuthoritiesList() { return authorities_.getUnmodifiableView(); } /** * repeated string authorities = 5; * *
       * admin/service only
       * 
*/ public int getAuthoritiesCount() { return authorities_.size(); } /** * repeated string authorities = 5; * *
       * admin/service only
       * 
*/ public java.lang.String getAuthorities(int index) { return authorities_.get(index); } /** * repeated string authorities = 5; * *
       * admin/service only
       * 
*/ public com.google.protobuf.ByteString getAuthoritiesBytes(int index) { return authorities_.getByteString(index); } /** * repeated string authorities = 5; * *
       * admin/service only
       * 
*/ public Builder setAuthorities( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAuthoritiesIsMutable(); authorities_.set(index, value); onChanged(); return this; } /** * repeated string authorities = 5; * *
       * admin/service only
       * 
*/ public Builder addAuthorities( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAuthoritiesIsMutable(); authorities_.add(value); onChanged(); return this; } /** * repeated string authorities = 5; * *
       * admin/service only
       * 
*/ public Builder addAllAuthorities( java.lang.Iterable values) { ensureAuthoritiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, authorities_); onChanged(); return this; } /** * repeated string authorities = 5; * *
       * admin/service only
       * 
*/ public Builder clearAuthorities() { authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * repeated string authorities = 5; * *
       * admin/service only
       * 
*/ public Builder addAuthoritiesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAuthoritiesIsMutable(); authorities_.add(value); onChanged(); return this; } private boolean active_ ; /** * required bool active = 6; * *
       * admin only
       * 
*/ public boolean hasActive() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * required bool active = 6; * *
       * admin only
       * 
*/ public boolean getActive() { return active_; } /** * required bool active = 6; * *
       * admin only
       * 
*/ public Builder setActive(boolean value) { bitField0_ |= 0x00000020; active_ = value; onChanged(); return this; } /** * required bool active = 6; * *
       * admin only
       * 
*/ public Builder clearActive() { bitField0_ = (bitField0_ & ~0x00000020); active_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:truward.orion.user.UpdateAccountRequest) } static { defaultInstance = new UpdateAccountRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:truward.orion.user.UpdateAccountRequest) } public interface UpdateAccountResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:truward.orion.user.UpdateAccountResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code truward.orion.user.UpdateAccountResponse} */ public static final class UpdateAccountResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:truward.orion.user.UpdateAccountResponse) UpdateAccountResponseOrBuilder { // Use UpdateAccountResponse.newBuilder() to construct. private UpdateAccountResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private UpdateAccountResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final UpdateAccountResponse defaultInstance; public static UpdateAccountResponse getDefaultInstance() { return defaultInstance; } public UpdateAccountResponse getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateAccountResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_UpdateAccountResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_UpdateAccountResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.UpdateAccountResponse.class, com.truward.orion.user.service.model.UserModel.UpdateAccountResponse.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UpdateAccountResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateAccountResponse(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.UpdateAccountResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.UpdateAccountResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code truward.orion.user.UpdateAccountResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:truward.orion.user.UpdateAccountResponse) com.truward.orion.user.service.model.UserModel.UpdateAccountResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_UpdateAccountResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_UpdateAccountResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.UpdateAccountResponse.class, com.truward.orion.user.service.model.UserModel.UpdateAccountResponse.Builder.class); } // Construct using com.truward.orion.user.service.model.UserModel.UpdateAccountResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_UpdateAccountResponse_descriptor; } public com.truward.orion.user.service.model.UserModel.UpdateAccountResponse getDefaultInstanceForType() { return com.truward.orion.user.service.model.UserModel.UpdateAccountResponse.getDefaultInstance(); } public com.truward.orion.user.service.model.UserModel.UpdateAccountResponse build() { com.truward.orion.user.service.model.UserModel.UpdateAccountResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.truward.orion.user.service.model.UserModel.UpdateAccountResponse buildPartial() { com.truward.orion.user.service.model.UserModel.UpdateAccountResponse result = new com.truward.orion.user.service.model.UserModel.UpdateAccountResponse(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.truward.orion.user.service.model.UserModel.UpdateAccountResponse) { return mergeFrom((com.truward.orion.user.service.model.UserModel.UpdateAccountResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.UpdateAccountResponse other) { if (other == com.truward.orion.user.service.model.UserModel.UpdateAccountResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.truward.orion.user.service.model.UserModel.UpdateAccountResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.truward.orion.user.service.model.UserModel.UpdateAccountResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:truward.orion.user.UpdateAccountResponse) } static { defaultInstance = new UpdateAccountResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:truward.orion.user.UpdateAccountResponse) } public interface ResetPasswordRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:truward.orion.user.ResetPasswordRequest) com.google.protobuf.MessageOrBuilder { /** * required int64 userId = 1; */ boolean hasUserId(); /** * required int64 userId = 1; */ long getUserId(); /** * required string newPasswordHash = 4; */ boolean hasNewPasswordHash(); /** * required string newPasswordHash = 4; */ java.lang.String getNewPasswordHash(); /** * required string newPasswordHash = 4; */ com.google.protobuf.ByteString getNewPasswordHashBytes(); } /** * Protobuf type {@code truward.orion.user.ResetPasswordRequest} */ public static final class ResetPasswordRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:truward.orion.user.ResetPasswordRequest) ResetPasswordRequestOrBuilder { // Use ResetPasswordRequest.newBuilder() to construct. private ResetPasswordRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ResetPasswordRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ResetPasswordRequest defaultInstance; public static ResetPasswordRequest getDefaultInstance() { return defaultInstance; } public ResetPasswordRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResetPasswordRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; userId_ = input.readInt64(); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; newPasswordHash_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_ResetPasswordRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_ResetPasswordRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.ResetPasswordRequest.class, com.truward.orion.user.service.model.UserModel.ResetPasswordRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResetPasswordRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResetPasswordRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int USERID_FIELD_NUMBER = 1; private long userId_; /** * required int64 userId = 1; */ public boolean hasUserId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 userId = 1; */ public long getUserId() { return userId_; } public static final int NEWPASSWORDHASH_FIELD_NUMBER = 4; private java.lang.Object newPasswordHash_; /** * required string newPasswordHash = 4; */ public boolean hasNewPasswordHash() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string newPasswordHash = 4; */ public java.lang.String getNewPasswordHash() { java.lang.Object ref = newPasswordHash_; 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()) { newPasswordHash_ = s; } return s; } } /** * required string newPasswordHash = 4; */ public com.google.protobuf.ByteString getNewPasswordHashBytes() { java.lang.Object ref = newPasswordHash_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newPasswordHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { userId_ = 0L; newPasswordHash_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasUserId()) { memoizedIsInitialized = 0; return false; } if (!hasNewPasswordHash()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, userId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(4, getNewPasswordHashBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, userId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getNewPasswordHashBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.truward.orion.user.service.model.UserModel.ResetPasswordRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.ResetPasswordRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.ResetPasswordRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.ResetPasswordRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.ResetPasswordRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.ResetPasswordRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.ResetPasswordRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.truward.orion.user.service.model.UserModel.ResetPasswordRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.ResetPasswordRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.ResetPasswordRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.ResetPasswordRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code truward.orion.user.ResetPasswordRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:truward.orion.user.ResetPasswordRequest) com.truward.orion.user.service.model.UserModel.ResetPasswordRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_ResetPasswordRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_ResetPasswordRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.ResetPasswordRequest.class, com.truward.orion.user.service.model.UserModel.ResetPasswordRequest.Builder.class); } // Construct using com.truward.orion.user.service.model.UserModel.ResetPasswordRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); userId_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); newPasswordHash_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_ResetPasswordRequest_descriptor; } public com.truward.orion.user.service.model.UserModel.ResetPasswordRequest getDefaultInstanceForType() { return com.truward.orion.user.service.model.UserModel.ResetPasswordRequest.getDefaultInstance(); } public com.truward.orion.user.service.model.UserModel.ResetPasswordRequest build() { com.truward.orion.user.service.model.UserModel.ResetPasswordRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.truward.orion.user.service.model.UserModel.ResetPasswordRequest buildPartial() { com.truward.orion.user.service.model.UserModel.ResetPasswordRequest result = new com.truward.orion.user.service.model.UserModel.ResetPasswordRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.userId_ = userId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.newPasswordHash_ = newPasswordHash_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.truward.orion.user.service.model.UserModel.ResetPasswordRequest) { return mergeFrom((com.truward.orion.user.service.model.UserModel.ResetPasswordRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.ResetPasswordRequest other) { if (other == com.truward.orion.user.service.model.UserModel.ResetPasswordRequest.getDefaultInstance()) return this; if (other.hasUserId()) { setUserId(other.getUserId()); } if (other.hasNewPasswordHash()) { bitField0_ |= 0x00000002; newPasswordHash_ = other.newPasswordHash_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasUserId()) { return false; } if (!hasNewPasswordHash()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.truward.orion.user.service.model.UserModel.ResetPasswordRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.truward.orion.user.service.model.UserModel.ResetPasswordRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long userId_ ; /** * required int64 userId = 1; */ public boolean hasUserId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 userId = 1; */ public long getUserId() { return userId_; } /** * required int64 userId = 1; */ public Builder setUserId(long value) { bitField0_ |= 0x00000001; userId_ = value; onChanged(); return this; } /** * required int64 userId = 1; */ public Builder clearUserId() { bitField0_ = (bitField0_ & ~0x00000001); userId_ = 0L; onChanged(); return this; } private java.lang.Object newPasswordHash_ = ""; /** * required string newPasswordHash = 4; */ public boolean hasNewPasswordHash() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string newPasswordHash = 4; */ public java.lang.String getNewPasswordHash() { java.lang.Object ref = newPasswordHash_; 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()) { newPasswordHash_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string newPasswordHash = 4; */ public com.google.protobuf.ByteString getNewPasswordHashBytes() { java.lang.Object ref = newPasswordHash_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newPasswordHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string newPasswordHash = 4; */ public Builder setNewPasswordHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; newPasswordHash_ = value; onChanged(); return this; } /** * required string newPasswordHash = 4; */ public Builder clearNewPasswordHash() { bitField0_ = (bitField0_ & ~0x00000002); newPasswordHash_ = getDefaultInstance().getNewPasswordHash(); onChanged(); return this; } /** * required string newPasswordHash = 4; */ public Builder setNewPasswordHashBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; newPasswordHash_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:truward.orion.user.ResetPasswordRequest) } static { defaultInstance = new ResetPasswordRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:truward.orion.user.ResetPasswordRequest) } public interface CreateInvitationTokensRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:truward.orion.user.CreateInvitationTokensRequest) com.google.protobuf.MessageOrBuilder { /** * required int32 count = 1; */ boolean hasCount(); /** * required int32 count = 1; */ int getCount(); /** * repeated string authorities = 2; */ com.google.protobuf.ProtocolStringList getAuthoritiesList(); /** * repeated string authorities = 2; */ int getAuthoritiesCount(); /** * repeated string authorities = 2; */ java.lang.String getAuthorities(int index); /** * repeated string authorities = 2; */ com.google.protobuf.ByteString getAuthoritiesBytes(int index); /** * optional int64 expirationTime = 3; * *
     * when this token should expire?
     * 
*/ boolean hasExpirationTime(); /** * optional int64 expirationTime = 3; * *
     * when this token should expire?
     * 
*/ long getExpirationTime(); } /** * Protobuf type {@code truward.orion.user.CreateInvitationTokensRequest} */ public static final class CreateInvitationTokensRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:truward.orion.user.CreateInvitationTokensRequest) CreateInvitationTokensRequestOrBuilder { // Use CreateInvitationTokensRequest.newBuilder() to construct. private CreateInvitationTokensRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CreateInvitationTokensRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CreateInvitationTokensRequest defaultInstance; public static CreateInvitationTokensRequest getDefaultInstance() { return defaultInstance; } public CreateInvitationTokensRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateInvitationTokensRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; count_ = input.readInt32(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { authorities_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } authorities_.add(bs); break; } case 24: { bitField0_ |= 0x00000002; expirationTime_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { authorities_ = authorities_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_CreateInvitationTokensRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_CreateInvitationTokensRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest.class, com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CreateInvitationTokensRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateInvitationTokensRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int COUNT_FIELD_NUMBER = 1; private int count_; /** * required int32 count = 1; */ public boolean hasCount() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 count = 1; */ public int getCount() { return count_; } public static final int AUTHORITIES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList authorities_; /** * repeated string authorities = 2; */ public com.google.protobuf.ProtocolStringList getAuthoritiesList() { return authorities_; } /** * repeated string authorities = 2; */ public int getAuthoritiesCount() { return authorities_.size(); } /** * repeated string authorities = 2; */ public java.lang.String getAuthorities(int index) { return authorities_.get(index); } /** * repeated string authorities = 2; */ public com.google.protobuf.ByteString getAuthoritiesBytes(int index) { return authorities_.getByteString(index); } public static final int EXPIRATIONTIME_FIELD_NUMBER = 3; private long expirationTime_; /** * optional int64 expirationTime = 3; * *
     * when this token should expire?
     * 
*/ public boolean hasExpirationTime() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 expirationTime = 3; * *
     * when this token should expire?
     * 
*/ public long getExpirationTime() { return expirationTime_; } private void initFields() { count_ = 0; authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY; expirationTime_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasCount()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, count_); } for (int i = 0; i < authorities_.size(); i++) { output.writeBytes(2, authorities_.getByteString(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(3, expirationTime_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, count_); } { int dataSize = 0; for (int i = 0; i < authorities_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(authorities_.getByteString(i)); } size += dataSize; size += 1 * getAuthoritiesList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, expirationTime_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code truward.orion.user.CreateInvitationTokensRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:truward.orion.user.CreateInvitationTokensRequest) com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_CreateInvitationTokensRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_CreateInvitationTokensRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest.class, com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest.Builder.class); } // Construct using com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); count_ = 0; bitField0_ = (bitField0_ & ~0x00000001); authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); expirationTime_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_CreateInvitationTokensRequest_descriptor; } public com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest getDefaultInstanceForType() { return com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest.getDefaultInstance(); } public com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest build() { com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest buildPartial() { com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest result = new com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.count_ = count_; if (((bitField0_ & 0x00000002) == 0x00000002)) { authorities_ = authorities_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.authorities_ = authorities_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.expirationTime_ = expirationTime_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest) { return mergeFrom((com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest other) { if (other == com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest.getDefaultInstance()) return this; if (other.hasCount()) { setCount(other.getCount()); } if (!other.authorities_.isEmpty()) { if (authorities_.isEmpty()) { authorities_ = other.authorities_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAuthoritiesIsMutable(); authorities_.addAll(other.authorities_); } onChanged(); } if (other.hasExpirationTime()) { setExpirationTime(other.getExpirationTime()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasCount()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int count_ ; /** * required int32 count = 1; */ public boolean hasCount() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 count = 1; */ public int getCount() { return count_; } /** * required int32 count = 1; */ public Builder setCount(int value) { bitField0_ |= 0x00000001; count_ = value; onChanged(); return this; } /** * required int32 count = 1; */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000001); count_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringList authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAuthoritiesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { authorities_ = new com.google.protobuf.LazyStringArrayList(authorities_); bitField0_ |= 0x00000002; } } /** * repeated string authorities = 2; */ public com.google.protobuf.ProtocolStringList getAuthoritiesList() { return authorities_.getUnmodifiableView(); } /** * repeated string authorities = 2; */ public int getAuthoritiesCount() { return authorities_.size(); } /** * repeated string authorities = 2; */ public java.lang.String getAuthorities(int index) { return authorities_.get(index); } /** * repeated string authorities = 2; */ public com.google.protobuf.ByteString getAuthoritiesBytes(int index) { return authorities_.getByteString(index); } /** * repeated string authorities = 2; */ public Builder setAuthorities( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAuthoritiesIsMutable(); authorities_.set(index, value); onChanged(); return this; } /** * repeated string authorities = 2; */ public Builder addAuthorities( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAuthoritiesIsMutable(); authorities_.add(value); onChanged(); return this; } /** * repeated string authorities = 2; */ public Builder addAllAuthorities( java.lang.Iterable values) { ensureAuthoritiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, authorities_); onChanged(); return this; } /** * repeated string authorities = 2; */ public Builder clearAuthorities() { authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string authorities = 2; */ public Builder addAuthoritiesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAuthoritiesIsMutable(); authorities_.add(value); onChanged(); return this; } private long expirationTime_ ; /** * optional int64 expirationTime = 3; * *
       * when this token should expire?
       * 
*/ public boolean hasExpirationTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 expirationTime = 3; * *
       * when this token should expire?
       * 
*/ public long getExpirationTime() { return expirationTime_; } /** * optional int64 expirationTime = 3; * *
       * when this token should expire?
       * 
*/ public Builder setExpirationTime(long value) { bitField0_ |= 0x00000004; expirationTime_ = value; onChanged(); return this; } /** * optional int64 expirationTime = 3; * *
       * when this token should expire?
       * 
*/ public Builder clearExpirationTime() { bitField0_ = (bitField0_ & ~0x00000004); expirationTime_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:truward.orion.user.CreateInvitationTokensRequest) } static { defaultInstance = new CreateInvitationTokensRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:truward.orion.user.CreateInvitationTokensRequest) } public interface CreateInvitationTokensResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:truward.orion.user.CreateInvitationTokensResponse) com.google.protobuf.MessageOrBuilder { /** * repeated string invitationTokens = 1; */ com.google.protobuf.ProtocolStringList getInvitationTokensList(); /** * repeated string invitationTokens = 1; */ int getInvitationTokensCount(); /** * repeated string invitationTokens = 1; */ java.lang.String getInvitationTokens(int index); /** * repeated string invitationTokens = 1; */ com.google.protobuf.ByteString getInvitationTokensBytes(int index); } /** * Protobuf type {@code truward.orion.user.CreateInvitationTokensResponse} */ public static final class CreateInvitationTokensResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:truward.orion.user.CreateInvitationTokensResponse) CreateInvitationTokensResponseOrBuilder { // Use CreateInvitationTokensResponse.newBuilder() to construct. private CreateInvitationTokensResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CreateInvitationTokensResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CreateInvitationTokensResponse defaultInstance; public static CreateInvitationTokensResponse getDefaultInstance() { return defaultInstance; } public CreateInvitationTokensResponse getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateInvitationTokensResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { invitationTokens_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } invitationTokens_.add(bs); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { invitationTokens_ = invitationTokens_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_CreateInvitationTokensResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_CreateInvitationTokensResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse.class, com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CreateInvitationTokensResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateInvitationTokensResponse(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int INVITATIONTOKENS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList invitationTokens_; /** * repeated string invitationTokens = 1; */ public com.google.protobuf.ProtocolStringList getInvitationTokensList() { return invitationTokens_; } /** * repeated string invitationTokens = 1; */ public int getInvitationTokensCount() { return invitationTokens_.size(); } /** * repeated string invitationTokens = 1; */ public java.lang.String getInvitationTokens(int index) { return invitationTokens_.get(index); } /** * repeated string invitationTokens = 1; */ public com.google.protobuf.ByteString getInvitationTokensBytes(int index) { return invitationTokens_.getByteString(index); } private void initFields() { invitationTokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < invitationTokens_.size(); i++) { output.writeBytes(1, invitationTokens_.getByteString(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < invitationTokens_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(invitationTokens_.getByteString(i)); } size += dataSize; size += 1 * getInvitationTokensList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code truward.orion.user.CreateInvitationTokensResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:truward.orion.user.CreateInvitationTokensResponse) com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_CreateInvitationTokensResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_CreateInvitationTokensResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse.class, com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse.Builder.class); } // Construct using com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); invitationTokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_CreateInvitationTokensResponse_descriptor; } public com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse getDefaultInstanceForType() { return com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse.getDefaultInstance(); } public com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse build() { com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse buildPartial() { com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse result = new com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { invitationTokens_ = invitationTokens_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.invitationTokens_ = invitationTokens_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse) { return mergeFrom((com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse other) { if (other == com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse.getDefaultInstance()) return this; if (!other.invitationTokens_.isEmpty()) { if (invitationTokens_.isEmpty()) { invitationTokens_ = other.invitationTokens_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInvitationTokensIsMutable(); invitationTokens_.addAll(other.invitationTokens_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList invitationTokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureInvitationTokensIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { invitationTokens_ = new com.google.protobuf.LazyStringArrayList(invitationTokens_); bitField0_ |= 0x00000001; } } /** * repeated string invitationTokens = 1; */ public com.google.protobuf.ProtocolStringList getInvitationTokensList() { return invitationTokens_.getUnmodifiableView(); } /** * repeated string invitationTokens = 1; */ public int getInvitationTokensCount() { return invitationTokens_.size(); } /** * repeated string invitationTokens = 1; */ public java.lang.String getInvitationTokens(int index) { return invitationTokens_.get(index); } /** * repeated string invitationTokens = 1; */ public com.google.protobuf.ByteString getInvitationTokensBytes(int index) { return invitationTokens_.getByteString(index); } /** * repeated string invitationTokens = 1; */ public Builder setInvitationTokens( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInvitationTokensIsMutable(); invitationTokens_.set(index, value); onChanged(); return this; } /** * repeated string invitationTokens = 1; */ public Builder addInvitationTokens( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInvitationTokensIsMutable(); invitationTokens_.add(value); onChanged(); return this; } /** * repeated string invitationTokens = 1; */ public Builder addAllInvitationTokens( java.lang.Iterable values) { ensureInvitationTokensIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, invitationTokens_); onChanged(); return this; } /** * repeated string invitationTokens = 1; */ public Builder clearInvitationTokens() { invitationTokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string invitationTokens = 1; */ public Builder addInvitationTokensBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureInvitationTokensIsMutable(); invitationTokens_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:truward.orion.user.CreateInvitationTokensResponse) } static { defaultInstance = new CreateInvitationTokensResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:truward.orion.user.CreateInvitationTokensResponse) } public interface DeleteAccountsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:truward.orion.user.DeleteAccountsRequest) com.google.protobuf.MessageOrBuilder { /** * repeated int64 userIds = 1; */ java.util.List getUserIdsList(); /** * repeated int64 userIds = 1; */ int getUserIdsCount(); /** * repeated int64 userIds = 1; */ long getUserIds(int index); } /** * Protobuf type {@code truward.orion.user.DeleteAccountsRequest} */ public static final class DeleteAccountsRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:truward.orion.user.DeleteAccountsRequest) DeleteAccountsRequestOrBuilder { // Use DeleteAccountsRequest.newBuilder() to construct. private DeleteAccountsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private DeleteAccountsRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final DeleteAccountsRequest defaultInstance; public static DeleteAccountsRequest getDefaultInstance() { return defaultInstance; } public DeleteAccountsRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteAccountsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { userIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } userIds_.add(input.readInt64()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { userIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { userIds_.add(input.readInt64()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { userIds_ = java.util.Collections.unmodifiableList(userIds_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeleteAccountsRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeleteAccountsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest.class, com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DeleteAccountsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteAccountsRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int USERIDS_FIELD_NUMBER = 1; private java.util.List userIds_; /** * repeated int64 userIds = 1; */ public java.util.List getUserIdsList() { return userIds_; } /** * repeated int64 userIds = 1; */ public int getUserIdsCount() { return userIds_.size(); } /** * repeated int64 userIds = 1; */ public long getUserIds(int index) { return userIds_.get(index); } private void initFields() { userIds_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < userIds_.size(); i++) { output.writeInt64(1, userIds_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < userIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(userIds_.get(i)); } size += dataSize; size += 1 * getUserIdsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code truward.orion.user.DeleteAccountsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:truward.orion.user.DeleteAccountsRequest) com.truward.orion.user.service.model.UserModel.DeleteAccountsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeleteAccountsRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeleteAccountsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest.class, com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest.Builder.class); } // Construct using com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); userIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeleteAccountsRequest_descriptor; } public com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest getDefaultInstanceForType() { return com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest.getDefaultInstance(); } public com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest build() { com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest buildPartial() { com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest result = new com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { userIds_ = java.util.Collections.unmodifiableList(userIds_); bitField0_ = (bitField0_ & ~0x00000001); } result.userIds_ = userIds_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest) { return mergeFrom((com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest other) { if (other == com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest.getDefaultInstance()) return this; if (!other.userIds_.isEmpty()) { if (userIds_.isEmpty()) { userIds_ = other.userIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUserIdsIsMutable(); userIds_.addAll(other.userIds_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List userIds_ = java.util.Collections.emptyList(); private void ensureUserIdsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { userIds_ = new java.util.ArrayList(userIds_); bitField0_ |= 0x00000001; } } /** * repeated int64 userIds = 1; */ public java.util.List getUserIdsList() { return java.util.Collections.unmodifiableList(userIds_); } /** * repeated int64 userIds = 1; */ public int getUserIdsCount() { return userIds_.size(); } /** * repeated int64 userIds = 1; */ public long getUserIds(int index) { return userIds_.get(index); } /** * repeated int64 userIds = 1; */ public Builder setUserIds( int index, long value) { ensureUserIdsIsMutable(); userIds_.set(index, value); onChanged(); return this; } /** * repeated int64 userIds = 1; */ public Builder addUserIds(long value) { ensureUserIdsIsMutable(); userIds_.add(value); onChanged(); return this; } /** * repeated int64 userIds = 1; */ public Builder addAllUserIds( java.lang.Iterable values) { ensureUserIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, userIds_); onChanged(); return this; } /** * repeated int64 userIds = 1; */ public Builder clearUserIds() { userIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:truward.orion.user.DeleteAccountsRequest) } static { defaultInstance = new DeleteAccountsRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:truward.orion.user.DeleteAccountsRequest) } public interface DeleteAccountsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:truward.orion.user.DeleteAccountsResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code truward.orion.user.DeleteAccountsResponse} */ public static final class DeleteAccountsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:truward.orion.user.DeleteAccountsResponse) DeleteAccountsResponseOrBuilder { // Use DeleteAccountsResponse.newBuilder() to construct. private DeleteAccountsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private DeleteAccountsResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final DeleteAccountsResponse defaultInstance; public static DeleteAccountsResponse getDefaultInstance() { return defaultInstance; } public DeleteAccountsResponse getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteAccountsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeleteAccountsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeleteAccountsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse.class, com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DeleteAccountsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteAccountsResponse(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code truward.orion.user.DeleteAccountsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:truward.orion.user.DeleteAccountsResponse) com.truward.orion.user.service.model.UserModel.DeleteAccountsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeleteAccountsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeleteAccountsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse.class, com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse.Builder.class); } // Construct using com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeleteAccountsResponse_descriptor; } public com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse getDefaultInstanceForType() { return com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse.getDefaultInstance(); } public com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse build() { com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse buildPartial() { com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse result = new com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse) { return mergeFrom((com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse other) { if (other == com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:truward.orion.user.DeleteAccountsResponse) } static { defaultInstance = new DeleteAccountsResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:truward.orion.user.DeleteAccountsResponse) } public interface DeactivateUsersWithAuthoritiesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:truward.orion.user.DeactivateUsersWithAuthoritiesRequest) com.google.protobuf.MessageOrBuilder { /** * repeated string authorities = 1; */ com.google.protobuf.ProtocolStringList getAuthoritiesList(); /** * repeated string authorities = 1; */ int getAuthoritiesCount(); /** * repeated string authorities = 1; */ java.lang.String getAuthorities(int index); /** * repeated string authorities = 1; */ com.google.protobuf.ByteString getAuthoritiesBytes(int index); } /** * Protobuf type {@code truward.orion.user.DeactivateUsersWithAuthoritiesRequest} */ public static final class DeactivateUsersWithAuthoritiesRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:truward.orion.user.DeactivateUsersWithAuthoritiesRequest) DeactivateUsersWithAuthoritiesRequestOrBuilder { // Use DeactivateUsersWithAuthoritiesRequest.newBuilder() to construct. private DeactivateUsersWithAuthoritiesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private DeactivateUsersWithAuthoritiesRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final DeactivateUsersWithAuthoritiesRequest defaultInstance; public static DeactivateUsersWithAuthoritiesRequest getDefaultInstance() { return defaultInstance; } public DeactivateUsersWithAuthoritiesRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeactivateUsersWithAuthoritiesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { authorities_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } authorities_.add(bs); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { authorities_ = authorities_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest.class, com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DeactivateUsersWithAuthoritiesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeactivateUsersWithAuthoritiesRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int AUTHORITIES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList authorities_; /** * repeated string authorities = 1; */ public com.google.protobuf.ProtocolStringList getAuthoritiesList() { return authorities_; } /** * repeated string authorities = 1; */ public int getAuthoritiesCount() { return authorities_.size(); } /** * repeated string authorities = 1; */ public java.lang.String getAuthorities(int index) { return authorities_.get(index); } /** * repeated string authorities = 1; */ public com.google.protobuf.ByteString getAuthoritiesBytes(int index) { return authorities_.getByteString(index); } private void initFields() { authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < authorities_.size(); i++) { output.writeBytes(1, authorities_.getByteString(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < authorities_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(authorities_.getByteString(i)); } size += dataSize; size += 1 * getAuthoritiesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code truward.orion.user.DeactivateUsersWithAuthoritiesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:truward.orion.user.DeactivateUsersWithAuthoritiesRequest) com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest.class, com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest.Builder.class); } // Construct using com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesRequest_descriptor; } public com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest getDefaultInstanceForType() { return com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest.getDefaultInstance(); } public com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest build() { com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest buildPartial() { com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest result = new com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { authorities_ = authorities_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.authorities_ = authorities_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest) { return mergeFrom((com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest other) { if (other == com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest.getDefaultInstance()) return this; if (!other.authorities_.isEmpty()) { if (authorities_.isEmpty()) { authorities_ = other.authorities_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAuthoritiesIsMutable(); authorities_.addAll(other.authorities_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAuthoritiesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { authorities_ = new com.google.protobuf.LazyStringArrayList(authorities_); bitField0_ |= 0x00000001; } } /** * repeated string authorities = 1; */ public com.google.protobuf.ProtocolStringList getAuthoritiesList() { return authorities_.getUnmodifiableView(); } /** * repeated string authorities = 1; */ public int getAuthoritiesCount() { return authorities_.size(); } /** * repeated string authorities = 1; */ public java.lang.String getAuthorities(int index) { return authorities_.get(index); } /** * repeated string authorities = 1; */ public com.google.protobuf.ByteString getAuthoritiesBytes(int index) { return authorities_.getByteString(index); } /** * repeated string authorities = 1; */ public Builder setAuthorities( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAuthoritiesIsMutable(); authorities_.set(index, value); onChanged(); return this; } /** * repeated string authorities = 1; */ public Builder addAuthorities( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAuthoritiesIsMutable(); authorities_.add(value); onChanged(); return this; } /** * repeated string authorities = 1; */ public Builder addAllAuthorities( java.lang.Iterable values) { ensureAuthoritiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, authorities_); onChanged(); return this; } /** * repeated string authorities = 1; */ public Builder clearAuthorities() { authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string authorities = 1; */ public Builder addAuthoritiesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAuthoritiesIsMutable(); authorities_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:truward.orion.user.DeactivateUsersWithAuthoritiesRequest) } static { defaultInstance = new DeactivateUsersWithAuthoritiesRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:truward.orion.user.DeactivateUsersWithAuthoritiesRequest) } public interface DeactivateUsersWithAuthoritiesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:truward.orion.user.DeactivateUsersWithAuthoritiesResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code truward.orion.user.DeactivateUsersWithAuthoritiesResponse} */ public static final class DeactivateUsersWithAuthoritiesResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:truward.orion.user.DeactivateUsersWithAuthoritiesResponse) DeactivateUsersWithAuthoritiesResponseOrBuilder { // Use DeactivateUsersWithAuthoritiesResponse.newBuilder() to construct. private DeactivateUsersWithAuthoritiesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private DeactivateUsersWithAuthoritiesResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final DeactivateUsersWithAuthoritiesResponse defaultInstance; public static DeactivateUsersWithAuthoritiesResponse getDefaultInstance() { return defaultInstance; } public DeactivateUsersWithAuthoritiesResponse getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeactivateUsersWithAuthoritiesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse.class, com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DeactivateUsersWithAuthoritiesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeactivateUsersWithAuthoritiesResponse(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code truward.orion.user.DeactivateUsersWithAuthoritiesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:truward.orion.user.DeactivateUsersWithAuthoritiesResponse) com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse.class, com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse.Builder.class); } // Construct using com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.truward.orion.user.service.model.UserModel.internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesResponse_descriptor; } public com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse getDefaultInstanceForType() { return com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse.getDefaultInstance(); } public com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse build() { com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse buildPartial() { com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse result = new com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse) { return mergeFrom((com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse other) { if (other == com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:truward.orion.user.DeactivateUsersWithAuthoritiesResponse) } static { defaultInstance = new DeactivateUsersWithAuthoritiesResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:truward.orion.user.DeactivateUsersWithAuthoritiesResponse) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_Contact_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_Contact_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_UserAccount_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_UserAccount_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_ListAccountsRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_ListAccountsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_ListAccountsResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_ListAccountsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_AccountLookupRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_AccountLookupRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_AccountLookupResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_AccountLookupResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_AccountPresenceRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_AccountPresenceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_AccountPresenceResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_AccountPresenceResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_RegisterAccountRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_RegisterAccountRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_RegisterAccountResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_RegisterAccountResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_UpdateAccountRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_UpdateAccountRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_UpdateAccountResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_UpdateAccountResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_ResetPasswordRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_ResetPasswordRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_CreateInvitationTokensRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_CreateInvitationTokensRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_CreateInvitationTokensResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_CreateInvitationTokensResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_DeleteAccountsRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_DeleteAccountsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_DeleteAccountsResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_DeleteAccountsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesResponse_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\034src/main/protobuf/user.proto\022\022truward." + "orion.user\"H\n\007Contact\022\016\n\006number\030\001 \002(\t\022-\n" + "\004type\030\002 \002(\0162\037.truward.orion.user.Contact" + "Type\"\246\001\n\013UserAccount\022\n\n\002id\030\001 \001(\003\022\020\n\010nick" + "name\030\002 \002(\t\022\024\n\014passwordHash\030\003 \002(\t\022-\n\010cont" + "acts\030\004 \003(\0132\033.truward.orion.user.Contact\022" + "\023\n\013authorities\030\005 \003(\t\022\017\n\007created\030\006 \002(\003\022\016\n" + "\006active\030\007 \002(\010\"<\n\023ListAccountsRequest\022\023\n\013" + "offsetToken\030\001 \001(\t\022\020\n\005limit\030\002 \002(\005:\0018\"^\n\024L" + "istAccountsResponse\0221\n\010accounts\030\001 \003(\0132\037.", "truward.orion.user.UserAccount\022\023\n\013offset" + "Token\030\002 \001(\t\"A\n\024AccountLookupRequest\022\020\n\010u" + "sername\030\001 \002(\t\022\027\n\017includeContacts\030\002 \001(\010\"I" + "\n\025AccountLookupResponse\0220\n\007account\030\001 \001(\013" + "2\037.truward.orion.user.UserAccount\"Y\n\026Acc" + "ountPresenceRequest\022\020\n\010nickname\030\001 \002(\t\022-\n" + "\010contacts\030\002 \003(\0132\033.truward.orion.user.Con" + "tact\")\n\027AccountPresenceResponse\022\016\n\006exist" + "s\030\001 \002(\010\"\235\001\n\026RegisterAccountRequest\022\020\n\010ni" + "ckname\030\001 \002(\t\022\024\n\014passwordHash\030\002 \002(\t\022-\n\010co", "ntacts\030\003 \003(\0132\033.truward.orion.user.Contac" + "t\022\023\n\013authorities\030\004 \003(\t\022\027\n\017invitationToke" + "n\030\005 \001(\t\")\n\027RegisterAccountResponse\022\016\n\006us" + "erId\030\001 \002(\003\"\242\001\n\024UpdateAccountRequest\022\016\n\006u" + "serId\030\001 \002(\003\022\020\n\010nickname\030\002 \002(\t\022\024\n\014passwor" + "dHash\030\003 \002(\t\022-\n\010contacts\030\004 \003(\0132\033.truward." + "orion.user.Contact\022\023\n\013authorities\030\005 \003(\t\022" + "\016\n\006active\030\006 \002(\010\"\027\n\025UpdateAccountResponse" + "\"?\n\024ResetPasswordRequest\022\016\n\006userId\030\001 \002(\003" + "\022\027\n\017newPasswordHash\030\004 \002(\t\"[\n\035CreateInvit", "ationTokensRequest\022\r\n\005count\030\001 \002(\005\022\023\n\013aut" + "horities\030\002 \003(\t\022\026\n\016expirationTime\030\003 \001(\003\":" + "\n\036CreateInvitationTokensResponse\022\030\n\020invi" + "tationTokens\030\001 \003(\t\"(\n\025DeleteAccountsRequ" + "est\022\017\n\007userIds\030\001 \003(\003\"\030\n\026DeleteAccountsRe" + "sponse\"<\n%DeactivateUsersWithAuthorities" + "Request\022\023\n\013authorities\030\001 \003(\t\"(\n&Deactiva" + "teUsersWithAuthoritiesResponse*#\n\013Contac" + "tType\022\t\n\005PHONE\020\001\022\t\n\005EMAIL\020\002B1\n$com.truwa" + "rd.orion.user.service.modelB\tUserModel" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_truward_orion_user_Contact_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_truward_orion_user_Contact_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_Contact_descriptor, new java.lang.String[] { "Number", "Type", }); internal_static_truward_orion_user_UserAccount_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_truward_orion_user_UserAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_UserAccount_descriptor, new java.lang.String[] { "Id", "Nickname", "PasswordHash", "Contacts", "Authorities", "Created", "Active", }); internal_static_truward_orion_user_ListAccountsRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_truward_orion_user_ListAccountsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_ListAccountsRequest_descriptor, new java.lang.String[] { "OffsetToken", "Limit", }); internal_static_truward_orion_user_ListAccountsResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_truward_orion_user_ListAccountsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_ListAccountsResponse_descriptor, new java.lang.String[] { "Accounts", "OffsetToken", }); internal_static_truward_orion_user_AccountLookupRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_truward_orion_user_AccountLookupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_AccountLookupRequest_descriptor, new java.lang.String[] { "Username", "IncludeContacts", }); internal_static_truward_orion_user_AccountLookupResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_truward_orion_user_AccountLookupResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_AccountLookupResponse_descriptor, new java.lang.String[] { "Account", }); internal_static_truward_orion_user_AccountPresenceRequest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_truward_orion_user_AccountPresenceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_AccountPresenceRequest_descriptor, new java.lang.String[] { "Nickname", "Contacts", }); internal_static_truward_orion_user_AccountPresenceResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_truward_orion_user_AccountPresenceResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_AccountPresenceResponse_descriptor, new java.lang.String[] { "Exists", }); internal_static_truward_orion_user_RegisterAccountRequest_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_truward_orion_user_RegisterAccountRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_RegisterAccountRequest_descriptor, new java.lang.String[] { "Nickname", "PasswordHash", "Contacts", "Authorities", "InvitationToken", }); internal_static_truward_orion_user_RegisterAccountResponse_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_truward_orion_user_RegisterAccountResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_RegisterAccountResponse_descriptor, new java.lang.String[] { "UserId", }); internal_static_truward_orion_user_UpdateAccountRequest_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_truward_orion_user_UpdateAccountRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_UpdateAccountRequest_descriptor, new java.lang.String[] { "UserId", "Nickname", "PasswordHash", "Contacts", "Authorities", "Active", }); internal_static_truward_orion_user_UpdateAccountResponse_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_truward_orion_user_UpdateAccountResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_UpdateAccountResponse_descriptor, new java.lang.String[] { }); internal_static_truward_orion_user_ResetPasswordRequest_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_truward_orion_user_ResetPasswordRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_ResetPasswordRequest_descriptor, new java.lang.String[] { "UserId", "NewPasswordHash", }); internal_static_truward_orion_user_CreateInvitationTokensRequest_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_truward_orion_user_CreateInvitationTokensRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_CreateInvitationTokensRequest_descriptor, new java.lang.String[] { "Count", "Authorities", "ExpirationTime", }); internal_static_truward_orion_user_CreateInvitationTokensResponse_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_truward_orion_user_CreateInvitationTokensResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_CreateInvitationTokensResponse_descriptor, new java.lang.String[] { "InvitationTokens", }); internal_static_truward_orion_user_DeleteAccountsRequest_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_truward_orion_user_DeleteAccountsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_DeleteAccountsRequest_descriptor, new java.lang.String[] { "UserIds", }); internal_static_truward_orion_user_DeleteAccountsResponse_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_truward_orion_user_DeleteAccountsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_DeleteAccountsResponse_descriptor, new java.lang.String[] { }); internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesRequest_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesRequest_descriptor, new java.lang.String[] { "Authorities", }); internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesResponse_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_truward_orion_user_DeactivateUsersWithAuthoritiesResponse_descriptor, new java.lang.String[] { }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy