com.passkit.grpc.Flights.PassengerOuterClass 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/flights/passenger.proto
package com.passkit.grpc.Flights;
public final class PassengerOuterClass {
private PassengerOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* Type of document used to validate the traveler's identity.
*
*
* Protobuf enum {@code flights.IdentityDocument}
*/
public enum IdentityDocument
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Passport
*
*
* PASSPORT = 0;
*/
PASSPORT(0),
/**
*
* National ID card
*
*
* NATIONAL_ID_CARD = 1;
*/
NATIONAL_ID_CARD(1),
/**
*
* Driving license
*
*
* DRIVING_LICENSE = 2;
*/
DRIVING_LICENSE(2),
/**
*
* Credit card
*
*
* CREDIT_CARD = 3;
*/
CREDIT_CARD(3),
/**
*
* Frequent flyer card
*
*
* FREQUENT_FLYER_CARD = 4;
*/
FREQUENT_FLYER_CARD(4),
/**
*
* Other travel document
*
*
* OTHER_TRAVEL_DOCUMENT = 5;
*/
OTHER_TRAVEL_DOCUMENT(5),
UNRECOGNIZED(-1),
;
/**
*
* Passport
*
*
* PASSPORT = 0;
*/
public static final int PASSPORT_VALUE = 0;
/**
*
* National ID card
*
*
* NATIONAL_ID_CARD = 1;
*/
public static final int NATIONAL_ID_CARD_VALUE = 1;
/**
*
* Driving license
*
*
* DRIVING_LICENSE = 2;
*/
public static final int DRIVING_LICENSE_VALUE = 2;
/**
*
* Credit card
*
*
* CREDIT_CARD = 3;
*/
public static final int CREDIT_CARD_VALUE = 3;
/**
*
* Frequent flyer card
*
*
* FREQUENT_FLYER_CARD = 4;
*/
public static final int FREQUENT_FLYER_CARD_VALUE = 4;
/**
*
* Other travel document
*
*
* OTHER_TRAVEL_DOCUMENT = 5;
*/
public static final int OTHER_TRAVEL_DOCUMENT_VALUE = 5;
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 IdentityDocument 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 IdentityDocument forNumber(int value) {
switch (value) {
case 0: return PASSPORT;
case 1: return NATIONAL_ID_CARD;
case 2: return DRIVING_LICENSE;
case 3: return CREDIT_CARD;
case 4: return FREQUENT_FLYER_CARD;
case 5: return OTHER_TRAVEL_DOCUMENT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
IdentityDocument> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public IdentityDocument findValueByNumber(int number) {
return IdentityDocument.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.Flights.PassengerOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final IdentityDocument[] VALUES = values();
public static IdentityDocument 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 IdentityDocument(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:flights.IdentityDocument)
}
public interface PassengerOrBuilder extends
// @@protoc_insertion_point(interface_extends:flights.Passenger)
com.google.protobuf.MessageOrBuilder {
/**
*
* Personal details of the passenger.
*
*
* .io.Person passengerDetails = 1;
* @return Whether the passengerDetails field is set.
*/
boolean hasPassengerDetails();
/**
*
* Personal details of the passenger.
*
*
* .io.Person passengerDetails = 1;
* @return The passengerDetails.
*/
com.passkit.grpc.Personal.Person getPassengerDetails();
/**
*
* Personal details of the passenger.
*
*
* .io.Person passengerDetails = 1;
*/
com.passkit.grpc.Personal.PersonOrBuilder getPassengerDetailsOrBuilder();
/**
*
* Frequent flyer details for th passenger.
*
*
* .flights.FrequentFlyerInfo frequentFlyerInfo = 2;
* @return Whether the frequentFlyerInfo field is set.
*/
boolean hasFrequentFlyerInfo();
/**
*
* Frequent flyer details for th passenger.
*
*
* .flights.FrequentFlyerInfo frequentFlyerInfo = 2;
* @return The frequentFlyerInfo.
*/
com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo getFrequentFlyerInfo();
/**
*
* Frequent flyer details for th passenger.
*
*
* .flights.FrequentFlyerInfo frequentFlyerInfo = 2;
*/
com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfoOrBuilder getFrequentFlyerInfoOrBuilder();
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 3;
* @return Whether the identityDetails field is set.
*/
boolean hasIdentityDetails();
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 3;
* @return The identityDetails.
*/
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails getIdentityDetails();
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 3;
*/
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetailsOrBuilder getIdentityDetailsOrBuilder();
/**
*
* If the passenger is travelling with an infant under 2 years old, not occupying a seat, set to true.
*
*
* bool withInfant = 4;
* @return The withInfant.
*/
boolean getWithInfant();
/**
*
* Details of the infant travelling with the passenger.
*
*
* .flights.Infant infantDetails = 5;
* @return Whether the infantDetails field is set.
*/
boolean hasInfantDetails();
/**
*
* Details of the infant travelling with the passenger.
*
*
* .flights.Infant infantDetails = 5;
* @return The infantDetails.
*/
com.passkit.grpc.Flights.PassengerOuterClass.Infant getInfantDetails();
/**
*
* Details of the infant travelling with the passenger.
*
*
* .flights.Infant infantDetails = 5;
*/
com.passkit.grpc.Flights.PassengerOuterClass.InfantOrBuilder getInfantDetailsOrBuilder();
/**
*
* If a passenger has a Known Traveler Number (KTN) or trusted traveler number, record it here.
*
*
* string knownTravelerNumber = 7;
* @return The knownTravelerNumber.
*/
java.lang.String getKnownTravelerNumber();
/**
*
* If a passenger has a Known Traveler Number (KTN) or trusted traveler number, record it here.
*
*
* string knownTravelerNumber = 7;
* @return The bytes for knownTravelerNumber.
*/
com.google.protobuf.ByteString
getKnownTravelerNumberBytes();
}
/**
*
* Details of a passenger and any infant.
*
*
* Protobuf type {@code flights.Passenger}
*/
public static final class Passenger extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flights.Passenger)
PassengerOrBuilder {
private static final long serialVersionUID = 0L;
// Use Passenger.newBuilder() to construct.
private Passenger(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Passenger() {
knownTravelerNumber_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Passenger();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Passenger(
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: {
com.passkit.grpc.Personal.Person.Builder subBuilder = null;
if (passengerDetails_ != null) {
subBuilder = passengerDetails_.toBuilder();
}
passengerDetails_ = input.readMessage(com.passkit.grpc.Personal.Person.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(passengerDetails_);
passengerDetails_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.Builder subBuilder = null;
if (frequentFlyerInfo_ != null) {
subBuilder = frequentFlyerInfo_.toBuilder();
}
frequentFlyerInfo_ = input.readMessage(com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(frequentFlyerInfo_);
frequentFlyerInfo_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.Builder subBuilder = null;
if (identityDetails_ != null) {
subBuilder = identityDetails_.toBuilder();
}
identityDetails_ = input.readMessage(com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(identityDetails_);
identityDetails_ = subBuilder.buildPartial();
}
break;
}
case 32: {
withInfant_ = input.readBool();
break;
}
case 42: {
com.passkit.grpc.Flights.PassengerOuterClass.Infant.Builder subBuilder = null;
if (infantDetails_ != null) {
subBuilder = infantDetails_.toBuilder();
}
infantDetails_ = input.readMessage(com.passkit.grpc.Flights.PassengerOuterClass.Infant.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(infantDetails_);
infantDetails_ = subBuilder.buildPartial();
}
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
knownTravelerNumber_ = 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.Flights.PassengerOuterClass.internal_static_flights_Passenger_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.PassengerOuterClass.internal_static_flights_Passenger_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.PassengerOuterClass.Passenger.class, com.passkit.grpc.Flights.PassengerOuterClass.Passenger.Builder.class);
}
public static final int PASSENGERDETAILS_FIELD_NUMBER = 1;
private com.passkit.grpc.Personal.Person passengerDetails_;
/**
*
* Personal details of the passenger.
*
*
* .io.Person passengerDetails = 1;
* @return Whether the passengerDetails field is set.
*/
@java.lang.Override
public boolean hasPassengerDetails() {
return passengerDetails_ != null;
}
/**
*
* Personal details of the passenger.
*
*
* .io.Person passengerDetails = 1;
* @return The passengerDetails.
*/
@java.lang.Override
public com.passkit.grpc.Personal.Person getPassengerDetails() {
return passengerDetails_ == null ? com.passkit.grpc.Personal.Person.getDefaultInstance() : passengerDetails_;
}
/**
*
* Personal details of the passenger.
*
*
* .io.Person passengerDetails = 1;
*/
@java.lang.Override
public com.passkit.grpc.Personal.PersonOrBuilder getPassengerDetailsOrBuilder() {
return getPassengerDetails();
}
public static final int FREQUENTFLYERINFO_FIELD_NUMBER = 2;
private com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo frequentFlyerInfo_;
/**
*
* Frequent flyer details for th passenger.
*
*
* .flights.FrequentFlyerInfo frequentFlyerInfo = 2;
* @return Whether the frequentFlyerInfo field is set.
*/
@java.lang.Override
public boolean hasFrequentFlyerInfo() {
return frequentFlyerInfo_ != null;
}
/**
*
* Frequent flyer details for th passenger.
*
*
* .flights.FrequentFlyerInfo frequentFlyerInfo = 2;
* @return The frequentFlyerInfo.
*/
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo getFrequentFlyerInfo() {
return frequentFlyerInfo_ == null ? com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.getDefaultInstance() : frequentFlyerInfo_;
}
/**
*
* Frequent flyer details for th passenger.
*
*
* .flights.FrequentFlyerInfo frequentFlyerInfo = 2;
*/
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfoOrBuilder getFrequentFlyerInfoOrBuilder() {
return getFrequentFlyerInfo();
}
public static final int IDENTITYDETAILS_FIELD_NUMBER = 3;
private com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails identityDetails_;
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 3;
* @return Whether the identityDetails field is set.
*/
@java.lang.Override
public boolean hasIdentityDetails() {
return identityDetails_ != null;
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 3;
* @return The identityDetails.
*/
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails getIdentityDetails() {
return identityDetails_ == null ? com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.getDefaultInstance() : identityDetails_;
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 3;
*/
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetailsOrBuilder getIdentityDetailsOrBuilder() {
return getIdentityDetails();
}
public static final int WITHINFANT_FIELD_NUMBER = 4;
private boolean withInfant_;
/**
*
* If the passenger is travelling with an infant under 2 years old, not occupying a seat, set to true.
*
*
* bool withInfant = 4;
* @return The withInfant.
*/
@java.lang.Override
public boolean getWithInfant() {
return withInfant_;
}
public static final int INFANTDETAILS_FIELD_NUMBER = 5;
private com.passkit.grpc.Flights.PassengerOuterClass.Infant infantDetails_;
/**
*
* Details of the infant travelling with the passenger.
*
*
* .flights.Infant infantDetails = 5;
* @return Whether the infantDetails field is set.
*/
@java.lang.Override
public boolean hasInfantDetails() {
return infantDetails_ != null;
}
/**
*
* Details of the infant travelling with the passenger.
*
*
* .flights.Infant infantDetails = 5;
* @return The infantDetails.
*/
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.Infant getInfantDetails() {
return infantDetails_ == null ? com.passkit.grpc.Flights.PassengerOuterClass.Infant.getDefaultInstance() : infantDetails_;
}
/**
*
* Details of the infant travelling with the passenger.
*
*
* .flights.Infant infantDetails = 5;
*/
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.InfantOrBuilder getInfantDetailsOrBuilder() {
return getInfantDetails();
}
public static final int KNOWNTRAVELERNUMBER_FIELD_NUMBER = 7;
private volatile java.lang.Object knownTravelerNumber_;
/**
*
* If a passenger has a Known Traveler Number (KTN) or trusted traveler number, record it here.
*
*
* string knownTravelerNumber = 7;
* @return The knownTravelerNumber.
*/
@java.lang.Override
public java.lang.String getKnownTravelerNumber() {
java.lang.Object ref = knownTravelerNumber_;
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();
knownTravelerNumber_ = s;
return s;
}
}
/**
*
* If a passenger has a Known Traveler Number (KTN) or trusted traveler number, record it here.
*
*
* string knownTravelerNumber = 7;
* @return The bytes for knownTravelerNumber.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKnownTravelerNumberBytes() {
java.lang.Object ref = knownTravelerNumber_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
knownTravelerNumber_ = 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 (passengerDetails_ != null) {
output.writeMessage(1, getPassengerDetails());
}
if (frequentFlyerInfo_ != null) {
output.writeMessage(2, getFrequentFlyerInfo());
}
if (identityDetails_ != null) {
output.writeMessage(3, getIdentityDetails());
}
if (withInfant_ != false) {
output.writeBool(4, withInfant_);
}
if (infantDetails_ != null) {
output.writeMessage(5, getInfantDetails());
}
if (!getKnownTravelerNumberBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, knownTravelerNumber_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (passengerDetails_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getPassengerDetails());
}
if (frequentFlyerInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFrequentFlyerInfo());
}
if (identityDetails_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getIdentityDetails());
}
if (withInfant_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, withInfant_);
}
if (infantDetails_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getInfantDetails());
}
if (!getKnownTravelerNumberBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, knownTravelerNumber_);
}
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.Flights.PassengerOuterClass.Passenger)) {
return super.equals(obj);
}
com.passkit.grpc.Flights.PassengerOuterClass.Passenger other = (com.passkit.grpc.Flights.PassengerOuterClass.Passenger) obj;
if (hasPassengerDetails() != other.hasPassengerDetails()) return false;
if (hasPassengerDetails()) {
if (!getPassengerDetails()
.equals(other.getPassengerDetails())) return false;
}
if (hasFrequentFlyerInfo() != other.hasFrequentFlyerInfo()) return false;
if (hasFrequentFlyerInfo()) {
if (!getFrequentFlyerInfo()
.equals(other.getFrequentFlyerInfo())) return false;
}
if (hasIdentityDetails() != other.hasIdentityDetails()) return false;
if (hasIdentityDetails()) {
if (!getIdentityDetails()
.equals(other.getIdentityDetails())) return false;
}
if (getWithInfant()
!= other.getWithInfant()) return false;
if (hasInfantDetails() != other.hasInfantDetails()) return false;
if (hasInfantDetails()) {
if (!getInfantDetails()
.equals(other.getInfantDetails())) return false;
}
if (!getKnownTravelerNumber()
.equals(other.getKnownTravelerNumber())) 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();
if (hasPassengerDetails()) {
hash = (37 * hash) + PASSENGERDETAILS_FIELD_NUMBER;
hash = (53 * hash) + getPassengerDetails().hashCode();
}
if (hasFrequentFlyerInfo()) {
hash = (37 * hash) + FREQUENTFLYERINFO_FIELD_NUMBER;
hash = (53 * hash) + getFrequentFlyerInfo().hashCode();
}
if (hasIdentityDetails()) {
hash = (37 * hash) + IDENTITYDETAILS_FIELD_NUMBER;
hash = (53 * hash) + getIdentityDetails().hashCode();
}
hash = (37 * hash) + WITHINFANT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getWithInfant());
if (hasInfantDetails()) {
hash = (37 * hash) + INFANTDETAILS_FIELD_NUMBER;
hash = (53 * hash) + getInfantDetails().hashCode();
}
hash = (37 * hash) + KNOWNTRAVELERNUMBER_FIELD_NUMBER;
hash = (53 * hash) + getKnownTravelerNumber().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Passenger parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Passenger 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.Flights.PassengerOuterClass.Passenger parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Passenger 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.Flights.PassengerOuterClass.Passenger parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Passenger parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Passenger parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Passenger 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.Flights.PassengerOuterClass.Passenger parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Passenger 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.Flights.PassengerOuterClass.Passenger parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Passenger 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.Flights.PassengerOuterClass.Passenger 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;
}
/**
*
* Details of a passenger and any infant.
*
*
* Protobuf type {@code flights.Passenger}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flights.Passenger)
com.passkit.grpc.Flights.PassengerOuterClass.PassengerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Flights.PassengerOuterClass.internal_static_flights_Passenger_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.PassengerOuterClass.internal_static_flights_Passenger_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.PassengerOuterClass.Passenger.class, com.passkit.grpc.Flights.PassengerOuterClass.Passenger.Builder.class);
}
// Construct using com.passkit.grpc.Flights.PassengerOuterClass.Passenger.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();
if (passengerDetailsBuilder_ == null) {
passengerDetails_ = null;
} else {
passengerDetails_ = null;
passengerDetailsBuilder_ = null;
}
if (frequentFlyerInfoBuilder_ == null) {
frequentFlyerInfo_ = null;
} else {
frequentFlyerInfo_ = null;
frequentFlyerInfoBuilder_ = null;
}
if (identityDetailsBuilder_ == null) {
identityDetails_ = null;
} else {
identityDetails_ = null;
identityDetailsBuilder_ = null;
}
withInfant_ = false;
if (infantDetailsBuilder_ == null) {
infantDetails_ = null;
} else {
infantDetails_ = null;
infantDetailsBuilder_ = null;
}
knownTravelerNumber_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Flights.PassengerOuterClass.internal_static_flights_Passenger_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.Passenger getDefaultInstanceForType() {
return com.passkit.grpc.Flights.PassengerOuterClass.Passenger.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.Passenger build() {
com.passkit.grpc.Flights.PassengerOuterClass.Passenger result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.Passenger buildPartial() {
com.passkit.grpc.Flights.PassengerOuterClass.Passenger result = new com.passkit.grpc.Flights.PassengerOuterClass.Passenger(this);
if (passengerDetailsBuilder_ == null) {
result.passengerDetails_ = passengerDetails_;
} else {
result.passengerDetails_ = passengerDetailsBuilder_.build();
}
if (frequentFlyerInfoBuilder_ == null) {
result.frequentFlyerInfo_ = frequentFlyerInfo_;
} else {
result.frequentFlyerInfo_ = frequentFlyerInfoBuilder_.build();
}
if (identityDetailsBuilder_ == null) {
result.identityDetails_ = identityDetails_;
} else {
result.identityDetails_ = identityDetailsBuilder_.build();
}
result.withInfant_ = withInfant_;
if (infantDetailsBuilder_ == null) {
result.infantDetails_ = infantDetails_;
} else {
result.infantDetails_ = infantDetailsBuilder_.build();
}
result.knownTravelerNumber_ = knownTravelerNumber_;
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.Flights.PassengerOuterClass.Passenger) {
return mergeFrom((com.passkit.grpc.Flights.PassengerOuterClass.Passenger)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Flights.PassengerOuterClass.Passenger other) {
if (other == com.passkit.grpc.Flights.PassengerOuterClass.Passenger.getDefaultInstance()) return this;
if (other.hasPassengerDetails()) {
mergePassengerDetails(other.getPassengerDetails());
}
if (other.hasFrequentFlyerInfo()) {
mergeFrequentFlyerInfo(other.getFrequentFlyerInfo());
}
if (other.hasIdentityDetails()) {
mergeIdentityDetails(other.getIdentityDetails());
}
if (other.getWithInfant() != false) {
setWithInfant(other.getWithInfant());
}
if (other.hasInfantDetails()) {
mergeInfantDetails(other.getInfantDetails());
}
if (!other.getKnownTravelerNumber().isEmpty()) {
knownTravelerNumber_ = other.knownTravelerNumber_;
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.Flights.PassengerOuterClass.Passenger parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Flights.PassengerOuterClass.Passenger) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.passkit.grpc.Personal.Person passengerDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Personal.Person, com.passkit.grpc.Personal.Person.Builder, com.passkit.grpc.Personal.PersonOrBuilder> passengerDetailsBuilder_;
/**
*
* Personal details of the passenger.
*
*
* .io.Person passengerDetails = 1;
* @return Whether the passengerDetails field is set.
*/
public boolean hasPassengerDetails() {
return passengerDetailsBuilder_ != null || passengerDetails_ != null;
}
/**
*
* Personal details of the passenger.
*
*
* .io.Person passengerDetails = 1;
* @return The passengerDetails.
*/
public com.passkit.grpc.Personal.Person getPassengerDetails() {
if (passengerDetailsBuilder_ == null) {
return passengerDetails_ == null ? com.passkit.grpc.Personal.Person.getDefaultInstance() : passengerDetails_;
} else {
return passengerDetailsBuilder_.getMessage();
}
}
/**
*
* Personal details of the passenger.
*
*
* .io.Person passengerDetails = 1;
*/
public Builder setPassengerDetails(com.passkit.grpc.Personal.Person value) {
if (passengerDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
passengerDetails_ = value;
onChanged();
} else {
passengerDetailsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Personal details of the passenger.
*
*
* .io.Person passengerDetails = 1;
*/
public Builder setPassengerDetails(
com.passkit.grpc.Personal.Person.Builder builderForValue) {
if (passengerDetailsBuilder_ == null) {
passengerDetails_ = builderForValue.build();
onChanged();
} else {
passengerDetailsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Personal details of the passenger.
*
*
* .io.Person passengerDetails = 1;
*/
public Builder mergePassengerDetails(com.passkit.grpc.Personal.Person value) {
if (passengerDetailsBuilder_ == null) {
if (passengerDetails_ != null) {
passengerDetails_ =
com.passkit.grpc.Personal.Person.newBuilder(passengerDetails_).mergeFrom(value).buildPartial();
} else {
passengerDetails_ = value;
}
onChanged();
} else {
passengerDetailsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Personal details of the passenger.
*
*
* .io.Person passengerDetails = 1;
*/
public Builder clearPassengerDetails() {
if (passengerDetailsBuilder_ == null) {
passengerDetails_ = null;
onChanged();
} else {
passengerDetails_ = null;
passengerDetailsBuilder_ = null;
}
return this;
}
/**
*
* Personal details of the passenger.
*
*
* .io.Person passengerDetails = 1;
*/
public com.passkit.grpc.Personal.Person.Builder getPassengerDetailsBuilder() {
onChanged();
return getPassengerDetailsFieldBuilder().getBuilder();
}
/**
*
* Personal details of the passenger.
*
*
* .io.Person passengerDetails = 1;
*/
public com.passkit.grpc.Personal.PersonOrBuilder getPassengerDetailsOrBuilder() {
if (passengerDetailsBuilder_ != null) {
return passengerDetailsBuilder_.getMessageOrBuilder();
} else {
return passengerDetails_ == null ?
com.passkit.grpc.Personal.Person.getDefaultInstance() : passengerDetails_;
}
}
/**
*
* Personal details of the passenger.
*
*
* .io.Person passengerDetails = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Personal.Person, com.passkit.grpc.Personal.Person.Builder, com.passkit.grpc.Personal.PersonOrBuilder>
getPassengerDetailsFieldBuilder() {
if (passengerDetailsBuilder_ == null) {
passengerDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Personal.Person, com.passkit.grpc.Personal.Person.Builder, com.passkit.grpc.Personal.PersonOrBuilder>(
getPassengerDetails(),
getParentForChildren(),
isClean());
passengerDetails_ = null;
}
return passengerDetailsBuilder_;
}
private com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo frequentFlyerInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo, com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.Builder, com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfoOrBuilder> frequentFlyerInfoBuilder_;
/**
*
* Frequent flyer details for th passenger.
*
*
* .flights.FrequentFlyerInfo frequentFlyerInfo = 2;
* @return Whether the frequentFlyerInfo field is set.
*/
public boolean hasFrequentFlyerInfo() {
return frequentFlyerInfoBuilder_ != null || frequentFlyerInfo_ != null;
}
/**
*
* Frequent flyer details for th passenger.
*
*
* .flights.FrequentFlyerInfo frequentFlyerInfo = 2;
* @return The frequentFlyerInfo.
*/
public com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo getFrequentFlyerInfo() {
if (frequentFlyerInfoBuilder_ == null) {
return frequentFlyerInfo_ == null ? com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.getDefaultInstance() : frequentFlyerInfo_;
} else {
return frequentFlyerInfoBuilder_.getMessage();
}
}
/**
*
* Frequent flyer details for th passenger.
*
*
* .flights.FrequentFlyerInfo frequentFlyerInfo = 2;
*/
public Builder setFrequentFlyerInfo(com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo value) {
if (frequentFlyerInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
frequentFlyerInfo_ = value;
onChanged();
} else {
frequentFlyerInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* Frequent flyer details for th passenger.
*
*
* .flights.FrequentFlyerInfo frequentFlyerInfo = 2;
*/
public Builder setFrequentFlyerInfo(
com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.Builder builderForValue) {
if (frequentFlyerInfoBuilder_ == null) {
frequentFlyerInfo_ = builderForValue.build();
onChanged();
} else {
frequentFlyerInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Frequent flyer details for th passenger.
*
*
* .flights.FrequentFlyerInfo frequentFlyerInfo = 2;
*/
public Builder mergeFrequentFlyerInfo(com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo value) {
if (frequentFlyerInfoBuilder_ == null) {
if (frequentFlyerInfo_ != null) {
frequentFlyerInfo_ =
com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.newBuilder(frequentFlyerInfo_).mergeFrom(value).buildPartial();
} else {
frequentFlyerInfo_ = value;
}
onChanged();
} else {
frequentFlyerInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Frequent flyer details for th passenger.
*
*
* .flights.FrequentFlyerInfo frequentFlyerInfo = 2;
*/
public Builder clearFrequentFlyerInfo() {
if (frequentFlyerInfoBuilder_ == null) {
frequentFlyerInfo_ = null;
onChanged();
} else {
frequentFlyerInfo_ = null;
frequentFlyerInfoBuilder_ = null;
}
return this;
}
/**
*
* Frequent flyer details for th passenger.
*
*
* .flights.FrequentFlyerInfo frequentFlyerInfo = 2;
*/
public com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.Builder getFrequentFlyerInfoBuilder() {
onChanged();
return getFrequentFlyerInfoFieldBuilder().getBuilder();
}
/**
*
* Frequent flyer details for th passenger.
*
*
* .flights.FrequentFlyerInfo frequentFlyerInfo = 2;
*/
public com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfoOrBuilder getFrequentFlyerInfoOrBuilder() {
if (frequentFlyerInfoBuilder_ != null) {
return frequentFlyerInfoBuilder_.getMessageOrBuilder();
} else {
return frequentFlyerInfo_ == null ?
com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.getDefaultInstance() : frequentFlyerInfo_;
}
}
/**
*
* Frequent flyer details for th passenger.
*
*
* .flights.FrequentFlyerInfo frequentFlyerInfo = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo, com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.Builder, com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfoOrBuilder>
getFrequentFlyerInfoFieldBuilder() {
if (frequentFlyerInfoBuilder_ == null) {
frequentFlyerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo, com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.Builder, com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfoOrBuilder>(
getFrequentFlyerInfo(),
getParentForChildren(),
isClean());
frequentFlyerInfo_ = null;
}
return frequentFlyerInfoBuilder_;
}
private com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails identityDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails, com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.Builder, com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetailsOrBuilder> identityDetailsBuilder_;
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 3;
* @return Whether the identityDetails field is set.
*/
public boolean hasIdentityDetails() {
return identityDetailsBuilder_ != null || identityDetails_ != null;
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 3;
* @return The identityDetails.
*/
public com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails getIdentityDetails() {
if (identityDetailsBuilder_ == null) {
return identityDetails_ == null ? com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.getDefaultInstance() : identityDetails_;
} else {
return identityDetailsBuilder_.getMessage();
}
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 3;
*/
public Builder setIdentityDetails(com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails value) {
if (identityDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identityDetails_ = value;
onChanged();
} else {
identityDetailsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 3;
*/
public Builder setIdentityDetails(
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.Builder builderForValue) {
if (identityDetailsBuilder_ == null) {
identityDetails_ = builderForValue.build();
onChanged();
} else {
identityDetailsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 3;
*/
public Builder mergeIdentityDetails(com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails value) {
if (identityDetailsBuilder_ == null) {
if (identityDetails_ != null) {
identityDetails_ =
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.newBuilder(identityDetails_).mergeFrom(value).buildPartial();
} else {
identityDetails_ = value;
}
onChanged();
} else {
identityDetailsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 3;
*/
public Builder clearIdentityDetails() {
if (identityDetailsBuilder_ == null) {
identityDetails_ = null;
onChanged();
} else {
identityDetails_ = null;
identityDetailsBuilder_ = null;
}
return this;
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 3;
*/
public com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.Builder getIdentityDetailsBuilder() {
onChanged();
return getIdentityDetailsFieldBuilder().getBuilder();
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 3;
*/
public com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetailsOrBuilder getIdentityDetailsOrBuilder() {
if (identityDetailsBuilder_ != null) {
return identityDetailsBuilder_.getMessageOrBuilder();
} else {
return identityDetails_ == null ?
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.getDefaultInstance() : identityDetails_;
}
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails, com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.Builder, com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetailsOrBuilder>
getIdentityDetailsFieldBuilder() {
if (identityDetailsBuilder_ == null) {
identityDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails, com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.Builder, com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetailsOrBuilder>(
getIdentityDetails(),
getParentForChildren(),
isClean());
identityDetails_ = null;
}
return identityDetailsBuilder_;
}
private boolean withInfant_ ;
/**
*
* If the passenger is travelling with an infant under 2 years old, not occupying a seat, set to true.
*
*
* bool withInfant = 4;
* @return The withInfant.
*/
@java.lang.Override
public boolean getWithInfant() {
return withInfant_;
}
/**
*
* If the passenger is travelling with an infant under 2 years old, not occupying a seat, set to true.
*
*
* bool withInfant = 4;
* @param value The withInfant to set.
* @return This builder for chaining.
*/
public Builder setWithInfant(boolean value) {
withInfant_ = value;
onChanged();
return this;
}
/**
*
* If the passenger is travelling with an infant under 2 years old, not occupying a seat, set to true.
*
*
* bool withInfant = 4;
* @return This builder for chaining.
*/
public Builder clearWithInfant() {
withInfant_ = false;
onChanged();
return this;
}
private com.passkit.grpc.Flights.PassengerOuterClass.Infant infantDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.PassengerOuterClass.Infant, com.passkit.grpc.Flights.PassengerOuterClass.Infant.Builder, com.passkit.grpc.Flights.PassengerOuterClass.InfantOrBuilder> infantDetailsBuilder_;
/**
*
* Details of the infant travelling with the passenger.
*
*
* .flights.Infant infantDetails = 5;
* @return Whether the infantDetails field is set.
*/
public boolean hasInfantDetails() {
return infantDetailsBuilder_ != null || infantDetails_ != null;
}
/**
*
* Details of the infant travelling with the passenger.
*
*
* .flights.Infant infantDetails = 5;
* @return The infantDetails.
*/
public com.passkit.grpc.Flights.PassengerOuterClass.Infant getInfantDetails() {
if (infantDetailsBuilder_ == null) {
return infantDetails_ == null ? com.passkit.grpc.Flights.PassengerOuterClass.Infant.getDefaultInstance() : infantDetails_;
} else {
return infantDetailsBuilder_.getMessage();
}
}
/**
*
* Details of the infant travelling with the passenger.
*
*
* .flights.Infant infantDetails = 5;
*/
public Builder setInfantDetails(com.passkit.grpc.Flights.PassengerOuterClass.Infant value) {
if (infantDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
infantDetails_ = value;
onChanged();
} else {
infantDetailsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Details of the infant travelling with the passenger.
*
*
* .flights.Infant infantDetails = 5;
*/
public Builder setInfantDetails(
com.passkit.grpc.Flights.PassengerOuterClass.Infant.Builder builderForValue) {
if (infantDetailsBuilder_ == null) {
infantDetails_ = builderForValue.build();
onChanged();
} else {
infantDetailsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Details of the infant travelling with the passenger.
*
*
* .flights.Infant infantDetails = 5;
*/
public Builder mergeInfantDetails(com.passkit.grpc.Flights.PassengerOuterClass.Infant value) {
if (infantDetailsBuilder_ == null) {
if (infantDetails_ != null) {
infantDetails_ =
com.passkit.grpc.Flights.PassengerOuterClass.Infant.newBuilder(infantDetails_).mergeFrom(value).buildPartial();
} else {
infantDetails_ = value;
}
onChanged();
} else {
infantDetailsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Details of the infant travelling with the passenger.
*
*
* .flights.Infant infantDetails = 5;
*/
public Builder clearInfantDetails() {
if (infantDetailsBuilder_ == null) {
infantDetails_ = null;
onChanged();
} else {
infantDetails_ = null;
infantDetailsBuilder_ = null;
}
return this;
}
/**
*
* Details of the infant travelling with the passenger.
*
*
* .flights.Infant infantDetails = 5;
*/
public com.passkit.grpc.Flights.PassengerOuterClass.Infant.Builder getInfantDetailsBuilder() {
onChanged();
return getInfantDetailsFieldBuilder().getBuilder();
}
/**
*
* Details of the infant travelling with the passenger.
*
*
* .flights.Infant infantDetails = 5;
*/
public com.passkit.grpc.Flights.PassengerOuterClass.InfantOrBuilder getInfantDetailsOrBuilder() {
if (infantDetailsBuilder_ != null) {
return infantDetailsBuilder_.getMessageOrBuilder();
} else {
return infantDetails_ == null ?
com.passkit.grpc.Flights.PassengerOuterClass.Infant.getDefaultInstance() : infantDetails_;
}
}
/**
*
* Details of the infant travelling with the passenger.
*
*
* .flights.Infant infantDetails = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.PassengerOuterClass.Infant, com.passkit.grpc.Flights.PassengerOuterClass.Infant.Builder, com.passkit.grpc.Flights.PassengerOuterClass.InfantOrBuilder>
getInfantDetailsFieldBuilder() {
if (infantDetailsBuilder_ == null) {
infantDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.PassengerOuterClass.Infant, com.passkit.grpc.Flights.PassengerOuterClass.Infant.Builder, com.passkit.grpc.Flights.PassengerOuterClass.InfantOrBuilder>(
getInfantDetails(),
getParentForChildren(),
isClean());
infantDetails_ = null;
}
return infantDetailsBuilder_;
}
private java.lang.Object knownTravelerNumber_ = "";
/**
*
* If a passenger has a Known Traveler Number (KTN) or trusted traveler number, record it here.
*
*
* string knownTravelerNumber = 7;
* @return The knownTravelerNumber.
*/
public java.lang.String getKnownTravelerNumber() {
java.lang.Object ref = knownTravelerNumber_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
knownTravelerNumber_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If a passenger has a Known Traveler Number (KTN) or trusted traveler number, record it here.
*
*
* string knownTravelerNumber = 7;
* @return The bytes for knownTravelerNumber.
*/
public com.google.protobuf.ByteString
getKnownTravelerNumberBytes() {
java.lang.Object ref = knownTravelerNumber_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
knownTravelerNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If a passenger has a Known Traveler Number (KTN) or trusted traveler number, record it here.
*
*
* string knownTravelerNumber = 7;
* @param value The knownTravelerNumber to set.
* @return This builder for chaining.
*/
public Builder setKnownTravelerNumber(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
knownTravelerNumber_ = value;
onChanged();
return this;
}
/**
*
* If a passenger has a Known Traveler Number (KTN) or trusted traveler number, record it here.
*
*
* string knownTravelerNumber = 7;
* @return This builder for chaining.
*/
public Builder clearKnownTravelerNumber() {
knownTravelerNumber_ = getDefaultInstance().getKnownTravelerNumber();
onChanged();
return this;
}
/**
*
* If a passenger has a Known Traveler Number (KTN) or trusted traveler number, record it here.
*
*
* string knownTravelerNumber = 7;
* @param value The bytes for knownTravelerNumber to set.
* @return This builder for chaining.
*/
public Builder setKnownTravelerNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
knownTravelerNumber_ = 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:flights.Passenger)
}
// @@protoc_insertion_point(class_scope:flights.Passenger)
private static final com.passkit.grpc.Flights.PassengerOuterClass.Passenger DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Flights.PassengerOuterClass.Passenger();
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Passenger getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Passenger parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Passenger(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.Flights.PassengerOuterClass.Passenger getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FrequentFlyerInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:flights.FrequentFlyerInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* The the marketing name for the frequent flyer program, e.g. KrisFlyer, Miles & More, Skymiles, etc.
*
*
* string programName = 1;
* @return The programName.
*/
java.lang.String getProgramName();
/**
*
* The the marketing name for the frequent flyer program, e.g. KrisFlyer, Miles & More, Skymiles, etc.
*
*
* string programName = 1;
* @return The bytes for programName.
*/
com.google.protobuf.ByteString
getProgramNameBytes();
/**
*
* The airline designator of the traveler's frequent flyer program.
*
*
* string airlineDesignator = 2;
* @return The airlineDesignator.
*/
java.lang.String getAirlineDesignator();
/**
*
* The airline designator of the traveler's frequent flyer program.
*
*
* string airlineDesignator = 2;
* @return The bytes for airlineDesignator.
*/
com.google.protobuf.ByteString
getAirlineDesignatorBytes();
/**
*
* The traveler frequent flyer number.
*
*
* string number = 3;
* @return The number.
*/
java.lang.String getNumber();
/**
*
* The traveler frequent flyer number.
*
*
* string number = 3;
* @return The bytes for number.
*/
com.google.protobuf.ByteString
getNumberBytes();
/**
*
* An optional code to represent the tier of the traveler, if known. This field may be used to render a tier specific logo on the boarding pass.
*
*
* string tier = 4;
* @return The tier.
*/
java.lang.String getTier();
/**
*
* An optional code to represent the tier of the traveler, if known. This field may be used to render a tier specific logo on the boarding pass.
*
*
* string tier = 4;
* @return The bytes for tier.
*/
com.google.protobuf.ByteString
getTierBytes();
}
/**
*
* Passenger Frequent Flyer information
*
*
* Protobuf type {@code flights.FrequentFlyerInfo}
*/
public static final class FrequentFlyerInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flights.FrequentFlyerInfo)
FrequentFlyerInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use FrequentFlyerInfo.newBuilder() to construct.
private FrequentFlyerInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FrequentFlyerInfo() {
programName_ = "";
airlineDesignator_ = "";
number_ = "";
tier_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FrequentFlyerInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FrequentFlyerInfo(
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();
programName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
airlineDesignator_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
number_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
tier_ = 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.Flights.PassengerOuterClass.internal_static_flights_FrequentFlyerInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.PassengerOuterClass.internal_static_flights_FrequentFlyerInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.class, com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.Builder.class);
}
public static final int PROGRAMNAME_FIELD_NUMBER = 1;
private volatile java.lang.Object programName_;
/**
*
* The the marketing name for the frequent flyer program, e.g. KrisFlyer, Miles & More, Skymiles, etc.
*
*
* string programName = 1;
* @return The programName.
*/
@java.lang.Override
public java.lang.String getProgramName() {
java.lang.Object ref = programName_;
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();
programName_ = s;
return s;
}
}
/**
*
* The the marketing name for the frequent flyer program, e.g. KrisFlyer, Miles & More, Skymiles, etc.
*
*
* string programName = 1;
* @return The bytes for programName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getProgramNameBytes() {
java.lang.Object ref = programName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
programName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AIRLINEDESIGNATOR_FIELD_NUMBER = 2;
private volatile java.lang.Object airlineDesignator_;
/**
*
* The airline designator of the traveler's frequent flyer program.
*
*
* string airlineDesignator = 2;
* @return The airlineDesignator.
*/
@java.lang.Override
public java.lang.String getAirlineDesignator() {
java.lang.Object ref = airlineDesignator_;
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();
airlineDesignator_ = s;
return s;
}
}
/**
*
* The airline designator of the traveler's frequent flyer program.
*
*
* string airlineDesignator = 2;
* @return The bytes for airlineDesignator.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAirlineDesignatorBytes() {
java.lang.Object ref = airlineDesignator_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
airlineDesignator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NUMBER_FIELD_NUMBER = 3;
private volatile java.lang.Object number_;
/**
*
* The traveler frequent flyer number.
*
*
* string number = 3;
* @return The number.
*/
@java.lang.Override
public java.lang.String getNumber() {
java.lang.Object ref = number_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
number_ = s;
return s;
}
}
/**
*
* The traveler frequent flyer number.
*
*
* string number = 3;
* @return The bytes for number.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNumberBytes() {
java.lang.Object ref = number_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
number_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIER_FIELD_NUMBER = 4;
private volatile java.lang.Object tier_;
/**
*
* An optional code to represent the tier of the traveler, if known. This field may be used to render a tier specific logo on the boarding pass.
*
*
* string tier = 4;
* @return The tier.
*/
@java.lang.Override
public java.lang.String getTier() {
java.lang.Object ref = tier_;
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();
tier_ = s;
return s;
}
}
/**
*
* An optional code to represent the tier of the traveler, if known. This field may be used to render a tier specific logo on the boarding pass.
*
*
* string tier = 4;
* @return The bytes for tier.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTierBytes() {
java.lang.Object ref = tier_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tier_ = 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 (!getProgramNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, programName_);
}
if (!getAirlineDesignatorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, airlineDesignator_);
}
if (!getNumberBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, number_);
}
if (!getTierBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tier_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getProgramNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, programName_);
}
if (!getAirlineDesignatorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, airlineDesignator_);
}
if (!getNumberBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, number_);
}
if (!getTierBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, tier_);
}
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.Flights.PassengerOuterClass.FrequentFlyerInfo)) {
return super.equals(obj);
}
com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo other = (com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo) obj;
if (!getProgramName()
.equals(other.getProgramName())) return false;
if (!getAirlineDesignator()
.equals(other.getAirlineDesignator())) return false;
if (!getNumber()
.equals(other.getNumber())) return false;
if (!getTier()
.equals(other.getTier())) 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) + PROGRAMNAME_FIELD_NUMBER;
hash = (53 * hash) + getProgramName().hashCode();
hash = (37 * hash) + AIRLINEDESIGNATOR_FIELD_NUMBER;
hash = (53 * hash) + getAirlineDesignator().hashCode();
hash = (37 * hash) + NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getNumber().hashCode();
hash = (37 * hash) + TIER_FIELD_NUMBER;
hash = (53 * hash) + getTier().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo 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.Flights.PassengerOuterClass.FrequentFlyerInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo 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.Flights.PassengerOuterClass.FrequentFlyerInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo 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.Flights.PassengerOuterClass.FrequentFlyerInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo 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.Flights.PassengerOuterClass.FrequentFlyerInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo 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.Flights.PassengerOuterClass.FrequentFlyerInfo 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;
}
/**
*
* Passenger Frequent Flyer information
*
*
* Protobuf type {@code flights.FrequentFlyerInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flights.FrequentFlyerInfo)
com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Flights.PassengerOuterClass.internal_static_flights_FrequentFlyerInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.PassengerOuterClass.internal_static_flights_FrequentFlyerInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.class, com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.Builder.class);
}
// Construct using com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.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();
programName_ = "";
airlineDesignator_ = "";
number_ = "";
tier_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Flights.PassengerOuterClass.internal_static_flights_FrequentFlyerInfo_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo getDefaultInstanceForType() {
return com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo build() {
com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo buildPartial() {
com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo result = new com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo(this);
result.programName_ = programName_;
result.airlineDesignator_ = airlineDesignator_;
result.number_ = number_;
result.tier_ = tier_;
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.Flights.PassengerOuterClass.FrequentFlyerInfo) {
return mergeFrom((com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo other) {
if (other == com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo.getDefaultInstance()) return this;
if (!other.getProgramName().isEmpty()) {
programName_ = other.programName_;
onChanged();
}
if (!other.getAirlineDesignator().isEmpty()) {
airlineDesignator_ = other.airlineDesignator_;
onChanged();
}
if (!other.getNumber().isEmpty()) {
number_ = other.number_;
onChanged();
}
if (!other.getTier().isEmpty()) {
tier_ = other.tier_;
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.Flights.PassengerOuterClass.FrequentFlyerInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object programName_ = "";
/**
*
* The the marketing name for the frequent flyer program, e.g. KrisFlyer, Miles & More, Skymiles, etc.
*
*
* string programName = 1;
* @return The programName.
*/
public java.lang.String getProgramName() {
java.lang.Object ref = programName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
programName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The the marketing name for the frequent flyer program, e.g. KrisFlyer, Miles & More, Skymiles, etc.
*
*
* string programName = 1;
* @return The bytes for programName.
*/
public com.google.protobuf.ByteString
getProgramNameBytes() {
java.lang.Object ref = programName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
programName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The the marketing name for the frequent flyer program, e.g. KrisFlyer, Miles & More, Skymiles, etc.
*
*
* string programName = 1;
* @param value The programName to set.
* @return This builder for chaining.
*/
public Builder setProgramName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
programName_ = value;
onChanged();
return this;
}
/**
*
* The the marketing name for the frequent flyer program, e.g. KrisFlyer, Miles & More, Skymiles, etc.
*
*
* string programName = 1;
* @return This builder for chaining.
*/
public Builder clearProgramName() {
programName_ = getDefaultInstance().getProgramName();
onChanged();
return this;
}
/**
*
* The the marketing name for the frequent flyer program, e.g. KrisFlyer, Miles & More, Skymiles, etc.
*
*
* string programName = 1;
* @param value The bytes for programName to set.
* @return This builder for chaining.
*/
public Builder setProgramNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
programName_ = value;
onChanged();
return this;
}
private java.lang.Object airlineDesignator_ = "";
/**
*
* The airline designator of the traveler's frequent flyer program.
*
*
* string airlineDesignator = 2;
* @return The airlineDesignator.
*/
public java.lang.String getAirlineDesignator() {
java.lang.Object ref = airlineDesignator_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
airlineDesignator_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The airline designator of the traveler's frequent flyer program.
*
*
* string airlineDesignator = 2;
* @return The bytes for airlineDesignator.
*/
public com.google.protobuf.ByteString
getAirlineDesignatorBytes() {
java.lang.Object ref = airlineDesignator_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
airlineDesignator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The airline designator of the traveler's frequent flyer program.
*
*
* string airlineDesignator = 2;
* @param value The airlineDesignator to set.
* @return This builder for chaining.
*/
public Builder setAirlineDesignator(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
airlineDesignator_ = value;
onChanged();
return this;
}
/**
*
* The airline designator of the traveler's frequent flyer program.
*
*
* string airlineDesignator = 2;
* @return This builder for chaining.
*/
public Builder clearAirlineDesignator() {
airlineDesignator_ = getDefaultInstance().getAirlineDesignator();
onChanged();
return this;
}
/**
*
* The airline designator of the traveler's frequent flyer program.
*
*
* string airlineDesignator = 2;
* @param value The bytes for airlineDesignator to set.
* @return This builder for chaining.
*/
public Builder setAirlineDesignatorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
airlineDesignator_ = value;
onChanged();
return this;
}
private java.lang.Object number_ = "";
/**
*
* The traveler frequent flyer number.
*
*
* string number = 3;
* @return The number.
*/
public java.lang.String getNumber() {
java.lang.Object ref = number_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
number_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The traveler frequent flyer number.
*
*
* string number = 3;
* @return The bytes for number.
*/
public com.google.protobuf.ByteString
getNumberBytes() {
java.lang.Object ref = number_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
number_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The traveler frequent flyer number.
*
*
* string number = 3;
* @param value The number to set.
* @return This builder for chaining.
*/
public Builder setNumber(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
number_ = value;
onChanged();
return this;
}
/**
*
* The traveler frequent flyer number.
*
*
* string number = 3;
* @return This builder for chaining.
*/
public Builder clearNumber() {
number_ = getDefaultInstance().getNumber();
onChanged();
return this;
}
/**
*
* The traveler frequent flyer number.
*
*
* string number = 3;
* @param value The bytes for number to set.
* @return This builder for chaining.
*/
public Builder setNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
number_ = value;
onChanged();
return this;
}
private java.lang.Object tier_ = "";
/**
*
* An optional code to represent the tier of the traveler, if known. This field may be used to render a tier specific logo on the boarding pass.
*
*
* string tier = 4;
* @return The tier.
*/
public java.lang.String getTier() {
java.lang.Object ref = tier_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tier_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* An optional code to represent the tier of the traveler, if known. This field may be used to render a tier specific logo on the boarding pass.
*
*
* string tier = 4;
* @return The bytes for tier.
*/
public com.google.protobuf.ByteString
getTierBytes() {
java.lang.Object ref = tier_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* An optional code to represent the tier of the traveler, if known. This field may be used to render a tier specific logo on the boarding pass.
*
*
* string tier = 4;
* @param value The tier to set.
* @return This builder for chaining.
*/
public Builder setTier(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
tier_ = value;
onChanged();
return this;
}
/**
*
* An optional code to represent the tier of the traveler, if known. This field may be used to render a tier specific logo on the boarding pass.
*
*
* string tier = 4;
* @return This builder for chaining.
*/
public Builder clearTier() {
tier_ = getDefaultInstance().getTier();
onChanged();
return this;
}
/**
*
* An optional code to represent the tier of the traveler, if known. This field may be used to render a tier specific logo on the boarding pass.
*
*
* string tier = 4;
* @param value The bytes for tier to set.
* @return This builder for chaining.
*/
public Builder setTierBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
tier_ = 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:flights.FrequentFlyerInfo)
}
// @@protoc_insertion_point(class_scope:flights.FrequentFlyerInfo)
private static final com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo();
}
public static com.passkit.grpc.Flights.PassengerOuterClass.FrequentFlyerInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FrequentFlyerInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FrequentFlyerInfo(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.Flights.PassengerOuterClass.FrequentFlyerInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IdentityDetailsOrBuilder extends
// @@protoc_insertion_point(interface_extends:flights.IdentityDetails)
com.google.protobuf.MessageOrBuilder {
/**
*
* Type of document used to validate the traveler's identity.
*
*
* .flights.IdentityDocument identityDocument = 1;
* @return The enum numeric value on the wire for identityDocument.
*/
int getIdentityDocumentValue();
/**
*
* Type of document used to validate the traveler's identity.
*
*
* .flights.IdentityDocument identityDocument = 1;
* @return The identityDocument.
*/
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDocument getIdentityDocument();
/**
*
* The two digit ISO 3166 country code of the country of the travel document issuing authority.
*
*
* string issuingCountry = 2;
* @return The issuingCountry.
*/
java.lang.String getIssuingCountry();
/**
*
* The two digit ISO 3166 country code of the country of the travel document issuing authority.
*
*
* string issuingCountry = 2;
* @return The bytes for issuingCountry.
*/
com.google.protobuf.ByteString
getIssuingCountryBytes();
/**
*
* The two digit ISO 3166 country code of the traveler's nationality.
*
*
* string nationality = 3;
* @return The nationality.
*/
java.lang.String getNationality();
/**
*
* The two digit ISO 3166 country code of the traveler's nationality.
*
*
* string nationality = 3;
* @return The bytes for nationality.
*/
com.google.protobuf.ByteString
getNationalityBytes();
/**
*
* The number or other unique identifying reference of the traveler's document.
*
*
* string documentNumber = 4;
* @return The documentNumber.
*/
java.lang.String getDocumentNumber();
/**
*
* The number or other unique identifying reference of the traveler's document.
*
*
* string documentNumber = 4;
* @return The bytes for documentNumber.
*/
com.google.protobuf.ByteString
getDocumentNumberBytes();
/**
*
* The date of birth as marked on the traveler's identity document.
*
*
* .io.Date dateOfBirth = 5;
* @return Whether the dateOfBirth field is set.
*/
boolean hasDateOfBirth();
/**
*
* The date of birth as marked on the traveler's identity document.
*
*
* .io.Date dateOfBirth = 5;
* @return The dateOfBirth.
*/
com.passkit.grpc.CommonObjects.Date getDateOfBirth();
/**
*
* The date of birth as marked on the traveler's identity document.
*
*
* .io.Date dateOfBirth = 5;
*/
com.passkit.grpc.CommonObjects.DateOrBuilder getDateOfBirthOrBuilder();
/**
*
* The gender as marked on the traveler's identity document.
*
*
* .io.Gender gender = 6;
* @return The enum numeric value on the wire for gender.
*/
int getGenderValue();
/**
*
* The gender as marked on the traveler's identity document.
*
*
* .io.Gender gender = 6;
* @return The gender.
*/
com.passkit.grpc.Personal.Gender getGender();
/**
*
* The issue date of the traveler's identity document.
*
*
* .io.Date issuedDate = 7;
* @return Whether the issuedDate field is set.
*/
boolean hasIssuedDate();
/**
*
* The issue date of the traveler's identity document.
*
*
* .io.Date issuedDate = 7;
* @return The issuedDate.
*/
com.passkit.grpc.CommonObjects.Date getIssuedDate();
/**
*
* The issue date of the traveler's identity document.
*
*
* .io.Date issuedDate = 7;
*/
com.passkit.grpc.CommonObjects.DateOrBuilder getIssuedDateOrBuilder();
/**
*
* The expiry date of the traveler's identity document.
*
*
* .io.Date expiryDate = 8;
* @return Whether the expiryDate field is set.
*/
boolean hasExpiryDate();
/**
*
* The expiry date of the traveler's identity document.
*
*
* .io.Date expiryDate = 8;
* @return The expiryDate.
*/
com.passkit.grpc.CommonObjects.Date getExpiryDate();
/**
*
* The expiry date of the traveler's identity document.
*
*
* .io.Date expiryDate = 8;
*/
com.passkit.grpc.CommonObjects.DateOrBuilder getExpiryDateOrBuilder();
}
/**
*
* Details of document used to identify the traveler's identity.
*
*
* Protobuf type {@code flights.IdentityDetails}
*/
public static final class IdentityDetails extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flights.IdentityDetails)
IdentityDetailsOrBuilder {
private static final long serialVersionUID = 0L;
// Use IdentityDetails.newBuilder() to construct.
private IdentityDetails(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IdentityDetails() {
identityDocument_ = 0;
issuingCountry_ = "";
nationality_ = "";
documentNumber_ = "";
gender_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IdentityDetails();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IdentityDetails(
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 8: {
int rawValue = input.readEnum();
identityDocument_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
issuingCountry_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
nationality_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
documentNumber_ = s;
break;
}
case 42: {
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 48: {
int rawValue = input.readEnum();
gender_ = rawValue;
break;
}
case 58: {
com.passkit.grpc.CommonObjects.Date.Builder subBuilder = null;
if (issuedDate_ != null) {
subBuilder = issuedDate_.toBuilder();
}
issuedDate_ = input.readMessage(com.passkit.grpc.CommonObjects.Date.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(issuedDate_);
issuedDate_ = subBuilder.buildPartial();
}
break;
}
case 66: {
com.passkit.grpc.CommonObjects.Date.Builder subBuilder = null;
if (expiryDate_ != null) {
subBuilder = expiryDate_.toBuilder();
}
expiryDate_ = input.readMessage(com.passkit.grpc.CommonObjects.Date.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(expiryDate_);
expiryDate_ = subBuilder.buildPartial();
}
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.Flights.PassengerOuterClass.internal_static_flights_IdentityDetails_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.PassengerOuterClass.internal_static_flights_IdentityDetails_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.class, com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.Builder.class);
}
public static final int IDENTITYDOCUMENT_FIELD_NUMBER = 1;
private int identityDocument_;
/**
*
* Type of document used to validate the traveler's identity.
*
*
* .flights.IdentityDocument identityDocument = 1;
* @return The enum numeric value on the wire for identityDocument.
*/
@java.lang.Override public int getIdentityDocumentValue() {
return identityDocument_;
}
/**
*
* Type of document used to validate the traveler's identity.
*
*
* .flights.IdentityDocument identityDocument = 1;
* @return The identityDocument.
*/
@java.lang.Override public com.passkit.grpc.Flights.PassengerOuterClass.IdentityDocument getIdentityDocument() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDocument result = com.passkit.grpc.Flights.PassengerOuterClass.IdentityDocument.valueOf(identityDocument_);
return result == null ? com.passkit.grpc.Flights.PassengerOuterClass.IdentityDocument.UNRECOGNIZED : result;
}
public static final int ISSUINGCOUNTRY_FIELD_NUMBER = 2;
private volatile java.lang.Object issuingCountry_;
/**
*
* The two digit ISO 3166 country code of the country of the travel document issuing authority.
*
*
* string issuingCountry = 2;
* @return The issuingCountry.
*/
@java.lang.Override
public java.lang.String getIssuingCountry() {
java.lang.Object ref = issuingCountry_;
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();
issuingCountry_ = s;
return s;
}
}
/**
*
* The two digit ISO 3166 country code of the country of the travel document issuing authority.
*
*
* string issuingCountry = 2;
* @return The bytes for issuingCountry.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIssuingCountryBytes() {
java.lang.Object ref = issuingCountry_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
issuingCountry_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NATIONALITY_FIELD_NUMBER = 3;
private volatile java.lang.Object nationality_;
/**
*
* The two digit ISO 3166 country code of the traveler's nationality.
*
*
* string nationality = 3;
* @return The nationality.
*/
@java.lang.Override
public java.lang.String getNationality() {
java.lang.Object ref = nationality_;
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();
nationality_ = s;
return s;
}
}
/**
*
* The two digit ISO 3166 country code of the traveler's nationality.
*
*
* string nationality = 3;
* @return The bytes for nationality.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNationalityBytes() {
java.lang.Object ref = nationality_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nationality_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DOCUMENTNUMBER_FIELD_NUMBER = 4;
private volatile java.lang.Object documentNumber_;
/**
*
* The number or other unique identifying reference of the traveler's document.
*
*
* string documentNumber = 4;
* @return The documentNumber.
*/
@java.lang.Override
public java.lang.String getDocumentNumber() {
java.lang.Object ref = documentNumber_;
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();
documentNumber_ = s;
return s;
}
}
/**
*
* The number or other unique identifying reference of the traveler's document.
*
*
* string documentNumber = 4;
* @return The bytes for documentNumber.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDocumentNumberBytes() {
java.lang.Object ref = documentNumber_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
documentNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATEOFBIRTH_FIELD_NUMBER = 5;
private com.passkit.grpc.CommonObjects.Date dateOfBirth_;
/**
*
* The date of birth as marked on the traveler's identity document.
*
*
* .io.Date dateOfBirth = 5;
* @return Whether the dateOfBirth field is set.
*/
@java.lang.Override
public boolean hasDateOfBirth() {
return dateOfBirth_ != null;
}
/**
*
* The date of birth as marked on the traveler's identity document.
*
*
* .io.Date dateOfBirth = 5;
* @return The dateOfBirth.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.Date getDateOfBirth() {
return dateOfBirth_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : dateOfBirth_;
}
/**
*
* The date of birth as marked on the traveler's identity document.
*
*
* .io.Date dateOfBirth = 5;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.DateOrBuilder getDateOfBirthOrBuilder() {
return getDateOfBirth();
}
public static final int GENDER_FIELD_NUMBER = 6;
private int gender_;
/**
*
* The gender as marked on the traveler's identity document.
*
*
* .io.Gender gender = 6;
* @return The enum numeric value on the wire for gender.
*/
@java.lang.Override public int getGenderValue() {
return gender_;
}
/**
*
* The gender as marked on the traveler's identity document.
*
*
* .io.Gender gender = 6;
* @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 ISSUEDDATE_FIELD_NUMBER = 7;
private com.passkit.grpc.CommonObjects.Date issuedDate_;
/**
*
* The issue date of the traveler's identity document.
*
*
* .io.Date issuedDate = 7;
* @return Whether the issuedDate field is set.
*/
@java.lang.Override
public boolean hasIssuedDate() {
return issuedDate_ != null;
}
/**
*
* The issue date of the traveler's identity document.
*
*
* .io.Date issuedDate = 7;
* @return The issuedDate.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.Date getIssuedDate() {
return issuedDate_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : issuedDate_;
}
/**
*
* The issue date of the traveler's identity document.
*
*
* .io.Date issuedDate = 7;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.DateOrBuilder getIssuedDateOrBuilder() {
return getIssuedDate();
}
public static final int EXPIRYDATE_FIELD_NUMBER = 8;
private com.passkit.grpc.CommonObjects.Date expiryDate_;
/**
*
* The expiry date of the traveler's identity document.
*
*
* .io.Date expiryDate = 8;
* @return Whether the expiryDate field is set.
*/
@java.lang.Override
public boolean hasExpiryDate() {
return expiryDate_ != null;
}
/**
*
* The expiry date of the traveler's identity document.
*
*
* .io.Date expiryDate = 8;
* @return The expiryDate.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.Date getExpiryDate() {
return expiryDate_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : expiryDate_;
}
/**
*
* The expiry date of the traveler's identity document.
*
*
* .io.Date expiryDate = 8;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.DateOrBuilder getExpiryDateOrBuilder() {
return getExpiryDate();
}
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 (identityDocument_ != com.passkit.grpc.Flights.PassengerOuterClass.IdentityDocument.PASSPORT.getNumber()) {
output.writeEnum(1, identityDocument_);
}
if (!getIssuingCountryBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, issuingCountry_);
}
if (!getNationalityBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nationality_);
}
if (!getDocumentNumberBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, documentNumber_);
}
if (dateOfBirth_ != null) {
output.writeMessage(5, getDateOfBirth());
}
if (gender_ != com.passkit.grpc.Personal.Gender.NOT_KNOWN.getNumber()) {
output.writeEnum(6, gender_);
}
if (issuedDate_ != null) {
output.writeMessage(7, getIssuedDate());
}
if (expiryDate_ != null) {
output.writeMessage(8, getExpiryDate());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (identityDocument_ != com.passkit.grpc.Flights.PassengerOuterClass.IdentityDocument.PASSPORT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, identityDocument_);
}
if (!getIssuingCountryBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, issuingCountry_);
}
if (!getNationalityBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nationality_);
}
if (!getDocumentNumberBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, documentNumber_);
}
if (dateOfBirth_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getDateOfBirth());
}
if (gender_ != com.passkit.grpc.Personal.Gender.NOT_KNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, gender_);
}
if (issuedDate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getIssuedDate());
}
if (expiryDate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getExpiryDate());
}
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.Flights.PassengerOuterClass.IdentityDetails)) {
return super.equals(obj);
}
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails other = (com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails) obj;
if (identityDocument_ != other.identityDocument_) return false;
if (!getIssuingCountry()
.equals(other.getIssuingCountry())) return false;
if (!getNationality()
.equals(other.getNationality())) return false;
if (!getDocumentNumber()
.equals(other.getDocumentNumber())) return false;
if (hasDateOfBirth() != other.hasDateOfBirth()) return false;
if (hasDateOfBirth()) {
if (!getDateOfBirth()
.equals(other.getDateOfBirth())) return false;
}
if (gender_ != other.gender_) return false;
if (hasIssuedDate() != other.hasIssuedDate()) return false;
if (hasIssuedDate()) {
if (!getIssuedDate()
.equals(other.getIssuedDate())) return false;
}
if (hasExpiryDate() != other.hasExpiryDate()) return false;
if (hasExpiryDate()) {
if (!getExpiryDate()
.equals(other.getExpiryDate())) 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) + IDENTITYDOCUMENT_FIELD_NUMBER;
hash = (53 * hash) + identityDocument_;
hash = (37 * hash) + ISSUINGCOUNTRY_FIELD_NUMBER;
hash = (53 * hash) + getIssuingCountry().hashCode();
hash = (37 * hash) + NATIONALITY_FIELD_NUMBER;
hash = (53 * hash) + getNationality().hashCode();
hash = (37 * hash) + DOCUMENTNUMBER_FIELD_NUMBER;
hash = (53 * hash) + getDocumentNumber().hashCode();
if (hasDateOfBirth()) {
hash = (37 * hash) + DATEOFBIRTH_FIELD_NUMBER;
hash = (53 * hash) + getDateOfBirth().hashCode();
}
hash = (37 * hash) + GENDER_FIELD_NUMBER;
hash = (53 * hash) + gender_;
if (hasIssuedDate()) {
hash = (37 * hash) + ISSUEDDATE_FIELD_NUMBER;
hash = (53 * hash) + getIssuedDate().hashCode();
}
if (hasExpiryDate()) {
hash = (37 * hash) + EXPIRYDATE_FIELD_NUMBER;
hash = (53 * hash) + getExpiryDate().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails 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.Flights.PassengerOuterClass.IdentityDetails parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails 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.Flights.PassengerOuterClass.IdentityDetails parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails 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.Flights.PassengerOuterClass.IdentityDetails parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails 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.Flights.PassengerOuterClass.IdentityDetails parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails 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.Flights.PassengerOuterClass.IdentityDetails 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;
}
/**
*
* Details of document used to identify the traveler's identity.
*
*
* Protobuf type {@code flights.IdentityDetails}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flights.IdentityDetails)
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetailsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Flights.PassengerOuterClass.internal_static_flights_IdentityDetails_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.PassengerOuterClass.internal_static_flights_IdentityDetails_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.class, com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.Builder.class);
}
// Construct using com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.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();
identityDocument_ = 0;
issuingCountry_ = "";
nationality_ = "";
documentNumber_ = "";
if (dateOfBirthBuilder_ == null) {
dateOfBirth_ = null;
} else {
dateOfBirth_ = null;
dateOfBirthBuilder_ = null;
}
gender_ = 0;
if (issuedDateBuilder_ == null) {
issuedDate_ = null;
} else {
issuedDate_ = null;
issuedDateBuilder_ = null;
}
if (expiryDateBuilder_ == null) {
expiryDate_ = null;
} else {
expiryDate_ = null;
expiryDateBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Flights.PassengerOuterClass.internal_static_flights_IdentityDetails_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails getDefaultInstanceForType() {
return com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails build() {
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails buildPartial() {
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails result = new com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails(this);
result.identityDocument_ = identityDocument_;
result.issuingCountry_ = issuingCountry_;
result.nationality_ = nationality_;
result.documentNumber_ = documentNumber_;
if (dateOfBirthBuilder_ == null) {
result.dateOfBirth_ = dateOfBirth_;
} else {
result.dateOfBirth_ = dateOfBirthBuilder_.build();
}
result.gender_ = gender_;
if (issuedDateBuilder_ == null) {
result.issuedDate_ = issuedDate_;
} else {
result.issuedDate_ = issuedDateBuilder_.build();
}
if (expiryDateBuilder_ == null) {
result.expiryDate_ = expiryDate_;
} else {
result.expiryDate_ = expiryDateBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails) {
return mergeFrom((com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails other) {
if (other == com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.getDefaultInstance()) return this;
if (other.identityDocument_ != 0) {
setIdentityDocumentValue(other.getIdentityDocumentValue());
}
if (!other.getIssuingCountry().isEmpty()) {
issuingCountry_ = other.issuingCountry_;
onChanged();
}
if (!other.getNationality().isEmpty()) {
nationality_ = other.nationality_;
onChanged();
}
if (!other.getDocumentNumber().isEmpty()) {
documentNumber_ = other.documentNumber_;
onChanged();
}
if (other.hasDateOfBirth()) {
mergeDateOfBirth(other.getDateOfBirth());
}
if (other.gender_ != 0) {
setGenderValue(other.getGenderValue());
}
if (other.hasIssuedDate()) {
mergeIssuedDate(other.getIssuedDate());
}
if (other.hasExpiryDate()) {
mergeExpiryDate(other.getExpiryDate());
}
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.Flights.PassengerOuterClass.IdentityDetails parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int identityDocument_ = 0;
/**
*
* Type of document used to validate the traveler's identity.
*
*
* .flights.IdentityDocument identityDocument = 1;
* @return The enum numeric value on the wire for identityDocument.
*/
@java.lang.Override public int getIdentityDocumentValue() {
return identityDocument_;
}
/**
*
* Type of document used to validate the traveler's identity.
*
*
* .flights.IdentityDocument identityDocument = 1;
* @param value The enum numeric value on the wire for identityDocument to set.
* @return This builder for chaining.
*/
public Builder setIdentityDocumentValue(int value) {
identityDocument_ = value;
onChanged();
return this;
}
/**
*
* Type of document used to validate the traveler's identity.
*
*
* .flights.IdentityDocument identityDocument = 1;
* @return The identityDocument.
*/
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.IdentityDocument getIdentityDocument() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDocument result = com.passkit.grpc.Flights.PassengerOuterClass.IdentityDocument.valueOf(identityDocument_);
return result == null ? com.passkit.grpc.Flights.PassengerOuterClass.IdentityDocument.UNRECOGNIZED : result;
}
/**
*
* Type of document used to validate the traveler's identity.
*
*
* .flights.IdentityDocument identityDocument = 1;
* @param value The identityDocument to set.
* @return This builder for chaining.
*/
public Builder setIdentityDocument(com.passkit.grpc.Flights.PassengerOuterClass.IdentityDocument value) {
if (value == null) {
throw new NullPointerException();
}
identityDocument_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Type of document used to validate the traveler's identity.
*
*
* .flights.IdentityDocument identityDocument = 1;
* @return This builder for chaining.
*/
public Builder clearIdentityDocument() {
identityDocument_ = 0;
onChanged();
return this;
}
private java.lang.Object issuingCountry_ = "";
/**
*
* The two digit ISO 3166 country code of the country of the travel document issuing authority.
*
*
* string issuingCountry = 2;
* @return The issuingCountry.
*/
public java.lang.String getIssuingCountry() {
java.lang.Object ref = issuingCountry_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
issuingCountry_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The two digit ISO 3166 country code of the country of the travel document issuing authority.
*
*
* string issuingCountry = 2;
* @return The bytes for issuingCountry.
*/
public com.google.protobuf.ByteString
getIssuingCountryBytes() {
java.lang.Object ref = issuingCountry_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
issuingCountry_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The two digit ISO 3166 country code of the country of the travel document issuing authority.
*
*
* string issuingCountry = 2;
* @param value The issuingCountry to set.
* @return This builder for chaining.
*/
public Builder setIssuingCountry(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
issuingCountry_ = value;
onChanged();
return this;
}
/**
*
* The two digit ISO 3166 country code of the country of the travel document issuing authority.
*
*
* string issuingCountry = 2;
* @return This builder for chaining.
*/
public Builder clearIssuingCountry() {
issuingCountry_ = getDefaultInstance().getIssuingCountry();
onChanged();
return this;
}
/**
*
* The two digit ISO 3166 country code of the country of the travel document issuing authority.
*
*
* string issuingCountry = 2;
* @param value The bytes for issuingCountry to set.
* @return This builder for chaining.
*/
public Builder setIssuingCountryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
issuingCountry_ = value;
onChanged();
return this;
}
private java.lang.Object nationality_ = "";
/**
*
* The two digit ISO 3166 country code of the traveler's nationality.
*
*
* string nationality = 3;
* @return The nationality.
*/
public java.lang.String getNationality() {
java.lang.Object ref = nationality_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nationality_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The two digit ISO 3166 country code of the traveler's nationality.
*
*
* string nationality = 3;
* @return The bytes for nationality.
*/
public com.google.protobuf.ByteString
getNationalityBytes() {
java.lang.Object ref = nationality_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nationality_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The two digit ISO 3166 country code of the traveler's nationality.
*
*
* string nationality = 3;
* @param value The nationality to set.
* @return This builder for chaining.
*/
public Builder setNationality(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nationality_ = value;
onChanged();
return this;
}
/**
*
* The two digit ISO 3166 country code of the traveler's nationality.
*
*
* string nationality = 3;
* @return This builder for chaining.
*/
public Builder clearNationality() {
nationality_ = getDefaultInstance().getNationality();
onChanged();
return this;
}
/**
*
* The two digit ISO 3166 country code of the traveler's nationality.
*
*
* string nationality = 3;
* @param value The bytes for nationality to set.
* @return This builder for chaining.
*/
public Builder setNationalityBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nationality_ = value;
onChanged();
return this;
}
private java.lang.Object documentNumber_ = "";
/**
*
* The number or other unique identifying reference of the traveler's document.
*
*
* string documentNumber = 4;
* @return The documentNumber.
*/
public java.lang.String getDocumentNumber() {
java.lang.Object ref = documentNumber_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
documentNumber_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The number or other unique identifying reference of the traveler's document.
*
*
* string documentNumber = 4;
* @return The bytes for documentNumber.
*/
public com.google.protobuf.ByteString
getDocumentNumberBytes() {
java.lang.Object ref = documentNumber_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
documentNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The number or other unique identifying reference of the traveler's document.
*
*
* string documentNumber = 4;
* @param value The documentNumber to set.
* @return This builder for chaining.
*/
public Builder setDocumentNumber(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
documentNumber_ = value;
onChanged();
return this;
}
/**
*
* The number or other unique identifying reference of the traveler's document.
*
*
* string documentNumber = 4;
* @return This builder for chaining.
*/
public Builder clearDocumentNumber() {
documentNumber_ = getDefaultInstance().getDocumentNumber();
onChanged();
return this;
}
/**
*
* The number or other unique identifying reference of the traveler's document.
*
*
* string documentNumber = 4;
* @param value The bytes for documentNumber to set.
* @return This builder for chaining.
*/
public Builder setDocumentNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
documentNumber_ = value;
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_;
/**
*
* The date of birth as marked on the traveler's identity document.
*
*
* .io.Date dateOfBirth = 5;
* @return Whether the dateOfBirth field is set.
*/
public boolean hasDateOfBirth() {
return dateOfBirthBuilder_ != null || dateOfBirth_ != null;
}
/**
*
* The date of birth as marked on the traveler's identity document.
*
*
* .io.Date dateOfBirth = 5;
* @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();
}
}
/**
*
* The date of birth as marked on the traveler's identity document.
*
*
* .io.Date dateOfBirth = 5;
*/
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;
}
/**
*
* The date of birth as marked on the traveler's identity document.
*
*
* .io.Date dateOfBirth = 5;
*/
public Builder setDateOfBirth(
com.passkit.grpc.CommonObjects.Date.Builder builderForValue) {
if (dateOfBirthBuilder_ == null) {
dateOfBirth_ = builderForValue.build();
onChanged();
} else {
dateOfBirthBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The date of birth as marked on the traveler's identity document.
*
*
* .io.Date dateOfBirth = 5;
*/
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;
}
/**
*
* The date of birth as marked on the traveler's identity document.
*
*
* .io.Date dateOfBirth = 5;
*/
public Builder clearDateOfBirth() {
if (dateOfBirthBuilder_ == null) {
dateOfBirth_ = null;
onChanged();
} else {
dateOfBirth_ = null;
dateOfBirthBuilder_ = null;
}
return this;
}
/**
*
* The date of birth as marked on the traveler's identity document.
*
*
* .io.Date dateOfBirth = 5;
*/
public com.passkit.grpc.CommonObjects.Date.Builder getDateOfBirthBuilder() {
onChanged();
return getDateOfBirthFieldBuilder().getBuilder();
}
/**
*
* The date of birth as marked on the traveler's identity document.
*
*
* .io.Date dateOfBirth = 5;
*/
public com.passkit.grpc.CommonObjects.DateOrBuilder getDateOfBirthOrBuilder() {
if (dateOfBirthBuilder_ != null) {
return dateOfBirthBuilder_.getMessageOrBuilder();
} else {
return dateOfBirth_ == null ?
com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : dateOfBirth_;
}
}
/**
*
* The date of birth as marked on the traveler's identity document.
*
*
* .io.Date dateOfBirth = 5;
*/
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 int gender_ = 0;
/**
*
* The gender as marked on the traveler's identity document.
*
*
* .io.Gender gender = 6;
* @return The enum numeric value on the wire for gender.
*/
@java.lang.Override public int getGenderValue() {
return gender_;
}
/**
*
* The gender as marked on the traveler's identity document.
*
*
* .io.Gender gender = 6;
* @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;
}
/**
*
* The gender as marked on the traveler's identity document.
*
*
* .io.Gender gender = 6;
* @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;
}
/**
*
* The gender as marked on the traveler's identity document.
*
*
* .io.Gender gender = 6;
* @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;
}
/**
*
* The gender as marked on the traveler's identity document.
*
*
* .io.Gender gender = 6;
* @return This builder for chaining.
*/
public Builder clearGender() {
gender_ = 0;
onChanged();
return this;
}
private com.passkit.grpc.CommonObjects.Date issuedDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder> issuedDateBuilder_;
/**
*
* The issue date of the traveler's identity document.
*
*
* .io.Date issuedDate = 7;
* @return Whether the issuedDate field is set.
*/
public boolean hasIssuedDate() {
return issuedDateBuilder_ != null || issuedDate_ != null;
}
/**
*
* The issue date of the traveler's identity document.
*
*
* .io.Date issuedDate = 7;
* @return The issuedDate.
*/
public com.passkit.grpc.CommonObjects.Date getIssuedDate() {
if (issuedDateBuilder_ == null) {
return issuedDate_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : issuedDate_;
} else {
return issuedDateBuilder_.getMessage();
}
}
/**
*
* The issue date of the traveler's identity document.
*
*
* .io.Date issuedDate = 7;
*/
public Builder setIssuedDate(com.passkit.grpc.CommonObjects.Date value) {
if (issuedDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
issuedDate_ = value;
onChanged();
} else {
issuedDateBuilder_.setMessage(value);
}
return this;
}
/**
*
* The issue date of the traveler's identity document.
*
*
* .io.Date issuedDate = 7;
*/
public Builder setIssuedDate(
com.passkit.grpc.CommonObjects.Date.Builder builderForValue) {
if (issuedDateBuilder_ == null) {
issuedDate_ = builderForValue.build();
onChanged();
} else {
issuedDateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The issue date of the traveler's identity document.
*
*
* .io.Date issuedDate = 7;
*/
public Builder mergeIssuedDate(com.passkit.grpc.CommonObjects.Date value) {
if (issuedDateBuilder_ == null) {
if (issuedDate_ != null) {
issuedDate_ =
com.passkit.grpc.CommonObjects.Date.newBuilder(issuedDate_).mergeFrom(value).buildPartial();
} else {
issuedDate_ = value;
}
onChanged();
} else {
issuedDateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The issue date of the traveler's identity document.
*
*
* .io.Date issuedDate = 7;
*/
public Builder clearIssuedDate() {
if (issuedDateBuilder_ == null) {
issuedDate_ = null;
onChanged();
} else {
issuedDate_ = null;
issuedDateBuilder_ = null;
}
return this;
}
/**
*
* The issue date of the traveler's identity document.
*
*
* .io.Date issuedDate = 7;
*/
public com.passkit.grpc.CommonObjects.Date.Builder getIssuedDateBuilder() {
onChanged();
return getIssuedDateFieldBuilder().getBuilder();
}
/**
*
* The issue date of the traveler's identity document.
*
*
* .io.Date issuedDate = 7;
*/
public com.passkit.grpc.CommonObjects.DateOrBuilder getIssuedDateOrBuilder() {
if (issuedDateBuilder_ != null) {
return issuedDateBuilder_.getMessageOrBuilder();
} else {
return issuedDate_ == null ?
com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : issuedDate_;
}
}
/**
*
* The issue date of the traveler's identity document.
*
*
* .io.Date issuedDate = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder>
getIssuedDateFieldBuilder() {
if (issuedDateBuilder_ == null) {
issuedDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder>(
getIssuedDate(),
getParentForChildren(),
isClean());
issuedDate_ = null;
}
return issuedDateBuilder_;
}
private com.passkit.grpc.CommonObjects.Date expiryDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder> expiryDateBuilder_;
/**
*
* The expiry date of the traveler's identity document.
*
*
* .io.Date expiryDate = 8;
* @return Whether the expiryDate field is set.
*/
public boolean hasExpiryDate() {
return expiryDateBuilder_ != null || expiryDate_ != null;
}
/**
*
* The expiry date of the traveler's identity document.
*
*
* .io.Date expiryDate = 8;
* @return The expiryDate.
*/
public com.passkit.grpc.CommonObjects.Date getExpiryDate() {
if (expiryDateBuilder_ == null) {
return expiryDate_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : expiryDate_;
} else {
return expiryDateBuilder_.getMessage();
}
}
/**
*
* The expiry date of the traveler's identity document.
*
*
* .io.Date expiryDate = 8;
*/
public Builder setExpiryDate(com.passkit.grpc.CommonObjects.Date value) {
if (expiryDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expiryDate_ = value;
onChanged();
} else {
expiryDateBuilder_.setMessage(value);
}
return this;
}
/**
*
* The expiry date of the traveler's identity document.
*
*
* .io.Date expiryDate = 8;
*/
public Builder setExpiryDate(
com.passkit.grpc.CommonObjects.Date.Builder builderForValue) {
if (expiryDateBuilder_ == null) {
expiryDate_ = builderForValue.build();
onChanged();
} else {
expiryDateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The expiry date of the traveler's identity document.
*
*
* .io.Date expiryDate = 8;
*/
public Builder mergeExpiryDate(com.passkit.grpc.CommonObjects.Date value) {
if (expiryDateBuilder_ == null) {
if (expiryDate_ != null) {
expiryDate_ =
com.passkit.grpc.CommonObjects.Date.newBuilder(expiryDate_).mergeFrom(value).buildPartial();
} else {
expiryDate_ = value;
}
onChanged();
} else {
expiryDateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The expiry date of the traveler's identity document.
*
*
* .io.Date expiryDate = 8;
*/
public Builder clearExpiryDate() {
if (expiryDateBuilder_ == null) {
expiryDate_ = null;
onChanged();
} else {
expiryDate_ = null;
expiryDateBuilder_ = null;
}
return this;
}
/**
*
* The expiry date of the traveler's identity document.
*
*
* .io.Date expiryDate = 8;
*/
public com.passkit.grpc.CommonObjects.Date.Builder getExpiryDateBuilder() {
onChanged();
return getExpiryDateFieldBuilder().getBuilder();
}
/**
*
* The expiry date of the traveler's identity document.
*
*
* .io.Date expiryDate = 8;
*/
public com.passkit.grpc.CommonObjects.DateOrBuilder getExpiryDateOrBuilder() {
if (expiryDateBuilder_ != null) {
return expiryDateBuilder_.getMessageOrBuilder();
} else {
return expiryDate_ == null ?
com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : expiryDate_;
}
}
/**
*
* The expiry date of the traveler's identity document.
*
*
* .io.Date expiryDate = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder>
getExpiryDateFieldBuilder() {
if (expiryDateBuilder_ == null) {
expiryDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder>(
getExpiryDate(),
getParentForChildren(),
isClean());
expiryDate_ = null;
}
return expiryDateBuilder_;
}
@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:flights.IdentityDetails)
}
// @@protoc_insertion_point(class_scope:flights.IdentityDetails)
private static final com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails();
}
public static com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IdentityDetails parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IdentityDetails(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.Flights.PassengerOuterClass.IdentityDetails getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InfantOrBuilder extends
// @@protoc_insertion_point(interface_extends:flights.Infant)
com.google.protobuf.MessageOrBuilder {
/**
*
* Personal details of the infant.
*
*
* .io.Person infantDetails = 1;
* @return Whether the infantDetails field is set.
*/
boolean hasInfantDetails();
/**
*
* Personal details of the infant.
*
*
* .io.Person infantDetails = 1;
* @return The infantDetails.
*/
com.passkit.grpc.Personal.Person getInfantDetails();
/**
*
* Personal details of the infant.
*
*
* .io.Person infantDetails = 1;
*/
com.passkit.grpc.Personal.PersonOrBuilder getInfantDetailsOrBuilder();
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 2;
* @return Whether the identityDetails field is set.
*/
boolean hasIdentityDetails();
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 2;
* @return The identityDetails.
*/
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails getIdentityDetails();
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 2;
*/
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetailsOrBuilder getIdentityDetailsOrBuilder();
/**
*
* The barcode payload to be rendered on the infant boarding pass. If not provided, an IATA barcode will be compiled, based on the adult boarding pass barcode data.
*
*
* string barcodePayload = 3;
* @return The barcodePayload.
*/
java.lang.String getBarcodePayload();
/**
*
* The barcode payload to be rendered on the infant boarding pass. If not provided, an IATA barcode will be compiled, based on the adult boarding pass barcode data.
*
*
* string barcodePayload = 3;
* @return The bytes for barcodePayload.
*/
com.google.protobuf.ByteString
getBarcodePayloadBytes();
/**
*
* Optional conditional items for the infant barcode. Not required if barcode payload is set.
*
*
* .flights.ConditionalItems conditionalItems = 4;
* @return Whether the conditionalItems field is set.
*/
boolean hasConditionalItems();
/**
*
* Optional conditional items for the infant barcode. Not required if barcode payload is set.
*
*
* .flights.ConditionalItems conditionalItems = 4;
* @return The conditionalItems.
*/
com.passkit.grpc.Flights.Barcode.ConditionalItems getConditionalItems();
/**
*
* Optional conditional items for the infant barcode. Not required if barcode payload is set.
*
*
* .flights.ConditionalItems conditionalItems = 4;
*/
com.passkit.grpc.Flights.Barcode.ConditionalItemsOrBuilder getConditionalItemsOrBuilder();
/**
*
* Optional additional barcode data. If PassKit are generating barcodes, airline use data (IATA item 4) to be included in the infant barcode.
*
*
* string barcodeAdditionalData = 5;
* @return The barcodeAdditionalData.
*/
java.lang.String getBarcodeAdditionalData();
/**
*
* Optional additional barcode data. If PassKit are generating barcodes, airline use data (IATA item 4) to be included in the infant barcode.
*
*
* string barcodeAdditionalData = 5;
* @return The bytes for barcodeAdditionalData.
*/
com.google.protobuf.ByteString
getBarcodeAdditionalDataBytes();
/**
*
* Security image id for display above the barcode on a Google Pay pass.
*
*
* string securityImage = 6;
* @return The securityImage.
*/
java.lang.String getSecurityImage();
/**
*
* Security image id for display above the barcode on a Google Pay pass.
*
*
* string securityImage = 6;
* @return The bytes for securityImage.
*/
com.google.protobuf.ByteString
getSecurityImageBytes();
/**
*
* Privilege image id for display above the barcode on a Google Pay pass.
*
*
* string privilegeImage = 7;
* @return The privilegeImage.
*/
java.lang.String getPrivilegeImage();
/**
*
* Privilege image id for display above the barcode on a Google Pay pass.
*
*
* string privilegeImage = 7;
* @return The bytes for privilegeImage.
*/
com.google.protobuf.ByteString
getPrivilegeImageBytes();
/**
*
* Footer image id for display above the barcode on iOS devices.
*
*
* string footerImage = 8;
* @return The footerImage.
*/
java.lang.String getFooterImage();
/**
*
* Footer image id for display above the barcode on iOS devices.
*
*
* string footerImage = 8;
* @return The bytes for footerImage.
*/
com.google.protobuf.ByteString
getFooterImageBytes();
}
/**
*
* Details of infant under 2 years not occupying a seat.
*
*
* Protobuf type {@code flights.Infant}
*/
public static final class Infant extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flights.Infant)
InfantOrBuilder {
private static final long serialVersionUID = 0L;
// Use Infant.newBuilder() to construct.
private Infant(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Infant() {
barcodePayload_ = "";
barcodeAdditionalData_ = "";
securityImage_ = "";
privilegeImage_ = "";
footerImage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Infant();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Infant(
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: {
com.passkit.grpc.Personal.Person.Builder subBuilder = null;
if (infantDetails_ != null) {
subBuilder = infantDetails_.toBuilder();
}
infantDetails_ = input.readMessage(com.passkit.grpc.Personal.Person.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(infantDetails_);
infantDetails_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.Builder subBuilder = null;
if (identityDetails_ != null) {
subBuilder = identityDetails_.toBuilder();
}
identityDetails_ = input.readMessage(com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(identityDetails_);
identityDetails_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
barcodePayload_ = s;
break;
}
case 34: {
com.passkit.grpc.Flights.Barcode.ConditionalItems.Builder subBuilder = null;
if (conditionalItems_ != null) {
subBuilder = conditionalItems_.toBuilder();
}
conditionalItems_ = input.readMessage(com.passkit.grpc.Flights.Barcode.ConditionalItems.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(conditionalItems_);
conditionalItems_ = subBuilder.buildPartial();
}
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
barcodeAdditionalData_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
securityImage_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
privilegeImage_ = s;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
footerImage_ = 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.Flights.PassengerOuterClass.internal_static_flights_Infant_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.PassengerOuterClass.internal_static_flights_Infant_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.PassengerOuterClass.Infant.class, com.passkit.grpc.Flights.PassengerOuterClass.Infant.Builder.class);
}
public static final int INFANTDETAILS_FIELD_NUMBER = 1;
private com.passkit.grpc.Personal.Person infantDetails_;
/**
*
* Personal details of the infant.
*
*
* .io.Person infantDetails = 1;
* @return Whether the infantDetails field is set.
*/
@java.lang.Override
public boolean hasInfantDetails() {
return infantDetails_ != null;
}
/**
*
* Personal details of the infant.
*
*
* .io.Person infantDetails = 1;
* @return The infantDetails.
*/
@java.lang.Override
public com.passkit.grpc.Personal.Person getInfantDetails() {
return infantDetails_ == null ? com.passkit.grpc.Personal.Person.getDefaultInstance() : infantDetails_;
}
/**
*
* Personal details of the infant.
*
*
* .io.Person infantDetails = 1;
*/
@java.lang.Override
public com.passkit.grpc.Personal.PersonOrBuilder getInfantDetailsOrBuilder() {
return getInfantDetails();
}
public static final int IDENTITYDETAILS_FIELD_NUMBER = 2;
private com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails identityDetails_;
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 2;
* @return Whether the identityDetails field is set.
*/
@java.lang.Override
public boolean hasIdentityDetails() {
return identityDetails_ != null;
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 2;
* @return The identityDetails.
*/
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails getIdentityDetails() {
return identityDetails_ == null ? com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.getDefaultInstance() : identityDetails_;
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 2;
*/
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetailsOrBuilder getIdentityDetailsOrBuilder() {
return getIdentityDetails();
}
public static final int BARCODEPAYLOAD_FIELD_NUMBER = 3;
private volatile java.lang.Object barcodePayload_;
/**
*
* The barcode payload to be rendered on the infant boarding pass. If not provided, an IATA barcode will be compiled, based on the adult boarding pass barcode data.
*
*
* string barcodePayload = 3;
* @return The barcodePayload.
*/
@java.lang.Override
public java.lang.String getBarcodePayload() {
java.lang.Object ref = barcodePayload_;
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();
barcodePayload_ = s;
return s;
}
}
/**
*
* The barcode payload to be rendered on the infant boarding pass. If not provided, an IATA barcode will be compiled, based on the adult boarding pass barcode data.
*
*
* string barcodePayload = 3;
* @return The bytes for barcodePayload.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBarcodePayloadBytes() {
java.lang.Object ref = barcodePayload_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
barcodePayload_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONDITIONALITEMS_FIELD_NUMBER = 4;
private com.passkit.grpc.Flights.Barcode.ConditionalItems conditionalItems_;
/**
*
* Optional conditional items for the infant barcode. Not required if barcode payload is set.
*
*
* .flights.ConditionalItems conditionalItems = 4;
* @return Whether the conditionalItems field is set.
*/
@java.lang.Override
public boolean hasConditionalItems() {
return conditionalItems_ != null;
}
/**
*
* Optional conditional items for the infant barcode. Not required if barcode payload is set.
*
*
* .flights.ConditionalItems conditionalItems = 4;
* @return The conditionalItems.
*/
@java.lang.Override
public com.passkit.grpc.Flights.Barcode.ConditionalItems getConditionalItems() {
return conditionalItems_ == null ? com.passkit.grpc.Flights.Barcode.ConditionalItems.getDefaultInstance() : conditionalItems_;
}
/**
*
* Optional conditional items for the infant barcode. Not required if barcode payload is set.
*
*
* .flights.ConditionalItems conditionalItems = 4;
*/
@java.lang.Override
public com.passkit.grpc.Flights.Barcode.ConditionalItemsOrBuilder getConditionalItemsOrBuilder() {
return getConditionalItems();
}
public static final int BARCODEADDITIONALDATA_FIELD_NUMBER = 5;
private volatile java.lang.Object barcodeAdditionalData_;
/**
*
* Optional additional barcode data. If PassKit are generating barcodes, airline use data (IATA item 4) to be included in the infant barcode.
*
*
* string barcodeAdditionalData = 5;
* @return The barcodeAdditionalData.
*/
@java.lang.Override
public java.lang.String getBarcodeAdditionalData() {
java.lang.Object ref = barcodeAdditionalData_;
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();
barcodeAdditionalData_ = s;
return s;
}
}
/**
*
* Optional additional barcode data. If PassKit are generating barcodes, airline use data (IATA item 4) to be included in the infant barcode.
*
*
* string barcodeAdditionalData = 5;
* @return The bytes for barcodeAdditionalData.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBarcodeAdditionalDataBytes() {
java.lang.Object ref = barcodeAdditionalData_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
barcodeAdditionalData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SECURITYIMAGE_FIELD_NUMBER = 6;
private volatile java.lang.Object securityImage_;
/**
*
* Security image id for display above the barcode on a Google Pay pass.
*
*
* string securityImage = 6;
* @return The securityImage.
*/
@java.lang.Override
public java.lang.String getSecurityImage() {
java.lang.Object ref = securityImage_;
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();
securityImage_ = s;
return s;
}
}
/**
*
* Security image id for display above the barcode on a Google Pay pass.
*
*
* string securityImage = 6;
* @return The bytes for securityImage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSecurityImageBytes() {
java.lang.Object ref = securityImage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
securityImage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRIVILEGEIMAGE_FIELD_NUMBER = 7;
private volatile java.lang.Object privilegeImage_;
/**
*
* Privilege image id for display above the barcode on a Google Pay pass.
*
*
* string privilegeImage = 7;
* @return The privilegeImage.
*/
@java.lang.Override
public java.lang.String getPrivilegeImage() {
java.lang.Object ref = privilegeImage_;
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();
privilegeImage_ = s;
return s;
}
}
/**
*
* Privilege image id for display above the barcode on a Google Pay pass.
*
*
* string privilegeImage = 7;
* @return The bytes for privilegeImage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPrivilegeImageBytes() {
java.lang.Object ref = privilegeImage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
privilegeImage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FOOTERIMAGE_FIELD_NUMBER = 8;
private volatile java.lang.Object footerImage_;
/**
*
* Footer image id for display above the barcode on iOS devices.
*
*
* string footerImage = 8;
* @return The footerImage.
*/
@java.lang.Override
public java.lang.String getFooterImage() {
java.lang.Object ref = footerImage_;
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();
footerImage_ = s;
return s;
}
}
/**
*
* Footer image id for display above the barcode on iOS devices.
*
*
* string footerImage = 8;
* @return The bytes for footerImage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFooterImageBytes() {
java.lang.Object ref = footerImage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
footerImage_ = 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 (infantDetails_ != null) {
output.writeMessage(1, getInfantDetails());
}
if (identityDetails_ != null) {
output.writeMessage(2, getIdentityDetails());
}
if (!getBarcodePayloadBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, barcodePayload_);
}
if (conditionalItems_ != null) {
output.writeMessage(4, getConditionalItems());
}
if (!getBarcodeAdditionalDataBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, barcodeAdditionalData_);
}
if (!getSecurityImageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, securityImage_);
}
if (!getPrivilegeImageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, privilegeImage_);
}
if (!getFooterImageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, footerImage_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (infantDetails_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getInfantDetails());
}
if (identityDetails_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getIdentityDetails());
}
if (!getBarcodePayloadBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, barcodePayload_);
}
if (conditionalItems_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getConditionalItems());
}
if (!getBarcodeAdditionalDataBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, barcodeAdditionalData_);
}
if (!getSecurityImageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, securityImage_);
}
if (!getPrivilegeImageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, privilegeImage_);
}
if (!getFooterImageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, footerImage_);
}
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.Flights.PassengerOuterClass.Infant)) {
return super.equals(obj);
}
com.passkit.grpc.Flights.PassengerOuterClass.Infant other = (com.passkit.grpc.Flights.PassengerOuterClass.Infant) obj;
if (hasInfantDetails() != other.hasInfantDetails()) return false;
if (hasInfantDetails()) {
if (!getInfantDetails()
.equals(other.getInfantDetails())) return false;
}
if (hasIdentityDetails() != other.hasIdentityDetails()) return false;
if (hasIdentityDetails()) {
if (!getIdentityDetails()
.equals(other.getIdentityDetails())) return false;
}
if (!getBarcodePayload()
.equals(other.getBarcodePayload())) return false;
if (hasConditionalItems() != other.hasConditionalItems()) return false;
if (hasConditionalItems()) {
if (!getConditionalItems()
.equals(other.getConditionalItems())) return false;
}
if (!getBarcodeAdditionalData()
.equals(other.getBarcodeAdditionalData())) return false;
if (!getSecurityImage()
.equals(other.getSecurityImage())) return false;
if (!getPrivilegeImage()
.equals(other.getPrivilegeImage())) return false;
if (!getFooterImage()
.equals(other.getFooterImage())) 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();
if (hasInfantDetails()) {
hash = (37 * hash) + INFANTDETAILS_FIELD_NUMBER;
hash = (53 * hash) + getInfantDetails().hashCode();
}
if (hasIdentityDetails()) {
hash = (37 * hash) + IDENTITYDETAILS_FIELD_NUMBER;
hash = (53 * hash) + getIdentityDetails().hashCode();
}
hash = (37 * hash) + BARCODEPAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getBarcodePayload().hashCode();
if (hasConditionalItems()) {
hash = (37 * hash) + CONDITIONALITEMS_FIELD_NUMBER;
hash = (53 * hash) + getConditionalItems().hashCode();
}
hash = (37 * hash) + BARCODEADDITIONALDATA_FIELD_NUMBER;
hash = (53 * hash) + getBarcodeAdditionalData().hashCode();
hash = (37 * hash) + SECURITYIMAGE_FIELD_NUMBER;
hash = (53 * hash) + getSecurityImage().hashCode();
hash = (37 * hash) + PRIVILEGEIMAGE_FIELD_NUMBER;
hash = (53 * hash) + getPrivilegeImage().hashCode();
hash = (37 * hash) + FOOTERIMAGE_FIELD_NUMBER;
hash = (53 * hash) + getFooterImage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Infant parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Infant 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.Flights.PassengerOuterClass.Infant parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Infant 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.Flights.PassengerOuterClass.Infant parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Infant parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Infant parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Infant 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.Flights.PassengerOuterClass.Infant parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Infant 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.Flights.PassengerOuterClass.Infant parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Infant 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.Flights.PassengerOuterClass.Infant 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;
}
/**
*
* Details of infant under 2 years not occupying a seat.
*
*
* Protobuf type {@code flights.Infant}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flights.Infant)
com.passkit.grpc.Flights.PassengerOuterClass.InfantOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Flights.PassengerOuterClass.internal_static_flights_Infant_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.PassengerOuterClass.internal_static_flights_Infant_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.PassengerOuterClass.Infant.class, com.passkit.grpc.Flights.PassengerOuterClass.Infant.Builder.class);
}
// Construct using com.passkit.grpc.Flights.PassengerOuterClass.Infant.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();
if (infantDetailsBuilder_ == null) {
infantDetails_ = null;
} else {
infantDetails_ = null;
infantDetailsBuilder_ = null;
}
if (identityDetailsBuilder_ == null) {
identityDetails_ = null;
} else {
identityDetails_ = null;
identityDetailsBuilder_ = null;
}
barcodePayload_ = "";
if (conditionalItemsBuilder_ == null) {
conditionalItems_ = null;
} else {
conditionalItems_ = null;
conditionalItemsBuilder_ = null;
}
barcodeAdditionalData_ = "";
securityImage_ = "";
privilegeImage_ = "";
footerImage_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Flights.PassengerOuterClass.internal_static_flights_Infant_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.Infant getDefaultInstanceForType() {
return com.passkit.grpc.Flights.PassengerOuterClass.Infant.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.Infant build() {
com.passkit.grpc.Flights.PassengerOuterClass.Infant result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Flights.PassengerOuterClass.Infant buildPartial() {
com.passkit.grpc.Flights.PassengerOuterClass.Infant result = new com.passkit.grpc.Flights.PassengerOuterClass.Infant(this);
if (infantDetailsBuilder_ == null) {
result.infantDetails_ = infantDetails_;
} else {
result.infantDetails_ = infantDetailsBuilder_.build();
}
if (identityDetailsBuilder_ == null) {
result.identityDetails_ = identityDetails_;
} else {
result.identityDetails_ = identityDetailsBuilder_.build();
}
result.barcodePayload_ = barcodePayload_;
if (conditionalItemsBuilder_ == null) {
result.conditionalItems_ = conditionalItems_;
} else {
result.conditionalItems_ = conditionalItemsBuilder_.build();
}
result.barcodeAdditionalData_ = barcodeAdditionalData_;
result.securityImage_ = securityImage_;
result.privilegeImage_ = privilegeImage_;
result.footerImage_ = footerImage_;
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.Flights.PassengerOuterClass.Infant) {
return mergeFrom((com.passkit.grpc.Flights.PassengerOuterClass.Infant)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Flights.PassengerOuterClass.Infant other) {
if (other == com.passkit.grpc.Flights.PassengerOuterClass.Infant.getDefaultInstance()) return this;
if (other.hasInfantDetails()) {
mergeInfantDetails(other.getInfantDetails());
}
if (other.hasIdentityDetails()) {
mergeIdentityDetails(other.getIdentityDetails());
}
if (!other.getBarcodePayload().isEmpty()) {
barcodePayload_ = other.barcodePayload_;
onChanged();
}
if (other.hasConditionalItems()) {
mergeConditionalItems(other.getConditionalItems());
}
if (!other.getBarcodeAdditionalData().isEmpty()) {
barcodeAdditionalData_ = other.barcodeAdditionalData_;
onChanged();
}
if (!other.getSecurityImage().isEmpty()) {
securityImage_ = other.securityImage_;
onChanged();
}
if (!other.getPrivilegeImage().isEmpty()) {
privilegeImage_ = other.privilegeImage_;
onChanged();
}
if (!other.getFooterImage().isEmpty()) {
footerImage_ = other.footerImage_;
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.Flights.PassengerOuterClass.Infant parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Flights.PassengerOuterClass.Infant) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.passkit.grpc.Personal.Person infantDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Personal.Person, com.passkit.grpc.Personal.Person.Builder, com.passkit.grpc.Personal.PersonOrBuilder> infantDetailsBuilder_;
/**
*
* Personal details of the infant.
*
*
* .io.Person infantDetails = 1;
* @return Whether the infantDetails field is set.
*/
public boolean hasInfantDetails() {
return infantDetailsBuilder_ != null || infantDetails_ != null;
}
/**
*
* Personal details of the infant.
*
*
* .io.Person infantDetails = 1;
* @return The infantDetails.
*/
public com.passkit.grpc.Personal.Person getInfantDetails() {
if (infantDetailsBuilder_ == null) {
return infantDetails_ == null ? com.passkit.grpc.Personal.Person.getDefaultInstance() : infantDetails_;
} else {
return infantDetailsBuilder_.getMessage();
}
}
/**
*
* Personal details of the infant.
*
*
* .io.Person infantDetails = 1;
*/
public Builder setInfantDetails(com.passkit.grpc.Personal.Person value) {
if (infantDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
infantDetails_ = value;
onChanged();
} else {
infantDetailsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Personal details of the infant.
*
*
* .io.Person infantDetails = 1;
*/
public Builder setInfantDetails(
com.passkit.grpc.Personal.Person.Builder builderForValue) {
if (infantDetailsBuilder_ == null) {
infantDetails_ = builderForValue.build();
onChanged();
} else {
infantDetailsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Personal details of the infant.
*
*
* .io.Person infantDetails = 1;
*/
public Builder mergeInfantDetails(com.passkit.grpc.Personal.Person value) {
if (infantDetailsBuilder_ == null) {
if (infantDetails_ != null) {
infantDetails_ =
com.passkit.grpc.Personal.Person.newBuilder(infantDetails_).mergeFrom(value).buildPartial();
} else {
infantDetails_ = value;
}
onChanged();
} else {
infantDetailsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Personal details of the infant.
*
*
* .io.Person infantDetails = 1;
*/
public Builder clearInfantDetails() {
if (infantDetailsBuilder_ == null) {
infantDetails_ = null;
onChanged();
} else {
infantDetails_ = null;
infantDetailsBuilder_ = null;
}
return this;
}
/**
*
* Personal details of the infant.
*
*
* .io.Person infantDetails = 1;
*/
public com.passkit.grpc.Personal.Person.Builder getInfantDetailsBuilder() {
onChanged();
return getInfantDetailsFieldBuilder().getBuilder();
}
/**
*
* Personal details of the infant.
*
*
* .io.Person infantDetails = 1;
*/
public com.passkit.grpc.Personal.PersonOrBuilder getInfantDetailsOrBuilder() {
if (infantDetailsBuilder_ != null) {
return infantDetailsBuilder_.getMessageOrBuilder();
} else {
return infantDetails_ == null ?
com.passkit.grpc.Personal.Person.getDefaultInstance() : infantDetails_;
}
}
/**
*
* Personal details of the infant.
*
*
* .io.Person infantDetails = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Personal.Person, com.passkit.grpc.Personal.Person.Builder, com.passkit.grpc.Personal.PersonOrBuilder>
getInfantDetailsFieldBuilder() {
if (infantDetailsBuilder_ == null) {
infantDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Personal.Person, com.passkit.grpc.Personal.Person.Builder, com.passkit.grpc.Personal.PersonOrBuilder>(
getInfantDetails(),
getParentForChildren(),
isClean());
infantDetails_ = null;
}
return infantDetailsBuilder_;
}
private com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails identityDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails, com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.Builder, com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetailsOrBuilder> identityDetailsBuilder_;
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 2;
* @return Whether the identityDetails field is set.
*/
public boolean hasIdentityDetails() {
return identityDetailsBuilder_ != null || identityDetails_ != null;
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 2;
* @return The identityDetails.
*/
public com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails getIdentityDetails() {
if (identityDetailsBuilder_ == null) {
return identityDetails_ == null ? com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.getDefaultInstance() : identityDetails_;
} else {
return identityDetailsBuilder_.getMessage();
}
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 2;
*/
public Builder setIdentityDetails(com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails value) {
if (identityDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identityDetails_ = value;
onChanged();
} else {
identityDetailsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 2;
*/
public Builder setIdentityDetails(
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.Builder builderForValue) {
if (identityDetailsBuilder_ == null) {
identityDetails_ = builderForValue.build();
onChanged();
} else {
identityDetailsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 2;
*/
public Builder mergeIdentityDetails(com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails value) {
if (identityDetailsBuilder_ == null) {
if (identityDetails_ != null) {
identityDetails_ =
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.newBuilder(identityDetails_).mergeFrom(value).buildPartial();
} else {
identityDetails_ = value;
}
onChanged();
} else {
identityDetailsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 2;
*/
public Builder clearIdentityDetails() {
if (identityDetailsBuilder_ == null) {
identityDetails_ = null;
onChanged();
} else {
identityDetails_ = null;
identityDetailsBuilder_ = null;
}
return this;
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 2;
*/
public com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.Builder getIdentityDetailsBuilder() {
onChanged();
return getIdentityDetailsFieldBuilder().getBuilder();
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 2;
*/
public com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetailsOrBuilder getIdentityDetailsOrBuilder() {
if (identityDetailsBuilder_ != null) {
return identityDetailsBuilder_.getMessageOrBuilder();
} else {
return identityDetails_ == null ?
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.getDefaultInstance() : identityDetails_;
}
}
/**
*
* Optional identity details, only required if need to be rendered on the pass, or for analytics purposes.
*
*
* .flights.IdentityDetails identityDetails = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails, com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.Builder, com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetailsOrBuilder>
getIdentityDetailsFieldBuilder() {
if (identityDetailsBuilder_ == null) {
identityDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails, com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetails.Builder, com.passkit.grpc.Flights.PassengerOuterClass.IdentityDetailsOrBuilder>(
getIdentityDetails(),
getParentForChildren(),
isClean());
identityDetails_ = null;
}
return identityDetailsBuilder_;
}
private java.lang.Object barcodePayload_ = "";
/**
*
* The barcode payload to be rendered on the infant boarding pass. If not provided, an IATA barcode will be compiled, based on the adult boarding pass barcode data.
*
*
* string barcodePayload = 3;
* @return The barcodePayload.
*/
public java.lang.String getBarcodePayload() {
java.lang.Object ref = barcodePayload_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
barcodePayload_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The barcode payload to be rendered on the infant boarding pass. If not provided, an IATA barcode will be compiled, based on the adult boarding pass barcode data.
*
*
* string barcodePayload = 3;
* @return The bytes for barcodePayload.
*/
public com.google.protobuf.ByteString
getBarcodePayloadBytes() {
java.lang.Object ref = barcodePayload_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
barcodePayload_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The barcode payload to be rendered on the infant boarding pass. If not provided, an IATA barcode will be compiled, based on the adult boarding pass barcode data.
*
*
* string barcodePayload = 3;
* @param value The barcodePayload to set.
* @return This builder for chaining.
*/
public Builder setBarcodePayload(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
barcodePayload_ = value;
onChanged();
return this;
}
/**
*
* The barcode payload to be rendered on the infant boarding pass. If not provided, an IATA barcode will be compiled, based on the adult boarding pass barcode data.
*
*
* string barcodePayload = 3;
* @return This builder for chaining.
*/
public Builder clearBarcodePayload() {
barcodePayload_ = getDefaultInstance().getBarcodePayload();
onChanged();
return this;
}
/**
*
* The barcode payload to be rendered on the infant boarding pass. If not provided, an IATA barcode will be compiled, based on the adult boarding pass barcode data.
*
*
* string barcodePayload = 3;
* @param value The bytes for barcodePayload to set.
* @return This builder for chaining.
*/
public Builder setBarcodePayloadBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
barcodePayload_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Flights.Barcode.ConditionalItems conditionalItems_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.Barcode.ConditionalItems, com.passkit.grpc.Flights.Barcode.ConditionalItems.Builder, com.passkit.grpc.Flights.Barcode.ConditionalItemsOrBuilder> conditionalItemsBuilder_;
/**
*
* Optional conditional items for the infant barcode. Not required if barcode payload is set.
*
*
* .flights.ConditionalItems conditionalItems = 4;
* @return Whether the conditionalItems field is set.
*/
public boolean hasConditionalItems() {
return conditionalItemsBuilder_ != null || conditionalItems_ != null;
}
/**
*
* Optional conditional items for the infant barcode. Not required if barcode payload is set.
*
*
* .flights.ConditionalItems conditionalItems = 4;
* @return The conditionalItems.
*/
public com.passkit.grpc.Flights.Barcode.ConditionalItems getConditionalItems() {
if (conditionalItemsBuilder_ == null) {
return conditionalItems_ == null ? com.passkit.grpc.Flights.Barcode.ConditionalItems.getDefaultInstance() : conditionalItems_;
} else {
return conditionalItemsBuilder_.getMessage();
}
}
/**
*
* Optional conditional items for the infant barcode. Not required if barcode payload is set.
*
*
* .flights.ConditionalItems conditionalItems = 4;
*/
public Builder setConditionalItems(com.passkit.grpc.Flights.Barcode.ConditionalItems value) {
if (conditionalItemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
conditionalItems_ = value;
onChanged();
} else {
conditionalItemsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional conditional items for the infant barcode. Not required if barcode payload is set.
*
*
* .flights.ConditionalItems conditionalItems = 4;
*/
public Builder setConditionalItems(
com.passkit.grpc.Flights.Barcode.ConditionalItems.Builder builderForValue) {
if (conditionalItemsBuilder_ == null) {
conditionalItems_ = builderForValue.build();
onChanged();
} else {
conditionalItemsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional conditional items for the infant barcode. Not required if barcode payload is set.
*
*
* .flights.ConditionalItems conditionalItems = 4;
*/
public Builder mergeConditionalItems(com.passkit.grpc.Flights.Barcode.ConditionalItems value) {
if (conditionalItemsBuilder_ == null) {
if (conditionalItems_ != null) {
conditionalItems_ =
com.passkit.grpc.Flights.Barcode.ConditionalItems.newBuilder(conditionalItems_).mergeFrom(value).buildPartial();
} else {
conditionalItems_ = value;
}
onChanged();
} else {
conditionalItemsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Optional conditional items for the infant barcode. Not required if barcode payload is set.
*
*
* .flights.ConditionalItems conditionalItems = 4;
*/
public Builder clearConditionalItems() {
if (conditionalItemsBuilder_ == null) {
conditionalItems_ = null;
onChanged();
} else {
conditionalItems_ = null;
conditionalItemsBuilder_ = null;
}
return this;
}
/**
*
* Optional conditional items for the infant barcode. Not required if barcode payload is set.
*
*
* .flights.ConditionalItems conditionalItems = 4;
*/
public com.passkit.grpc.Flights.Barcode.ConditionalItems.Builder getConditionalItemsBuilder() {
onChanged();
return getConditionalItemsFieldBuilder().getBuilder();
}
/**
*
* Optional conditional items for the infant barcode. Not required if barcode payload is set.
*
*
* .flights.ConditionalItems conditionalItems = 4;
*/
public com.passkit.grpc.Flights.Barcode.ConditionalItemsOrBuilder getConditionalItemsOrBuilder() {
if (conditionalItemsBuilder_ != null) {
return conditionalItemsBuilder_.getMessageOrBuilder();
} else {
return conditionalItems_ == null ?
com.passkit.grpc.Flights.Barcode.ConditionalItems.getDefaultInstance() : conditionalItems_;
}
}
/**
*
* Optional conditional items for the infant barcode. Not required if barcode payload is set.
*
*
* .flights.ConditionalItems conditionalItems = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.Barcode.ConditionalItems, com.passkit.grpc.Flights.Barcode.ConditionalItems.Builder, com.passkit.grpc.Flights.Barcode.ConditionalItemsOrBuilder>
getConditionalItemsFieldBuilder() {
if (conditionalItemsBuilder_ == null) {
conditionalItemsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.Barcode.ConditionalItems, com.passkit.grpc.Flights.Barcode.ConditionalItems.Builder, com.passkit.grpc.Flights.Barcode.ConditionalItemsOrBuilder>(
getConditionalItems(),
getParentForChildren(),
isClean());
conditionalItems_ = null;
}
return conditionalItemsBuilder_;
}
private java.lang.Object barcodeAdditionalData_ = "";
/**
*
* Optional additional barcode data. If PassKit are generating barcodes, airline use data (IATA item 4) to be included in the infant barcode.
*
*
* string barcodeAdditionalData = 5;
* @return The barcodeAdditionalData.
*/
public java.lang.String getBarcodeAdditionalData() {
java.lang.Object ref = barcodeAdditionalData_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
barcodeAdditionalData_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional additional barcode data. If PassKit are generating barcodes, airline use data (IATA item 4) to be included in the infant barcode.
*
*
* string barcodeAdditionalData = 5;
* @return The bytes for barcodeAdditionalData.
*/
public com.google.protobuf.ByteString
getBarcodeAdditionalDataBytes() {
java.lang.Object ref = barcodeAdditionalData_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
barcodeAdditionalData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional additional barcode data. If PassKit are generating barcodes, airline use data (IATA item 4) to be included in the infant barcode.
*
*
* string barcodeAdditionalData = 5;
* @param value The barcodeAdditionalData to set.
* @return This builder for chaining.
*/
public Builder setBarcodeAdditionalData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
barcodeAdditionalData_ = value;
onChanged();
return this;
}
/**
*
* Optional additional barcode data. If PassKit are generating barcodes, airline use data (IATA item 4) to be included in the infant barcode.
*
*
* string barcodeAdditionalData = 5;
* @return This builder for chaining.
*/
public Builder clearBarcodeAdditionalData() {
barcodeAdditionalData_ = getDefaultInstance().getBarcodeAdditionalData();
onChanged();
return this;
}
/**
*
* Optional additional barcode data. If PassKit are generating barcodes, airline use data (IATA item 4) to be included in the infant barcode.
*
*
* string barcodeAdditionalData = 5;
* @param value The bytes for barcodeAdditionalData to set.
* @return This builder for chaining.
*/
public Builder setBarcodeAdditionalDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
barcodeAdditionalData_ = value;
onChanged();
return this;
}
private java.lang.Object securityImage_ = "";
/**
*
* Security image id for display above the barcode on a Google Pay pass.
*
*
* string securityImage = 6;
* @return The securityImage.
*/
public java.lang.String getSecurityImage() {
java.lang.Object ref = securityImage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
securityImage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Security image id for display above the barcode on a Google Pay pass.
*
*
* string securityImage = 6;
* @return The bytes for securityImage.
*/
public com.google.protobuf.ByteString
getSecurityImageBytes() {
java.lang.Object ref = securityImage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
securityImage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Security image id for display above the barcode on a Google Pay pass.
*
*
* string securityImage = 6;
* @param value The securityImage to set.
* @return This builder for chaining.
*/
public Builder setSecurityImage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
securityImage_ = value;
onChanged();
return this;
}
/**
*
* Security image id for display above the barcode on a Google Pay pass.
*
*
* string securityImage = 6;
* @return This builder for chaining.
*/
public Builder clearSecurityImage() {
securityImage_ = getDefaultInstance().getSecurityImage();
onChanged();
return this;
}
/**
*
* Security image id for display above the barcode on a Google Pay pass.
*
*
* string securityImage = 6;
* @param value The bytes for securityImage to set.
* @return This builder for chaining.
*/
public Builder setSecurityImageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
securityImage_ = value;
onChanged();
return this;
}
private java.lang.Object privilegeImage_ = "";
/**
*
* Privilege image id for display above the barcode on a Google Pay pass.
*
*
* string privilegeImage = 7;
* @return The privilegeImage.
*/
public java.lang.String getPrivilegeImage() {
java.lang.Object ref = privilegeImage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
privilegeImage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Privilege image id for display above the barcode on a Google Pay pass.
*
*
* string privilegeImage = 7;
* @return The bytes for privilegeImage.
*/
public com.google.protobuf.ByteString
getPrivilegeImageBytes() {
java.lang.Object ref = privilegeImage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
privilegeImage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Privilege image id for display above the barcode on a Google Pay pass.
*
*
* string privilegeImage = 7;
* @param value The privilegeImage to set.
* @return This builder for chaining.
*/
public Builder setPrivilegeImage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
privilegeImage_ = value;
onChanged();
return this;
}
/**
*
* Privilege image id for display above the barcode on a Google Pay pass.
*
*
* string privilegeImage = 7;
* @return This builder for chaining.
*/
public Builder clearPrivilegeImage() {
privilegeImage_ = getDefaultInstance().getPrivilegeImage();
onChanged();
return this;
}
/**
*
* Privilege image id for display above the barcode on a Google Pay pass.
*
*
* string privilegeImage = 7;
* @param value The bytes for privilegeImage to set.
* @return This builder for chaining.
*/
public Builder setPrivilegeImageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
privilegeImage_ = value;
onChanged();
return this;
}
private java.lang.Object footerImage_ = "";
/**
*
* Footer image id for display above the barcode on iOS devices.
*
*
* string footerImage = 8;
* @return The footerImage.
*/
public java.lang.String getFooterImage() {
java.lang.Object ref = footerImage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
footerImage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Footer image id for display above the barcode on iOS devices.
*
*
* string footerImage = 8;
* @return The bytes for footerImage.
*/
public com.google.protobuf.ByteString
getFooterImageBytes() {
java.lang.Object ref = footerImage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
footerImage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Footer image id for display above the barcode on iOS devices.
*
*
* string footerImage = 8;
* @param value The footerImage to set.
* @return This builder for chaining.
*/
public Builder setFooterImage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
footerImage_ = value;
onChanged();
return this;
}
/**
*
* Footer image id for display above the barcode on iOS devices.
*
*
* string footerImage = 8;
* @return This builder for chaining.
*/
public Builder clearFooterImage() {
footerImage_ = getDefaultInstance().getFooterImage();
onChanged();
return this;
}
/**
*
* Footer image id for display above the barcode on iOS devices.
*
*
* string footerImage = 8;
* @param value The bytes for footerImage to set.
* @return This builder for chaining.
*/
public Builder setFooterImageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
footerImage_ = 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:flights.Infant)
}
// @@protoc_insertion_point(class_scope:flights.Infant)
private static final com.passkit.grpc.Flights.PassengerOuterClass.Infant DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Flights.PassengerOuterClass.Infant();
}
public static com.passkit.grpc.Flights.PassengerOuterClass.Infant getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Infant parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Infant(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.Flights.PassengerOuterClass.Infant getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flights_Passenger_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flights_Passenger_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flights_FrequentFlyerInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flights_FrequentFlyerInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flights_IdentityDetails_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flights_IdentityDetails_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flights_Infant_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flights_Infant_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\032io/flights/passenger.proto\022\007flights\032\030i" +
"o/flights/barcode.proto\032\036io/common/commo" +
"n_objects.proto\032\030io/common/personal.prot" +
"o\032.protoc-gen-openapiv2/options/annotati" +
"ons.proto\"\311\004\n\tPassenger\022$\n\020passengerDeta" +
"ils\030\001 \001(\0132\n.io.Person\0225\n\021frequentFlyerIn" +
"fo\030\002 \001(\0132\032.flights.FrequentFlyerInfo\0221\n\017" +
"identityDetails\030\003 \001(\0132\030.flights.Identity" +
"Details\022\022\n\nwithInfant\030\004 \001(\010\022&\n\rinfantDet" +
"ails\030\005 \001(\0132\017.flights.Infant\022\033\n\023knownTrav" +
"elerNumber\030\007 \001(\t:\322\002\222A\316\002\n\313\002*\tPassenger2\252\002" +
"Passenger information can optionally be " +
"provided. All fields are optional with t" +
"he exception of the Passenger name to be" +
" rendered on the boarding pass. All pass" +
"enger is treated as PII and encrypted at" +
" rest. Passenger information is deleted " +
"or rendered unusable once the pass recor" +
"d has invalidated.\322\001\020passengerDetails\"a\n" +
"\021FrequentFlyerInfo\022\023\n\013programName\030\001 \001(\t\022" +
"\031\n\021airlineDesignator\030\002 \001(\t\022\016\n\006number\030\003 \001" +
"(\t\022\014\n\004tier\030\004 \001(\t\"\202\002\n\017IdentityDetails\0223\n\020" +
"identityDocument\030\001 \001(\0162\031.flights.Identit" +
"yDocument\022\026\n\016issuingCountry\030\002 \001(\t\022\023\n\013nat" +
"ionality\030\003 \001(\t\022\026\n\016documentNumber\030\004 \001(\t\022\035" +
"\n\013dateOfBirth\030\005 \001(\0132\010.io.Date\022\032\n\006gender\030" +
"\006 \001(\0162\n.io.Gender\022\034\n\nissuedDate\030\007 \001(\0132\010." +
"io.Date\022\034\n\nexpiryDate\030\010 \001(\0132\010.io.Date\"\216\002" +
"\n\006Infant\022!\n\rinfantDetails\030\001 \001(\0132\n.io.Per" +
"son\0221\n\017identityDetails\030\002 \001(\0132\030.flights.I" +
"dentityDetails\022\026\n\016barcodePayload\030\003 \001(\t\0223" +
"\n\020conditionalItems\030\004 \001(\0132\031.flights.Condi" +
"tionalItems\022\035\n\025barcodeAdditionalData\030\005 \001" +
"(\t\022\025\n\rsecurityImage\030\006 \001(\t\022\026\n\016privilegeIm" +
"age\030\007 \001(\t\022\023\n\013footerImage\030\010 \001(\t*\220\001\n\020Ident" +
"ityDocument\022\014\n\010PASSPORT\020\000\022\024\n\020NATIONAL_ID" +
"_CARD\020\001\022\023\n\017DRIVING_LICENSE\020\002\022\017\n\013CREDIT_C" +
"ARD\020\003\022\027\n\023FREQUENT_FLYER_CARD\020\004\022\031\n\025OTHER_" +
"TRAVEL_DOCUMENT\020\005B_\n\030com.passkit.grpc.Fl" +
"ightsZ,stash.passkit.com/io/model/sdk/go" +
"/io/flights\252\002\024PassKit.Grpc.Flightsb\006prot" +
"o3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.passkit.grpc.Flights.Barcode.getDescriptor(),
com.passkit.grpc.CommonObjects.getDescriptor(),
com.passkit.grpc.Personal.getDescriptor(),
grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(),
});
internal_static_flights_Passenger_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_flights_Passenger_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flights_Passenger_descriptor,
new java.lang.String[] { "PassengerDetails", "FrequentFlyerInfo", "IdentityDetails", "WithInfant", "InfantDetails", "KnownTravelerNumber", });
internal_static_flights_FrequentFlyerInfo_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_flights_FrequentFlyerInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flights_FrequentFlyerInfo_descriptor,
new java.lang.String[] { "ProgramName", "AirlineDesignator", "Number", "Tier", });
internal_static_flights_IdentityDetails_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_flights_IdentityDetails_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flights_IdentityDetails_descriptor,
new java.lang.String[] { "IdentityDocument", "IssuingCountry", "Nationality", "DocumentNumber", "DateOfBirth", "Gender", "IssuedDate", "ExpiryDate", });
internal_static_flights_Infant_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_flights_Infant_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flights_Infant_descriptor,
new java.lang.String[] { "InfantDetails", "IdentityDetails", "BarcodePayload", "ConditionalItems", "BarcodeAdditionalData", "SecurityImage", "PrivilegeImage", "FooterImage", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(grpc.gateway.protoc_gen_openapiv2.options.Annotations.openapiv2Schema);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.passkit.grpc.Flights.Barcode.getDescriptor();
com.passkit.grpc.CommonObjects.getDescriptor();
com.passkit.grpc.Personal.getDescriptor();
grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}