Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.truward.orion.user.service.model.UserModel Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: 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 {
/**
* UNKNOWN = 0;
*/
UNKNOWN(0, 0),
/**
* PHONE = 1;
*/
PHONE(1, 1),
/**
* EMAIL = 2;
*/
EMAIL(2, 2),
UNRECOGNIZED(-1, -1),
;
/**
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
* PHONE = 1;
*/
public static final int PHONE_VALUE = 1;
/**
* EMAIL = 2;
*/
public static final int EMAIL_VALUE = 2;
public final int getNumber() {
if (index == -1) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
public static ContactType valueOf(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return PHONE;
case 2: return EMAIL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ContactType> 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.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
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 {
/**
* optional string number = 1;
*/
java.lang.String getNumber();
/**
* optional string number = 1;
*/
com.google.protobuf.ByteString
getNumberBytes();
/**
* optional .truward.orion.user.ContactType type = 2;
*/
int getTypeValue();
/**
* optional .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);
}
private Contact() {
number_ = "";
type_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Contact(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
number_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
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 final int NUMBER_FIELD_NUMBER = 1;
private volatile java.lang.Object number_;
/**
* optional 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();
number_ = s;
return s;
}
}
/**
* optional 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 int type_;
/**
* optional .truward.orion.user.ContactType type = 2;
*/
public int getTypeValue() {
return type_;
}
/**
* optional .truward.orion.user.ContactType type = 2;
*/
public com.truward.orion.user.service.model.UserModel.ContactType getType() {
com.truward.orion.user.service.model.UserModel.ContactType result = com.truward.orion.user.service.model.UserModel.ContactType.valueOf(type_);
return result == null ? com.truward.orion.user.service.model.UserModel.ContactType.UNRECOGNIZED : result;
}
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 {
if (!getNumberBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, number_);
}
if (type_ != com.truward.orion.user.service.model.UserModel.ContactType.UNKNOWN.getNumber()) {
output.writeEnum(2, type_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNumberBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, number_);
}
if (type_ != com.truward.orion.user.service.model.UserModel.ContactType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, type_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.Contact prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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) {
}
}
public Builder clear() {
super.clear();
number_ = "";
type_ = 0;
return this;
}
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);
result.number_ = number_;
result.type_ = type_;
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.getNumber().isEmpty()) {
number_ = other.number_;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
onChanged();
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.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 java.lang.Object number_ = "";
/**
* optional 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();
number_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string number = 1;
*/
public Builder setNumber(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
number_ = value;
onChanged();
return this;
}
/**
* optional string number = 1;
*/
public Builder clearNumber() {
number_ = getDefaultInstance().getNumber();
onChanged();
return this;
}
/**
* optional string number = 1;
*/
public Builder setNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
number_ = value;
onChanged();
return this;
}
private int type_ = 0;
/**
* optional .truward.orion.user.ContactType type = 2;
*/
public int getTypeValue() {
return type_;
}
/**
* optional .truward.orion.user.ContactType type = 2;
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* optional .truward.orion.user.ContactType type = 2;
*/
public com.truward.orion.user.service.model.UserModel.ContactType getType() {
com.truward.orion.user.service.model.UserModel.ContactType result = com.truward.orion.user.service.model.UserModel.ContactType.valueOf(type_);
return result == null ? com.truward.orion.user.service.model.UserModel.ContactType.UNRECOGNIZED : result;
}
/**
* optional .truward.orion.user.ContactType type = 2;
*/
public Builder setType(com.truward.orion.user.service.model.UserModel.ContactType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .truward.orion.user.ContactType type = 2;
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.Contact)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.Contact)
private static final com.truward.orion.user.service.model.UserModel.Contact DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.Contact();
}
public static com.truward.orion.user.service.model.UserModel.Contact getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new Contact(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.Contact getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UserAccountOrBuilder extends
// @@protoc_insertion_point(interface_extends:truward.orion.user.UserAccount)
com.google.protobuf.MessageOrBuilder {
/**
* optional int64 id = 1;
*/
long getId();
/**
* optional string nickname = 2;
*/
java.lang.String getNickname();
/**
* optional string nickname = 2;
*/
com.google.protobuf.ByteString
getNicknameBytes();
/**
* optional string passwordHash = 3;
*/
java.lang.String getPasswordHash();
/**
* optional 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 extends com.truward.orion.user.service.model.UserModel.ContactOrBuilder>
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);
/**
* optional int64 created = 6;
*/
long getCreated();
/**
* optional 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);
}
private UserAccount() {
id_ = 0L;
nickname_ = "";
passwordHash_ = "";
contacts_ = java.util.Collections.emptyList();
authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
created_ = 0L;
active_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private UserAccount(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
id_ = input.readInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nickname_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
passwordHash_ = s;
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: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
authorities_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
authorities_.add(s);
break;
}
case 48: {
created_ = input.readInt64();
break;
}
case 56: {
active_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
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();
}
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);
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private long id_;
/**
* optional int64 id = 1;
*/
public long getId() {
return id_;
}
public static final int NICKNAME_FIELD_NUMBER = 2;
private volatile java.lang.Object nickname_;
/**
* optional 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();
nickname_ = s;
return s;
}
}
/**
* optional 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 volatile java.lang.Object passwordHash_;
/**
* optional 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();
passwordHash_ = s;
return s;
}
}
/**
* optional 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 extends com.truward.orion.user.service.model.UserModel.ContactOrBuilder>
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_;
/**
* optional int64 created = 6;
*/
public long getCreated() {
return created_;
}
public static final int ACTIVE_FIELD_NUMBER = 7;
private boolean active_;
/**
* optional bool active = 7;
*/
public boolean getActive() {
return active_;
}
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 {
if (id_ != 0L) {
output.writeInt64(1, id_);
}
if (!getNicknameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, nickname_);
}
if (!getPasswordHashBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, passwordHash_);
}
for (int i = 0; i < contacts_.size(); i++) {
output.writeMessage(4, contacts_.get(i));
}
for (int i = 0; i < authorities_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, authorities_.getRaw(i));
}
if (created_ != 0L) {
output.writeInt64(6, created_);
}
if (active_ != false) {
output.writeBool(7, active_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, id_);
}
if (!getNicknameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nickname_);
}
if (!getPasswordHashBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, passwordHash_);
}
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 += computeStringSizeNoTag(authorities_.getRaw(i));
}
size += dataSize;
size += 1 * getAuthoritiesList().size();
}
if (created_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, created_);
}
if (active_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, active_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.UserAccount prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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();
}
}
public Builder clear() {
super.clear();
id_ = 0L;
nickname_ = "";
passwordHash_ = "";
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;
active_ = false;
return this;
}
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;
result.id_ = id_;
result.nickname_ = nickname_;
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_;
result.created_ = created_;
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.getId() != 0L) {
setId(other.getId());
}
if (!other.getNickname().isEmpty()) {
nickname_ = other.nickname_;
onChanged();
}
if (!other.getPasswordHash().isEmpty()) {
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.getCreated() != 0L) {
setCreated(other.getCreated());
}
if (other.getActive() != false) {
setActive(other.getActive());
}
onChanged();
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.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 long getId() {
return id_;
}
/**
* optional int64 id = 1;
*/
public Builder setId(long value) {
id_ = value;
onChanged();
return this;
}
/**
* optional int64 id = 1;
*/
public Builder clearId() {
id_ = 0L;
onChanged();
return this;
}
private java.lang.Object nickname_ = "";
/**
* optional 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();
nickname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string nickname = 2;
*/
public Builder setNickname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nickname_ = value;
onChanged();
return this;
}
/**
* optional string nickname = 2;
*/
public Builder clearNickname() {
nickname_ = getDefaultInstance().getNickname();
onChanged();
return this;
}
/**
* optional string nickname = 2;
*/
public Builder setNicknameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nickname_ = value;
onChanged();
return this;
}
private java.lang.Object passwordHash_ = "";
/**
* optional 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();
passwordHash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string passwordHash = 3;
*/
public Builder setPasswordHash(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
passwordHash_ = value;
onChanged();
return this;
}
/**
* optional string passwordHash = 3;
*/
public Builder clearPasswordHash() {
passwordHash_ = getDefaultInstance().getPasswordHash();
onChanged();
return this;
}
/**
* optional string passwordHash = 3;
*/
public Builder setPasswordHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
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 extends com.truward.orion.user.service.model.UserModel.Contact> 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 extends com.truward.orion.user.service.model.UserModel.ContactOrBuilder>
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();
}
checkByteStringIsUtf8(value);
ensureAuthoritiesIsMutable();
authorities_.add(value);
onChanged();
return this;
}
private long created_ ;
/**
* optional int64 created = 6;
*/
public long getCreated() {
return created_;
}
/**
* optional int64 created = 6;
*/
public Builder setCreated(long value) {
created_ = value;
onChanged();
return this;
}
/**
* optional int64 created = 6;
*/
public Builder clearCreated() {
created_ = 0L;
onChanged();
return this;
}
private boolean active_ ;
/**
* optional bool active = 7;
*/
public boolean getActive() {
return active_;
}
/**
* optional bool active = 7;
*/
public Builder setActive(boolean value) {
active_ = value;
onChanged();
return this;
}
/**
* optional bool active = 7;
*/
public Builder clearActive() {
active_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.UserAccount)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.UserAccount)
private static final com.truward.orion.user.service.model.UserModel.UserAccount DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.UserAccount();
}
public static com.truward.orion.user.service.model.UserModel.UserAccount getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new UserAccount(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.UserAccount getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListAccountsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:truward.orion.user.ListAccountsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string offsetToken = 1;
*/
java.lang.String getOffsetToken();
/**
* optional string offsetToken = 1;
*/
com.google.protobuf.ByteString
getOffsetTokenBytes();
/**
* optional int32 limit = 2;
*/
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);
}
private ListAccountsRequest() {
offsetToken_ = "";
limit_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ListAccountsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
offsetToken_ = s;
break;
}
case 16: {
limit_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
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 final int OFFSETTOKEN_FIELD_NUMBER = 1;
private volatile java.lang.Object offsetToken_;
/**
* 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();
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_;
/**
* optional int32 limit = 2;
*/
public int getLimit() {
return limit_;
}
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 {
if (!getOffsetTokenBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, offsetToken_);
}
if (limit_ != 0) {
output.writeInt32(2, limit_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getOffsetTokenBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, offsetToken_);
}
if (limit_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, limit_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.ListAccountsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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) {
}
}
public Builder clear() {
super.clear();
offsetToken_ = "";
limit_ = 0;
return this;
}
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);
result.offsetToken_ = offsetToken_;
result.limit_ = limit_;
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.getOffsetToken().isEmpty()) {
offsetToken_ = other.offsetToken_;
onChanged();
}
if (other.getLimit() != 0) {
setLimit(other.getLimit());
}
onChanged();
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.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 java.lang.Object offsetToken_ = "";
/**
* 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();
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();
}
offsetToken_ = value;
onChanged();
return this;
}
/**
* optional string offsetToken = 1;
*/
public Builder clearOffsetToken() {
offsetToken_ = getDefaultInstance().getOffsetToken();
onChanged();
return this;
}
/**
* optional string offsetToken = 1;
*/
public Builder setOffsetTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
offsetToken_ = value;
onChanged();
return this;
}
private int limit_ ;
/**
* optional int32 limit = 2;
*/
public int getLimit() {
return limit_;
}
/**
* optional int32 limit = 2;
*/
public Builder setLimit(int value) {
limit_ = value;
onChanged();
return this;
}
/**
* optional int32 limit = 2;
*/
public Builder clearLimit() {
limit_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.ListAccountsRequest)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.ListAccountsRequest)
private static final com.truward.orion.user.service.model.UserModel.ListAccountsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.ListAccountsRequest();
}
public static com.truward.orion.user.service.model.UserModel.ListAccountsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new ListAccountsRequest(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.ListAccountsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
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 extends com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder>
getAccountsOrBuilderList();
/**
* repeated .truward.orion.user.UserAccount accounts = 1;
*/
com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder getAccountsOrBuilder(
int index);
/**
* 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);
}
private ListAccountsResponse() {
accounts_ = java.util.Collections.emptyList();
offsetToken_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ListAccountsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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: {
java.lang.String s = input.readStringRequireUtf8();
offsetToken_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
accounts_ = java.util.Collections.unmodifiableList(accounts_);
}
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);
}
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 extends com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder>
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 volatile java.lang.Object offsetToken_;
/**
* 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();
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 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 {
for (int i = 0; i < accounts_.size(); i++) {
output.writeMessage(1, accounts_.get(i));
}
if (!getOffsetTokenBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, offsetToken_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
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 (!getOffsetTokenBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, offsetToken_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.ListAccountsResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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();
}
}
public Builder clear() {
super.clear();
if (accountsBuilder_ == null) {
accounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
accountsBuilder_.clear();
}
offsetToken_ = "";
return this;
}
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();
}
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.getOffsetToken().isEmpty()) {
offsetToken_ = other.offsetToken_;
onChanged();
}
onChanged();
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.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 extends com.truward.orion.user.service.model.UserModel.UserAccount> 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 extends com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder>
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 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();
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();
}
offsetToken_ = value;
onChanged();
return this;
}
/**
* optional string offsetToken = 2;
*/
public Builder clearOffsetToken() {
offsetToken_ = getDefaultInstance().getOffsetToken();
onChanged();
return this;
}
/**
* optional string offsetToken = 2;
*/
public Builder setOffsetTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
offsetToken_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.ListAccountsResponse)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.ListAccountsResponse)
private static final com.truward.orion.user.service.model.UserModel.ListAccountsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.ListAccountsResponse();
}
public static com.truward.orion.user.service.model.UserModel.ListAccountsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new ListAccountsResponse(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.ListAccountsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AccountLookupRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:truward.orion.user.AccountLookupRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string username = 1;
*/
java.lang.String getUsername();
/**
* optional string username = 1;
*/
com.google.protobuf.ByteString
getUsernameBytes();
/**
* 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);
}
private AccountLookupRequest() {
username_ = "";
includeContacts_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private AccountLookupRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
username_ = s;
break;
}
case 16: {
includeContacts_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
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 final int USERNAME_FIELD_NUMBER = 1;
private volatile java.lang.Object username_;
/**
* optional 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();
username_ = s;
return s;
}
}
/**
* optional 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 getIncludeContacts() {
return includeContacts_;
}
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 {
if (!getUsernameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, username_);
}
if (includeContacts_ != false) {
output.writeBool(2, includeContacts_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getUsernameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, username_);
}
if (includeContacts_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, includeContacts_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.AccountLookupRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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) {
}
}
public Builder clear() {
super.clear();
username_ = "";
includeContacts_ = false;
return this;
}
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);
result.username_ = username_;
result.includeContacts_ = includeContacts_;
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.getUsername().isEmpty()) {
username_ = other.username_;
onChanged();
}
if (other.getIncludeContacts() != false) {
setIncludeContacts(other.getIncludeContacts());
}
onChanged();
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.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 java.lang.Object username_ = "";
/**
* optional 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();
username_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string username = 1;
*/
public Builder setUsername(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
username_ = value;
onChanged();
return this;
}
/**
* optional string username = 1;
*/
public Builder clearUsername() {
username_ = getDefaultInstance().getUsername();
onChanged();
return this;
}
/**
* optional string username = 1;
*/
public Builder setUsernameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
username_ = value;
onChanged();
return this;
}
private boolean includeContacts_ ;
/**
* 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) {
includeContacts_ = value;
onChanged();
return this;
}
/**
* optional bool includeContacts = 2;
*
*
* include contacts to the resultant user account?
*
*/
public Builder clearIncludeContacts() {
includeContacts_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.AccountLookupRequest)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.AccountLookupRequest)
private static final com.truward.orion.user.service.model.UserModel.AccountLookupRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.AccountLookupRequest();
}
public static com.truward.orion.user.service.model.UserModel.AccountLookupRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new AccountLookupRequest(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.AccountLookupRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
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);
}
private AccountLookupResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private AccountLookupResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.truward.orion.user.service.model.UserModel.UserAccount.Builder subBuilder = null;
if (account_ != null) {
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();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
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 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 account_ != null;
}
/**
* optional .truward.orion.user.UserAccount account = 1;
*/
public com.truward.orion.user.service.model.UserModel.UserAccount getAccount() {
return account_ == null ? com.truward.orion.user.service.model.UserModel.UserAccount.getDefaultInstance() : account_;
}
/**
* optional .truward.orion.user.UserAccount account = 1;
*/
public com.truward.orion.user.service.model.UserModel.UserAccountOrBuilder getAccountOrBuilder() {
return getAccount();
}
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 {
if (account_ != null) {
output.writeMessage(1, getAccount());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (account_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAccount());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.AccountLookupResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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) {
}
}
public Builder clear() {
super.clear();
if (accountBuilder_ == null) {
account_ = null;
} else {
account_ = null;
accountBuilder_ = null;
}
return this;
}
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);
if (accountBuilder_ == null) {
result.account_ = account_;
} else {
result.account_ = accountBuilder_.build();
}
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());
}
onChanged();
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.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 com.truward.orion.user.service.model.UserModel.UserAccount account_ = null;
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 accountBuilder_ != null || account_ != null;
}
/**
* optional .truward.orion.user.UserAccount account = 1;
*/
public com.truward.orion.user.service.model.UserModel.UserAccount getAccount() {
if (accountBuilder_ == null) {
return account_ == null ? com.truward.orion.user.service.model.UserModel.UserAccount.getDefaultInstance() : 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);
}
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());
}
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 (account_ != null) {
account_ =
com.truward.orion.user.service.model.UserModel.UserAccount.newBuilder(account_).mergeFrom(value).buildPartial();
} else {
account_ = value;
}
onChanged();
} else {
accountBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .truward.orion.user.UserAccount account = 1;
*/
public Builder clearAccount() {
if (accountBuilder_ == null) {
account_ = null;
onChanged();
} else {
account_ = null;
accountBuilder_ = null;
}
return this;
}
/**
* optional .truward.orion.user.UserAccount account = 1;
*/
public com.truward.orion.user.service.model.UserModel.UserAccount.Builder getAccountBuilder() {
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_ == null ?
com.truward.orion.user.service.model.UserModel.UserAccount.getDefaultInstance() : 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_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.AccountLookupResponse)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.AccountLookupResponse)
private static final com.truward.orion.user.service.model.UserModel.AccountLookupResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.AccountLookupResponse();
}
public static com.truward.orion.user.service.model.UserModel.AccountLookupResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new AccountLookupResponse(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.AccountLookupResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AccountPresenceRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:truward.orion.user.AccountPresenceRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string nickname = 1;
*/
java.lang.String getNickname();
/**
* optional 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 extends com.truward.orion.user.service.model.UserModel.ContactOrBuilder>
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);
}
private AccountPresenceRequest() {
nickname_ = "";
contacts_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private AccountPresenceRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
nickname_ = s;
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 new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
contacts_ = java.util.Collections.unmodifiableList(contacts_);
}
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);
}
private int bitField0_;
public static final int NICKNAME_FIELD_NUMBER = 1;
private volatile java.lang.Object nickname_;
/**
* optional 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();
nickname_ = s;
return s;
}
}
/**
* optional 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 extends com.truward.orion.user.service.model.UserModel.ContactOrBuilder>
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 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 {
if (!getNicknameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, nickname_);
}
for (int i = 0; i < contacts_.size(); i++) {
output.writeMessage(2, contacts_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNicknameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, nickname_);
}
for (int i = 0; i < contacts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, contacts_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.AccountPresenceRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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();
}
}
public Builder clear() {
super.clear();
nickname_ = "";
if (contactsBuilder_ == null) {
contacts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
contactsBuilder_.clear();
}
return this;
}
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;
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.getNickname().isEmpty()) {
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_);
}
}
}
onChanged();
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.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_ = "";
/**
* optional 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();
nickname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string nickname = 1;
*/
public Builder setNickname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nickname_ = value;
onChanged();
return this;
}
/**
* optional string nickname = 1;
*/
public Builder clearNickname() {
nickname_ = getDefaultInstance().getNickname();
onChanged();
return this;
}
/**
* optional string nickname = 1;
*/
public Builder setNicknameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
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 extends com.truward.orion.user.service.model.UserModel.Contact> 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 extends com.truward.orion.user.service.model.UserModel.ContactOrBuilder>
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_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.AccountPresenceRequest)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.AccountPresenceRequest)
private static final com.truward.orion.user.service.model.UserModel.AccountPresenceRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.AccountPresenceRequest();
}
public static com.truward.orion.user.service.model.UserModel.AccountPresenceRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new AccountPresenceRequest(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.AccountPresenceRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AccountPresenceResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:truward.orion.user.AccountPresenceResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional 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);
}
private AccountPresenceResponse() {
exists_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private AccountPresenceResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
exists_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
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 final int EXISTS_FIELD_NUMBER = 1;
private boolean exists_;
/**
* optional bool exists = 1;
*/
public boolean getExists() {
return exists_;
}
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 {
if (exists_ != false) {
output.writeBool(1, exists_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (exists_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, exists_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.AccountPresenceResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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) {
}
}
public Builder clear() {
super.clear();
exists_ = false;
return this;
}
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);
result.exists_ = exists_;
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.getExists() != false) {
setExists(other.getExists());
}
onChanged();
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.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 boolean exists_ ;
/**
* optional bool exists = 1;
*/
public boolean getExists() {
return exists_;
}
/**
* optional bool exists = 1;
*/
public Builder setExists(boolean value) {
exists_ = value;
onChanged();
return this;
}
/**
* optional bool exists = 1;
*/
public Builder clearExists() {
exists_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.AccountPresenceResponse)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.AccountPresenceResponse)
private static final com.truward.orion.user.service.model.UserModel.AccountPresenceResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.AccountPresenceResponse();
}
public static com.truward.orion.user.service.model.UserModel.AccountPresenceResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new AccountPresenceResponse(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.AccountPresenceResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RegisterAccountRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:truward.orion.user.RegisterAccountRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string nickname = 1;
*/
java.lang.String getNickname();
/**
* optional string nickname = 1;
*/
com.google.protobuf.ByteString
getNicknameBytes();
/**
* optional string passwordHash = 2;
*/
java.lang.String getPasswordHash();
/**
* optional 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 extends com.truward.orion.user.service.model.UserModel.ContactOrBuilder>
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;
*/
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);
}
private RegisterAccountRequest() {
nickname_ = "";
passwordHash_ = "";
contacts_ = java.util.Collections.emptyList();
authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
invitationToken_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private RegisterAccountRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
nickname_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
passwordHash_ = s;
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: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
authorities_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
authorities_.add(s);
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
invitationToken_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
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();
}
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);
}
private int bitField0_;
public static final int NICKNAME_FIELD_NUMBER = 1;
private volatile java.lang.Object nickname_;
/**
* optional 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();
nickname_ = s;
return s;
}
}
/**
* optional 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 volatile java.lang.Object passwordHash_;
/**
* optional 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();
passwordHash_ = s;
return s;
}
}
/**
* optional 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 extends com.truward.orion.user.service.model.UserModel.ContactOrBuilder>
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 volatile java.lang.Object invitationToken_;
/**
* 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();
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 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 {
if (!getNicknameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, nickname_);
}
if (!getPasswordHashBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, passwordHash_);
}
for (int i = 0; i < contacts_.size(); i++) {
output.writeMessage(3, contacts_.get(i));
}
for (int i = 0; i < authorities_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 4, authorities_.getRaw(i));
}
if (!getInvitationTokenBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, invitationToken_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNicknameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, nickname_);
}
if (!getPasswordHashBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, passwordHash_);
}
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 += computeStringSizeNoTag(authorities_.getRaw(i));
}
size += dataSize;
size += 1 * getAuthoritiesList().size();
}
if (!getInvitationTokenBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(5, invitationToken_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.RegisterAccountRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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();
}
}
public Builder clear() {
super.clear();
nickname_ = "";
passwordHash_ = "";
if (contactsBuilder_ == null) {
contacts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
contactsBuilder_.clear();
}
authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
invitationToken_ = "";
return this;
}
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;
result.nickname_ = nickname_;
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_;
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.getNickname().isEmpty()) {
nickname_ = other.nickname_;
onChanged();
}
if (!other.getPasswordHash().isEmpty()) {
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.getInvitationToken().isEmpty()) {
invitationToken_ = other.invitationToken_;
onChanged();
}
onChanged();
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.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_ = "";
/**
* optional 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();
nickname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string nickname = 1;
*/
public Builder setNickname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nickname_ = value;
onChanged();
return this;
}
/**
* optional string nickname = 1;
*/
public Builder clearNickname() {
nickname_ = getDefaultInstance().getNickname();
onChanged();
return this;
}
/**
* optional string nickname = 1;
*/
public Builder setNicknameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nickname_ = value;
onChanged();
return this;
}
private java.lang.Object passwordHash_ = "";
/**
* optional 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();
passwordHash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string passwordHash = 2;
*/
public Builder setPasswordHash(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
passwordHash_ = value;
onChanged();
return this;
}
/**
* optional string passwordHash = 2;
*/
public Builder clearPasswordHash() {
passwordHash_ = getDefaultInstance().getPasswordHash();
onChanged();
return this;
}
/**
* optional string passwordHash = 2;
*/
public Builder setPasswordHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
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 extends com.truward.orion.user.service.model.UserModel.Contact> 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 extends com.truward.orion.user.service.model.UserModel.ContactOrBuilder>
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();
}
checkByteStringIsUtf8(value);
ensureAuthoritiesIsMutable();
authorities_.add(value);
onChanged();
return this;
}
private java.lang.Object invitationToken_ = "";
/**
* 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();
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();
}
invitationToken_ = value;
onChanged();
return this;
}
/**
* optional string invitationToken = 5;
*/
public Builder clearInvitationToken() {
invitationToken_ = getDefaultInstance().getInvitationToken();
onChanged();
return this;
}
/**
* optional string invitationToken = 5;
*/
public Builder setInvitationTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
invitationToken_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.RegisterAccountRequest)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.RegisterAccountRequest)
private static final com.truward.orion.user.service.model.UserModel.RegisterAccountRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.RegisterAccountRequest();
}
public static com.truward.orion.user.service.model.UserModel.RegisterAccountRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new RegisterAccountRequest(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.RegisterAccountRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RegisterAccountResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:truward.orion.user.RegisterAccountResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional 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);
}
private RegisterAccountResponse() {
userId_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private RegisterAccountResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
userId_ = input.readInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
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 final int USERID_FIELD_NUMBER = 1;
private long userId_;
/**
* optional int64 userId = 1;
*/
public long getUserId() {
return userId_;
}
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 {
if (userId_ != 0L) {
output.writeInt64(1, userId_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (userId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, userId_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.RegisterAccountResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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) {
}
}
public Builder clear() {
super.clear();
userId_ = 0L;
return this;
}
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);
result.userId_ = userId_;
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.getUserId() != 0L) {
setUserId(other.getUserId());
}
onChanged();
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.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 long userId_ ;
/**
* optional int64 userId = 1;
*/
public long getUserId() {
return userId_;
}
/**
* optional int64 userId = 1;
*/
public Builder setUserId(long value) {
userId_ = value;
onChanged();
return this;
}
/**
* optional int64 userId = 1;
*/
public Builder clearUserId() {
userId_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.RegisterAccountResponse)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.RegisterAccountResponse)
private static final com.truward.orion.user.service.model.UserModel.RegisterAccountResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.RegisterAccountResponse();
}
public static com.truward.orion.user.service.model.UserModel.RegisterAccountResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new RegisterAccountResponse(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.RegisterAccountResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateAccountRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:truward.orion.user.UpdateAccountRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional int64 userId = 1;
*/
long getUserId();
/**
* optional string nickname = 2;
*/
java.lang.String getNickname();
/**
* optional string nickname = 2;
*/
com.google.protobuf.ByteString
getNicknameBytes();
/**
* optional string passwordHash = 3;
*
*
* admin only
*
*/
java.lang.String getPasswordHash();
/**
* optional 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 extends com.truward.orion.user.service.model.UserModel.ContactOrBuilder>
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);
/**
* optional 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);
}
private UpdateAccountRequest() {
userId_ = 0L;
nickname_ = "";
passwordHash_ = "";
contacts_ = java.util.Collections.emptyList();
authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
active_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private UpdateAccountRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
userId_ = input.readInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nickname_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
passwordHash_ = s;
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: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
authorities_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
authorities_.add(s);
break;
}
case 48: {
active_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
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();
}
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);
}
private int bitField0_;
public static final int USERID_FIELD_NUMBER = 1;
private long userId_;
/**
* optional int64 userId = 1;
*/
public long getUserId() {
return userId_;
}
public static final int NICKNAME_FIELD_NUMBER = 2;
private volatile java.lang.Object nickname_;
/**
* optional 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();
nickname_ = s;
return s;
}
}
/**
* optional 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 volatile java.lang.Object passwordHash_;
/**
* optional 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();
passwordHash_ = s;
return s;
}
}
/**
* optional 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 extends com.truward.orion.user.service.model.UserModel.ContactOrBuilder>
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_;
/**
* optional bool active = 6;
*
*
* admin only
*
*/
public boolean getActive() {
return active_;
}
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 {
if (userId_ != 0L) {
output.writeInt64(1, userId_);
}
if (!getNicknameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, nickname_);
}
if (!getPasswordHashBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, passwordHash_);
}
for (int i = 0; i < contacts_.size(); i++) {
output.writeMessage(4, contacts_.get(i));
}
for (int i = 0; i < authorities_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, authorities_.getRaw(i));
}
if (active_ != false) {
output.writeBool(6, active_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (userId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, userId_);
}
if (!getNicknameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nickname_);
}
if (!getPasswordHashBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, passwordHash_);
}
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 += computeStringSizeNoTag(authorities_.getRaw(i));
}
size += dataSize;
size += 1 * getAuthoritiesList().size();
}
if (active_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, active_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.UpdateAccountRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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();
}
}
public Builder clear() {
super.clear();
userId_ = 0L;
nickname_ = "";
passwordHash_ = "";
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;
return this;
}
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;
result.userId_ = userId_;
result.nickname_ = nickname_;
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_;
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.getUserId() != 0L) {
setUserId(other.getUserId());
}
if (!other.getNickname().isEmpty()) {
nickname_ = other.nickname_;
onChanged();
}
if (!other.getPasswordHash().isEmpty()) {
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.getActive() != false) {
setActive(other.getActive());
}
onChanged();
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.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_ ;
/**
* optional int64 userId = 1;
*/
public long getUserId() {
return userId_;
}
/**
* optional int64 userId = 1;
*/
public Builder setUserId(long value) {
userId_ = value;
onChanged();
return this;
}
/**
* optional int64 userId = 1;
*/
public Builder clearUserId() {
userId_ = 0L;
onChanged();
return this;
}
private java.lang.Object nickname_ = "";
/**
* optional 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();
nickname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string nickname = 2;
*/
public Builder setNickname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nickname_ = value;
onChanged();
return this;
}
/**
* optional string nickname = 2;
*/
public Builder clearNickname() {
nickname_ = getDefaultInstance().getNickname();
onChanged();
return this;
}
/**
* optional string nickname = 2;
*/
public Builder setNicknameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nickname_ = value;
onChanged();
return this;
}
private java.lang.Object passwordHash_ = "";
/**
* optional 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();
passwordHash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string passwordHash = 3;
*
*
* admin only
*
*/
public Builder setPasswordHash(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
passwordHash_ = value;
onChanged();
return this;
}
/**
* optional string passwordHash = 3;
*
*
* admin only
*
*/
public Builder clearPasswordHash() {
passwordHash_ = getDefaultInstance().getPasswordHash();
onChanged();
return this;
}
/**
* optional string passwordHash = 3;
*
*
* admin only
*
*/
public Builder setPasswordHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
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 extends com.truward.orion.user.service.model.UserModel.Contact> 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 extends com.truward.orion.user.service.model.UserModel.ContactOrBuilder>
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();
}
checkByteStringIsUtf8(value);
ensureAuthoritiesIsMutable();
authorities_.add(value);
onChanged();
return this;
}
private boolean active_ ;
/**
* optional bool active = 6;
*
*
* admin only
*
*/
public boolean getActive() {
return active_;
}
/**
* optional bool active = 6;
*
*
* admin only
*
*/
public Builder setActive(boolean value) {
active_ = value;
onChanged();
return this;
}
/**
* optional bool active = 6;
*
*
* admin only
*
*/
public Builder clearActive() {
active_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.UpdateAccountRequest)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.UpdateAccountRequest)
private static final com.truward.orion.user.service.model.UserModel.UpdateAccountRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.UpdateAccountRequest();
}
public static com.truward.orion.user.service.model.UserModel.UpdateAccountRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new UpdateAccountRequest(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.UpdateAccountRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
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);
}
private UpdateAccountResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private UpdateAccountResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
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);
}
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 {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.UpdateAccountResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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) {
}
}
public Builder clear() {
super.clear();
return this;
}
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;
onChanged();
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;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.UpdateAccountResponse)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.UpdateAccountResponse)
private static final com.truward.orion.user.service.model.UserModel.UpdateAccountResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.UpdateAccountResponse();
}
public static com.truward.orion.user.service.model.UserModel.UpdateAccountResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new UpdateAccountResponse(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.UpdateAccountResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResetPasswordRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:truward.orion.user.ResetPasswordRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional int64 userId = 1;
*/
long getUserId();
/**
* optional string newPasswordHash = 4;
*/
java.lang.String getNewPasswordHash();
/**
* optional 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);
}
private ResetPasswordRequest() {
userId_ = 0L;
newPasswordHash_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ResetPasswordRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
userId_ = input.readInt64();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
newPasswordHash_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
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 final int USERID_FIELD_NUMBER = 1;
private long userId_;
/**
* optional int64 userId = 1;
*/
public long getUserId() {
return userId_;
}
public static final int NEWPASSWORDHASH_FIELD_NUMBER = 4;
private volatile java.lang.Object newPasswordHash_;
/**
* optional 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();
newPasswordHash_ = s;
return s;
}
}
/**
* optional 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 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 {
if (userId_ != 0L) {
output.writeInt64(1, userId_);
}
if (!getNewPasswordHashBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 4, newPasswordHash_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (userId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, userId_);
}
if (!getNewPasswordHashBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(4, newPasswordHash_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.ResetPasswordRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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) {
}
}
public Builder clear() {
super.clear();
userId_ = 0L;
newPasswordHash_ = "";
return this;
}
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);
result.userId_ = userId_;
result.newPasswordHash_ = newPasswordHash_;
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.getUserId() != 0L) {
setUserId(other.getUserId());
}
if (!other.getNewPasswordHash().isEmpty()) {
newPasswordHash_ = other.newPasswordHash_;
onChanged();
}
onChanged();
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.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 long userId_ ;
/**
* optional int64 userId = 1;
*/
public long getUserId() {
return userId_;
}
/**
* optional int64 userId = 1;
*/
public Builder setUserId(long value) {
userId_ = value;
onChanged();
return this;
}
/**
* optional int64 userId = 1;
*/
public Builder clearUserId() {
userId_ = 0L;
onChanged();
return this;
}
private java.lang.Object newPasswordHash_ = "";
/**
* optional 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();
newPasswordHash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string newPasswordHash = 4;
*/
public Builder setNewPasswordHash(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
newPasswordHash_ = value;
onChanged();
return this;
}
/**
* optional string newPasswordHash = 4;
*/
public Builder clearNewPasswordHash() {
newPasswordHash_ = getDefaultInstance().getNewPasswordHash();
onChanged();
return this;
}
/**
* optional string newPasswordHash = 4;
*/
public Builder setNewPasswordHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
newPasswordHash_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.ResetPasswordRequest)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.ResetPasswordRequest)
private static final com.truward.orion.user.service.model.UserModel.ResetPasswordRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.ResetPasswordRequest();
}
public static com.truward.orion.user.service.model.UserModel.ResetPasswordRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new ResetPasswordRequest(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.ResetPasswordRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateInvitationTokensRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:truward.orion.user.CreateInvitationTokensRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional 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?
*
*/
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);
}
private CreateInvitationTokensRequest() {
count_ = 0;
authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
expirationTime_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CreateInvitationTokensRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
count_ = input.readInt32();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
authorities_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
authorities_.add(s);
break;
}
case 24: {
expirationTime_ = input.readInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
authorities_ = authorities_.getUnmodifiableView();
}
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);
}
private int bitField0_;
public static final int COUNT_FIELD_NUMBER = 1;
private int count_;
/**
* optional 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 long getExpirationTime() {
return expirationTime_;
}
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 {
if (count_ != 0) {
output.writeInt32(1, count_);
}
for (int i = 0; i < authorities_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, authorities_.getRaw(i));
}
if (expirationTime_ != 0L) {
output.writeInt64(3, expirationTime_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (count_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, count_);
}
{
int dataSize = 0;
for (int i = 0; i < authorities_.size(); i++) {
dataSize += computeStringSizeNoTag(authorities_.getRaw(i));
}
size += dataSize;
size += 1 * getAuthoritiesList().size();
}
if (expirationTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, expirationTime_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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) {
}
}
public Builder clear() {
super.clear();
count_ = 0;
authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
expirationTime_ = 0L;
return this;
}
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;
result.count_ = count_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
authorities_ = authorities_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.authorities_ = authorities_;
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.getCount() != 0) {
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.getExpirationTime() != 0L) {
setExpirationTime(other.getExpirationTime());
}
onChanged();
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.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_ ;
/**
* optional int32 count = 1;
*/
public int getCount() {
return count_;
}
/**
* optional int32 count = 1;
*/
public Builder setCount(int value) {
count_ = value;
onChanged();
return this;
}
/**
* optional int32 count = 1;
*/
public Builder clearCount() {
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();
}
checkByteStringIsUtf8(value);
ensureAuthoritiesIsMutable();
authorities_.add(value);
onChanged();
return this;
}
private long expirationTime_ ;
/**
* 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) {
expirationTime_ = value;
onChanged();
return this;
}
/**
* optional int64 expirationTime = 3;
*
*
* when this token should expire?
*
*/
public Builder clearExpirationTime() {
expirationTime_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.CreateInvitationTokensRequest)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.CreateInvitationTokensRequest)
private static final com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest();
}
public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new CreateInvitationTokensRequest(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.CreateInvitationTokensRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
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);
}
private CreateInvitationTokensResponse() {
invitationTokens_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CreateInvitationTokensResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
invitationTokens_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
invitationTokens_.add(s);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
invitationTokens_ = invitationTokens_.getUnmodifiableView();
}
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 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 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 {
for (int i = 0; i < invitationTokens_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, invitationTokens_.getRaw(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < invitationTokens_.size(); i++) {
dataSize += computeStringSizeNoTag(invitationTokens_.getRaw(i));
}
size += dataSize;
size += 1 * getInvitationTokensList().size();
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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) {
}
}
public Builder clear() {
super.clear();
invitationTokens_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
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();
}
onChanged();
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();
}
checkByteStringIsUtf8(value);
ensureInvitationTokensIsMutable();
invitationTokens_.add(value);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.CreateInvitationTokensResponse)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.CreateInvitationTokensResponse)
private static final com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse();
}
public static com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new CreateInvitationTokensResponse(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.CreateInvitationTokensResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
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);
}
private DeleteAccountsRequest() {
userIds_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private DeleteAccountsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
userIds_ = java.util.Collections.unmodifiableList(userIds_);
}
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 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 int userIdsMemoizedSerializedSize = -1;
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();
if (getUserIdsList().size() > 0) {
output.writeRawVarint32(10);
output.writeRawVarint32(userIdsMemoizedSerializedSize);
}
for (int i = 0; i < userIds_.size(); i++) {
output.writeInt64NoTag(userIds_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
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;
if (!getUserIdsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
userIdsMemoizedSerializedSize = dataSize;
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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) {
}
}
public Builder clear() {
super.clear();
userIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
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();
}
onChanged();
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 extends java.lang.Long> 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;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.DeleteAccountsRequest)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.DeleteAccountsRequest)
private static final com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest();
}
public static com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new DeleteAccountsRequest(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.DeleteAccountsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
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);
}
private DeleteAccountsResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private DeleteAccountsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
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);
}
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 {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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) {
}
}
public Builder clear() {
super.clear();
return this;
}
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;
onChanged();
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;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.DeleteAccountsResponse)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.DeleteAccountsResponse)
private static final com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse();
}
public static com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new DeleteAccountsResponse(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.DeleteAccountsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
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);
}
private DeactivateUsersWithAuthoritiesRequest() {
authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private DeactivateUsersWithAuthoritiesRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
authorities_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
authorities_.add(s);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
authorities_ = authorities_.getUnmodifiableView();
}
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 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 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 {
for (int i = 0; i < authorities_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, authorities_.getRaw(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < authorities_.size(); i++) {
dataSize += computeStringSizeNoTag(authorities_.getRaw(i));
}
size += dataSize;
size += 1 * getAuthoritiesList().size();
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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) {
}
}
public Builder clear() {
super.clear();
authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
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();
}
onChanged();
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();
}
checkByteStringIsUtf8(value);
ensureAuthoritiesIsMutable();
authorities_.add(value);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.DeactivateUsersWithAuthoritiesRequest)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.DeactivateUsersWithAuthoritiesRequest)
private static final com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest();
}
public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new DeactivateUsersWithAuthoritiesRequest(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
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);
}
private DeactivateUsersWithAuthoritiesResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private DeactivateUsersWithAuthoritiesResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
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);
}
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 {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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) {
}
}
public Builder clear() {
super.clear();
return this;
}
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;
onChanged();
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;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.orion.user.DeactivateUsersWithAuthoritiesResponse)
}
// @@protoc_insertion_point(class_scope:truward.orion.user.DeactivateUsersWithAuthoritiesResponse)
private static final com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse();
}
public static com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final 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 {
try {
return new DeactivateUsersWithAuthoritiesResponse(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.orion.user.service.model.UserModel.DeactivateUsersWithAuthoritiesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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\nuser.proto\022\022truward.orion.user\"H\n\007Cont" +
"act\022\016\n\006number\030\001 \001(\t\022-\n\004type\030\002 \001(\0162\037.truw" +
"ard.orion.user.ContactType\"\246\001\n\013UserAccou" +
"nt\022\n\n\002id\030\001 \001(\003\022\020\n\010nickname\030\002 \001(\t\022\024\n\014pass" +
"wordHash\030\003 \001(\t\022-\n\010contacts\030\004 \003(\0132\033.truwa" +
"rd.orion.user.Contact\022\023\n\013authorities\030\005 \003" +
"(\t\022\017\n\007created\030\006 \001(\003\022\016\n\006active\030\007 \001(\010\"9\n\023L" +
"istAccountsRequest\022\023\n\013offsetToken\030\001 \001(\t\022" +
"\r\n\005limit\030\002 \001(\005\"^\n\024ListAccountsResponse\0221" +
"\n\010accounts\030\001 \003(\0132\037.truward.orion.user.Us",
"erAccount\022\023\n\013offsetToken\030\002 \001(\t\"A\n\024Accoun" +
"tLookupRequest\022\020\n\010username\030\001 \001(\t\022\027\n\017incl" +
"udeContacts\030\002 \001(\010\"I\n\025AccountLookupRespon" +
"se\0220\n\007account\030\001 \001(\0132\037.truward.orion.user" +
".UserAccount\"Y\n\026AccountPresenceRequest\022\020" +
"\n\010nickname\030\001 \001(\t\022-\n\010contacts\030\002 \003(\0132\033.tru" +
"ward.orion.user.Contact\")\n\027AccountPresen" +
"ceResponse\022\016\n\006exists\030\001 \001(\010\"\235\001\n\026RegisterA" +
"ccountRequest\022\020\n\010nickname\030\001 \001(\t\022\024\n\014passw" +
"ordHash\030\002 \001(\t\022-\n\010contacts\030\003 \003(\0132\033.truwar",
"d.orion.user.Contact\022\023\n\013authorities\030\004 \003(" +
"\t\022\027\n\017invitationToken\030\005 \001(\t\")\n\027RegisterAc" +
"countResponse\022\016\n\006userId\030\001 \001(\003\"\242\001\n\024Update" +
"AccountRequest\022\016\n\006userId\030\001 \001(\003\022\020\n\010nickna" +
"me\030\002 \001(\t\022\024\n\014passwordHash\030\003 \001(\t\022-\n\010contac" +
"ts\030\004 \003(\0132\033.truward.orion.user.Contact\022\023\n" +
"\013authorities\030\005 \003(\t\022\016\n\006active\030\006 \001(\010\"\027\n\025Up" +
"dateAccountResponse\"?\n\024ResetPasswordRequ" +
"est\022\016\n\006userId\030\001 \001(\003\022\027\n\017newPasswordHash\030\004" +
" \001(\t\"[\n\035CreateInvitationTokensRequest\022\r\n",
"\005count\030\001 \001(\005\022\023\n\013authorities\030\002 \003(\t\022\026\n\016exp" +
"irationTime\030\003 \001(\003\":\n\036CreateInvitationTok" +
"ensResponse\022\030\n\020invitationTokens\030\001 \003(\t\"(\n" +
"\025DeleteAccountsRequest\022\017\n\007userIds\030\001 \003(\003\"" +
"\030\n\026DeleteAccountsResponse\"<\n%DeactivateU" +
"sersWithAuthoritiesRequest\022\023\n\013authoritie" +
"s\030\001 \003(\t\"(\n&DeactivateUsersWithAuthoritie" +
"sResponse*0\n\013ContactType\022\013\n\007UNKNOWN\020\000\022\t\n" +
"\005PHONE\020\001\022\t\n\005EMAIL\020\002B1\n$com.truward.orion" +
".user.service.modelB\tUserModelb\006proto3"
};
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)
}