com.passkit.grpc.Personal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
SDK for the PassKit gRPC API that can be used to create, configure and manage Membership, Loyalty, Event Ticket, Coupon, Transit and Boarding Pass content for mobile wallet applications, including Apple Pay and Google Pay.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: io/common/personal.proto
package com.passkit.grpc;
public final class Personal {
private Personal() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* Gender, as per government issued id.
*
*
* Protobuf enum {@code io.Gender}
*/
public enum Gender
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Use only where gender is not known
*
*
* NOT_KNOWN = 0;
*/
NOT_KNOWN(0),
/**
*
* Male
*
*
* MALE = 1;
*/
MALE(1),
/**
*
* Female
*
*
* FEMALE = 2;
*/
FEMALE(2),
UNRECOGNIZED(-1),
;
/**
*
* Use only where gender is not known
*
*
* NOT_KNOWN = 0;
*/
public static final int NOT_KNOWN_VALUE = 0;
/**
*
* Male
*
*
* MALE = 1;
*/
public static final int MALE_VALUE = 1;
/**
*
* Female
*
*
* FEMALE = 2;
*/
public static final int FEMALE_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Gender valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Gender forNumber(int value) {
switch (value) {
case 0: return NOT_KNOWN;
case 1: return MALE;
case 2: return FEMALE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Gender> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Gender findValueByNumber(int number) {
return Gender.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.passkit.grpc.Personal.getDescriptor().getEnumTypes().get(0);
}
private static final Gender[] VALUES = values();
public static Gender 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 value;
private Gender(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.Gender)
}
public interface PersonOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Person)
com.google.protobuf.MessageOrBuilder {
/**
*
* Surname / Family name.
*
*
* string surname = 1;
* @return The surname.
*/
java.lang.String getSurname();
/**
*
* Surname / Family name.
*
*
* string surname = 1;
* @return The bytes for surname.
*/
com.google.protobuf.ByteString
getSurnameBytes();
/**
*
* Forename / Given name.
*
*
* string forename = 2;
* @return The forename.
*/
java.lang.String getForename();
/**
*
* Forename / Given name.
*
*
* string forename = 2;
* @return The bytes for forename.
*/
com.google.protobuf.ByteString
getForenameBytes();
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @return A list containing the otherNames.
*/
java.util.List
getOtherNamesList();
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @return The count of otherNames.
*/
int getOtherNamesCount();
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @param index The index of the element to return.
* @return The otherNames at the given index.
*/
java.lang.String getOtherNames(int index);
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @param index The index of the value to return.
* @return The bytes of the otherNames at the given index.
*/
com.google.protobuf.ByteString
getOtherNamesBytes(int index);
/**
*
* Salutation or title.
*
*
* string salutation = 4;
* @return The salutation.
*/
java.lang.String getSalutation();
/**
*
* Salutation or title.
*
*
* string salutation = 4;
* @return The bytes for salutation.
*/
com.google.protobuf.ByteString
getSalutationBytes();
/**
*
* Suffix. For multiple suffixes, separate with spaces.
*
*
* string suffix = 5;
* @return The suffix.
*/
java.lang.String getSuffix();
/**
*
* Suffix. For multiple suffixes, separate with spaces.
*
*
* string suffix = 5;
* @return The bytes for suffix.
*/
com.google.protobuf.ByteString
getSuffixBytes();
/**
*
* If required, a string representing the user's preferred designation.
*
*
* string displayName = 6;
* @return The displayName.
*/
java.lang.String getDisplayName();
/**
*
* If required, a string representing the user's preferred designation.
*
*
* string displayName = 6;
* @return The bytes for displayName.
*/
com.google.protobuf.ByteString
getDisplayNameBytes();
/**
*
* Gender, as per government issued id.
*
*
* .io.Gender gender = 7;
* @return The enum numeric value on the wire for gender.
*/
int getGenderValue();
/**
*
* Gender, as per government issued id.
*
*
* .io.Gender gender = 7;
* @return The gender.
*/
com.passkit.grpc.Personal.Gender getGender();
/**
*
* Date of birth.
*
*
* .io.Date dateOfBirth = 8;
* @return Whether the dateOfBirth field is set.
*/
boolean hasDateOfBirth();
/**
*
* Date of birth.
*
*
* .io.Date dateOfBirth = 8;
* @return The dateOfBirth.
*/
com.passkit.grpc.CommonObjects.Date getDateOfBirth();
/**
*
* Date of birth.
*
*
* .io.Date dateOfBirth = 8;
*/
com.passkit.grpc.CommonObjects.DateOrBuilder getDateOfBirthOrBuilder();
/**
*
* Email address.
*
*
* string emailAddress = 9;
* @return The emailAddress.
*/
java.lang.String getEmailAddress();
/**
*
* Email address.
*
*
* string emailAddress = 9;
* @return The bytes for emailAddress.
*/
com.google.protobuf.ByteString
getEmailAddressBytes();
/**
*
* Telephone number. Enter in the format +{countryCode}{telephoneNumber} with no commas, spaces or other delimiters.
*
*
* string mobileNumber = 10;
* @return The mobileNumber.
*/
java.lang.String getMobileNumber();
/**
*
* Telephone number. Enter in the format +{countryCode}{telephoneNumber} with no commas, spaces or other delimiters.
*
*
* string mobileNumber = 10;
* @return The bytes for mobileNumber.
*/
com.google.protobuf.ByteString
getMobileNumberBytes();
/**
*
* External id. Not editable.
*
*
* string externalId = 11;
* @return The externalId.
*/
java.lang.String getExternalId();
/**
*
* External id. Not editable.
*
*
* string externalId = 11;
* @return The bytes for externalId.
*/
com.google.protobuf.ByteString
getExternalIdBytes();
}
/**
*
* A person represents a single, identifiable individual.
*
*
* Protobuf type {@code io.Person}
*/
public static final class Person extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Person)
PersonOrBuilder {
private static final long serialVersionUID = 0L;
// Use Person.newBuilder() to construct.
private Person(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Person() {
surname_ = "";
forename_ = "";
otherNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
salutation_ = "";
suffix_ = "";
displayName_ = "";
gender_ = 0;
emailAddress_ = "";
mobileNumber_ = "";
externalId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Person();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Person(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
surname_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
forename_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
otherNames_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
otherNames_.add(s);
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
salutation_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
suffix_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
displayName_ = s;
break;
}
case 56: {
int rawValue = input.readEnum();
gender_ = rawValue;
break;
}
case 66: {
com.passkit.grpc.CommonObjects.Date.Builder subBuilder = null;
if (dateOfBirth_ != null) {
subBuilder = dateOfBirth_.toBuilder();
}
dateOfBirth_ = input.readMessage(com.passkit.grpc.CommonObjects.Date.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dateOfBirth_);
dateOfBirth_ = subBuilder.buildPartial();
}
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
emailAddress_ = s;
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
mobileNumber_ = s;
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
externalId_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
otherNames_ = otherNames_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Personal.internal_static_io_Person_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Personal.internal_static_io_Person_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Personal.Person.class, com.passkit.grpc.Personal.Person.Builder.class);
}
public static final int SURNAME_FIELD_NUMBER = 1;
private volatile java.lang.Object surname_;
/**
*
* Surname / Family name.
*
*
* string surname = 1;
* @return The surname.
*/
@java.lang.Override
public java.lang.String getSurname() {
java.lang.Object ref = surname_;
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();
surname_ = s;
return s;
}
}
/**
*
* Surname / Family name.
*
*
* string surname = 1;
* @return The bytes for surname.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSurnameBytes() {
java.lang.Object ref = surname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
surname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FORENAME_FIELD_NUMBER = 2;
private volatile java.lang.Object forename_;
/**
*
* Forename / Given name.
*
*
* string forename = 2;
* @return The forename.
*/
@java.lang.Override
public java.lang.String getForename() {
java.lang.Object ref = forename_;
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();
forename_ = s;
return s;
}
}
/**
*
* Forename / Given name.
*
*
* string forename = 2;
* @return The bytes for forename.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getForenameBytes() {
java.lang.Object ref = forename_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
forename_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OTHERNAMES_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList otherNames_;
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @return A list containing the otherNames.
*/
public com.google.protobuf.ProtocolStringList
getOtherNamesList() {
return otherNames_;
}
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @return The count of otherNames.
*/
public int getOtherNamesCount() {
return otherNames_.size();
}
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @param index The index of the element to return.
* @return The otherNames at the given index.
*/
public java.lang.String getOtherNames(int index) {
return otherNames_.get(index);
}
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @param index The index of the value to return.
* @return The bytes of the otherNames at the given index.
*/
public com.google.protobuf.ByteString
getOtherNamesBytes(int index) {
return otherNames_.getByteString(index);
}
public static final int SALUTATION_FIELD_NUMBER = 4;
private volatile java.lang.Object salutation_;
/**
*
* Salutation or title.
*
*
* string salutation = 4;
* @return The salutation.
*/
@java.lang.Override
public java.lang.String getSalutation() {
java.lang.Object ref = salutation_;
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();
salutation_ = s;
return s;
}
}
/**
*
* Salutation or title.
*
*
* string salutation = 4;
* @return The bytes for salutation.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSalutationBytes() {
java.lang.Object ref = salutation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
salutation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUFFIX_FIELD_NUMBER = 5;
private volatile java.lang.Object suffix_;
/**
*
* Suffix. For multiple suffixes, separate with spaces.
*
*
* string suffix = 5;
* @return The suffix.
*/
@java.lang.Override
public java.lang.String getSuffix() {
java.lang.Object ref = suffix_;
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();
suffix_ = s;
return s;
}
}
/**
*
* Suffix. For multiple suffixes, separate with spaces.
*
*
* string suffix = 5;
* @return The bytes for suffix.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSuffixBytes() {
java.lang.Object ref = suffix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
suffix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISPLAYNAME_FIELD_NUMBER = 6;
private volatile java.lang.Object displayName_;
/**
*
* If required, a string representing the user's preferred designation.
*
*
* string displayName = 6;
* @return The displayName.
*/
@java.lang.Override
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
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();
displayName_ = s;
return s;
}
}
/**
*
* If required, a string representing the user's preferred designation.
*
*
* string displayName = 6;
* @return The bytes for displayName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GENDER_FIELD_NUMBER = 7;
private int gender_;
/**
*
* Gender, as per government issued id.
*
*
* .io.Gender gender = 7;
* @return The enum numeric value on the wire for gender.
*/
@java.lang.Override public int getGenderValue() {
return gender_;
}
/**
*
* Gender, as per government issued id.
*
*
* .io.Gender gender = 7;
* @return The gender.
*/
@java.lang.Override public com.passkit.grpc.Personal.Gender getGender() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Personal.Gender result = com.passkit.grpc.Personal.Gender.valueOf(gender_);
return result == null ? com.passkit.grpc.Personal.Gender.UNRECOGNIZED : result;
}
public static final int DATEOFBIRTH_FIELD_NUMBER = 8;
private com.passkit.grpc.CommonObjects.Date dateOfBirth_;
/**
*
* Date of birth.
*
*
* .io.Date dateOfBirth = 8;
* @return Whether the dateOfBirth field is set.
*/
@java.lang.Override
public boolean hasDateOfBirth() {
return dateOfBirth_ != null;
}
/**
*
* Date of birth.
*
*
* .io.Date dateOfBirth = 8;
* @return The dateOfBirth.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.Date getDateOfBirth() {
return dateOfBirth_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : dateOfBirth_;
}
/**
*
* Date of birth.
*
*
* .io.Date dateOfBirth = 8;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.DateOrBuilder getDateOfBirthOrBuilder() {
return getDateOfBirth();
}
public static final int EMAILADDRESS_FIELD_NUMBER = 9;
private volatile java.lang.Object emailAddress_;
/**
*
* Email address.
*
*
* string emailAddress = 9;
* @return The emailAddress.
*/
@java.lang.Override
public java.lang.String getEmailAddress() {
java.lang.Object ref = emailAddress_;
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();
emailAddress_ = s;
return s;
}
}
/**
*
* Email address.
*
*
* string emailAddress = 9;
* @return The bytes for emailAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEmailAddressBytes() {
java.lang.Object ref = emailAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
emailAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MOBILENUMBER_FIELD_NUMBER = 10;
private volatile java.lang.Object mobileNumber_;
/**
*
* Telephone number. Enter in the format +{countryCode}{telephoneNumber} with no commas, spaces or other delimiters.
*
*
* string mobileNumber = 10;
* @return The mobileNumber.
*/
@java.lang.Override
public java.lang.String getMobileNumber() {
java.lang.Object ref = mobileNumber_;
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();
mobileNumber_ = s;
return s;
}
}
/**
*
* Telephone number. Enter in the format +{countryCode}{telephoneNumber} with no commas, spaces or other delimiters.
*
*
* string mobileNumber = 10;
* @return The bytes for mobileNumber.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMobileNumberBytes() {
java.lang.Object ref = mobileNumber_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mobileNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXTERNALID_FIELD_NUMBER = 11;
private volatile java.lang.Object externalId_;
/**
*
* External id. Not editable.
*
*
* string externalId = 11;
* @return The externalId.
*/
@java.lang.Override
public java.lang.String getExternalId() {
java.lang.Object ref = externalId_;
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();
externalId_ = s;
return s;
}
}
/**
*
* External id. Not editable.
*
*
* string externalId = 11;
* @return The bytes for externalId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExternalIdBytes() {
java.lang.Object ref = externalId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
externalId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getSurnameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, surname_);
}
if (!getForenameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, forename_);
}
for (int i = 0; i < otherNames_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, otherNames_.getRaw(i));
}
if (!getSalutationBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, salutation_);
}
if (!getSuffixBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, suffix_);
}
if (!getDisplayNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_);
}
if (gender_ != com.passkit.grpc.Personal.Gender.NOT_KNOWN.getNumber()) {
output.writeEnum(7, gender_);
}
if (dateOfBirth_ != null) {
output.writeMessage(8, getDateOfBirth());
}
if (!getEmailAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, emailAddress_);
}
if (!getMobileNumberBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, mobileNumber_);
}
if (!getExternalIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, externalId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSurnameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, surname_);
}
if (!getForenameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, forename_);
}
{
int dataSize = 0;
for (int i = 0; i < otherNames_.size(); i++) {
dataSize += computeStringSizeNoTag(otherNames_.getRaw(i));
}
size += dataSize;
size += 1 * getOtherNamesList().size();
}
if (!getSalutationBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, salutation_);
}
if (!getSuffixBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, suffix_);
}
if (!getDisplayNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_);
}
if (gender_ != com.passkit.grpc.Personal.Gender.NOT_KNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, gender_);
}
if (dateOfBirth_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getDateOfBirth());
}
if (!getEmailAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, emailAddress_);
}
if (!getMobileNumberBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, mobileNumber_);
}
if (!getExternalIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, externalId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.passkit.grpc.Personal.Person)) {
return super.equals(obj);
}
com.passkit.grpc.Personal.Person other = (com.passkit.grpc.Personal.Person) obj;
if (!getSurname()
.equals(other.getSurname())) return false;
if (!getForename()
.equals(other.getForename())) return false;
if (!getOtherNamesList()
.equals(other.getOtherNamesList())) return false;
if (!getSalutation()
.equals(other.getSalutation())) return false;
if (!getSuffix()
.equals(other.getSuffix())) return false;
if (!getDisplayName()
.equals(other.getDisplayName())) return false;
if (gender_ != other.gender_) return false;
if (hasDateOfBirth() != other.hasDateOfBirth()) return false;
if (hasDateOfBirth()) {
if (!getDateOfBirth()
.equals(other.getDateOfBirth())) return false;
}
if (!getEmailAddress()
.equals(other.getEmailAddress())) return false;
if (!getMobileNumber()
.equals(other.getMobileNumber())) return false;
if (!getExternalId()
.equals(other.getExternalId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SURNAME_FIELD_NUMBER;
hash = (53 * hash) + getSurname().hashCode();
hash = (37 * hash) + FORENAME_FIELD_NUMBER;
hash = (53 * hash) + getForename().hashCode();
if (getOtherNamesCount() > 0) {
hash = (37 * hash) + OTHERNAMES_FIELD_NUMBER;
hash = (53 * hash) + getOtherNamesList().hashCode();
}
hash = (37 * hash) + SALUTATION_FIELD_NUMBER;
hash = (53 * hash) + getSalutation().hashCode();
hash = (37 * hash) + SUFFIX_FIELD_NUMBER;
hash = (53 * hash) + getSuffix().hashCode();
hash = (37 * hash) + DISPLAYNAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
hash = (37 * hash) + GENDER_FIELD_NUMBER;
hash = (53 * hash) + gender_;
if (hasDateOfBirth()) {
hash = (37 * hash) + DATEOFBIRTH_FIELD_NUMBER;
hash = (53 * hash) + getDateOfBirth().hashCode();
}
hash = (37 * hash) + EMAILADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getEmailAddress().hashCode();
hash = (37 * hash) + MOBILENUMBER_FIELD_NUMBER;
hash = (53 * hash) + getMobileNumber().hashCode();
hash = (37 * hash) + EXTERNALID_FIELD_NUMBER;
hash = (53 * hash) + getExternalId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Personal.Person parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Personal.Person parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Personal.Person parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Personal.Person parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Personal.Person parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Personal.Person parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Personal.Person parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Personal.Person parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.passkit.grpc.Personal.Person parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Personal.Person parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.passkit.grpc.Personal.Person parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Personal.Person parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.passkit.grpc.Personal.Person prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A person represents a single, identifiable individual.
*
*
* Protobuf type {@code io.Person}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Person)
com.passkit.grpc.Personal.PersonOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Personal.internal_static_io_Person_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Personal.internal_static_io_Person_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Personal.Person.class, com.passkit.grpc.Personal.Person.Builder.class);
}
// Construct using com.passkit.grpc.Personal.Person.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
surname_ = "";
forename_ = "";
otherNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
salutation_ = "";
suffix_ = "";
displayName_ = "";
gender_ = 0;
if (dateOfBirthBuilder_ == null) {
dateOfBirth_ = null;
} else {
dateOfBirth_ = null;
dateOfBirthBuilder_ = null;
}
emailAddress_ = "";
mobileNumber_ = "";
externalId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Personal.internal_static_io_Person_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Personal.Person getDefaultInstanceForType() {
return com.passkit.grpc.Personal.Person.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Personal.Person build() {
com.passkit.grpc.Personal.Person result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Personal.Person buildPartial() {
com.passkit.grpc.Personal.Person result = new com.passkit.grpc.Personal.Person(this);
int from_bitField0_ = bitField0_;
result.surname_ = surname_;
result.forename_ = forename_;
if (((bitField0_ & 0x00000001) != 0)) {
otherNames_ = otherNames_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.otherNames_ = otherNames_;
result.salutation_ = salutation_;
result.suffix_ = suffix_;
result.displayName_ = displayName_;
result.gender_ = gender_;
if (dateOfBirthBuilder_ == null) {
result.dateOfBirth_ = dateOfBirth_;
} else {
result.dateOfBirth_ = dateOfBirthBuilder_.build();
}
result.emailAddress_ = emailAddress_;
result.mobileNumber_ = mobileNumber_;
result.externalId_ = externalId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.passkit.grpc.Personal.Person) {
return mergeFrom((com.passkit.grpc.Personal.Person)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Personal.Person other) {
if (other == com.passkit.grpc.Personal.Person.getDefaultInstance()) return this;
if (!other.getSurname().isEmpty()) {
surname_ = other.surname_;
onChanged();
}
if (!other.getForename().isEmpty()) {
forename_ = other.forename_;
onChanged();
}
if (!other.otherNames_.isEmpty()) {
if (otherNames_.isEmpty()) {
otherNames_ = other.otherNames_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOtherNamesIsMutable();
otherNames_.addAll(other.otherNames_);
}
onChanged();
}
if (!other.getSalutation().isEmpty()) {
salutation_ = other.salutation_;
onChanged();
}
if (!other.getSuffix().isEmpty()) {
suffix_ = other.suffix_;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
onChanged();
}
if (other.gender_ != 0) {
setGenderValue(other.getGenderValue());
}
if (other.hasDateOfBirth()) {
mergeDateOfBirth(other.getDateOfBirth());
}
if (!other.getEmailAddress().isEmpty()) {
emailAddress_ = other.emailAddress_;
onChanged();
}
if (!other.getMobileNumber().isEmpty()) {
mobileNumber_ = other.mobileNumber_;
onChanged();
}
if (!other.getExternalId().isEmpty()) {
externalId_ = other.externalId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.passkit.grpc.Personal.Person parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Personal.Person) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object surname_ = "";
/**
*
* Surname / Family name.
*
*
* string surname = 1;
* @return The surname.
*/
public java.lang.String getSurname() {
java.lang.Object ref = surname_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
surname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Surname / Family name.
*
*
* string surname = 1;
* @return The bytes for surname.
*/
public com.google.protobuf.ByteString
getSurnameBytes() {
java.lang.Object ref = surname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
surname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Surname / Family name.
*
*
* string surname = 1;
* @param value The surname to set.
* @return This builder for chaining.
*/
public Builder setSurname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
surname_ = value;
onChanged();
return this;
}
/**
*
* Surname / Family name.
*
*
* string surname = 1;
* @return This builder for chaining.
*/
public Builder clearSurname() {
surname_ = getDefaultInstance().getSurname();
onChanged();
return this;
}
/**
*
* Surname / Family name.
*
*
* string surname = 1;
* @param value The bytes for surname to set.
* @return This builder for chaining.
*/
public Builder setSurnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
surname_ = value;
onChanged();
return this;
}
private java.lang.Object forename_ = "";
/**
*
* Forename / Given name.
*
*
* string forename = 2;
* @return The forename.
*/
public java.lang.String getForename() {
java.lang.Object ref = forename_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
forename_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Forename / Given name.
*
*
* string forename = 2;
* @return The bytes for forename.
*/
public com.google.protobuf.ByteString
getForenameBytes() {
java.lang.Object ref = forename_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
forename_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Forename / Given name.
*
*
* string forename = 2;
* @param value The forename to set.
* @return This builder for chaining.
*/
public Builder setForename(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
forename_ = value;
onChanged();
return this;
}
/**
*
* Forename / Given name.
*
*
* string forename = 2;
* @return This builder for chaining.
*/
public Builder clearForename() {
forename_ = getDefaultInstance().getForename();
onChanged();
return this;
}
/**
*
* Forename / Given name.
*
*
* string forename = 2;
* @param value The bytes for forename to set.
* @return This builder for chaining.
*/
public Builder setForenameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
forename_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList otherNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureOtherNamesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
otherNames_ = new com.google.protobuf.LazyStringArrayList(otherNames_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @return A list containing the otherNames.
*/
public com.google.protobuf.ProtocolStringList
getOtherNamesList() {
return otherNames_.getUnmodifiableView();
}
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @return The count of otherNames.
*/
public int getOtherNamesCount() {
return otherNames_.size();
}
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @param index The index of the element to return.
* @return The otherNames at the given index.
*/
public java.lang.String getOtherNames(int index) {
return otherNames_.get(index);
}
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @param index The index of the value to return.
* @return The bytes of the otherNames at the given index.
*/
public com.google.protobuf.ByteString
getOtherNamesBytes(int index) {
return otherNames_.getByteString(index);
}
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @param index The index to set the value at.
* @param value The otherNames to set.
* @return This builder for chaining.
*/
public Builder setOtherNames(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOtherNamesIsMutable();
otherNames_.set(index, value);
onChanged();
return this;
}
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @param value The otherNames to add.
* @return This builder for chaining.
*/
public Builder addOtherNames(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOtherNamesIsMutable();
otherNames_.add(value);
onChanged();
return this;
}
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @param values The otherNames to add.
* @return This builder for chaining.
*/
public Builder addAllOtherNames(
java.lang.Iterable values) {
ensureOtherNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, otherNames_);
onChanged();
return this;
}
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @return This builder for chaining.
*/
public Builder clearOtherNames() {
otherNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Other names.
*
*
* repeated string otherNames = 3;
* @param value The bytes of the otherNames to add.
* @return This builder for chaining.
*/
public Builder addOtherNamesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureOtherNamesIsMutable();
otherNames_.add(value);
onChanged();
return this;
}
private java.lang.Object salutation_ = "";
/**
*
* Salutation or title.
*
*
* string salutation = 4;
* @return The salutation.
*/
public java.lang.String getSalutation() {
java.lang.Object ref = salutation_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
salutation_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Salutation or title.
*
*
* string salutation = 4;
* @return The bytes for salutation.
*/
public com.google.protobuf.ByteString
getSalutationBytes() {
java.lang.Object ref = salutation_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
salutation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Salutation or title.
*
*
* string salutation = 4;
* @param value The salutation to set.
* @return This builder for chaining.
*/
public Builder setSalutation(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
salutation_ = value;
onChanged();
return this;
}
/**
*
* Salutation or title.
*
*
* string salutation = 4;
* @return This builder for chaining.
*/
public Builder clearSalutation() {
salutation_ = getDefaultInstance().getSalutation();
onChanged();
return this;
}
/**
*
* Salutation or title.
*
*
* string salutation = 4;
* @param value The bytes for salutation to set.
* @return This builder for chaining.
*/
public Builder setSalutationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
salutation_ = value;
onChanged();
return this;
}
private java.lang.Object suffix_ = "";
/**
*
* Suffix. For multiple suffixes, separate with spaces.
*
*
* string suffix = 5;
* @return The suffix.
*/
public java.lang.String getSuffix() {
java.lang.Object ref = suffix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
suffix_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Suffix. For multiple suffixes, separate with spaces.
*
*
* string suffix = 5;
* @return The bytes for suffix.
*/
public com.google.protobuf.ByteString
getSuffixBytes() {
java.lang.Object ref = suffix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
suffix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Suffix. For multiple suffixes, separate with spaces.
*
*
* string suffix = 5;
* @param value The suffix to set.
* @return This builder for chaining.
*/
public Builder setSuffix(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
suffix_ = value;
onChanged();
return this;
}
/**
*
* Suffix. For multiple suffixes, separate with spaces.
*
*
* string suffix = 5;
* @return This builder for chaining.
*/
public Builder clearSuffix() {
suffix_ = getDefaultInstance().getSuffix();
onChanged();
return this;
}
/**
*
* Suffix. For multiple suffixes, separate with spaces.
*
*
* string suffix = 5;
* @param value The bytes for suffix to set.
* @return This builder for chaining.
*/
public Builder setSuffixBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
suffix_ = value;
onChanged();
return this;
}
private java.lang.Object displayName_ = "";
/**
*
* If required, a string representing the user's preferred designation.
*
*
* string displayName = 6;
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If required, a string representing the user's preferred designation.
*
*
* string displayName = 6;
* @return The bytes for displayName.
*/
public com.google.protobuf.ByteString
getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If required, a string representing the user's preferred designation.
*
*
* string displayName = 6;
* @param value The displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
displayName_ = value;
onChanged();
return this;
}
/**
*
* If required, a string representing the user's preferred designation.
*
*
* string displayName = 6;
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
displayName_ = getDefaultInstance().getDisplayName();
onChanged();
return this;
}
/**
*
* If required, a string representing the user's preferred designation.
*
*
* string displayName = 6;
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
displayName_ = value;
onChanged();
return this;
}
private int gender_ = 0;
/**
*
* Gender, as per government issued id.
*
*
* .io.Gender gender = 7;
* @return The enum numeric value on the wire for gender.
*/
@java.lang.Override public int getGenderValue() {
return gender_;
}
/**
*
* Gender, as per government issued id.
*
*
* .io.Gender gender = 7;
* @param value The enum numeric value on the wire for gender to set.
* @return This builder for chaining.
*/
public Builder setGenderValue(int value) {
gender_ = value;
onChanged();
return this;
}
/**
*
* Gender, as per government issued id.
*
*
* .io.Gender gender = 7;
* @return The gender.
*/
@java.lang.Override
public com.passkit.grpc.Personal.Gender getGender() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Personal.Gender result = com.passkit.grpc.Personal.Gender.valueOf(gender_);
return result == null ? com.passkit.grpc.Personal.Gender.UNRECOGNIZED : result;
}
/**
*
* Gender, as per government issued id.
*
*
* .io.Gender gender = 7;
* @param value The gender to set.
* @return This builder for chaining.
*/
public Builder setGender(com.passkit.grpc.Personal.Gender value) {
if (value == null) {
throw new NullPointerException();
}
gender_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Gender, as per government issued id.
*
*
* .io.Gender gender = 7;
* @return This builder for chaining.
*/
public Builder clearGender() {
gender_ = 0;
onChanged();
return this;
}
private com.passkit.grpc.CommonObjects.Date dateOfBirth_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder> dateOfBirthBuilder_;
/**
*
* Date of birth.
*
*
* .io.Date dateOfBirth = 8;
* @return Whether the dateOfBirth field is set.
*/
public boolean hasDateOfBirth() {
return dateOfBirthBuilder_ != null || dateOfBirth_ != null;
}
/**
*
* Date of birth.
*
*
* .io.Date dateOfBirth = 8;
* @return The dateOfBirth.
*/
public com.passkit.grpc.CommonObjects.Date getDateOfBirth() {
if (dateOfBirthBuilder_ == null) {
return dateOfBirth_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : dateOfBirth_;
} else {
return dateOfBirthBuilder_.getMessage();
}
}
/**
*
* Date of birth.
*
*
* .io.Date dateOfBirth = 8;
*/
public Builder setDateOfBirth(com.passkit.grpc.CommonObjects.Date value) {
if (dateOfBirthBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dateOfBirth_ = value;
onChanged();
} else {
dateOfBirthBuilder_.setMessage(value);
}
return this;
}
/**
*
* Date of birth.
*
*
* .io.Date dateOfBirth = 8;
*/
public Builder setDateOfBirth(
com.passkit.grpc.CommonObjects.Date.Builder builderForValue) {
if (dateOfBirthBuilder_ == null) {
dateOfBirth_ = builderForValue.build();
onChanged();
} else {
dateOfBirthBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Date of birth.
*
*
* .io.Date dateOfBirth = 8;
*/
public Builder mergeDateOfBirth(com.passkit.grpc.CommonObjects.Date value) {
if (dateOfBirthBuilder_ == null) {
if (dateOfBirth_ != null) {
dateOfBirth_ =
com.passkit.grpc.CommonObjects.Date.newBuilder(dateOfBirth_).mergeFrom(value).buildPartial();
} else {
dateOfBirth_ = value;
}
onChanged();
} else {
dateOfBirthBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Date of birth.
*
*
* .io.Date dateOfBirth = 8;
*/
public Builder clearDateOfBirth() {
if (dateOfBirthBuilder_ == null) {
dateOfBirth_ = null;
onChanged();
} else {
dateOfBirth_ = null;
dateOfBirthBuilder_ = null;
}
return this;
}
/**
*
* Date of birth.
*
*
* .io.Date dateOfBirth = 8;
*/
public com.passkit.grpc.CommonObjects.Date.Builder getDateOfBirthBuilder() {
onChanged();
return getDateOfBirthFieldBuilder().getBuilder();
}
/**
*
* Date of birth.
*
*
* .io.Date dateOfBirth = 8;
*/
public com.passkit.grpc.CommonObjects.DateOrBuilder getDateOfBirthOrBuilder() {
if (dateOfBirthBuilder_ != null) {
return dateOfBirthBuilder_.getMessageOrBuilder();
} else {
return dateOfBirth_ == null ?
com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : dateOfBirth_;
}
}
/**
*
* Date of birth.
*
*
* .io.Date dateOfBirth = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder>
getDateOfBirthFieldBuilder() {
if (dateOfBirthBuilder_ == null) {
dateOfBirthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder>(
getDateOfBirth(),
getParentForChildren(),
isClean());
dateOfBirth_ = null;
}
return dateOfBirthBuilder_;
}
private java.lang.Object emailAddress_ = "";
/**
*
* Email address.
*
*
* string emailAddress = 9;
* @return The emailAddress.
*/
public java.lang.String getEmailAddress() {
java.lang.Object ref = emailAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
emailAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Email address.
*
*
* string emailAddress = 9;
* @return The bytes for emailAddress.
*/
public com.google.protobuf.ByteString
getEmailAddressBytes() {
java.lang.Object ref = emailAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
emailAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Email address.
*
*
* string emailAddress = 9;
* @param value The emailAddress to set.
* @return This builder for chaining.
*/
public Builder setEmailAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
emailAddress_ = value;
onChanged();
return this;
}
/**
*
* Email address.
*
*
* string emailAddress = 9;
* @return This builder for chaining.
*/
public Builder clearEmailAddress() {
emailAddress_ = getDefaultInstance().getEmailAddress();
onChanged();
return this;
}
/**
*
* Email address.
*
*
* string emailAddress = 9;
* @param value The bytes for emailAddress to set.
* @return This builder for chaining.
*/
public Builder setEmailAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
emailAddress_ = value;
onChanged();
return this;
}
private java.lang.Object mobileNumber_ = "";
/**
*
* Telephone number. Enter in the format +{countryCode}{telephoneNumber} with no commas, spaces or other delimiters.
*
*
* string mobileNumber = 10;
* @return The mobileNumber.
*/
public java.lang.String getMobileNumber() {
java.lang.Object ref = mobileNumber_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
mobileNumber_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Telephone number. Enter in the format +{countryCode}{telephoneNumber} with no commas, spaces or other delimiters.
*
*
* string mobileNumber = 10;
* @return The bytes for mobileNumber.
*/
public com.google.protobuf.ByteString
getMobileNumberBytes() {
java.lang.Object ref = mobileNumber_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mobileNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Telephone number. Enter in the format +{countryCode}{telephoneNumber} with no commas, spaces or other delimiters.
*
*
* string mobileNumber = 10;
* @param value The mobileNumber to set.
* @return This builder for chaining.
*/
public Builder setMobileNumber(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
mobileNumber_ = value;
onChanged();
return this;
}
/**
*
* Telephone number. Enter in the format +{countryCode}{telephoneNumber} with no commas, spaces or other delimiters.
*
*
* string mobileNumber = 10;
* @return This builder for chaining.
*/
public Builder clearMobileNumber() {
mobileNumber_ = getDefaultInstance().getMobileNumber();
onChanged();
return this;
}
/**
*
* Telephone number. Enter in the format +{countryCode}{telephoneNumber} with no commas, spaces or other delimiters.
*
*
* string mobileNumber = 10;
* @param value The bytes for mobileNumber to set.
* @return This builder for chaining.
*/
public Builder setMobileNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
mobileNumber_ = value;
onChanged();
return this;
}
private java.lang.Object externalId_ = "";
/**
*
* External id. Not editable.
*
*
* string externalId = 11;
* @return The externalId.
*/
public java.lang.String getExternalId() {
java.lang.Object ref = externalId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
externalId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* External id. Not editable.
*
*
* string externalId = 11;
* @return The bytes for externalId.
*/
public com.google.protobuf.ByteString
getExternalIdBytes() {
java.lang.Object ref = externalId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
externalId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* External id. Not editable.
*
*
* string externalId = 11;
* @param value The externalId to set.
* @return This builder for chaining.
*/
public Builder setExternalId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
externalId_ = value;
onChanged();
return this;
}
/**
*
* External id. Not editable.
*
*
* string externalId = 11;
* @return This builder for chaining.
*/
public Builder clearExternalId() {
externalId_ = getDefaultInstance().getExternalId();
onChanged();
return this;
}
/**
*
* External id. Not editable.
*
*
* string externalId = 11;
* @param value The bytes for externalId to set.
* @return This builder for chaining.
*/
public Builder setExternalIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
externalId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.Person)
}
// @@protoc_insertion_point(class_scope:io.Person)
private static final com.passkit.grpc.Personal.Person DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Personal.Person();
}
public static com.passkit.grpc.Personal.Person getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Person parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Person(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.passkit.grpc.Personal.Person getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AddressOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Address)
com.google.protobuf.MessageOrBuilder {
/**
* string addressLine1 = 1;
* @return The addressLine1.
*/
java.lang.String getAddressLine1();
/**
* string addressLine1 = 1;
* @return The bytes for addressLine1.
*/
com.google.protobuf.ByteString
getAddressLine1Bytes();
/**
* string addressLine2 = 2;
* @return The addressLine2.
*/
java.lang.String getAddressLine2();
/**
* string addressLine2 = 2;
* @return The bytes for addressLine2.
*/
com.google.protobuf.ByteString
getAddressLine2Bytes();
/**
* string addressLine3 = 3;
* @return The addressLine3.
*/
java.lang.String getAddressLine3();
/**
* string addressLine3 = 3;
* @return The bytes for addressLine3.
*/
com.google.protobuf.ByteString
getAddressLine3Bytes();
/**
* string city = 4;
* @return The city.
*/
java.lang.String getCity();
/**
* string city = 4;
* @return The bytes for city.
*/
com.google.protobuf.ByteString
getCityBytes();
/**
* string state = 5;
* @return The state.
*/
java.lang.String getState();
/**
* string state = 5;
* @return The bytes for state.
*/
com.google.protobuf.ByteString
getStateBytes();
/**
* string zipCode = 6;
* @return The zipCode.
*/
java.lang.String getZipCode();
/**
* string zipCode = 6;
* @return The bytes for zipCode.
*/
com.google.protobuf.ByteString
getZipCodeBytes();
/**
* string countryCode = 7;
* @return The countryCode.
*/
java.lang.String getCountryCode();
/**
* string countryCode = 7;
* @return The bytes for countryCode.
*/
com.google.protobuf.ByteString
getCountryCodeBytes();
}
/**
* Protobuf type {@code io.Address}
*/
public static final class Address extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Address)
AddressOrBuilder {
private static final long serialVersionUID = 0L;
// Use Address.newBuilder() to construct.
private Address(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Address() {
addressLine1_ = "";
addressLine2_ = "";
addressLine3_ = "";
city_ = "";
state_ = "";
zipCode_ = "";
countryCode_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Address();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Address(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
addressLine1_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
addressLine2_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
addressLine3_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
city_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
state_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
zipCode_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
countryCode_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Personal.internal_static_io_Address_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Personal.internal_static_io_Address_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Personal.Address.class, com.passkit.grpc.Personal.Address.Builder.class);
}
public static final int ADDRESSLINE1_FIELD_NUMBER = 1;
private volatile java.lang.Object addressLine1_;
/**
* string addressLine1 = 1;
* @return The addressLine1.
*/
@java.lang.Override
public java.lang.String getAddressLine1() {
java.lang.Object ref = addressLine1_;
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();
addressLine1_ = s;
return s;
}
}
/**
* string addressLine1 = 1;
* @return The bytes for addressLine1.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressLine1Bytes() {
java.lang.Object ref = addressLine1_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
addressLine1_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESSLINE2_FIELD_NUMBER = 2;
private volatile java.lang.Object addressLine2_;
/**
* string addressLine2 = 2;
* @return The addressLine2.
*/
@java.lang.Override
public java.lang.String getAddressLine2() {
java.lang.Object ref = addressLine2_;
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();
addressLine2_ = s;
return s;
}
}
/**
* string addressLine2 = 2;
* @return The bytes for addressLine2.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressLine2Bytes() {
java.lang.Object ref = addressLine2_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
addressLine2_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESSLINE3_FIELD_NUMBER = 3;
private volatile java.lang.Object addressLine3_;
/**
* string addressLine3 = 3;
* @return The addressLine3.
*/
@java.lang.Override
public java.lang.String getAddressLine3() {
java.lang.Object ref = addressLine3_;
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();
addressLine3_ = s;
return s;
}
}
/**
* string addressLine3 = 3;
* @return The bytes for addressLine3.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressLine3Bytes() {
java.lang.Object ref = addressLine3_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
addressLine3_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CITY_FIELD_NUMBER = 4;
private volatile java.lang.Object city_;
/**
* string city = 4;
* @return The city.
*/
@java.lang.Override
public java.lang.String getCity() {
java.lang.Object ref = city_;
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();
city_ = s;
return s;
}
}
/**
* string city = 4;
* @return The bytes for city.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCityBytes() {
java.lang.Object ref = city_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
city_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATE_FIELD_NUMBER = 5;
private volatile java.lang.Object state_;
/**
* string state = 5;
* @return The state.
*/
@java.lang.Override
public java.lang.String getState() {
java.lang.Object ref = state_;
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();
state_ = s;
return s;
}
}
/**
* string state = 5;
* @return The bytes for state.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ZIPCODE_FIELD_NUMBER = 6;
private volatile java.lang.Object zipCode_;
/**
* string zipCode = 6;
* @return The zipCode.
*/
@java.lang.Override
public java.lang.String getZipCode() {
java.lang.Object ref = zipCode_;
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();
zipCode_ = s;
return s;
}
}
/**
* string zipCode = 6;
* @return The bytes for zipCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getZipCodeBytes() {
java.lang.Object ref = zipCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zipCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUNTRYCODE_FIELD_NUMBER = 7;
private volatile java.lang.Object countryCode_;
/**
* string countryCode = 7;
* @return The countryCode.
*/
@java.lang.Override
public java.lang.String getCountryCode() {
java.lang.Object ref = countryCode_;
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();
countryCode_ = s;
return s;
}
}
/**
* string countryCode = 7;
* @return The bytes for countryCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCountryCodeBytes() {
java.lang.Object ref = countryCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getAddressLine1Bytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addressLine1_);
}
if (!getAddressLine2Bytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, addressLine2_);
}
if (!getAddressLine3Bytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, addressLine3_);
}
if (!getCityBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, city_);
}
if (!getStateBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, state_);
}
if (!getZipCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, zipCode_);
}
if (!getCountryCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, countryCode_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getAddressLine1Bytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addressLine1_);
}
if (!getAddressLine2Bytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, addressLine2_);
}
if (!getAddressLine3Bytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, addressLine3_);
}
if (!getCityBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, city_);
}
if (!getStateBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, state_);
}
if (!getZipCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, zipCode_);
}
if (!getCountryCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, countryCode_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.passkit.grpc.Personal.Address)) {
return super.equals(obj);
}
com.passkit.grpc.Personal.Address other = (com.passkit.grpc.Personal.Address) obj;
if (!getAddressLine1()
.equals(other.getAddressLine1())) return false;
if (!getAddressLine2()
.equals(other.getAddressLine2())) return false;
if (!getAddressLine3()
.equals(other.getAddressLine3())) return false;
if (!getCity()
.equals(other.getCity())) return false;
if (!getState()
.equals(other.getState())) return false;
if (!getZipCode()
.equals(other.getZipCode())) return false;
if (!getCountryCode()
.equals(other.getCountryCode())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ADDRESSLINE1_FIELD_NUMBER;
hash = (53 * hash) + getAddressLine1().hashCode();
hash = (37 * hash) + ADDRESSLINE2_FIELD_NUMBER;
hash = (53 * hash) + getAddressLine2().hashCode();
hash = (37 * hash) + ADDRESSLINE3_FIELD_NUMBER;
hash = (53 * hash) + getAddressLine3().hashCode();
hash = (37 * hash) + CITY_FIELD_NUMBER;
hash = (53 * hash) + getCity().hashCode();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + getState().hashCode();
hash = (37 * hash) + ZIPCODE_FIELD_NUMBER;
hash = (53 * hash) + getZipCode().hashCode();
hash = (37 * hash) + COUNTRYCODE_FIELD_NUMBER;
hash = (53 * hash) + getCountryCode().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Personal.Address parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Personal.Address parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Personal.Address parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Personal.Address parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Personal.Address parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Personal.Address parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Personal.Address parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Personal.Address parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.passkit.grpc.Personal.Address parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Personal.Address parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.passkit.grpc.Personal.Address parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Personal.Address parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.passkit.grpc.Personal.Address prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code io.Address}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Address)
com.passkit.grpc.Personal.AddressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Personal.internal_static_io_Address_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Personal.internal_static_io_Address_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Personal.Address.class, com.passkit.grpc.Personal.Address.Builder.class);
}
// Construct using com.passkit.grpc.Personal.Address.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
addressLine1_ = "";
addressLine2_ = "";
addressLine3_ = "";
city_ = "";
state_ = "";
zipCode_ = "";
countryCode_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Personal.internal_static_io_Address_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Personal.Address getDefaultInstanceForType() {
return com.passkit.grpc.Personal.Address.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Personal.Address build() {
com.passkit.grpc.Personal.Address result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Personal.Address buildPartial() {
com.passkit.grpc.Personal.Address result = new com.passkit.grpc.Personal.Address(this);
result.addressLine1_ = addressLine1_;
result.addressLine2_ = addressLine2_;
result.addressLine3_ = addressLine3_;
result.city_ = city_;
result.state_ = state_;
result.zipCode_ = zipCode_;
result.countryCode_ = countryCode_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.passkit.grpc.Personal.Address) {
return mergeFrom((com.passkit.grpc.Personal.Address)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Personal.Address other) {
if (other == com.passkit.grpc.Personal.Address.getDefaultInstance()) return this;
if (!other.getAddressLine1().isEmpty()) {
addressLine1_ = other.addressLine1_;
onChanged();
}
if (!other.getAddressLine2().isEmpty()) {
addressLine2_ = other.addressLine2_;
onChanged();
}
if (!other.getAddressLine3().isEmpty()) {
addressLine3_ = other.addressLine3_;
onChanged();
}
if (!other.getCity().isEmpty()) {
city_ = other.city_;
onChanged();
}
if (!other.getState().isEmpty()) {
state_ = other.state_;
onChanged();
}
if (!other.getZipCode().isEmpty()) {
zipCode_ = other.zipCode_;
onChanged();
}
if (!other.getCountryCode().isEmpty()) {
countryCode_ = other.countryCode_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.passkit.grpc.Personal.Address parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Personal.Address) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object addressLine1_ = "";
/**
* string addressLine1 = 1;
* @return The addressLine1.
*/
public java.lang.String getAddressLine1() {
java.lang.Object ref = addressLine1_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
addressLine1_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string addressLine1 = 1;
* @return The bytes for addressLine1.
*/
public com.google.protobuf.ByteString
getAddressLine1Bytes() {
java.lang.Object ref = addressLine1_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
addressLine1_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string addressLine1 = 1;
* @param value The addressLine1 to set.
* @return This builder for chaining.
*/
public Builder setAddressLine1(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
addressLine1_ = value;
onChanged();
return this;
}
/**
* string addressLine1 = 1;
* @return This builder for chaining.
*/
public Builder clearAddressLine1() {
addressLine1_ = getDefaultInstance().getAddressLine1();
onChanged();
return this;
}
/**
* string addressLine1 = 1;
* @param value The bytes for addressLine1 to set.
* @return This builder for chaining.
*/
public Builder setAddressLine1Bytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
addressLine1_ = value;
onChanged();
return this;
}
private java.lang.Object addressLine2_ = "";
/**
* string addressLine2 = 2;
* @return The addressLine2.
*/
public java.lang.String getAddressLine2() {
java.lang.Object ref = addressLine2_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
addressLine2_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string addressLine2 = 2;
* @return The bytes for addressLine2.
*/
public com.google.protobuf.ByteString
getAddressLine2Bytes() {
java.lang.Object ref = addressLine2_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
addressLine2_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string addressLine2 = 2;
* @param value The addressLine2 to set.
* @return This builder for chaining.
*/
public Builder setAddressLine2(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
addressLine2_ = value;
onChanged();
return this;
}
/**
* string addressLine2 = 2;
* @return This builder for chaining.
*/
public Builder clearAddressLine2() {
addressLine2_ = getDefaultInstance().getAddressLine2();
onChanged();
return this;
}
/**
* string addressLine2 = 2;
* @param value The bytes for addressLine2 to set.
* @return This builder for chaining.
*/
public Builder setAddressLine2Bytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
addressLine2_ = value;
onChanged();
return this;
}
private java.lang.Object addressLine3_ = "";
/**
* string addressLine3 = 3;
* @return The addressLine3.
*/
public java.lang.String getAddressLine3() {
java.lang.Object ref = addressLine3_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
addressLine3_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string addressLine3 = 3;
* @return The bytes for addressLine3.
*/
public com.google.protobuf.ByteString
getAddressLine3Bytes() {
java.lang.Object ref = addressLine3_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
addressLine3_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string addressLine3 = 3;
* @param value The addressLine3 to set.
* @return This builder for chaining.
*/
public Builder setAddressLine3(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
addressLine3_ = value;
onChanged();
return this;
}
/**
* string addressLine3 = 3;
* @return This builder for chaining.
*/
public Builder clearAddressLine3() {
addressLine3_ = getDefaultInstance().getAddressLine3();
onChanged();
return this;
}
/**
* string addressLine3 = 3;
* @param value The bytes for addressLine3 to set.
* @return This builder for chaining.
*/
public Builder setAddressLine3Bytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
addressLine3_ = value;
onChanged();
return this;
}
private java.lang.Object city_ = "";
/**
* string city = 4;
* @return The city.
*/
public java.lang.String getCity() {
java.lang.Object ref = city_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
city_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string city = 4;
* @return The bytes for city.
*/
public com.google.protobuf.ByteString
getCityBytes() {
java.lang.Object ref = city_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
city_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string city = 4;
* @param value The city to set.
* @return This builder for chaining.
*/
public Builder setCity(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
city_ = value;
onChanged();
return this;
}
/**
* string city = 4;
* @return This builder for chaining.
*/
public Builder clearCity() {
city_ = getDefaultInstance().getCity();
onChanged();
return this;
}
/**
* string city = 4;
* @param value The bytes for city to set.
* @return This builder for chaining.
*/
public Builder setCityBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
city_ = value;
onChanged();
return this;
}
private java.lang.Object state_ = "";
/**
* string state = 5;
* @return The state.
*/
public java.lang.String getState() {
java.lang.Object ref = state_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
state_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string state = 5;
* @return The bytes for state.
*/
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string state = 5;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value;
onChanged();
return this;
}
/**
* string state = 5;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = getDefaultInstance().getState();
onChanged();
return this;
}
/**
* string state = 5;
* @param value The bytes for state to set.
* @return This builder for chaining.
*/
public Builder setStateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
state_ = value;
onChanged();
return this;
}
private java.lang.Object zipCode_ = "";
/**
* string zipCode = 6;
* @return The zipCode.
*/
public java.lang.String getZipCode() {
java.lang.Object ref = zipCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zipCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string zipCode = 6;
* @return The bytes for zipCode.
*/
public com.google.protobuf.ByteString
getZipCodeBytes() {
java.lang.Object ref = zipCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zipCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string zipCode = 6;
* @param value The zipCode to set.
* @return This builder for chaining.
*/
public Builder setZipCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
zipCode_ = value;
onChanged();
return this;
}
/**
* string zipCode = 6;
* @return This builder for chaining.
*/
public Builder clearZipCode() {
zipCode_ = getDefaultInstance().getZipCode();
onChanged();
return this;
}
/**
* string zipCode = 6;
* @param value The bytes for zipCode to set.
* @return This builder for chaining.
*/
public Builder setZipCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
zipCode_ = value;
onChanged();
return this;
}
private java.lang.Object countryCode_ = "";
/**
* string countryCode = 7;
* @return The countryCode.
*/
public java.lang.String getCountryCode() {
java.lang.Object ref = countryCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
countryCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string countryCode = 7;
* @return The bytes for countryCode.
*/
public com.google.protobuf.ByteString
getCountryCodeBytes() {
java.lang.Object ref = countryCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string countryCode = 7;
* @param value The countryCode to set.
* @return This builder for chaining.
*/
public Builder setCountryCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
countryCode_ = value;
onChanged();
return this;
}
/**
* string countryCode = 7;
* @return This builder for chaining.
*/
public Builder clearCountryCode() {
countryCode_ = getDefaultInstance().getCountryCode();
onChanged();
return this;
}
/**
* string countryCode = 7;
* @param value The bytes for countryCode to set.
* @return This builder for chaining.
*/
public Builder setCountryCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
countryCode_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.Address)
}
// @@protoc_insertion_point(class_scope:io.Address)
private static final com.passkit.grpc.Personal.Address DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Personal.Address();
}
public static com.passkit.grpc.Personal.Address getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Address parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Address(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.passkit.grpc.Personal.Address getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_Person_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_Person_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_Address_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_Address_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\030io/common/personal.proto\022\002io\032\036io/commo" +
"n/common_objects.proto\"\363\001\n\006Person\022\017\n\007sur" +
"name\030\001 \001(\t\022\020\n\010forename\030\002 \001(\t\022\022\n\notherNam" +
"es\030\003 \003(\t\022\022\n\nsalutation\030\004 \001(\t\022\016\n\006suffix\030\005" +
" \001(\t\022\023\n\013displayName\030\006 \001(\t\022\032\n\006gender\030\007 \001(" +
"\0162\n.io.Gender\022\035\n\013dateOfBirth\030\010 \001(\0132\010.io." +
"Date\022\024\n\014emailAddress\030\t \001(\t\022\024\n\014mobileNumb" +
"er\030\n \001(\t\022\022\n\nexternalId\030\013 \001(\t\"\216\001\n\007Address" +
"\022\024\n\014addressLine1\030\001 \001(\t\022\024\n\014addressLine2\030\002" +
" \001(\t\022\024\n\014addressLine3\030\003 \001(\t\022\014\n\004city\030\004 \001(\t" +
"\022\r\n\005state\030\005 \001(\t\022\017\n\007zipCode\030\006 \001(\t\022\023\n\013coun" +
"tryCode\030\007 \001(\t*-\n\006Gender\022\r\n\tNOT_KNOWN\020\000\022\010" +
"\n\004MALE\020\001\022\n\n\006FEMALE\020\002BG\n\020com.passkit.grpc" +
"Z$stash.passkit.com/io/model/sdk/go/io\252\002" +
"\014PassKit.Grpcb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.passkit.grpc.CommonObjects.getDescriptor(),
});
internal_static_io_Person_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_io_Person_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_Person_descriptor,
new java.lang.String[] { "Surname", "Forename", "OtherNames", "Salutation", "Suffix", "DisplayName", "Gender", "DateOfBirth", "EmailAddress", "MobileNumber", "ExternalId", });
internal_static_io_Address_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_io_Address_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_Address_descriptor,
new java.lang.String[] { "AddressLine1", "AddressLine2", "AddressLine3", "City", "State", "ZipCode", "CountryCode", });
com.passkit.grpc.CommonObjects.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}