com.passkit.grpc.Flights.FlightOuterClass 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/flight.proto
package com.passkit.grpc.Flights;
public final class FlightOuterClass {
private FlightOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* For customers subscribing to automatic updates, the flight status will be automatically updated. Status is also writable for manual updates.
*
*
* Protobuf enum {@code flights.FlightStatus}
*/
public enum FlightStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* No status is known, or flight is not yet scheduled.
*
*
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
*
* Flight is scheduled to depart.
*
*
* SCHEDULED = 1;
*/
SCHEDULED(1),
/**
*
* Flight has left the departure gate, but may not be airborne yet.
*
*
* DEPARTED = 2;
*/
DEPARTED(2),
/**
*
* Flight is airborne.
*
*
* INAIR = 3;
*/
INAIR(3),
/**
*
* Flight has landed, but may not yet be at the arrival gate.
*
*
* LANDED = 4;
*/
LANDED(4),
/**
*
* Flight has arrived at the destination gate.
*
*
* ARRIVED = 5;
*/
ARRIVED(5),
/**
*
* Flight has been cancelled.
*
*
* CANCELLED = 6;
*/
CANCELLED(6),
/**
*
* Flight is delayed to depart by at least 15 minutes.
*
*
* DELAYED = 7;
*/
DELAYED(7),
/**
*
* Flight has been diverted from its scheduled destination and has left the departure gate.
*
*
* DEPARTED_DIVERTED = 8;
*/
DEPARTED_DIVERTED(8),
/**
*
* Flight has been diverted from its scheduled destination and is airborne.
*
*
* INAIR_DIVERTED = 9;
*/
INAIR_DIVERTED(9),
/**
*
* Flight has arrived at a location different to its scheduled destination.
*
*
* ARRIVED_DIVERTED = 10;
*/
ARRIVED_DIVERTED(10),
/**
*
* Flight has left its diverted destination en-route to its original destination.
*
*
* DEPARTED_RECOVERY = 11;
*/
DEPARTED_RECOVERY(11),
/**
*
* Flight has left its diverted destination airborne en-route to its original destination.
*
*
* INAIR_RECOVERY = 12;
*/
INAIR_RECOVERY(12),
/**
*
* Flight has landed at is original scheduled destination.
*
*
* ARRIVED_RECOVERY = 13;
*/
ARRIVED_RECOVERY(13),
UNRECOGNIZED(-1),
;
/**
*
* No status is known, or flight is not yet scheduled.
*
*
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
*
* Flight is scheduled to depart.
*
*
* SCHEDULED = 1;
*/
public static final int SCHEDULED_VALUE = 1;
/**
*
* Flight has left the departure gate, but may not be airborne yet.
*
*
* DEPARTED = 2;
*/
public static final int DEPARTED_VALUE = 2;
/**
*
* Flight is airborne.
*
*
* INAIR = 3;
*/
public static final int INAIR_VALUE = 3;
/**
*
* Flight has landed, but may not yet be at the arrival gate.
*
*
* LANDED = 4;
*/
public static final int LANDED_VALUE = 4;
/**
*
* Flight has arrived at the destination gate.
*
*
* ARRIVED = 5;
*/
public static final int ARRIVED_VALUE = 5;
/**
*
* Flight has been cancelled.
*
*
* CANCELLED = 6;
*/
public static final int CANCELLED_VALUE = 6;
/**
*
* Flight is delayed to depart by at least 15 minutes.
*
*
* DELAYED = 7;
*/
public static final int DELAYED_VALUE = 7;
/**
*
* Flight has been diverted from its scheduled destination and has left the departure gate.
*
*
* DEPARTED_DIVERTED = 8;
*/
public static final int DEPARTED_DIVERTED_VALUE = 8;
/**
*
* Flight has been diverted from its scheduled destination and is airborne.
*
*
* INAIR_DIVERTED = 9;
*/
public static final int INAIR_DIVERTED_VALUE = 9;
/**
*
* Flight has arrived at a location different to its scheduled destination.
*
*
* ARRIVED_DIVERTED = 10;
*/
public static final int ARRIVED_DIVERTED_VALUE = 10;
/**
*
* Flight has left its diverted destination en-route to its original destination.
*
*
* DEPARTED_RECOVERY = 11;
*/
public static final int DEPARTED_RECOVERY_VALUE = 11;
/**
*
* Flight has left its diverted destination airborne en-route to its original destination.
*
*
* INAIR_RECOVERY = 12;
*/
public static final int INAIR_RECOVERY_VALUE = 12;
/**
*
* Flight has landed at is original scheduled destination.
*
*
* ARRIVED_RECOVERY = 13;
*/
public static final int ARRIVED_RECOVERY_VALUE = 13;
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 FlightStatus 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 FlightStatus forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return SCHEDULED;
case 2: return DEPARTED;
case 3: return INAIR;
case 4: return LANDED;
case 5: return ARRIVED;
case 6: return CANCELLED;
case 7: return DELAYED;
case 8: return DEPARTED_DIVERTED;
case 9: return INAIR_DIVERTED;
case 10: return ARRIVED_DIVERTED;
case 11: return DEPARTED_RECOVERY;
case 12: return INAIR_RECOVERY;
case 13: return ARRIVED_RECOVERY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
FlightStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public FlightStatus findValueByNumber(int number) {
return FlightStatus.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.FlightOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final FlightStatus[] VALUES = values();
public static FlightStatus 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 FlightStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:flights.FlightStatus)
}
/**
* Protobuf enum {@code flights.FlightCreateMode}
*/
public enum FlightCreateMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* DO_NOT_USE = 0;
*/
DO_NOT_USE(0),
/**
* MANUAL = 1;
*/
MANUAL(1),
/**
* AUTOMATIC = 2;
*/
AUTOMATIC(2),
UNRECOGNIZED(-1),
;
/**
* DO_NOT_USE = 0;
*/
public static final int DO_NOT_USE_VALUE = 0;
/**
* MANUAL = 1;
*/
public static final int MANUAL_VALUE = 1;
/**
* AUTOMATIC = 2;
*/
public static final int AUTOMATIC_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FlightCreateMode 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 FlightCreateMode forNumber(int value) {
switch (value) {
case 0: return DO_NOT_USE;
case 1: return MANUAL;
case 2: return AUTOMATIC;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
FlightCreateMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public FlightCreateMode findValueByNumber(int number) {
return FlightCreateMode.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.FlightOuterClass.getDescriptor().getEnumTypes().get(1);
}
private static final FlightCreateMode[] VALUES = values();
public static FlightCreateMode 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 FlightCreateMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:flights.FlightCreateMode)
}
public interface FlightOrBuilder extends
// @@protoc_insertion_point(interface_extends:flights.Flight)
com.google.protobuf.MessageOrBuilder {
/**
*
* The IATA or ICAO carrier code for the flight. In the case of a code-share, this should be the carrier code that you wish to present to the customer. This could be the marketing code, or the operating airline code. A carrier record for this code must exist.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The carrierCode.
*/
java.lang.String getCarrierCode();
/**
*
* The IATA or ICAO carrier code for the flight. In the case of a code-share, this should be the carrier code that you wish to present to the customer. This could be the marketing code, or the operating airline code. A carrier record for this code must exist.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for carrierCode.
*/
com.google.protobuf.ByteString
getCarrierCodeBytes();
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The flightNumber.
*/
java.lang.String getFlightNumber();
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for flightNumber.
*/
com.google.protobuf.ByteString
getFlightNumberBytes();
/**
*
* The IATA airport code of the boarding point. Only required is segment is not provided.
*
*
* string boardingPoint = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The boardingPoint.
*/
java.lang.String getBoardingPoint();
/**
*
* The IATA airport code of the boarding point. Only required is segment is not provided.
*
*
* string boardingPoint = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for boardingPoint.
*/
com.google.protobuf.ByteString
getBoardingPointBytes();
/**
*
* The IATA airport code of the deplaning point.
*
*
* string deplaningPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The deplaningPoint.
*/
java.lang.String getDeplaningPoint();
/**
*
* The IATA airport code of the deplaning point.
*
*
* string deplaningPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for deplaningPoint.
*/
com.google.protobuf.ByteString
getDeplaningPointBytes();
/**
*
* The scheduled date of departure.
*
*
* .io.Date departureDate = 5;
* @return Whether the departureDate field is set.
*/
boolean hasDepartureDate();
/**
*
* The scheduled date of departure.
*
*
* .io.Date departureDate = 5;
* @return The departureDate.
*/
com.passkit.grpc.CommonObjects.Date getDepartureDate();
/**
*
* The scheduled date of departure.
*
*
* .io.Date departureDate = 5;
*/
com.passkit.grpc.CommonObjects.DateOrBuilder getDepartureDateOrBuilder();
/**
*
* Departure Terminal.
*
*
* string departureTerminal = 6;
* @return The departureTerminal.
*/
java.lang.String getDepartureTerminal();
/**
*
* Departure Terminal.
*
*
* string departureTerminal = 6;
* @return The bytes for departureTerminal.
*/
com.google.protobuf.ByteString
getDepartureTerminalBytes();
/**
*
* Arrival Terminal.
*
*
* string arrivalTerminal = 7;
* @return The arrivalTerminal.
*/
java.lang.String getArrivalTerminal();
/**
*
* Arrival Terminal.
*
*
* string arrivalTerminal = 7;
* @return The bytes for arrivalTerminal.
*/
com.google.protobuf.ByteString
getArrivalTerminalBytes();
/**
*
* Departure Gate.
*
*
* string departureGate = 8;
* @return The departureGate.
*/
java.lang.String getDepartureGate();
/**
*
* Departure Gate.
*
*
* string departureGate = 8;
* @return The bytes for departureGate.
*/
com.google.protobuf.ByteString
getDepartureGateBytes();
/**
*
* Arrival Gate.
*
*
* string arrivalGate = 9;
* @return The arrivalGate.
*/
java.lang.String getArrivalGate();
/**
*
* Arrival Gate.
*
*
* string arrivalGate = 9;
* @return The bytes for arrivalGate.
*/
com.google.protobuf.ByteString
getArrivalGateBytes();
/**
*
* The scheduled departure time. If omitted then the departureDate must be specified.
*
*
* .io.LocalDateTime scheduledDepartureTime = 10;
* @return Whether the scheduledDepartureTime field is set.
*/
boolean hasScheduledDepartureTime();
/**
*
* The scheduled departure time. If omitted then the departureDate must be specified.
*
*
* .io.LocalDateTime scheduledDepartureTime = 10;
* @return The scheduledDepartureTime.
*/
com.passkit.grpc.CommonObjects.LocalDateTime getScheduledDepartureTime();
/**
*
* The scheduled departure time. If omitted then the departureDate must be specified.
*
*
* .io.LocalDateTime scheduledDepartureTime = 10;
*/
com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getScheduledDepartureTimeOrBuilder();
/**
*
* The estimated departure time.
*
*
* .io.LocalDateTime estimatedDepartureTime = 11;
* @return Whether the estimatedDepartureTime field is set.
*/
boolean hasEstimatedDepartureTime();
/**
*
* The estimated departure time.
*
*
* .io.LocalDateTime estimatedDepartureTime = 11;
* @return The estimatedDepartureTime.
*/
com.passkit.grpc.CommonObjects.LocalDateTime getEstimatedDepartureTime();
/**
*
* The estimated departure time.
*
*
* .io.LocalDateTime estimatedDepartureTime = 11;
*/
com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getEstimatedDepartureTimeOrBuilder();
/**
*
* The boarding time.
*
*
* .io.LocalDateTime boardingTime = 12;
* @return Whether the boardingTime field is set.
*/
boolean hasBoardingTime();
/**
*
* The boarding time.
*
*
* .io.LocalDateTime boardingTime = 12;
* @return The boardingTime.
*/
com.passkit.grpc.CommonObjects.LocalDateTime getBoardingTime();
/**
*
* The boarding time.
*
*
* .io.LocalDateTime boardingTime = 12;
*/
com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getBoardingTimeOrBuilder();
/**
*
* The time the gate will close.
*
*
* .io.LocalDateTime gateClosingTime = 13;
* @return Whether the gateClosingTime field is set.
*/
boolean hasGateClosingTime();
/**
*
* The time the gate will close.
*
*
* .io.LocalDateTime gateClosingTime = 13;
* @return The gateClosingTime.
*/
com.passkit.grpc.CommonObjects.LocalDateTime getGateClosingTime();
/**
*
* The time the gate will close.
*
*
* .io.LocalDateTime gateClosingTime = 13;
*/
com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getGateClosingTimeOrBuilder();
/**
*
* The scheduled arrival time.
*
*
* .io.LocalDateTime scheduledArrivalTime = 14;
* @return Whether the scheduledArrivalTime field is set.
*/
boolean hasScheduledArrivalTime();
/**
*
* The scheduled arrival time.
*
*
* .io.LocalDateTime scheduledArrivalTime = 14;
* @return The scheduledArrivalTime.
*/
com.passkit.grpc.CommonObjects.LocalDateTime getScheduledArrivalTime();
/**
*
* The scheduled arrival time.
*
*
* .io.LocalDateTime scheduledArrivalTime = 14;
*/
com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getScheduledArrivalTimeOrBuilder();
/**
*
* The estimated arrival time.
*
*
* .io.LocalDateTime estimatedArrivalTime = 15;
* @return Whether the estimatedArrivalTime field is set.
*/
boolean hasEstimatedArrivalTime();
/**
*
* The estimated arrival time.
*
*
* .io.LocalDateTime estimatedArrivalTime = 15;
* @return The estimatedArrivalTime.
*/
com.passkit.grpc.CommonObjects.LocalDateTime getEstimatedArrivalTime();
/**
*
* The estimated arrival time.
*
*
* .io.LocalDateTime estimatedArrivalTime = 15;
*/
com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getEstimatedArrivalTimeOrBuilder();
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the IATA or ICAO carrier code for the operating carrier. A carrier record must exist.
*
*
* string operatingCarrierCode = 16 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The operatingCarrierCode.
*/
java.lang.String getOperatingCarrierCode();
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the IATA or ICAO carrier code for the operating carrier. A carrier record must exist.
*
*
* string operatingCarrierCode = 16 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for operatingCarrierCode.
*/
com.google.protobuf.ByteString
getOperatingCarrierCodeBytes();
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the flight number for the operating carrier.
*
*
* string operatingFlightNumber = 17 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The operatingFlightNumber.
*/
java.lang.String getOperatingFlightNumber();
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the flight number for the operating carrier.
*
*
* string operatingFlightNumber = 17 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for operatingFlightNumber.
*/
com.google.protobuf.ByteString
getOperatingFlightNumberBytes();
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @return A list containing the codeShareFlightNumbers.
*/
java.util.List
getCodeShareFlightNumbersList();
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @return The count of codeShareFlightNumbers.
*/
int getCodeShareFlightNumbersCount();
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @param index The index of the element to return.
* @return The codeShareFlightNumbers at the given index.
*/
java.lang.String getCodeShareFlightNumbers(int index);
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @param index The index of the value to return.
* @return The bytes of the codeShareFlightNumbers at the given index.
*/
com.google.protobuf.ByteString
getCodeShareFlightNumbersBytes(int index);
/**
*
* The pass template id.
*
*
* string passTemplateId = 19;
* @return The passTemplateId.
*/
java.lang.String getPassTemplateId();
/**
*
* The pass template id.
*
*
* string passTemplateId = 19;
* @return The bytes for passTemplateId.
*/
com.google.protobuf.ByteString
getPassTemplateIdBytes();
/**
*
* The baggage belt at the destination.
*
*
* string baggageBelt = 21;
* @return The baggageBelt.
*/
java.lang.String getBaggageBelt();
/**
*
* The baggage belt at the destination.
*
*
* string baggageBelt = 21;
* @return The bytes for baggageBelt.
*/
com.google.protobuf.ByteString
getBaggageBeltBytes();
/**
*
* Minutes after estimated or scheduled arrival to automatically invalidate the pass. Enter a value of 9999999 or greater if the pass should not auto invalidate. Default is 48 hours.
*
*
* uint32 autoInvalidateAfter = 22 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The autoInvalidateAfter.
*/
int getAutoInvalidateAfter();
/**
*
* Deprecated: Use InvalidateCancelledPasses.
*
*
* bool autoInvalidateCancelledPasses = 23 [deprecated = true];
* @return The autoInvalidateCancelledPasses.
*/
@java.lang.Deprecated boolean getAutoInvalidateCancelledPasses();
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
java.util.List
getLocationMessagesList();
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
com.passkit.grpc.Proximity.GPSLocation getLocationMessages(int index);
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
int getLocationMessagesCount();
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
java.util.List extends com.passkit.grpc.Proximity.GPSLocationOrBuilder>
getLocationMessagesOrBuilderList();
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
com.passkit.grpc.Proximity.GPSLocationOrBuilder getLocationMessagesOrBuilder(
int index);
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
java.util.List
getBeaconMessagesList();
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
com.passkit.grpc.Proximity.Beacon getBeaconMessages(int index);
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
int getBeaconMessagesCount();
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
java.util.List extends com.passkit.grpc.Proximity.BeaconOrBuilder>
getBeaconMessagesOrBuilderList();
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
com.passkit.grpc.Proximity.BeaconOrBuilder getBeaconMessagesOrBuilder(
int index);
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
java.util.List
getLinksList();
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
com.passkit.grpc.Links.Link getLinks(int index);
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
int getLinksCount();
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
java.util.List extends com.passkit.grpc.Links.LinkOrBuilder>
getLinksOrBuilderList();
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
com.passkit.grpc.Links.LinkOrBuilder getLinksOrBuilder(
int index);
/**
*
* Suspend automatic updates to all boarding passes for this flight.
*
*
* bool suspendAutomaticUpdates = 27;
* @return The suspendAutomaticUpdates.
*/
boolean getSuspendAutomaticUpdates();
/**
*
* Used to determine the label printed above the boarding group on the Google Pay pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 28;
* @return The enum numeric value on the wire for boardingPolicy.
*/
int getBoardingPolicyValue();
/**
*
* Used to determine the label printed above the boarding group on the Google Pay pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 28;
* @return The boardingPolicy.
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.BoardingPolicy getBoardingPolicy();
/**
*
* Used to determine the label printed above the seat class on the Google Pay pass. E.g. Economy, Economy Plus.
*
*
* .flights.SeatClassPolicy seatingPolicy = 29;
* @return The enum numeric value on the wire for seatingPolicy.
*/
int getSeatingPolicyValue();
/**
*
* Used to determine the label printed above the seat class on the Google Pay pass. E.g. Economy, Economy Plus.
*
*
* .flights.SeatClassPolicy seatingPolicy = 29;
* @return The seatingPolicy.
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy getSeatingPolicy();
/**
*
* The status of the flight. This can be manually set, or automatically set for customers subscribing to automatic updates.
*
*
* .flights.FlightStatus status = 30;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
*
* The status of the flight. This can be manually set, or automatically set for customers subscribing to automatic updates.
*
*
* .flights.FlightStatus status = 30;
* @return The status.
*/
com.passkit.grpc.Flights.FlightOuterClass.FlightStatus getStatus();
/**
*
* If PassKit are generating barcodes, include conditional items. Default false.
*
*
* bool ConditionalItems = 31;
* @return The conditionalItems.
*/
boolean getConditionalItems();
/**
*
* If PassKit are generating barcodes, default airline use data (IATA item 4). This can be overwritten at the flight and boarding pass level.
*
*
* string BarcodeAdditionalData = 32;
* @return The barcodeAdditionalData.
*/
java.lang.String getBarcodeAdditionalData();
/**
*
* If PassKit are generating barcodes, default airline use data (IATA item 4). This can be overwritten at the flight and boarding pass level.
*
*
* string BarcodeAdditionalData = 32;
* @return The bytes for barcodeAdditionalData.
*/
com.google.protobuf.ByteString
getBarcodeAdditionalDataBytes();
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 33;
* @return Whether the metrics field is set.
*/
boolean hasMetrics();
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 33;
* @return The metrics.
*/
com.passkit.grpc.MetricsOuterClass.Metrics getMetrics();
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 33;
*/
com.passkit.grpc.MetricsOuterClass.MetricsOrBuilder getMetricsOrBuilder();
/**
*
* How the flight was created Create mode, manually or automatically.
*
*
* .flights.FlightCreateMode createMethod = 34;
* @return The enum numeric value on the wire for createMethod.
*/
int getCreateMethodValue();
/**
*
* How the flight was created Create mode, manually or automatically.
*
*
* .flights.FlightCreateMode createMethod = 34;
* @return The createMethod.
*/
com.passkit.grpc.Flights.FlightOuterClass.FlightCreateMode getCreateMethod();
/**
*
* For automatically created flights, shows the ID of the designator that bootstrapped the flight record.
*
*
* string designatorId = 35;
* @return The designatorId.
*/
java.lang.String getDesignatorId();
/**
*
* For automatically created flights, shows the ID of the designator that bootstrapped the flight record.
*
*
* string designatorId = 35;
* @return The bytes for designatorId.
*/
com.google.protobuf.ByteString
getDesignatorIdBytes();
/**
*
* Invalidate passes where either the booking or the flight have been cancelled. Default is ON.
*
*
* .io.Toggle invalidateCancelledPasses = 36 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The enum numeric value on the wire for invalidateCancelledPasses.
*/
int getInvalidateCancelledPassesValue();
/**
*
* Invalidate passes where either the booking or the flight have been cancelled. Default is ON.
*
*
* .io.Toggle invalidateCancelledPasses = 36 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The invalidateCancelledPasses.
*/
com.passkit.grpc.CommonObjects.Toggle getInvalidateCancelledPasses();
}
/**
* Protobuf type {@code flights.Flight}
*/
public static final class Flight extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flights.Flight)
FlightOrBuilder {
private static final long serialVersionUID = 0L;
// Use Flight.newBuilder() to construct.
private Flight(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Flight() {
carrierCode_ = "";
flightNumber_ = "";
boardingPoint_ = "";
deplaningPoint_ = "";
departureTerminal_ = "";
arrivalTerminal_ = "";
departureGate_ = "";
arrivalGate_ = "";
operatingCarrierCode_ = "";
operatingFlightNumber_ = "";
codeShareFlightNumbers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
passTemplateId_ = "";
baggageBelt_ = "";
locationMessages_ = java.util.Collections.emptyList();
beaconMessages_ = java.util.Collections.emptyList();
links_ = java.util.Collections.emptyList();
boardingPolicy_ = 0;
seatingPolicy_ = 0;
status_ = 0;
barcodeAdditionalData_ = "";
createMethod_ = 0;
designatorId_ = "";
invalidateCancelledPasses_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Flight();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Flight(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
carrierCode_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
flightNumber_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
boardingPoint_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
deplaningPoint_ = s;
break;
}
case 42: {
com.passkit.grpc.CommonObjects.Date.Builder subBuilder = null;
if (departureDate_ != null) {
subBuilder = departureDate_.toBuilder();
}
departureDate_ = input.readMessage(com.passkit.grpc.CommonObjects.Date.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(departureDate_);
departureDate_ = subBuilder.buildPartial();
}
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
departureTerminal_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
arrivalTerminal_ = s;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
departureGate_ = s;
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
arrivalGate_ = s;
break;
}
case 82: {
com.passkit.grpc.CommonObjects.LocalDateTime.Builder subBuilder = null;
if (scheduledDepartureTime_ != null) {
subBuilder = scheduledDepartureTime_.toBuilder();
}
scheduledDepartureTime_ = input.readMessage(com.passkit.grpc.CommonObjects.LocalDateTime.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scheduledDepartureTime_);
scheduledDepartureTime_ = subBuilder.buildPartial();
}
break;
}
case 90: {
com.passkit.grpc.CommonObjects.LocalDateTime.Builder subBuilder = null;
if (estimatedDepartureTime_ != null) {
subBuilder = estimatedDepartureTime_.toBuilder();
}
estimatedDepartureTime_ = input.readMessage(com.passkit.grpc.CommonObjects.LocalDateTime.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(estimatedDepartureTime_);
estimatedDepartureTime_ = subBuilder.buildPartial();
}
break;
}
case 98: {
com.passkit.grpc.CommonObjects.LocalDateTime.Builder subBuilder = null;
if (boardingTime_ != null) {
subBuilder = boardingTime_.toBuilder();
}
boardingTime_ = input.readMessage(com.passkit.grpc.CommonObjects.LocalDateTime.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(boardingTime_);
boardingTime_ = subBuilder.buildPartial();
}
break;
}
case 106: {
com.passkit.grpc.CommonObjects.LocalDateTime.Builder subBuilder = null;
if (gateClosingTime_ != null) {
subBuilder = gateClosingTime_.toBuilder();
}
gateClosingTime_ = input.readMessage(com.passkit.grpc.CommonObjects.LocalDateTime.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(gateClosingTime_);
gateClosingTime_ = subBuilder.buildPartial();
}
break;
}
case 114: {
com.passkit.grpc.CommonObjects.LocalDateTime.Builder subBuilder = null;
if (scheduledArrivalTime_ != null) {
subBuilder = scheduledArrivalTime_.toBuilder();
}
scheduledArrivalTime_ = input.readMessage(com.passkit.grpc.CommonObjects.LocalDateTime.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scheduledArrivalTime_);
scheduledArrivalTime_ = subBuilder.buildPartial();
}
break;
}
case 122: {
com.passkit.grpc.CommonObjects.LocalDateTime.Builder subBuilder = null;
if (estimatedArrivalTime_ != null) {
subBuilder = estimatedArrivalTime_.toBuilder();
}
estimatedArrivalTime_ = input.readMessage(com.passkit.grpc.CommonObjects.LocalDateTime.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(estimatedArrivalTime_);
estimatedArrivalTime_ = subBuilder.buildPartial();
}
break;
}
case 130: {
java.lang.String s = input.readStringRequireUtf8();
operatingCarrierCode_ = s;
break;
}
case 138: {
java.lang.String s = input.readStringRequireUtf8();
operatingFlightNumber_ = s;
break;
}
case 146: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
codeShareFlightNumbers_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
codeShareFlightNumbers_.add(s);
break;
}
case 154: {
java.lang.String s = input.readStringRequireUtf8();
passTemplateId_ = s;
break;
}
case 170: {
java.lang.String s = input.readStringRequireUtf8();
baggageBelt_ = s;
break;
}
case 176: {
autoInvalidateAfter_ = input.readUInt32();
break;
}
case 184: {
autoInvalidateCancelledPasses_ = input.readBool();
break;
}
case 194: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
locationMessages_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
locationMessages_.add(
input.readMessage(com.passkit.grpc.Proximity.GPSLocation.parser(), extensionRegistry));
break;
}
case 202: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
beaconMessages_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
beaconMessages_.add(
input.readMessage(com.passkit.grpc.Proximity.Beacon.parser(), extensionRegistry));
break;
}
case 210: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
links_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
links_.add(
input.readMessage(com.passkit.grpc.Links.Link.parser(), extensionRegistry));
break;
}
case 216: {
suspendAutomaticUpdates_ = input.readBool();
break;
}
case 224: {
int rawValue = input.readEnum();
boardingPolicy_ = rawValue;
break;
}
case 232: {
int rawValue = input.readEnum();
seatingPolicy_ = rawValue;
break;
}
case 240: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 248: {
conditionalItems_ = input.readBool();
break;
}
case 258: {
java.lang.String s = input.readStringRequireUtf8();
barcodeAdditionalData_ = s;
break;
}
case 266: {
com.passkit.grpc.MetricsOuterClass.Metrics.Builder subBuilder = null;
if (metrics_ != null) {
subBuilder = metrics_.toBuilder();
}
metrics_ = input.readMessage(com.passkit.grpc.MetricsOuterClass.Metrics.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metrics_);
metrics_ = subBuilder.buildPartial();
}
break;
}
case 272: {
int rawValue = input.readEnum();
createMethod_ = rawValue;
break;
}
case 282: {
java.lang.String s = input.readStringRequireUtf8();
designatorId_ = s;
break;
}
case 288: {
int rawValue = input.readEnum();
invalidateCancelledPasses_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
codeShareFlightNumbers_ = codeShareFlightNumbers_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
locationMessages_ = java.util.Collections.unmodifiableList(locationMessages_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
beaconMessages_ = java.util.Collections.unmodifiableList(beaconMessages_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
links_ = java.util.Collections.unmodifiableList(links_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Flights.FlightOuterClass.internal_static_flights_Flight_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.FlightOuterClass.internal_static_flights_Flight_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.FlightOuterClass.Flight.class, com.passkit.grpc.Flights.FlightOuterClass.Flight.Builder.class);
}
public static final int CARRIERCODE_FIELD_NUMBER = 1;
private volatile java.lang.Object carrierCode_;
/**
*
* The IATA or ICAO carrier code for the flight. In the case of a code-share, this should be the carrier code that you wish to present to the customer. This could be the marketing code, or the operating airline code. A carrier record for this code must exist.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The carrierCode.
*/
@java.lang.Override
public java.lang.String getCarrierCode() {
java.lang.Object ref = carrierCode_;
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();
carrierCode_ = s;
return s;
}
}
/**
*
* The IATA or ICAO carrier code for the flight. In the case of a code-share, this should be the carrier code that you wish to present to the customer. This could be the marketing code, or the operating airline code. A carrier record for this code must exist.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for carrierCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCarrierCodeBytes() {
java.lang.Object ref = carrierCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
carrierCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FLIGHTNUMBER_FIELD_NUMBER = 2;
private volatile java.lang.Object flightNumber_;
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The flightNumber.
*/
@java.lang.Override
public java.lang.String getFlightNumber() {
java.lang.Object ref = flightNumber_;
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();
flightNumber_ = s;
return s;
}
}
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for flightNumber.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFlightNumberBytes() {
java.lang.Object ref = flightNumber_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
flightNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BOARDINGPOINT_FIELD_NUMBER = 3;
private volatile java.lang.Object boardingPoint_;
/**
*
* The IATA airport code of the boarding point. Only required is segment is not provided.
*
*
* string boardingPoint = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The boardingPoint.
*/
@java.lang.Override
public java.lang.String getBoardingPoint() {
java.lang.Object ref = boardingPoint_;
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();
boardingPoint_ = s;
return s;
}
}
/**
*
* The IATA airport code of the boarding point. Only required is segment is not provided.
*
*
* string boardingPoint = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for boardingPoint.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBoardingPointBytes() {
java.lang.Object ref = boardingPoint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
boardingPoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPLANINGPOINT_FIELD_NUMBER = 4;
private volatile java.lang.Object deplaningPoint_;
/**
*
* The IATA airport code of the deplaning point.
*
*
* string deplaningPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The deplaningPoint.
*/
@java.lang.Override
public java.lang.String getDeplaningPoint() {
java.lang.Object ref = deplaningPoint_;
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();
deplaningPoint_ = s;
return s;
}
}
/**
*
* The IATA airport code of the deplaning point.
*
*
* string deplaningPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for deplaningPoint.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeplaningPointBytes() {
java.lang.Object ref = deplaningPoint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deplaningPoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPARTUREDATE_FIELD_NUMBER = 5;
private com.passkit.grpc.CommonObjects.Date departureDate_;
/**
*
* The scheduled date of departure.
*
*
* .io.Date departureDate = 5;
* @return Whether the departureDate field is set.
*/
@java.lang.Override
public boolean hasDepartureDate() {
return departureDate_ != null;
}
/**
*
* The scheduled date of departure.
*
*
* .io.Date departureDate = 5;
* @return The departureDate.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.Date getDepartureDate() {
return departureDate_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : departureDate_;
}
/**
*
* The scheduled date of departure.
*
*
* .io.Date departureDate = 5;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.DateOrBuilder getDepartureDateOrBuilder() {
return getDepartureDate();
}
public static final int DEPARTURETERMINAL_FIELD_NUMBER = 6;
private volatile java.lang.Object departureTerminal_;
/**
*
* Departure Terminal.
*
*
* string departureTerminal = 6;
* @return The departureTerminal.
*/
@java.lang.Override
public java.lang.String getDepartureTerminal() {
java.lang.Object ref = departureTerminal_;
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();
departureTerminal_ = s;
return s;
}
}
/**
*
* Departure Terminal.
*
*
* string departureTerminal = 6;
* @return The bytes for departureTerminal.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDepartureTerminalBytes() {
java.lang.Object ref = departureTerminal_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
departureTerminal_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ARRIVALTERMINAL_FIELD_NUMBER = 7;
private volatile java.lang.Object arrivalTerminal_;
/**
*
* Arrival Terminal.
*
*
* string arrivalTerminal = 7;
* @return The arrivalTerminal.
*/
@java.lang.Override
public java.lang.String getArrivalTerminal() {
java.lang.Object ref = arrivalTerminal_;
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();
arrivalTerminal_ = s;
return s;
}
}
/**
*
* Arrival Terminal.
*
*
* string arrivalTerminal = 7;
* @return The bytes for arrivalTerminal.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getArrivalTerminalBytes() {
java.lang.Object ref = arrivalTerminal_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
arrivalTerminal_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPARTUREGATE_FIELD_NUMBER = 8;
private volatile java.lang.Object departureGate_;
/**
*
* Departure Gate.
*
*
* string departureGate = 8;
* @return The departureGate.
*/
@java.lang.Override
public java.lang.String getDepartureGate() {
java.lang.Object ref = departureGate_;
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();
departureGate_ = s;
return s;
}
}
/**
*
* Departure Gate.
*
*
* string departureGate = 8;
* @return The bytes for departureGate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDepartureGateBytes() {
java.lang.Object ref = departureGate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
departureGate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ARRIVALGATE_FIELD_NUMBER = 9;
private volatile java.lang.Object arrivalGate_;
/**
*
* Arrival Gate.
*
*
* string arrivalGate = 9;
* @return The arrivalGate.
*/
@java.lang.Override
public java.lang.String getArrivalGate() {
java.lang.Object ref = arrivalGate_;
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();
arrivalGate_ = s;
return s;
}
}
/**
*
* Arrival Gate.
*
*
* string arrivalGate = 9;
* @return The bytes for arrivalGate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getArrivalGateBytes() {
java.lang.Object ref = arrivalGate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
arrivalGate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCHEDULEDDEPARTURETIME_FIELD_NUMBER = 10;
private com.passkit.grpc.CommonObjects.LocalDateTime scheduledDepartureTime_;
/**
*
* The scheduled departure time. If omitted then the departureDate must be specified.
*
*
* .io.LocalDateTime scheduledDepartureTime = 10;
* @return Whether the scheduledDepartureTime field is set.
*/
@java.lang.Override
public boolean hasScheduledDepartureTime() {
return scheduledDepartureTime_ != null;
}
/**
*
* The scheduled departure time. If omitted then the departureDate must be specified.
*
*
* .io.LocalDateTime scheduledDepartureTime = 10;
* @return The scheduledDepartureTime.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.LocalDateTime getScheduledDepartureTime() {
return scheduledDepartureTime_ == null ? com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : scheduledDepartureTime_;
}
/**
*
* The scheduled departure time. If omitted then the departureDate must be specified.
*
*
* .io.LocalDateTime scheduledDepartureTime = 10;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getScheduledDepartureTimeOrBuilder() {
return getScheduledDepartureTime();
}
public static final int ESTIMATEDDEPARTURETIME_FIELD_NUMBER = 11;
private com.passkit.grpc.CommonObjects.LocalDateTime estimatedDepartureTime_;
/**
*
* The estimated departure time.
*
*
* .io.LocalDateTime estimatedDepartureTime = 11;
* @return Whether the estimatedDepartureTime field is set.
*/
@java.lang.Override
public boolean hasEstimatedDepartureTime() {
return estimatedDepartureTime_ != null;
}
/**
*
* The estimated departure time.
*
*
* .io.LocalDateTime estimatedDepartureTime = 11;
* @return The estimatedDepartureTime.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.LocalDateTime getEstimatedDepartureTime() {
return estimatedDepartureTime_ == null ? com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : estimatedDepartureTime_;
}
/**
*
* The estimated departure time.
*
*
* .io.LocalDateTime estimatedDepartureTime = 11;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getEstimatedDepartureTimeOrBuilder() {
return getEstimatedDepartureTime();
}
public static final int BOARDINGTIME_FIELD_NUMBER = 12;
private com.passkit.grpc.CommonObjects.LocalDateTime boardingTime_;
/**
*
* The boarding time.
*
*
* .io.LocalDateTime boardingTime = 12;
* @return Whether the boardingTime field is set.
*/
@java.lang.Override
public boolean hasBoardingTime() {
return boardingTime_ != null;
}
/**
*
* The boarding time.
*
*
* .io.LocalDateTime boardingTime = 12;
* @return The boardingTime.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.LocalDateTime getBoardingTime() {
return boardingTime_ == null ? com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : boardingTime_;
}
/**
*
* The boarding time.
*
*
* .io.LocalDateTime boardingTime = 12;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getBoardingTimeOrBuilder() {
return getBoardingTime();
}
public static final int GATECLOSINGTIME_FIELD_NUMBER = 13;
private com.passkit.grpc.CommonObjects.LocalDateTime gateClosingTime_;
/**
*
* The time the gate will close.
*
*
* .io.LocalDateTime gateClosingTime = 13;
* @return Whether the gateClosingTime field is set.
*/
@java.lang.Override
public boolean hasGateClosingTime() {
return gateClosingTime_ != null;
}
/**
*
* The time the gate will close.
*
*
* .io.LocalDateTime gateClosingTime = 13;
* @return The gateClosingTime.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.LocalDateTime getGateClosingTime() {
return gateClosingTime_ == null ? com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : gateClosingTime_;
}
/**
*
* The time the gate will close.
*
*
* .io.LocalDateTime gateClosingTime = 13;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getGateClosingTimeOrBuilder() {
return getGateClosingTime();
}
public static final int SCHEDULEDARRIVALTIME_FIELD_NUMBER = 14;
private com.passkit.grpc.CommonObjects.LocalDateTime scheduledArrivalTime_;
/**
*
* The scheduled arrival time.
*
*
* .io.LocalDateTime scheduledArrivalTime = 14;
* @return Whether the scheduledArrivalTime field is set.
*/
@java.lang.Override
public boolean hasScheduledArrivalTime() {
return scheduledArrivalTime_ != null;
}
/**
*
* The scheduled arrival time.
*
*
* .io.LocalDateTime scheduledArrivalTime = 14;
* @return The scheduledArrivalTime.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.LocalDateTime getScheduledArrivalTime() {
return scheduledArrivalTime_ == null ? com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : scheduledArrivalTime_;
}
/**
*
* The scheduled arrival time.
*
*
* .io.LocalDateTime scheduledArrivalTime = 14;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getScheduledArrivalTimeOrBuilder() {
return getScheduledArrivalTime();
}
public static final int ESTIMATEDARRIVALTIME_FIELD_NUMBER = 15;
private com.passkit.grpc.CommonObjects.LocalDateTime estimatedArrivalTime_;
/**
*
* The estimated arrival time.
*
*
* .io.LocalDateTime estimatedArrivalTime = 15;
* @return Whether the estimatedArrivalTime field is set.
*/
@java.lang.Override
public boolean hasEstimatedArrivalTime() {
return estimatedArrivalTime_ != null;
}
/**
*
* The estimated arrival time.
*
*
* .io.LocalDateTime estimatedArrivalTime = 15;
* @return The estimatedArrivalTime.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.LocalDateTime getEstimatedArrivalTime() {
return estimatedArrivalTime_ == null ? com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : estimatedArrivalTime_;
}
/**
*
* The estimated arrival time.
*
*
* .io.LocalDateTime estimatedArrivalTime = 15;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getEstimatedArrivalTimeOrBuilder() {
return getEstimatedArrivalTime();
}
public static final int OPERATINGCARRIERCODE_FIELD_NUMBER = 16;
private volatile java.lang.Object operatingCarrierCode_;
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the IATA or ICAO carrier code for the operating carrier. A carrier record must exist.
*
*
* string operatingCarrierCode = 16 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The operatingCarrierCode.
*/
@java.lang.Override
public java.lang.String getOperatingCarrierCode() {
java.lang.Object ref = operatingCarrierCode_;
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();
operatingCarrierCode_ = s;
return s;
}
}
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the IATA or ICAO carrier code for the operating carrier. A carrier record must exist.
*
*
* string operatingCarrierCode = 16 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for operatingCarrierCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOperatingCarrierCodeBytes() {
java.lang.Object ref = operatingCarrierCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operatingCarrierCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPERATINGFLIGHTNUMBER_FIELD_NUMBER = 17;
private volatile java.lang.Object operatingFlightNumber_;
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the flight number for the operating carrier.
*
*
* string operatingFlightNumber = 17 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The operatingFlightNumber.
*/
@java.lang.Override
public java.lang.String getOperatingFlightNumber() {
java.lang.Object ref = operatingFlightNumber_;
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();
operatingFlightNumber_ = s;
return s;
}
}
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the flight number for the operating carrier.
*
*
* string operatingFlightNumber = 17 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for operatingFlightNumber.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOperatingFlightNumberBytes() {
java.lang.Object ref = operatingFlightNumber_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operatingFlightNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CODESHAREFLIGHTNUMBERS_FIELD_NUMBER = 18;
private com.google.protobuf.LazyStringList codeShareFlightNumbers_;
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @return A list containing the codeShareFlightNumbers.
*/
public com.google.protobuf.ProtocolStringList
getCodeShareFlightNumbersList() {
return codeShareFlightNumbers_;
}
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @return The count of codeShareFlightNumbers.
*/
public int getCodeShareFlightNumbersCount() {
return codeShareFlightNumbers_.size();
}
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @param index The index of the element to return.
* @return The codeShareFlightNumbers at the given index.
*/
public java.lang.String getCodeShareFlightNumbers(int index) {
return codeShareFlightNumbers_.get(index);
}
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @param index The index of the value to return.
* @return The bytes of the codeShareFlightNumbers at the given index.
*/
public com.google.protobuf.ByteString
getCodeShareFlightNumbersBytes(int index) {
return codeShareFlightNumbers_.getByteString(index);
}
public static final int PASSTEMPLATEID_FIELD_NUMBER = 19;
private volatile java.lang.Object passTemplateId_;
/**
*
* The pass template id.
*
*
* string passTemplateId = 19;
* @return The passTemplateId.
*/
@java.lang.Override
public java.lang.String getPassTemplateId() {
java.lang.Object ref = passTemplateId_;
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();
passTemplateId_ = s;
return s;
}
}
/**
*
* The pass template id.
*
*
* string passTemplateId = 19;
* @return The bytes for passTemplateId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPassTemplateIdBytes() {
java.lang.Object ref = passTemplateId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
passTemplateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BAGGAGEBELT_FIELD_NUMBER = 21;
private volatile java.lang.Object baggageBelt_;
/**
*
* The baggage belt at the destination.
*
*
* string baggageBelt = 21;
* @return The baggageBelt.
*/
@java.lang.Override
public java.lang.String getBaggageBelt() {
java.lang.Object ref = baggageBelt_;
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();
baggageBelt_ = s;
return s;
}
}
/**
*
* The baggage belt at the destination.
*
*
* string baggageBelt = 21;
* @return The bytes for baggageBelt.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBaggageBeltBytes() {
java.lang.Object ref = baggageBelt_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
baggageBelt_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AUTOINVALIDATEAFTER_FIELD_NUMBER = 22;
private int autoInvalidateAfter_;
/**
*
* Minutes after estimated or scheduled arrival to automatically invalidate the pass. Enter a value of 9999999 or greater if the pass should not auto invalidate. Default is 48 hours.
*
*
* uint32 autoInvalidateAfter = 22 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The autoInvalidateAfter.
*/
@java.lang.Override
public int getAutoInvalidateAfter() {
return autoInvalidateAfter_;
}
public static final int AUTOINVALIDATECANCELLEDPASSES_FIELD_NUMBER = 23;
private boolean autoInvalidateCancelledPasses_;
/**
*
* Deprecated: Use InvalidateCancelledPasses.
*
*
* bool autoInvalidateCancelledPasses = 23 [deprecated = true];
* @return The autoInvalidateCancelledPasses.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getAutoInvalidateCancelledPasses() {
return autoInvalidateCancelledPasses_;
}
public static final int LOCATIONMESSAGES_FIELD_NUMBER = 24;
private java.util.List locationMessages_;
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public java.util.List getLocationMessagesList() {
return locationMessages_;
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public java.util.List extends com.passkit.grpc.Proximity.GPSLocationOrBuilder>
getLocationMessagesOrBuilderList() {
return locationMessages_;
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public int getLocationMessagesCount() {
return locationMessages_.size();
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public com.passkit.grpc.Proximity.GPSLocation getLocationMessages(int index) {
return locationMessages_.get(index);
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public com.passkit.grpc.Proximity.GPSLocationOrBuilder getLocationMessagesOrBuilder(
int index) {
return locationMessages_.get(index);
}
public static final int BEACONMESSAGES_FIELD_NUMBER = 25;
private java.util.List beaconMessages_;
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public java.util.List getBeaconMessagesList() {
return beaconMessages_;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public java.util.List extends com.passkit.grpc.Proximity.BeaconOrBuilder>
getBeaconMessagesOrBuilderList() {
return beaconMessages_;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public int getBeaconMessagesCount() {
return beaconMessages_.size();
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public com.passkit.grpc.Proximity.Beacon getBeaconMessages(int index) {
return beaconMessages_.get(index);
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public com.passkit.grpc.Proximity.BeaconOrBuilder getBeaconMessagesOrBuilder(
int index) {
return beaconMessages_.get(index);
}
public static final int LINKS_FIELD_NUMBER = 26;
private java.util.List links_;
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public java.util.List getLinksList() {
return links_;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public java.util.List extends com.passkit.grpc.Links.LinkOrBuilder>
getLinksOrBuilderList() {
return links_;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public int getLinksCount() {
return links_.size();
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public com.passkit.grpc.Links.Link getLinks(int index) {
return links_.get(index);
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public com.passkit.grpc.Links.LinkOrBuilder getLinksOrBuilder(
int index) {
return links_.get(index);
}
public static final int SUSPENDAUTOMATICUPDATES_FIELD_NUMBER = 27;
private boolean suspendAutomaticUpdates_;
/**
*
* Suspend automatic updates to all boarding passes for this flight.
*
*
* bool suspendAutomaticUpdates = 27;
* @return The suspendAutomaticUpdates.
*/
@java.lang.Override
public boolean getSuspendAutomaticUpdates() {
return suspendAutomaticUpdates_;
}
public static final int BOARDINGPOLICY_FIELD_NUMBER = 28;
private int boardingPolicy_;
/**
*
* Used to determine the label printed above the boarding group on the Google Pay pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 28;
* @return The enum numeric value on the wire for boardingPolicy.
*/
@java.lang.Override public int getBoardingPolicyValue() {
return boardingPolicy_;
}
/**
*
* Used to determine the label printed above the boarding group on the Google Pay pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 28;
* @return The boardingPolicy.
*/
@java.lang.Override public com.passkit.grpc.Flights.FlightDesignatorOuterClass.BoardingPolicy getBoardingPolicy() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Flights.FlightDesignatorOuterClass.BoardingPolicy result = com.passkit.grpc.Flights.FlightDesignatorOuterClass.BoardingPolicy.valueOf(boardingPolicy_);
return result == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.BoardingPolicy.UNRECOGNIZED : result;
}
public static final int SEATINGPOLICY_FIELD_NUMBER = 29;
private int seatingPolicy_;
/**
*
* Used to determine the label printed above the seat class on the Google Pay pass. E.g. Economy, Economy Plus.
*
*
* .flights.SeatClassPolicy seatingPolicy = 29;
* @return The enum numeric value on the wire for seatingPolicy.
*/
@java.lang.Override public int getSeatingPolicyValue() {
return seatingPolicy_;
}
/**
*
* Used to determine the label printed above the seat class on the Google Pay pass. E.g. Economy, Economy Plus.
*
*
* .flights.SeatClassPolicy seatingPolicy = 29;
* @return The seatingPolicy.
*/
@java.lang.Override public com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy getSeatingPolicy() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy result = com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy.valueOf(seatingPolicy_);
return result == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy.UNRECOGNIZED : result;
}
public static final int STATUS_FIELD_NUMBER = 30;
private int status_;
/**
*
* The status of the flight. This can be manually set, or automatically set for customers subscribing to automatic updates.
*
*
* .flights.FlightStatus status = 30;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* The status of the flight. This can be manually set, or automatically set for customers subscribing to automatic updates.
*
*
* .flights.FlightStatus status = 30;
* @return The status.
*/
@java.lang.Override public com.passkit.grpc.Flights.FlightOuterClass.FlightStatus getStatus() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Flights.FlightOuterClass.FlightStatus result = com.passkit.grpc.Flights.FlightOuterClass.FlightStatus.valueOf(status_);
return result == null ? com.passkit.grpc.Flights.FlightOuterClass.FlightStatus.UNRECOGNIZED : result;
}
public static final int CONDITIONALITEMS_FIELD_NUMBER = 31;
private boolean conditionalItems_;
/**
*
* If PassKit are generating barcodes, include conditional items. Default false.
*
*
* bool ConditionalItems = 31;
* @return The conditionalItems.
*/
@java.lang.Override
public boolean getConditionalItems() {
return conditionalItems_;
}
public static final int BARCODEADDITIONALDATA_FIELD_NUMBER = 32;
private volatile java.lang.Object barcodeAdditionalData_;
/**
*
* If PassKit are generating barcodes, default airline use data (IATA item 4). This can be overwritten at the flight and boarding pass level.
*
*
* string BarcodeAdditionalData = 32;
* @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;
}
}
/**
*
* If PassKit are generating barcodes, default airline use data (IATA item 4). This can be overwritten at the flight and boarding pass level.
*
*
* string BarcodeAdditionalData = 32;
* @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 METRICS_FIELD_NUMBER = 33;
private com.passkit.grpc.MetricsOuterClass.Metrics metrics_;
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 33;
* @return Whether the metrics field is set.
*/
@java.lang.Override
public boolean hasMetrics() {
return metrics_ != null;
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 33;
* @return The metrics.
*/
@java.lang.Override
public com.passkit.grpc.MetricsOuterClass.Metrics getMetrics() {
return metrics_ == null ? com.passkit.grpc.MetricsOuterClass.Metrics.getDefaultInstance() : metrics_;
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 33;
*/
@java.lang.Override
public com.passkit.grpc.MetricsOuterClass.MetricsOrBuilder getMetricsOrBuilder() {
return getMetrics();
}
public static final int CREATEMETHOD_FIELD_NUMBER = 34;
private int createMethod_;
/**
*
* How the flight was created Create mode, manually or automatically.
*
*
* .flights.FlightCreateMode createMethod = 34;
* @return The enum numeric value on the wire for createMethod.
*/
@java.lang.Override public int getCreateMethodValue() {
return createMethod_;
}
/**
*
* How the flight was created Create mode, manually or automatically.
*
*
* .flights.FlightCreateMode createMethod = 34;
* @return The createMethod.
*/
@java.lang.Override public com.passkit.grpc.Flights.FlightOuterClass.FlightCreateMode getCreateMethod() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Flights.FlightOuterClass.FlightCreateMode result = com.passkit.grpc.Flights.FlightOuterClass.FlightCreateMode.valueOf(createMethod_);
return result == null ? com.passkit.grpc.Flights.FlightOuterClass.FlightCreateMode.UNRECOGNIZED : result;
}
public static final int DESIGNATORID_FIELD_NUMBER = 35;
private volatile java.lang.Object designatorId_;
/**
*
* For automatically created flights, shows the ID of the designator that bootstrapped the flight record.
*
*
* string designatorId = 35;
* @return The designatorId.
*/
@java.lang.Override
public java.lang.String getDesignatorId() {
java.lang.Object ref = designatorId_;
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();
designatorId_ = s;
return s;
}
}
/**
*
* For automatically created flights, shows the ID of the designator that bootstrapped the flight record.
*
*
* string designatorId = 35;
* @return The bytes for designatorId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDesignatorIdBytes() {
java.lang.Object ref = designatorId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
designatorId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INVALIDATECANCELLEDPASSES_FIELD_NUMBER = 36;
private int invalidateCancelledPasses_;
/**
*
* Invalidate passes where either the booking or the flight have been cancelled. Default is ON.
*
*
* .io.Toggle invalidateCancelledPasses = 36 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The enum numeric value on the wire for invalidateCancelledPasses.
*/
@java.lang.Override public int getInvalidateCancelledPassesValue() {
return invalidateCancelledPasses_;
}
/**
*
* Invalidate passes where either the booking or the flight have been cancelled. Default is ON.
*
*
* .io.Toggle invalidateCancelledPasses = 36 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The invalidateCancelledPasses.
*/
@java.lang.Override public com.passkit.grpc.CommonObjects.Toggle getInvalidateCancelledPasses() {
@SuppressWarnings("deprecation")
com.passkit.grpc.CommonObjects.Toggle result = com.passkit.grpc.CommonObjects.Toggle.valueOf(invalidateCancelledPasses_);
return result == null ? com.passkit.grpc.CommonObjects.Toggle.UNRECOGNIZED : result;
}
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 (!getCarrierCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, carrierCode_);
}
if (!getFlightNumberBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flightNumber_);
}
if (!getBoardingPointBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, boardingPoint_);
}
if (!getDeplaningPointBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, deplaningPoint_);
}
if (departureDate_ != null) {
output.writeMessage(5, getDepartureDate());
}
if (!getDepartureTerminalBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, departureTerminal_);
}
if (!getArrivalTerminalBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, arrivalTerminal_);
}
if (!getDepartureGateBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, departureGate_);
}
if (!getArrivalGateBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, arrivalGate_);
}
if (scheduledDepartureTime_ != null) {
output.writeMessage(10, getScheduledDepartureTime());
}
if (estimatedDepartureTime_ != null) {
output.writeMessage(11, getEstimatedDepartureTime());
}
if (boardingTime_ != null) {
output.writeMessage(12, getBoardingTime());
}
if (gateClosingTime_ != null) {
output.writeMessage(13, getGateClosingTime());
}
if (scheduledArrivalTime_ != null) {
output.writeMessage(14, getScheduledArrivalTime());
}
if (estimatedArrivalTime_ != null) {
output.writeMessage(15, getEstimatedArrivalTime());
}
if (!getOperatingCarrierCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, operatingCarrierCode_);
}
if (!getOperatingFlightNumberBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, operatingFlightNumber_);
}
for (int i = 0; i < codeShareFlightNumbers_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, codeShareFlightNumbers_.getRaw(i));
}
if (!getPassTemplateIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 19, passTemplateId_);
}
if (!getBaggageBeltBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 21, baggageBelt_);
}
if (autoInvalidateAfter_ != 0) {
output.writeUInt32(22, autoInvalidateAfter_);
}
if (autoInvalidateCancelledPasses_ != false) {
output.writeBool(23, autoInvalidateCancelledPasses_);
}
for (int i = 0; i < locationMessages_.size(); i++) {
output.writeMessage(24, locationMessages_.get(i));
}
for (int i = 0; i < beaconMessages_.size(); i++) {
output.writeMessage(25, beaconMessages_.get(i));
}
for (int i = 0; i < links_.size(); i++) {
output.writeMessage(26, links_.get(i));
}
if (suspendAutomaticUpdates_ != false) {
output.writeBool(27, suspendAutomaticUpdates_);
}
if (boardingPolicy_ != com.passkit.grpc.Flights.FlightDesignatorOuterClass.BoardingPolicy.BOARDING_POLICY_UNSPECIFIED.getNumber()) {
output.writeEnum(28, boardingPolicy_);
}
if (seatingPolicy_ != com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy.SEAT_CLASS_POLICY_UNSPECIFIED.getNumber()) {
output.writeEnum(29, seatingPolicy_);
}
if (status_ != com.passkit.grpc.Flights.FlightOuterClass.FlightStatus.UNKNOWN.getNumber()) {
output.writeEnum(30, status_);
}
if (conditionalItems_ != false) {
output.writeBool(31, conditionalItems_);
}
if (!getBarcodeAdditionalDataBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 32, barcodeAdditionalData_);
}
if (metrics_ != null) {
output.writeMessage(33, getMetrics());
}
if (createMethod_ != com.passkit.grpc.Flights.FlightOuterClass.FlightCreateMode.DO_NOT_USE.getNumber()) {
output.writeEnum(34, createMethod_);
}
if (!getDesignatorIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 35, designatorId_);
}
if (invalidateCancelledPasses_ != com.passkit.grpc.CommonObjects.Toggle.DO_NOT_USE.getNumber()) {
output.writeEnum(36, invalidateCancelledPasses_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getCarrierCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, carrierCode_);
}
if (!getFlightNumberBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, flightNumber_);
}
if (!getBoardingPointBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, boardingPoint_);
}
if (!getDeplaningPointBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, deplaningPoint_);
}
if (departureDate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getDepartureDate());
}
if (!getDepartureTerminalBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, departureTerminal_);
}
if (!getArrivalTerminalBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, arrivalTerminal_);
}
if (!getDepartureGateBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, departureGate_);
}
if (!getArrivalGateBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, arrivalGate_);
}
if (scheduledDepartureTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getScheduledDepartureTime());
}
if (estimatedDepartureTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getEstimatedDepartureTime());
}
if (boardingTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getBoardingTime());
}
if (gateClosingTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getGateClosingTime());
}
if (scheduledArrivalTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getScheduledArrivalTime());
}
if (estimatedArrivalTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getEstimatedArrivalTime());
}
if (!getOperatingCarrierCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, operatingCarrierCode_);
}
if (!getOperatingFlightNumberBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, operatingFlightNumber_);
}
{
int dataSize = 0;
for (int i = 0; i < codeShareFlightNumbers_.size(); i++) {
dataSize += computeStringSizeNoTag(codeShareFlightNumbers_.getRaw(i));
}
size += dataSize;
size += 2 * getCodeShareFlightNumbersList().size();
}
if (!getPassTemplateIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, passTemplateId_);
}
if (!getBaggageBeltBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, baggageBelt_);
}
if (autoInvalidateAfter_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(22, autoInvalidateAfter_);
}
if (autoInvalidateCancelledPasses_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(23, autoInvalidateCancelledPasses_);
}
for (int i = 0; i < locationMessages_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(24, locationMessages_.get(i));
}
for (int i = 0; i < beaconMessages_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, beaconMessages_.get(i));
}
for (int i = 0; i < links_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, links_.get(i));
}
if (suspendAutomaticUpdates_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(27, suspendAutomaticUpdates_);
}
if (boardingPolicy_ != com.passkit.grpc.Flights.FlightDesignatorOuterClass.BoardingPolicy.BOARDING_POLICY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(28, boardingPolicy_);
}
if (seatingPolicy_ != com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy.SEAT_CLASS_POLICY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(29, seatingPolicy_);
}
if (status_ != com.passkit.grpc.Flights.FlightOuterClass.FlightStatus.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(30, status_);
}
if (conditionalItems_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(31, conditionalItems_);
}
if (!getBarcodeAdditionalDataBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(32, barcodeAdditionalData_);
}
if (metrics_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(33, getMetrics());
}
if (createMethod_ != com.passkit.grpc.Flights.FlightOuterClass.FlightCreateMode.DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(34, createMethod_);
}
if (!getDesignatorIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(35, designatorId_);
}
if (invalidateCancelledPasses_ != com.passkit.grpc.CommonObjects.Toggle.DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(36, invalidateCancelledPasses_);
}
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.FlightOuterClass.Flight)) {
return super.equals(obj);
}
com.passkit.grpc.Flights.FlightOuterClass.Flight other = (com.passkit.grpc.Flights.FlightOuterClass.Flight) obj;
if (!getCarrierCode()
.equals(other.getCarrierCode())) return false;
if (!getFlightNumber()
.equals(other.getFlightNumber())) return false;
if (!getBoardingPoint()
.equals(other.getBoardingPoint())) return false;
if (!getDeplaningPoint()
.equals(other.getDeplaningPoint())) return false;
if (hasDepartureDate() != other.hasDepartureDate()) return false;
if (hasDepartureDate()) {
if (!getDepartureDate()
.equals(other.getDepartureDate())) return false;
}
if (!getDepartureTerminal()
.equals(other.getDepartureTerminal())) return false;
if (!getArrivalTerminal()
.equals(other.getArrivalTerminal())) return false;
if (!getDepartureGate()
.equals(other.getDepartureGate())) return false;
if (!getArrivalGate()
.equals(other.getArrivalGate())) return false;
if (hasScheduledDepartureTime() != other.hasScheduledDepartureTime()) return false;
if (hasScheduledDepartureTime()) {
if (!getScheduledDepartureTime()
.equals(other.getScheduledDepartureTime())) return false;
}
if (hasEstimatedDepartureTime() != other.hasEstimatedDepartureTime()) return false;
if (hasEstimatedDepartureTime()) {
if (!getEstimatedDepartureTime()
.equals(other.getEstimatedDepartureTime())) return false;
}
if (hasBoardingTime() != other.hasBoardingTime()) return false;
if (hasBoardingTime()) {
if (!getBoardingTime()
.equals(other.getBoardingTime())) return false;
}
if (hasGateClosingTime() != other.hasGateClosingTime()) return false;
if (hasGateClosingTime()) {
if (!getGateClosingTime()
.equals(other.getGateClosingTime())) return false;
}
if (hasScheduledArrivalTime() != other.hasScheduledArrivalTime()) return false;
if (hasScheduledArrivalTime()) {
if (!getScheduledArrivalTime()
.equals(other.getScheduledArrivalTime())) return false;
}
if (hasEstimatedArrivalTime() != other.hasEstimatedArrivalTime()) return false;
if (hasEstimatedArrivalTime()) {
if (!getEstimatedArrivalTime()
.equals(other.getEstimatedArrivalTime())) return false;
}
if (!getOperatingCarrierCode()
.equals(other.getOperatingCarrierCode())) return false;
if (!getOperatingFlightNumber()
.equals(other.getOperatingFlightNumber())) return false;
if (!getCodeShareFlightNumbersList()
.equals(other.getCodeShareFlightNumbersList())) return false;
if (!getPassTemplateId()
.equals(other.getPassTemplateId())) return false;
if (!getBaggageBelt()
.equals(other.getBaggageBelt())) return false;
if (getAutoInvalidateAfter()
!= other.getAutoInvalidateAfter()) return false;
if (getAutoInvalidateCancelledPasses()
!= other.getAutoInvalidateCancelledPasses()) return false;
if (!getLocationMessagesList()
.equals(other.getLocationMessagesList())) return false;
if (!getBeaconMessagesList()
.equals(other.getBeaconMessagesList())) return false;
if (!getLinksList()
.equals(other.getLinksList())) return false;
if (getSuspendAutomaticUpdates()
!= other.getSuspendAutomaticUpdates()) return false;
if (boardingPolicy_ != other.boardingPolicy_) return false;
if (seatingPolicy_ != other.seatingPolicy_) return false;
if (status_ != other.status_) return false;
if (getConditionalItems()
!= other.getConditionalItems()) return false;
if (!getBarcodeAdditionalData()
.equals(other.getBarcodeAdditionalData())) return false;
if (hasMetrics() != other.hasMetrics()) return false;
if (hasMetrics()) {
if (!getMetrics()
.equals(other.getMetrics())) return false;
}
if (createMethod_ != other.createMethod_) return false;
if (!getDesignatorId()
.equals(other.getDesignatorId())) return false;
if (invalidateCancelledPasses_ != other.invalidateCancelledPasses_) 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) + CARRIERCODE_FIELD_NUMBER;
hash = (53 * hash) + getCarrierCode().hashCode();
hash = (37 * hash) + FLIGHTNUMBER_FIELD_NUMBER;
hash = (53 * hash) + getFlightNumber().hashCode();
hash = (37 * hash) + BOARDINGPOINT_FIELD_NUMBER;
hash = (53 * hash) + getBoardingPoint().hashCode();
hash = (37 * hash) + DEPLANINGPOINT_FIELD_NUMBER;
hash = (53 * hash) + getDeplaningPoint().hashCode();
if (hasDepartureDate()) {
hash = (37 * hash) + DEPARTUREDATE_FIELD_NUMBER;
hash = (53 * hash) + getDepartureDate().hashCode();
}
hash = (37 * hash) + DEPARTURETERMINAL_FIELD_NUMBER;
hash = (53 * hash) + getDepartureTerminal().hashCode();
hash = (37 * hash) + ARRIVALTERMINAL_FIELD_NUMBER;
hash = (53 * hash) + getArrivalTerminal().hashCode();
hash = (37 * hash) + DEPARTUREGATE_FIELD_NUMBER;
hash = (53 * hash) + getDepartureGate().hashCode();
hash = (37 * hash) + ARRIVALGATE_FIELD_NUMBER;
hash = (53 * hash) + getArrivalGate().hashCode();
if (hasScheduledDepartureTime()) {
hash = (37 * hash) + SCHEDULEDDEPARTURETIME_FIELD_NUMBER;
hash = (53 * hash) + getScheduledDepartureTime().hashCode();
}
if (hasEstimatedDepartureTime()) {
hash = (37 * hash) + ESTIMATEDDEPARTURETIME_FIELD_NUMBER;
hash = (53 * hash) + getEstimatedDepartureTime().hashCode();
}
if (hasBoardingTime()) {
hash = (37 * hash) + BOARDINGTIME_FIELD_NUMBER;
hash = (53 * hash) + getBoardingTime().hashCode();
}
if (hasGateClosingTime()) {
hash = (37 * hash) + GATECLOSINGTIME_FIELD_NUMBER;
hash = (53 * hash) + getGateClosingTime().hashCode();
}
if (hasScheduledArrivalTime()) {
hash = (37 * hash) + SCHEDULEDARRIVALTIME_FIELD_NUMBER;
hash = (53 * hash) + getScheduledArrivalTime().hashCode();
}
if (hasEstimatedArrivalTime()) {
hash = (37 * hash) + ESTIMATEDARRIVALTIME_FIELD_NUMBER;
hash = (53 * hash) + getEstimatedArrivalTime().hashCode();
}
hash = (37 * hash) + OPERATINGCARRIERCODE_FIELD_NUMBER;
hash = (53 * hash) + getOperatingCarrierCode().hashCode();
hash = (37 * hash) + OPERATINGFLIGHTNUMBER_FIELD_NUMBER;
hash = (53 * hash) + getOperatingFlightNumber().hashCode();
if (getCodeShareFlightNumbersCount() > 0) {
hash = (37 * hash) + CODESHAREFLIGHTNUMBERS_FIELD_NUMBER;
hash = (53 * hash) + getCodeShareFlightNumbersList().hashCode();
}
hash = (37 * hash) + PASSTEMPLATEID_FIELD_NUMBER;
hash = (53 * hash) + getPassTemplateId().hashCode();
hash = (37 * hash) + BAGGAGEBELT_FIELD_NUMBER;
hash = (53 * hash) + getBaggageBelt().hashCode();
hash = (37 * hash) + AUTOINVALIDATEAFTER_FIELD_NUMBER;
hash = (53 * hash) + getAutoInvalidateAfter();
hash = (37 * hash) + AUTOINVALIDATECANCELLEDPASSES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAutoInvalidateCancelledPasses());
if (getLocationMessagesCount() > 0) {
hash = (37 * hash) + LOCATIONMESSAGES_FIELD_NUMBER;
hash = (53 * hash) + getLocationMessagesList().hashCode();
}
if (getBeaconMessagesCount() > 0) {
hash = (37 * hash) + BEACONMESSAGES_FIELD_NUMBER;
hash = (53 * hash) + getBeaconMessagesList().hashCode();
}
if (getLinksCount() > 0) {
hash = (37 * hash) + LINKS_FIELD_NUMBER;
hash = (53 * hash) + getLinksList().hashCode();
}
hash = (37 * hash) + SUSPENDAUTOMATICUPDATES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSuspendAutomaticUpdates());
hash = (37 * hash) + BOARDINGPOLICY_FIELD_NUMBER;
hash = (53 * hash) + boardingPolicy_;
hash = (37 * hash) + SEATINGPOLICY_FIELD_NUMBER;
hash = (53 * hash) + seatingPolicy_;
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + CONDITIONALITEMS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getConditionalItems());
hash = (37 * hash) + BARCODEADDITIONALDATA_FIELD_NUMBER;
hash = (53 * hash) + getBarcodeAdditionalData().hashCode();
if (hasMetrics()) {
hash = (37 * hash) + METRICS_FIELD_NUMBER;
hash = (53 * hash) + getMetrics().hashCode();
}
hash = (37 * hash) + CREATEMETHOD_FIELD_NUMBER;
hash = (53 * hash) + createMethod_;
hash = (37 * hash) + DESIGNATORID_FIELD_NUMBER;
hash = (53 * hash) + getDesignatorId().hashCode();
hash = (37 * hash) + INVALIDATECANCELLEDPASSES_FIELD_NUMBER;
hash = (53 * hash) + invalidateCancelledPasses_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Flights.FlightOuterClass.Flight parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightOuterClass.Flight 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.FlightOuterClass.Flight parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightOuterClass.Flight 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.FlightOuterClass.Flight parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightOuterClass.Flight parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Flights.FlightOuterClass.Flight parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightOuterClass.Flight 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.FlightOuterClass.Flight parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightOuterClass.Flight 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.FlightOuterClass.Flight parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightOuterClass.Flight 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.FlightOuterClass.Flight prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code flights.Flight}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flights.Flight)
com.passkit.grpc.Flights.FlightOuterClass.FlightOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Flights.FlightOuterClass.internal_static_flights_Flight_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.FlightOuterClass.internal_static_flights_Flight_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.FlightOuterClass.Flight.class, com.passkit.grpc.Flights.FlightOuterClass.Flight.Builder.class);
}
// Construct using com.passkit.grpc.Flights.FlightOuterClass.Flight.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLocationMessagesFieldBuilder();
getBeaconMessagesFieldBuilder();
getLinksFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
carrierCode_ = "";
flightNumber_ = "";
boardingPoint_ = "";
deplaningPoint_ = "";
if (departureDateBuilder_ == null) {
departureDate_ = null;
} else {
departureDate_ = null;
departureDateBuilder_ = null;
}
departureTerminal_ = "";
arrivalTerminal_ = "";
departureGate_ = "";
arrivalGate_ = "";
if (scheduledDepartureTimeBuilder_ == null) {
scheduledDepartureTime_ = null;
} else {
scheduledDepartureTime_ = null;
scheduledDepartureTimeBuilder_ = null;
}
if (estimatedDepartureTimeBuilder_ == null) {
estimatedDepartureTime_ = null;
} else {
estimatedDepartureTime_ = null;
estimatedDepartureTimeBuilder_ = null;
}
if (boardingTimeBuilder_ == null) {
boardingTime_ = null;
} else {
boardingTime_ = null;
boardingTimeBuilder_ = null;
}
if (gateClosingTimeBuilder_ == null) {
gateClosingTime_ = null;
} else {
gateClosingTime_ = null;
gateClosingTimeBuilder_ = null;
}
if (scheduledArrivalTimeBuilder_ == null) {
scheduledArrivalTime_ = null;
} else {
scheduledArrivalTime_ = null;
scheduledArrivalTimeBuilder_ = null;
}
if (estimatedArrivalTimeBuilder_ == null) {
estimatedArrivalTime_ = null;
} else {
estimatedArrivalTime_ = null;
estimatedArrivalTimeBuilder_ = null;
}
operatingCarrierCode_ = "";
operatingFlightNumber_ = "";
codeShareFlightNumbers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
passTemplateId_ = "";
baggageBelt_ = "";
autoInvalidateAfter_ = 0;
autoInvalidateCancelledPasses_ = false;
if (locationMessagesBuilder_ == null) {
locationMessages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
locationMessagesBuilder_.clear();
}
if (beaconMessagesBuilder_ == null) {
beaconMessages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
beaconMessagesBuilder_.clear();
}
if (linksBuilder_ == null) {
links_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
linksBuilder_.clear();
}
suspendAutomaticUpdates_ = false;
boardingPolicy_ = 0;
seatingPolicy_ = 0;
status_ = 0;
conditionalItems_ = false;
barcodeAdditionalData_ = "";
if (metricsBuilder_ == null) {
metrics_ = null;
} else {
metrics_ = null;
metricsBuilder_ = null;
}
createMethod_ = 0;
designatorId_ = "";
invalidateCancelledPasses_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Flights.FlightOuterClass.internal_static_flights_Flight_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightOuterClass.Flight getDefaultInstanceForType() {
return com.passkit.grpc.Flights.FlightOuterClass.Flight.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightOuterClass.Flight build() {
com.passkit.grpc.Flights.FlightOuterClass.Flight result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightOuterClass.Flight buildPartial() {
com.passkit.grpc.Flights.FlightOuterClass.Flight result = new com.passkit.grpc.Flights.FlightOuterClass.Flight(this);
int from_bitField0_ = bitField0_;
result.carrierCode_ = carrierCode_;
result.flightNumber_ = flightNumber_;
result.boardingPoint_ = boardingPoint_;
result.deplaningPoint_ = deplaningPoint_;
if (departureDateBuilder_ == null) {
result.departureDate_ = departureDate_;
} else {
result.departureDate_ = departureDateBuilder_.build();
}
result.departureTerminal_ = departureTerminal_;
result.arrivalTerminal_ = arrivalTerminal_;
result.departureGate_ = departureGate_;
result.arrivalGate_ = arrivalGate_;
if (scheduledDepartureTimeBuilder_ == null) {
result.scheduledDepartureTime_ = scheduledDepartureTime_;
} else {
result.scheduledDepartureTime_ = scheduledDepartureTimeBuilder_.build();
}
if (estimatedDepartureTimeBuilder_ == null) {
result.estimatedDepartureTime_ = estimatedDepartureTime_;
} else {
result.estimatedDepartureTime_ = estimatedDepartureTimeBuilder_.build();
}
if (boardingTimeBuilder_ == null) {
result.boardingTime_ = boardingTime_;
} else {
result.boardingTime_ = boardingTimeBuilder_.build();
}
if (gateClosingTimeBuilder_ == null) {
result.gateClosingTime_ = gateClosingTime_;
} else {
result.gateClosingTime_ = gateClosingTimeBuilder_.build();
}
if (scheduledArrivalTimeBuilder_ == null) {
result.scheduledArrivalTime_ = scheduledArrivalTime_;
} else {
result.scheduledArrivalTime_ = scheduledArrivalTimeBuilder_.build();
}
if (estimatedArrivalTimeBuilder_ == null) {
result.estimatedArrivalTime_ = estimatedArrivalTime_;
} else {
result.estimatedArrivalTime_ = estimatedArrivalTimeBuilder_.build();
}
result.operatingCarrierCode_ = operatingCarrierCode_;
result.operatingFlightNumber_ = operatingFlightNumber_;
if (((bitField0_ & 0x00000001) != 0)) {
codeShareFlightNumbers_ = codeShareFlightNumbers_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.codeShareFlightNumbers_ = codeShareFlightNumbers_;
result.passTemplateId_ = passTemplateId_;
result.baggageBelt_ = baggageBelt_;
result.autoInvalidateAfter_ = autoInvalidateAfter_;
result.autoInvalidateCancelledPasses_ = autoInvalidateCancelledPasses_;
if (locationMessagesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
locationMessages_ = java.util.Collections.unmodifiableList(locationMessages_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.locationMessages_ = locationMessages_;
} else {
result.locationMessages_ = locationMessagesBuilder_.build();
}
if (beaconMessagesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
beaconMessages_ = java.util.Collections.unmodifiableList(beaconMessages_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.beaconMessages_ = beaconMessages_;
} else {
result.beaconMessages_ = beaconMessagesBuilder_.build();
}
if (linksBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
links_ = java.util.Collections.unmodifiableList(links_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.links_ = links_;
} else {
result.links_ = linksBuilder_.build();
}
result.suspendAutomaticUpdates_ = suspendAutomaticUpdates_;
result.boardingPolicy_ = boardingPolicy_;
result.seatingPolicy_ = seatingPolicy_;
result.status_ = status_;
result.conditionalItems_ = conditionalItems_;
result.barcodeAdditionalData_ = barcodeAdditionalData_;
if (metricsBuilder_ == null) {
result.metrics_ = metrics_;
} else {
result.metrics_ = metricsBuilder_.build();
}
result.createMethod_ = createMethod_;
result.designatorId_ = designatorId_;
result.invalidateCancelledPasses_ = invalidateCancelledPasses_;
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.FlightOuterClass.Flight) {
return mergeFrom((com.passkit.grpc.Flights.FlightOuterClass.Flight)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Flights.FlightOuterClass.Flight other) {
if (other == com.passkit.grpc.Flights.FlightOuterClass.Flight.getDefaultInstance()) return this;
if (!other.getCarrierCode().isEmpty()) {
carrierCode_ = other.carrierCode_;
onChanged();
}
if (!other.getFlightNumber().isEmpty()) {
flightNumber_ = other.flightNumber_;
onChanged();
}
if (!other.getBoardingPoint().isEmpty()) {
boardingPoint_ = other.boardingPoint_;
onChanged();
}
if (!other.getDeplaningPoint().isEmpty()) {
deplaningPoint_ = other.deplaningPoint_;
onChanged();
}
if (other.hasDepartureDate()) {
mergeDepartureDate(other.getDepartureDate());
}
if (!other.getDepartureTerminal().isEmpty()) {
departureTerminal_ = other.departureTerminal_;
onChanged();
}
if (!other.getArrivalTerminal().isEmpty()) {
arrivalTerminal_ = other.arrivalTerminal_;
onChanged();
}
if (!other.getDepartureGate().isEmpty()) {
departureGate_ = other.departureGate_;
onChanged();
}
if (!other.getArrivalGate().isEmpty()) {
arrivalGate_ = other.arrivalGate_;
onChanged();
}
if (other.hasScheduledDepartureTime()) {
mergeScheduledDepartureTime(other.getScheduledDepartureTime());
}
if (other.hasEstimatedDepartureTime()) {
mergeEstimatedDepartureTime(other.getEstimatedDepartureTime());
}
if (other.hasBoardingTime()) {
mergeBoardingTime(other.getBoardingTime());
}
if (other.hasGateClosingTime()) {
mergeGateClosingTime(other.getGateClosingTime());
}
if (other.hasScheduledArrivalTime()) {
mergeScheduledArrivalTime(other.getScheduledArrivalTime());
}
if (other.hasEstimatedArrivalTime()) {
mergeEstimatedArrivalTime(other.getEstimatedArrivalTime());
}
if (!other.getOperatingCarrierCode().isEmpty()) {
operatingCarrierCode_ = other.operatingCarrierCode_;
onChanged();
}
if (!other.getOperatingFlightNumber().isEmpty()) {
operatingFlightNumber_ = other.operatingFlightNumber_;
onChanged();
}
if (!other.codeShareFlightNumbers_.isEmpty()) {
if (codeShareFlightNumbers_.isEmpty()) {
codeShareFlightNumbers_ = other.codeShareFlightNumbers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCodeShareFlightNumbersIsMutable();
codeShareFlightNumbers_.addAll(other.codeShareFlightNumbers_);
}
onChanged();
}
if (!other.getPassTemplateId().isEmpty()) {
passTemplateId_ = other.passTemplateId_;
onChanged();
}
if (!other.getBaggageBelt().isEmpty()) {
baggageBelt_ = other.baggageBelt_;
onChanged();
}
if (other.getAutoInvalidateAfter() != 0) {
setAutoInvalidateAfter(other.getAutoInvalidateAfter());
}
if (other.getAutoInvalidateCancelledPasses() != false) {
setAutoInvalidateCancelledPasses(other.getAutoInvalidateCancelledPasses());
}
if (locationMessagesBuilder_ == null) {
if (!other.locationMessages_.isEmpty()) {
if (locationMessages_.isEmpty()) {
locationMessages_ = other.locationMessages_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureLocationMessagesIsMutable();
locationMessages_.addAll(other.locationMessages_);
}
onChanged();
}
} else {
if (!other.locationMessages_.isEmpty()) {
if (locationMessagesBuilder_.isEmpty()) {
locationMessagesBuilder_.dispose();
locationMessagesBuilder_ = null;
locationMessages_ = other.locationMessages_;
bitField0_ = (bitField0_ & ~0x00000002);
locationMessagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLocationMessagesFieldBuilder() : null;
} else {
locationMessagesBuilder_.addAllMessages(other.locationMessages_);
}
}
}
if (beaconMessagesBuilder_ == null) {
if (!other.beaconMessages_.isEmpty()) {
if (beaconMessages_.isEmpty()) {
beaconMessages_ = other.beaconMessages_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureBeaconMessagesIsMutable();
beaconMessages_.addAll(other.beaconMessages_);
}
onChanged();
}
} else {
if (!other.beaconMessages_.isEmpty()) {
if (beaconMessagesBuilder_.isEmpty()) {
beaconMessagesBuilder_.dispose();
beaconMessagesBuilder_ = null;
beaconMessages_ = other.beaconMessages_;
bitField0_ = (bitField0_ & ~0x00000004);
beaconMessagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBeaconMessagesFieldBuilder() : null;
} else {
beaconMessagesBuilder_.addAllMessages(other.beaconMessages_);
}
}
}
if (linksBuilder_ == null) {
if (!other.links_.isEmpty()) {
if (links_.isEmpty()) {
links_ = other.links_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureLinksIsMutable();
links_.addAll(other.links_);
}
onChanged();
}
} else {
if (!other.links_.isEmpty()) {
if (linksBuilder_.isEmpty()) {
linksBuilder_.dispose();
linksBuilder_ = null;
links_ = other.links_;
bitField0_ = (bitField0_ & ~0x00000008);
linksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLinksFieldBuilder() : null;
} else {
linksBuilder_.addAllMessages(other.links_);
}
}
}
if (other.getSuspendAutomaticUpdates() != false) {
setSuspendAutomaticUpdates(other.getSuspendAutomaticUpdates());
}
if (other.boardingPolicy_ != 0) {
setBoardingPolicyValue(other.getBoardingPolicyValue());
}
if (other.seatingPolicy_ != 0) {
setSeatingPolicyValue(other.getSeatingPolicyValue());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.getConditionalItems() != false) {
setConditionalItems(other.getConditionalItems());
}
if (!other.getBarcodeAdditionalData().isEmpty()) {
barcodeAdditionalData_ = other.barcodeAdditionalData_;
onChanged();
}
if (other.hasMetrics()) {
mergeMetrics(other.getMetrics());
}
if (other.createMethod_ != 0) {
setCreateMethodValue(other.getCreateMethodValue());
}
if (!other.getDesignatorId().isEmpty()) {
designatorId_ = other.designatorId_;
onChanged();
}
if (other.invalidateCancelledPasses_ != 0) {
setInvalidateCancelledPassesValue(other.getInvalidateCancelledPassesValue());
}
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.FlightOuterClass.Flight parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Flights.FlightOuterClass.Flight) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object carrierCode_ = "";
/**
*
* The IATA or ICAO carrier code for the flight. In the case of a code-share, this should be the carrier code that you wish to present to the customer. This could be the marketing code, or the operating airline code. A carrier record for this code must exist.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The carrierCode.
*/
public java.lang.String getCarrierCode() {
java.lang.Object ref = carrierCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
carrierCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The IATA or ICAO carrier code for the flight. In the case of a code-share, this should be the carrier code that you wish to present to the customer. This could be the marketing code, or the operating airline code. A carrier record for this code must exist.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for carrierCode.
*/
public com.google.protobuf.ByteString
getCarrierCodeBytes() {
java.lang.Object ref = carrierCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
carrierCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The IATA or ICAO carrier code for the flight. In the case of a code-share, this should be the carrier code that you wish to present to the customer. This could be the marketing code, or the operating airline code. A carrier record for this code must exist.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The carrierCode to set.
* @return This builder for chaining.
*/
public Builder setCarrierCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
carrierCode_ = value;
onChanged();
return this;
}
/**
*
* The IATA or ICAO carrier code for the flight. In the case of a code-share, this should be the carrier code that you wish to present to the customer. This could be the marketing code, or the operating airline code. A carrier record for this code must exist.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return This builder for chaining.
*/
public Builder clearCarrierCode() {
carrierCode_ = getDefaultInstance().getCarrierCode();
onChanged();
return this;
}
/**
*
* The IATA or ICAO carrier code for the flight. In the case of a code-share, this should be the carrier code that you wish to present to the customer. This could be the marketing code, or the operating airline code. A carrier record for this code must exist.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The bytes for carrierCode to set.
* @return This builder for chaining.
*/
public Builder setCarrierCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
carrierCode_ = value;
onChanged();
return this;
}
private java.lang.Object flightNumber_ = "";
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The flightNumber.
*/
public java.lang.String getFlightNumber() {
java.lang.Object ref = flightNumber_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
flightNumber_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for flightNumber.
*/
public com.google.protobuf.ByteString
getFlightNumberBytes() {
java.lang.Object ref = flightNumber_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
flightNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The flightNumber to set.
* @return This builder for chaining.
*/
public Builder setFlightNumber(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
flightNumber_ = value;
onChanged();
return this;
}
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return This builder for chaining.
*/
public Builder clearFlightNumber() {
flightNumber_ = getDefaultInstance().getFlightNumber();
onChanged();
return this;
}
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The bytes for flightNumber to set.
* @return This builder for chaining.
*/
public Builder setFlightNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
flightNumber_ = value;
onChanged();
return this;
}
private java.lang.Object boardingPoint_ = "";
/**
*
* The IATA airport code of the boarding point. Only required is segment is not provided.
*
*
* string boardingPoint = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The boardingPoint.
*/
public java.lang.String getBoardingPoint() {
java.lang.Object ref = boardingPoint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
boardingPoint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The IATA airport code of the boarding point. Only required is segment is not provided.
*
*
* string boardingPoint = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for boardingPoint.
*/
public com.google.protobuf.ByteString
getBoardingPointBytes() {
java.lang.Object ref = boardingPoint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
boardingPoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The IATA airport code of the boarding point. Only required is segment is not provided.
*
*
* string boardingPoint = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The boardingPoint to set.
* @return This builder for chaining.
*/
public Builder setBoardingPoint(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
boardingPoint_ = value;
onChanged();
return this;
}
/**
*
* The IATA airport code of the boarding point. Only required is segment is not provided.
*
*
* string boardingPoint = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return This builder for chaining.
*/
public Builder clearBoardingPoint() {
boardingPoint_ = getDefaultInstance().getBoardingPoint();
onChanged();
return this;
}
/**
*
* The IATA airport code of the boarding point. Only required is segment is not provided.
*
*
* string boardingPoint = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The bytes for boardingPoint to set.
* @return This builder for chaining.
*/
public Builder setBoardingPointBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
boardingPoint_ = value;
onChanged();
return this;
}
private java.lang.Object deplaningPoint_ = "";
/**
*
* The IATA airport code of the deplaning point.
*
*
* string deplaningPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The deplaningPoint.
*/
public java.lang.String getDeplaningPoint() {
java.lang.Object ref = deplaningPoint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deplaningPoint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The IATA airport code of the deplaning point.
*
*
* string deplaningPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for deplaningPoint.
*/
public com.google.protobuf.ByteString
getDeplaningPointBytes() {
java.lang.Object ref = deplaningPoint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deplaningPoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The IATA airport code of the deplaning point.
*
*
* string deplaningPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The deplaningPoint to set.
* @return This builder for chaining.
*/
public Builder setDeplaningPoint(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
deplaningPoint_ = value;
onChanged();
return this;
}
/**
*
* The IATA airport code of the deplaning point.
*
*
* string deplaningPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return This builder for chaining.
*/
public Builder clearDeplaningPoint() {
deplaningPoint_ = getDefaultInstance().getDeplaningPoint();
onChanged();
return this;
}
/**
*
* The IATA airport code of the deplaning point.
*
*
* string deplaningPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The bytes for deplaningPoint to set.
* @return This builder for chaining.
*/
public Builder setDeplaningPointBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
deplaningPoint_ = value;
onChanged();
return this;
}
private com.passkit.grpc.CommonObjects.Date departureDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder> departureDateBuilder_;
/**
*
* The scheduled date of departure.
*
*
* .io.Date departureDate = 5;
* @return Whether the departureDate field is set.
*/
public boolean hasDepartureDate() {
return departureDateBuilder_ != null || departureDate_ != null;
}
/**
*
* The scheduled date of departure.
*
*
* .io.Date departureDate = 5;
* @return The departureDate.
*/
public com.passkit.grpc.CommonObjects.Date getDepartureDate() {
if (departureDateBuilder_ == null) {
return departureDate_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : departureDate_;
} else {
return departureDateBuilder_.getMessage();
}
}
/**
*
* The scheduled date of departure.
*
*
* .io.Date departureDate = 5;
*/
public Builder setDepartureDate(com.passkit.grpc.CommonObjects.Date value) {
if (departureDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
departureDate_ = value;
onChanged();
} else {
departureDateBuilder_.setMessage(value);
}
return this;
}
/**
*
* The scheduled date of departure.
*
*
* .io.Date departureDate = 5;
*/
public Builder setDepartureDate(
com.passkit.grpc.CommonObjects.Date.Builder builderForValue) {
if (departureDateBuilder_ == null) {
departureDate_ = builderForValue.build();
onChanged();
} else {
departureDateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The scheduled date of departure.
*
*
* .io.Date departureDate = 5;
*/
public Builder mergeDepartureDate(com.passkit.grpc.CommonObjects.Date value) {
if (departureDateBuilder_ == null) {
if (departureDate_ != null) {
departureDate_ =
com.passkit.grpc.CommonObjects.Date.newBuilder(departureDate_).mergeFrom(value).buildPartial();
} else {
departureDate_ = value;
}
onChanged();
} else {
departureDateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The scheduled date of departure.
*
*
* .io.Date departureDate = 5;
*/
public Builder clearDepartureDate() {
if (departureDateBuilder_ == null) {
departureDate_ = null;
onChanged();
} else {
departureDate_ = null;
departureDateBuilder_ = null;
}
return this;
}
/**
*
* The scheduled date of departure.
*
*
* .io.Date departureDate = 5;
*/
public com.passkit.grpc.CommonObjects.Date.Builder getDepartureDateBuilder() {
onChanged();
return getDepartureDateFieldBuilder().getBuilder();
}
/**
*
* The scheduled date of departure.
*
*
* .io.Date departureDate = 5;
*/
public com.passkit.grpc.CommonObjects.DateOrBuilder getDepartureDateOrBuilder() {
if (departureDateBuilder_ != null) {
return departureDateBuilder_.getMessageOrBuilder();
} else {
return departureDate_ == null ?
com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : departureDate_;
}
}
/**
*
* The scheduled date of departure.
*
*
* .io.Date departureDate = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder>
getDepartureDateFieldBuilder() {
if (departureDateBuilder_ == null) {
departureDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder>(
getDepartureDate(),
getParentForChildren(),
isClean());
departureDate_ = null;
}
return departureDateBuilder_;
}
private java.lang.Object departureTerminal_ = "";
/**
*
* Departure Terminal.
*
*
* string departureTerminal = 6;
* @return The departureTerminal.
*/
public java.lang.String getDepartureTerminal() {
java.lang.Object ref = departureTerminal_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
departureTerminal_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Departure Terminal.
*
*
* string departureTerminal = 6;
* @return The bytes for departureTerminal.
*/
public com.google.protobuf.ByteString
getDepartureTerminalBytes() {
java.lang.Object ref = departureTerminal_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
departureTerminal_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Departure Terminal.
*
*
* string departureTerminal = 6;
* @param value The departureTerminal to set.
* @return This builder for chaining.
*/
public Builder setDepartureTerminal(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
departureTerminal_ = value;
onChanged();
return this;
}
/**
*
* Departure Terminal.
*
*
* string departureTerminal = 6;
* @return This builder for chaining.
*/
public Builder clearDepartureTerminal() {
departureTerminal_ = getDefaultInstance().getDepartureTerminal();
onChanged();
return this;
}
/**
*
* Departure Terminal.
*
*
* string departureTerminal = 6;
* @param value The bytes for departureTerminal to set.
* @return This builder for chaining.
*/
public Builder setDepartureTerminalBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
departureTerminal_ = value;
onChanged();
return this;
}
private java.lang.Object arrivalTerminal_ = "";
/**
*
* Arrival Terminal.
*
*
* string arrivalTerminal = 7;
* @return The arrivalTerminal.
*/
public java.lang.String getArrivalTerminal() {
java.lang.Object ref = arrivalTerminal_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
arrivalTerminal_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Arrival Terminal.
*
*
* string arrivalTerminal = 7;
* @return The bytes for arrivalTerminal.
*/
public com.google.protobuf.ByteString
getArrivalTerminalBytes() {
java.lang.Object ref = arrivalTerminal_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
arrivalTerminal_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Arrival Terminal.
*
*
* string arrivalTerminal = 7;
* @param value The arrivalTerminal to set.
* @return This builder for chaining.
*/
public Builder setArrivalTerminal(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
arrivalTerminal_ = value;
onChanged();
return this;
}
/**
*
* Arrival Terminal.
*
*
* string arrivalTerminal = 7;
* @return This builder for chaining.
*/
public Builder clearArrivalTerminal() {
arrivalTerminal_ = getDefaultInstance().getArrivalTerminal();
onChanged();
return this;
}
/**
*
* Arrival Terminal.
*
*
* string arrivalTerminal = 7;
* @param value The bytes for arrivalTerminal to set.
* @return This builder for chaining.
*/
public Builder setArrivalTerminalBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
arrivalTerminal_ = value;
onChanged();
return this;
}
private java.lang.Object departureGate_ = "";
/**
*
* Departure Gate.
*
*
* string departureGate = 8;
* @return The departureGate.
*/
public java.lang.String getDepartureGate() {
java.lang.Object ref = departureGate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
departureGate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Departure Gate.
*
*
* string departureGate = 8;
* @return The bytes for departureGate.
*/
public com.google.protobuf.ByteString
getDepartureGateBytes() {
java.lang.Object ref = departureGate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
departureGate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Departure Gate.
*
*
* string departureGate = 8;
* @param value The departureGate to set.
* @return This builder for chaining.
*/
public Builder setDepartureGate(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
departureGate_ = value;
onChanged();
return this;
}
/**
*
* Departure Gate.
*
*
* string departureGate = 8;
* @return This builder for chaining.
*/
public Builder clearDepartureGate() {
departureGate_ = getDefaultInstance().getDepartureGate();
onChanged();
return this;
}
/**
*
* Departure Gate.
*
*
* string departureGate = 8;
* @param value The bytes for departureGate to set.
* @return This builder for chaining.
*/
public Builder setDepartureGateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
departureGate_ = value;
onChanged();
return this;
}
private java.lang.Object arrivalGate_ = "";
/**
*
* Arrival Gate.
*
*
* string arrivalGate = 9;
* @return The arrivalGate.
*/
public java.lang.String getArrivalGate() {
java.lang.Object ref = arrivalGate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
arrivalGate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Arrival Gate.
*
*
* string arrivalGate = 9;
* @return The bytes for arrivalGate.
*/
public com.google.protobuf.ByteString
getArrivalGateBytes() {
java.lang.Object ref = arrivalGate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
arrivalGate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Arrival Gate.
*
*
* string arrivalGate = 9;
* @param value The arrivalGate to set.
* @return This builder for chaining.
*/
public Builder setArrivalGate(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
arrivalGate_ = value;
onChanged();
return this;
}
/**
*
* Arrival Gate.
*
*
* string arrivalGate = 9;
* @return This builder for chaining.
*/
public Builder clearArrivalGate() {
arrivalGate_ = getDefaultInstance().getArrivalGate();
onChanged();
return this;
}
/**
*
* Arrival Gate.
*
*
* string arrivalGate = 9;
* @param value The bytes for arrivalGate to set.
* @return This builder for chaining.
*/
public Builder setArrivalGateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
arrivalGate_ = value;
onChanged();
return this;
}
private com.passkit.grpc.CommonObjects.LocalDateTime scheduledDepartureTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder> scheduledDepartureTimeBuilder_;
/**
*
* The scheduled departure time. If omitted then the departureDate must be specified.
*
*
* .io.LocalDateTime scheduledDepartureTime = 10;
* @return Whether the scheduledDepartureTime field is set.
*/
public boolean hasScheduledDepartureTime() {
return scheduledDepartureTimeBuilder_ != null || scheduledDepartureTime_ != null;
}
/**
*
* The scheduled departure time. If omitted then the departureDate must be specified.
*
*
* .io.LocalDateTime scheduledDepartureTime = 10;
* @return The scheduledDepartureTime.
*/
public com.passkit.grpc.CommonObjects.LocalDateTime getScheduledDepartureTime() {
if (scheduledDepartureTimeBuilder_ == null) {
return scheduledDepartureTime_ == null ? com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : scheduledDepartureTime_;
} else {
return scheduledDepartureTimeBuilder_.getMessage();
}
}
/**
*
* The scheduled departure time. If omitted then the departureDate must be specified.
*
*
* .io.LocalDateTime scheduledDepartureTime = 10;
*/
public Builder setScheduledDepartureTime(com.passkit.grpc.CommonObjects.LocalDateTime value) {
if (scheduledDepartureTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduledDepartureTime_ = value;
onChanged();
} else {
scheduledDepartureTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The scheduled departure time. If omitted then the departureDate must be specified.
*
*
* .io.LocalDateTime scheduledDepartureTime = 10;
*/
public Builder setScheduledDepartureTime(
com.passkit.grpc.CommonObjects.LocalDateTime.Builder builderForValue) {
if (scheduledDepartureTimeBuilder_ == null) {
scheduledDepartureTime_ = builderForValue.build();
onChanged();
} else {
scheduledDepartureTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The scheduled departure time. If omitted then the departureDate must be specified.
*
*
* .io.LocalDateTime scheduledDepartureTime = 10;
*/
public Builder mergeScheduledDepartureTime(com.passkit.grpc.CommonObjects.LocalDateTime value) {
if (scheduledDepartureTimeBuilder_ == null) {
if (scheduledDepartureTime_ != null) {
scheduledDepartureTime_ =
com.passkit.grpc.CommonObjects.LocalDateTime.newBuilder(scheduledDepartureTime_).mergeFrom(value).buildPartial();
} else {
scheduledDepartureTime_ = value;
}
onChanged();
} else {
scheduledDepartureTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The scheduled departure time. If omitted then the departureDate must be specified.
*
*
* .io.LocalDateTime scheduledDepartureTime = 10;
*/
public Builder clearScheduledDepartureTime() {
if (scheduledDepartureTimeBuilder_ == null) {
scheduledDepartureTime_ = null;
onChanged();
} else {
scheduledDepartureTime_ = null;
scheduledDepartureTimeBuilder_ = null;
}
return this;
}
/**
*
* The scheduled departure time. If omitted then the departureDate must be specified.
*
*
* .io.LocalDateTime scheduledDepartureTime = 10;
*/
public com.passkit.grpc.CommonObjects.LocalDateTime.Builder getScheduledDepartureTimeBuilder() {
onChanged();
return getScheduledDepartureTimeFieldBuilder().getBuilder();
}
/**
*
* The scheduled departure time. If omitted then the departureDate must be specified.
*
*
* .io.LocalDateTime scheduledDepartureTime = 10;
*/
public com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getScheduledDepartureTimeOrBuilder() {
if (scheduledDepartureTimeBuilder_ != null) {
return scheduledDepartureTimeBuilder_.getMessageOrBuilder();
} else {
return scheduledDepartureTime_ == null ?
com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : scheduledDepartureTime_;
}
}
/**
*
* The scheduled departure time. If omitted then the departureDate must be specified.
*
*
* .io.LocalDateTime scheduledDepartureTime = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder>
getScheduledDepartureTimeFieldBuilder() {
if (scheduledDepartureTimeBuilder_ == null) {
scheduledDepartureTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder>(
getScheduledDepartureTime(),
getParentForChildren(),
isClean());
scheduledDepartureTime_ = null;
}
return scheduledDepartureTimeBuilder_;
}
private com.passkit.grpc.CommonObjects.LocalDateTime estimatedDepartureTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder> estimatedDepartureTimeBuilder_;
/**
*
* The estimated departure time.
*
*
* .io.LocalDateTime estimatedDepartureTime = 11;
* @return Whether the estimatedDepartureTime field is set.
*/
public boolean hasEstimatedDepartureTime() {
return estimatedDepartureTimeBuilder_ != null || estimatedDepartureTime_ != null;
}
/**
*
* The estimated departure time.
*
*
* .io.LocalDateTime estimatedDepartureTime = 11;
* @return The estimatedDepartureTime.
*/
public com.passkit.grpc.CommonObjects.LocalDateTime getEstimatedDepartureTime() {
if (estimatedDepartureTimeBuilder_ == null) {
return estimatedDepartureTime_ == null ? com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : estimatedDepartureTime_;
} else {
return estimatedDepartureTimeBuilder_.getMessage();
}
}
/**
*
* The estimated departure time.
*
*
* .io.LocalDateTime estimatedDepartureTime = 11;
*/
public Builder setEstimatedDepartureTime(com.passkit.grpc.CommonObjects.LocalDateTime value) {
if (estimatedDepartureTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
estimatedDepartureTime_ = value;
onChanged();
} else {
estimatedDepartureTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The estimated departure time.
*
*
* .io.LocalDateTime estimatedDepartureTime = 11;
*/
public Builder setEstimatedDepartureTime(
com.passkit.grpc.CommonObjects.LocalDateTime.Builder builderForValue) {
if (estimatedDepartureTimeBuilder_ == null) {
estimatedDepartureTime_ = builderForValue.build();
onChanged();
} else {
estimatedDepartureTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The estimated departure time.
*
*
* .io.LocalDateTime estimatedDepartureTime = 11;
*/
public Builder mergeEstimatedDepartureTime(com.passkit.grpc.CommonObjects.LocalDateTime value) {
if (estimatedDepartureTimeBuilder_ == null) {
if (estimatedDepartureTime_ != null) {
estimatedDepartureTime_ =
com.passkit.grpc.CommonObjects.LocalDateTime.newBuilder(estimatedDepartureTime_).mergeFrom(value).buildPartial();
} else {
estimatedDepartureTime_ = value;
}
onChanged();
} else {
estimatedDepartureTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The estimated departure time.
*
*
* .io.LocalDateTime estimatedDepartureTime = 11;
*/
public Builder clearEstimatedDepartureTime() {
if (estimatedDepartureTimeBuilder_ == null) {
estimatedDepartureTime_ = null;
onChanged();
} else {
estimatedDepartureTime_ = null;
estimatedDepartureTimeBuilder_ = null;
}
return this;
}
/**
*
* The estimated departure time.
*
*
* .io.LocalDateTime estimatedDepartureTime = 11;
*/
public com.passkit.grpc.CommonObjects.LocalDateTime.Builder getEstimatedDepartureTimeBuilder() {
onChanged();
return getEstimatedDepartureTimeFieldBuilder().getBuilder();
}
/**
*
* The estimated departure time.
*
*
* .io.LocalDateTime estimatedDepartureTime = 11;
*/
public com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getEstimatedDepartureTimeOrBuilder() {
if (estimatedDepartureTimeBuilder_ != null) {
return estimatedDepartureTimeBuilder_.getMessageOrBuilder();
} else {
return estimatedDepartureTime_ == null ?
com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : estimatedDepartureTime_;
}
}
/**
*
* The estimated departure time.
*
*
* .io.LocalDateTime estimatedDepartureTime = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder>
getEstimatedDepartureTimeFieldBuilder() {
if (estimatedDepartureTimeBuilder_ == null) {
estimatedDepartureTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder>(
getEstimatedDepartureTime(),
getParentForChildren(),
isClean());
estimatedDepartureTime_ = null;
}
return estimatedDepartureTimeBuilder_;
}
private com.passkit.grpc.CommonObjects.LocalDateTime boardingTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder> boardingTimeBuilder_;
/**
*
* The boarding time.
*
*
* .io.LocalDateTime boardingTime = 12;
* @return Whether the boardingTime field is set.
*/
public boolean hasBoardingTime() {
return boardingTimeBuilder_ != null || boardingTime_ != null;
}
/**
*
* The boarding time.
*
*
* .io.LocalDateTime boardingTime = 12;
* @return The boardingTime.
*/
public com.passkit.grpc.CommonObjects.LocalDateTime getBoardingTime() {
if (boardingTimeBuilder_ == null) {
return boardingTime_ == null ? com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : boardingTime_;
} else {
return boardingTimeBuilder_.getMessage();
}
}
/**
*
* The boarding time.
*
*
* .io.LocalDateTime boardingTime = 12;
*/
public Builder setBoardingTime(com.passkit.grpc.CommonObjects.LocalDateTime value) {
if (boardingTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
boardingTime_ = value;
onChanged();
} else {
boardingTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The boarding time.
*
*
* .io.LocalDateTime boardingTime = 12;
*/
public Builder setBoardingTime(
com.passkit.grpc.CommonObjects.LocalDateTime.Builder builderForValue) {
if (boardingTimeBuilder_ == null) {
boardingTime_ = builderForValue.build();
onChanged();
} else {
boardingTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The boarding time.
*
*
* .io.LocalDateTime boardingTime = 12;
*/
public Builder mergeBoardingTime(com.passkit.grpc.CommonObjects.LocalDateTime value) {
if (boardingTimeBuilder_ == null) {
if (boardingTime_ != null) {
boardingTime_ =
com.passkit.grpc.CommonObjects.LocalDateTime.newBuilder(boardingTime_).mergeFrom(value).buildPartial();
} else {
boardingTime_ = value;
}
onChanged();
} else {
boardingTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The boarding time.
*
*
* .io.LocalDateTime boardingTime = 12;
*/
public Builder clearBoardingTime() {
if (boardingTimeBuilder_ == null) {
boardingTime_ = null;
onChanged();
} else {
boardingTime_ = null;
boardingTimeBuilder_ = null;
}
return this;
}
/**
*
* The boarding time.
*
*
* .io.LocalDateTime boardingTime = 12;
*/
public com.passkit.grpc.CommonObjects.LocalDateTime.Builder getBoardingTimeBuilder() {
onChanged();
return getBoardingTimeFieldBuilder().getBuilder();
}
/**
*
* The boarding time.
*
*
* .io.LocalDateTime boardingTime = 12;
*/
public com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getBoardingTimeOrBuilder() {
if (boardingTimeBuilder_ != null) {
return boardingTimeBuilder_.getMessageOrBuilder();
} else {
return boardingTime_ == null ?
com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : boardingTime_;
}
}
/**
*
* The boarding time.
*
*
* .io.LocalDateTime boardingTime = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder>
getBoardingTimeFieldBuilder() {
if (boardingTimeBuilder_ == null) {
boardingTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder>(
getBoardingTime(),
getParentForChildren(),
isClean());
boardingTime_ = null;
}
return boardingTimeBuilder_;
}
private com.passkit.grpc.CommonObjects.LocalDateTime gateClosingTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder> gateClosingTimeBuilder_;
/**
*
* The time the gate will close.
*
*
* .io.LocalDateTime gateClosingTime = 13;
* @return Whether the gateClosingTime field is set.
*/
public boolean hasGateClosingTime() {
return gateClosingTimeBuilder_ != null || gateClosingTime_ != null;
}
/**
*
* The time the gate will close.
*
*
* .io.LocalDateTime gateClosingTime = 13;
* @return The gateClosingTime.
*/
public com.passkit.grpc.CommonObjects.LocalDateTime getGateClosingTime() {
if (gateClosingTimeBuilder_ == null) {
return gateClosingTime_ == null ? com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : gateClosingTime_;
} else {
return gateClosingTimeBuilder_.getMessage();
}
}
/**
*
* The time the gate will close.
*
*
* .io.LocalDateTime gateClosingTime = 13;
*/
public Builder setGateClosingTime(com.passkit.grpc.CommonObjects.LocalDateTime value) {
if (gateClosingTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
gateClosingTime_ = value;
onChanged();
} else {
gateClosingTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The time the gate will close.
*
*
* .io.LocalDateTime gateClosingTime = 13;
*/
public Builder setGateClosingTime(
com.passkit.grpc.CommonObjects.LocalDateTime.Builder builderForValue) {
if (gateClosingTimeBuilder_ == null) {
gateClosingTime_ = builderForValue.build();
onChanged();
} else {
gateClosingTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The time the gate will close.
*
*
* .io.LocalDateTime gateClosingTime = 13;
*/
public Builder mergeGateClosingTime(com.passkit.grpc.CommonObjects.LocalDateTime value) {
if (gateClosingTimeBuilder_ == null) {
if (gateClosingTime_ != null) {
gateClosingTime_ =
com.passkit.grpc.CommonObjects.LocalDateTime.newBuilder(gateClosingTime_).mergeFrom(value).buildPartial();
} else {
gateClosingTime_ = value;
}
onChanged();
} else {
gateClosingTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The time the gate will close.
*
*
* .io.LocalDateTime gateClosingTime = 13;
*/
public Builder clearGateClosingTime() {
if (gateClosingTimeBuilder_ == null) {
gateClosingTime_ = null;
onChanged();
} else {
gateClosingTime_ = null;
gateClosingTimeBuilder_ = null;
}
return this;
}
/**
*
* The time the gate will close.
*
*
* .io.LocalDateTime gateClosingTime = 13;
*/
public com.passkit.grpc.CommonObjects.LocalDateTime.Builder getGateClosingTimeBuilder() {
onChanged();
return getGateClosingTimeFieldBuilder().getBuilder();
}
/**
*
* The time the gate will close.
*
*
* .io.LocalDateTime gateClosingTime = 13;
*/
public com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getGateClosingTimeOrBuilder() {
if (gateClosingTimeBuilder_ != null) {
return gateClosingTimeBuilder_.getMessageOrBuilder();
} else {
return gateClosingTime_ == null ?
com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : gateClosingTime_;
}
}
/**
*
* The time the gate will close.
*
*
* .io.LocalDateTime gateClosingTime = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder>
getGateClosingTimeFieldBuilder() {
if (gateClosingTimeBuilder_ == null) {
gateClosingTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder>(
getGateClosingTime(),
getParentForChildren(),
isClean());
gateClosingTime_ = null;
}
return gateClosingTimeBuilder_;
}
private com.passkit.grpc.CommonObjects.LocalDateTime scheduledArrivalTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder> scheduledArrivalTimeBuilder_;
/**
*
* The scheduled arrival time.
*
*
* .io.LocalDateTime scheduledArrivalTime = 14;
* @return Whether the scheduledArrivalTime field is set.
*/
public boolean hasScheduledArrivalTime() {
return scheduledArrivalTimeBuilder_ != null || scheduledArrivalTime_ != null;
}
/**
*
* The scheduled arrival time.
*
*
* .io.LocalDateTime scheduledArrivalTime = 14;
* @return The scheduledArrivalTime.
*/
public com.passkit.grpc.CommonObjects.LocalDateTime getScheduledArrivalTime() {
if (scheduledArrivalTimeBuilder_ == null) {
return scheduledArrivalTime_ == null ? com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : scheduledArrivalTime_;
} else {
return scheduledArrivalTimeBuilder_.getMessage();
}
}
/**
*
* The scheduled arrival time.
*
*
* .io.LocalDateTime scheduledArrivalTime = 14;
*/
public Builder setScheduledArrivalTime(com.passkit.grpc.CommonObjects.LocalDateTime value) {
if (scheduledArrivalTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduledArrivalTime_ = value;
onChanged();
} else {
scheduledArrivalTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The scheduled arrival time.
*
*
* .io.LocalDateTime scheduledArrivalTime = 14;
*/
public Builder setScheduledArrivalTime(
com.passkit.grpc.CommonObjects.LocalDateTime.Builder builderForValue) {
if (scheduledArrivalTimeBuilder_ == null) {
scheduledArrivalTime_ = builderForValue.build();
onChanged();
} else {
scheduledArrivalTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The scheduled arrival time.
*
*
* .io.LocalDateTime scheduledArrivalTime = 14;
*/
public Builder mergeScheduledArrivalTime(com.passkit.grpc.CommonObjects.LocalDateTime value) {
if (scheduledArrivalTimeBuilder_ == null) {
if (scheduledArrivalTime_ != null) {
scheduledArrivalTime_ =
com.passkit.grpc.CommonObjects.LocalDateTime.newBuilder(scheduledArrivalTime_).mergeFrom(value).buildPartial();
} else {
scheduledArrivalTime_ = value;
}
onChanged();
} else {
scheduledArrivalTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The scheduled arrival time.
*
*
* .io.LocalDateTime scheduledArrivalTime = 14;
*/
public Builder clearScheduledArrivalTime() {
if (scheduledArrivalTimeBuilder_ == null) {
scheduledArrivalTime_ = null;
onChanged();
} else {
scheduledArrivalTime_ = null;
scheduledArrivalTimeBuilder_ = null;
}
return this;
}
/**
*
* The scheduled arrival time.
*
*
* .io.LocalDateTime scheduledArrivalTime = 14;
*/
public com.passkit.grpc.CommonObjects.LocalDateTime.Builder getScheduledArrivalTimeBuilder() {
onChanged();
return getScheduledArrivalTimeFieldBuilder().getBuilder();
}
/**
*
* The scheduled arrival time.
*
*
* .io.LocalDateTime scheduledArrivalTime = 14;
*/
public com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getScheduledArrivalTimeOrBuilder() {
if (scheduledArrivalTimeBuilder_ != null) {
return scheduledArrivalTimeBuilder_.getMessageOrBuilder();
} else {
return scheduledArrivalTime_ == null ?
com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : scheduledArrivalTime_;
}
}
/**
*
* The scheduled arrival time.
*
*
* .io.LocalDateTime scheduledArrivalTime = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder>
getScheduledArrivalTimeFieldBuilder() {
if (scheduledArrivalTimeBuilder_ == null) {
scheduledArrivalTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder>(
getScheduledArrivalTime(),
getParentForChildren(),
isClean());
scheduledArrivalTime_ = null;
}
return scheduledArrivalTimeBuilder_;
}
private com.passkit.grpc.CommonObjects.LocalDateTime estimatedArrivalTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder> estimatedArrivalTimeBuilder_;
/**
*
* The estimated arrival time.
*
*
* .io.LocalDateTime estimatedArrivalTime = 15;
* @return Whether the estimatedArrivalTime field is set.
*/
public boolean hasEstimatedArrivalTime() {
return estimatedArrivalTimeBuilder_ != null || estimatedArrivalTime_ != null;
}
/**
*
* The estimated arrival time.
*
*
* .io.LocalDateTime estimatedArrivalTime = 15;
* @return The estimatedArrivalTime.
*/
public com.passkit.grpc.CommonObjects.LocalDateTime getEstimatedArrivalTime() {
if (estimatedArrivalTimeBuilder_ == null) {
return estimatedArrivalTime_ == null ? com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : estimatedArrivalTime_;
} else {
return estimatedArrivalTimeBuilder_.getMessage();
}
}
/**
*
* The estimated arrival time.
*
*
* .io.LocalDateTime estimatedArrivalTime = 15;
*/
public Builder setEstimatedArrivalTime(com.passkit.grpc.CommonObjects.LocalDateTime value) {
if (estimatedArrivalTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
estimatedArrivalTime_ = value;
onChanged();
} else {
estimatedArrivalTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The estimated arrival time.
*
*
* .io.LocalDateTime estimatedArrivalTime = 15;
*/
public Builder setEstimatedArrivalTime(
com.passkit.grpc.CommonObjects.LocalDateTime.Builder builderForValue) {
if (estimatedArrivalTimeBuilder_ == null) {
estimatedArrivalTime_ = builderForValue.build();
onChanged();
} else {
estimatedArrivalTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The estimated arrival time.
*
*
* .io.LocalDateTime estimatedArrivalTime = 15;
*/
public Builder mergeEstimatedArrivalTime(com.passkit.grpc.CommonObjects.LocalDateTime value) {
if (estimatedArrivalTimeBuilder_ == null) {
if (estimatedArrivalTime_ != null) {
estimatedArrivalTime_ =
com.passkit.grpc.CommonObjects.LocalDateTime.newBuilder(estimatedArrivalTime_).mergeFrom(value).buildPartial();
} else {
estimatedArrivalTime_ = value;
}
onChanged();
} else {
estimatedArrivalTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The estimated arrival time.
*
*
* .io.LocalDateTime estimatedArrivalTime = 15;
*/
public Builder clearEstimatedArrivalTime() {
if (estimatedArrivalTimeBuilder_ == null) {
estimatedArrivalTime_ = null;
onChanged();
} else {
estimatedArrivalTime_ = null;
estimatedArrivalTimeBuilder_ = null;
}
return this;
}
/**
*
* The estimated arrival time.
*
*
* .io.LocalDateTime estimatedArrivalTime = 15;
*/
public com.passkit.grpc.CommonObjects.LocalDateTime.Builder getEstimatedArrivalTimeBuilder() {
onChanged();
return getEstimatedArrivalTimeFieldBuilder().getBuilder();
}
/**
*
* The estimated arrival time.
*
*
* .io.LocalDateTime estimatedArrivalTime = 15;
*/
public com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder getEstimatedArrivalTimeOrBuilder() {
if (estimatedArrivalTimeBuilder_ != null) {
return estimatedArrivalTimeBuilder_.getMessageOrBuilder();
} else {
return estimatedArrivalTime_ == null ?
com.passkit.grpc.CommonObjects.LocalDateTime.getDefaultInstance() : estimatedArrivalTime_;
}
}
/**
*
* The estimated arrival time.
*
*
* .io.LocalDateTime estimatedArrivalTime = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder>
getEstimatedArrivalTimeFieldBuilder() {
if (estimatedArrivalTimeBuilder_ == null) {
estimatedArrivalTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.LocalDateTime, com.passkit.grpc.CommonObjects.LocalDateTime.Builder, com.passkit.grpc.CommonObjects.LocalDateTimeOrBuilder>(
getEstimatedArrivalTime(),
getParentForChildren(),
isClean());
estimatedArrivalTime_ = null;
}
return estimatedArrivalTimeBuilder_;
}
private java.lang.Object operatingCarrierCode_ = "";
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the IATA or ICAO carrier code for the operating carrier. A carrier record must exist.
*
*
* string operatingCarrierCode = 16 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The operatingCarrierCode.
*/
public java.lang.String getOperatingCarrierCode() {
java.lang.Object ref = operatingCarrierCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
operatingCarrierCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the IATA or ICAO carrier code for the operating carrier. A carrier record must exist.
*
*
* string operatingCarrierCode = 16 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for operatingCarrierCode.
*/
public com.google.protobuf.ByteString
getOperatingCarrierCodeBytes() {
java.lang.Object ref = operatingCarrierCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operatingCarrierCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the IATA or ICAO carrier code for the operating carrier. A carrier record must exist.
*
*
* string operatingCarrierCode = 16 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The operatingCarrierCode to set.
* @return This builder for chaining.
*/
public Builder setOperatingCarrierCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
operatingCarrierCode_ = value;
onChanged();
return this;
}
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the IATA or ICAO carrier code for the operating carrier. A carrier record must exist.
*
*
* string operatingCarrierCode = 16 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return This builder for chaining.
*/
public Builder clearOperatingCarrierCode() {
operatingCarrierCode_ = getDefaultInstance().getOperatingCarrierCode();
onChanged();
return this;
}
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the IATA or ICAO carrier code for the operating carrier. A carrier record must exist.
*
*
* string operatingCarrierCode = 16 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The bytes for operatingCarrierCode to set.
* @return This builder for chaining.
*/
public Builder setOperatingCarrierCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
operatingCarrierCode_ = value;
onChanged();
return this;
}
private java.lang.Object operatingFlightNumber_ = "";
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the flight number for the operating carrier.
*
*
* string operatingFlightNumber = 17 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The operatingFlightNumber.
*/
public java.lang.String getOperatingFlightNumber() {
java.lang.Object ref = operatingFlightNumber_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
operatingFlightNumber_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the flight number for the operating carrier.
*
*
* string operatingFlightNumber = 17 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for operatingFlightNumber.
*/
public com.google.protobuf.ByteString
getOperatingFlightNumberBytes() {
java.lang.Object ref = operatingFlightNumber_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operatingFlightNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the flight number for the operating carrier.
*
*
* string operatingFlightNumber = 17 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The operatingFlightNumber to set.
* @return This builder for chaining.
*/
public Builder setOperatingFlightNumber(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
operatingFlightNumber_ = value;
onChanged();
return this;
}
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the flight number for the operating carrier.
*
*
* string operatingFlightNumber = 17 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return This builder for chaining.
*/
public Builder clearOperatingFlightNumber() {
operatingFlightNumber_ = getDefaultInstance().getOperatingFlightNumber();
onChanged();
return this;
}
/**
*
* If the flight is operated by a carrier other than the carrierCode supplied, provide the flight number for the operating carrier.
*
*
* string operatingFlightNumber = 17 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The bytes for operatingFlightNumber to set.
* @return This builder for chaining.
*/
public Builder setOperatingFlightNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
operatingFlightNumber_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList codeShareFlightNumbers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureCodeShareFlightNumbersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
codeShareFlightNumbers_ = new com.google.protobuf.LazyStringArrayList(codeShareFlightNumbers_);
bitField0_ |= 0x00000001;
}
}
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @return A list containing the codeShareFlightNumbers.
*/
public com.google.protobuf.ProtocolStringList
getCodeShareFlightNumbersList() {
return codeShareFlightNumbers_.getUnmodifiableView();
}
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @return The count of codeShareFlightNumbers.
*/
public int getCodeShareFlightNumbersCount() {
return codeShareFlightNumbers_.size();
}
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @param index The index of the element to return.
* @return The codeShareFlightNumbers at the given index.
*/
public java.lang.String getCodeShareFlightNumbers(int index) {
return codeShareFlightNumbers_.get(index);
}
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @param index The index of the value to return.
* @return The bytes of the codeShareFlightNumbers at the given index.
*/
public com.google.protobuf.ByteString
getCodeShareFlightNumbersBytes(int index) {
return codeShareFlightNumbers_.getByteString(index);
}
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @param index The index to set the value at.
* @param value The codeShareFlightNumbers to set.
* @return This builder for chaining.
*/
public Builder setCodeShareFlightNumbers(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCodeShareFlightNumbersIsMutable();
codeShareFlightNumbers_.set(index, value);
onChanged();
return this;
}
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @param value The codeShareFlightNumbers to add.
* @return This builder for chaining.
*/
public Builder addCodeShareFlightNumbers(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCodeShareFlightNumbersIsMutable();
codeShareFlightNumbers_.add(value);
onChanged();
return this;
}
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @param values The codeShareFlightNumbers to add.
* @return This builder for chaining.
*/
public Builder addAllCodeShareFlightNumbers(
java.lang.Iterable values) {
ensureCodeShareFlightNumbersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, codeShareFlightNumbers_);
onChanged();
return this;
}
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @return This builder for chaining.
*/
public Builder clearCodeShareFlightNumbers() {
codeShareFlightNumbers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* If the flight has code shares, then enter the carrier code and flight number. If there is an operating carrier, then do not include this in the list. Code share carriers will not be validated.
*
*
* repeated string codeShareFlightNumbers = 18;
* @param value The bytes of the codeShareFlightNumbers to add.
* @return This builder for chaining.
*/
public Builder addCodeShareFlightNumbersBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureCodeShareFlightNumbersIsMutable();
codeShareFlightNumbers_.add(value);
onChanged();
return this;
}
private java.lang.Object passTemplateId_ = "";
/**
*
* The pass template id.
*
*
* string passTemplateId = 19;
* @return The passTemplateId.
*/
public java.lang.String getPassTemplateId() {
java.lang.Object ref = passTemplateId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
passTemplateId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The pass template id.
*
*
* string passTemplateId = 19;
* @return The bytes for passTemplateId.
*/
public com.google.protobuf.ByteString
getPassTemplateIdBytes() {
java.lang.Object ref = passTemplateId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
passTemplateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The pass template id.
*
*
* string passTemplateId = 19;
* @param value The passTemplateId to set.
* @return This builder for chaining.
*/
public Builder setPassTemplateId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
passTemplateId_ = value;
onChanged();
return this;
}
/**
*
* The pass template id.
*
*
* string passTemplateId = 19;
* @return This builder for chaining.
*/
public Builder clearPassTemplateId() {
passTemplateId_ = getDefaultInstance().getPassTemplateId();
onChanged();
return this;
}
/**
*
* The pass template id.
*
*
* string passTemplateId = 19;
* @param value The bytes for passTemplateId to set.
* @return This builder for chaining.
*/
public Builder setPassTemplateIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
passTemplateId_ = value;
onChanged();
return this;
}
private java.lang.Object baggageBelt_ = "";
/**
*
* The baggage belt at the destination.
*
*
* string baggageBelt = 21;
* @return The baggageBelt.
*/
public java.lang.String getBaggageBelt() {
java.lang.Object ref = baggageBelt_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
baggageBelt_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The baggage belt at the destination.
*
*
* string baggageBelt = 21;
* @return The bytes for baggageBelt.
*/
public com.google.protobuf.ByteString
getBaggageBeltBytes() {
java.lang.Object ref = baggageBelt_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
baggageBelt_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The baggage belt at the destination.
*
*
* string baggageBelt = 21;
* @param value The baggageBelt to set.
* @return This builder for chaining.
*/
public Builder setBaggageBelt(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
baggageBelt_ = value;
onChanged();
return this;
}
/**
*
* The baggage belt at the destination.
*
*
* string baggageBelt = 21;
* @return This builder for chaining.
*/
public Builder clearBaggageBelt() {
baggageBelt_ = getDefaultInstance().getBaggageBelt();
onChanged();
return this;
}
/**
*
* The baggage belt at the destination.
*
*
* string baggageBelt = 21;
* @param value The bytes for baggageBelt to set.
* @return This builder for chaining.
*/
public Builder setBaggageBeltBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
baggageBelt_ = value;
onChanged();
return this;
}
private int autoInvalidateAfter_ ;
/**
*
* Minutes after estimated or scheduled arrival to automatically invalidate the pass. Enter a value of 9999999 or greater if the pass should not auto invalidate. Default is 48 hours.
*
*
* uint32 autoInvalidateAfter = 22 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The autoInvalidateAfter.
*/
@java.lang.Override
public int getAutoInvalidateAfter() {
return autoInvalidateAfter_;
}
/**
*
* Minutes after estimated or scheduled arrival to automatically invalidate the pass. Enter a value of 9999999 or greater if the pass should not auto invalidate. Default is 48 hours.
*
*
* uint32 autoInvalidateAfter = 22 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The autoInvalidateAfter to set.
* @return This builder for chaining.
*/
public Builder setAutoInvalidateAfter(int value) {
autoInvalidateAfter_ = value;
onChanged();
return this;
}
/**
*
* Minutes after estimated or scheduled arrival to automatically invalidate the pass. Enter a value of 9999999 or greater if the pass should not auto invalidate. Default is 48 hours.
*
*
* uint32 autoInvalidateAfter = 22 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return This builder for chaining.
*/
public Builder clearAutoInvalidateAfter() {
autoInvalidateAfter_ = 0;
onChanged();
return this;
}
private boolean autoInvalidateCancelledPasses_ ;
/**
*
* Deprecated: Use InvalidateCancelledPasses.
*
*
* bool autoInvalidateCancelledPasses = 23 [deprecated = true];
* @return The autoInvalidateCancelledPasses.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getAutoInvalidateCancelledPasses() {
return autoInvalidateCancelledPasses_;
}
/**
*
* Deprecated: Use InvalidateCancelledPasses.
*
*
* bool autoInvalidateCancelledPasses = 23 [deprecated = true];
* @param value The autoInvalidateCancelledPasses to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setAutoInvalidateCancelledPasses(boolean value) {
autoInvalidateCancelledPasses_ = value;
onChanged();
return this;
}
/**
*
* Deprecated: Use InvalidateCancelledPasses.
*
*
* bool autoInvalidateCancelledPasses = 23 [deprecated = true];
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearAutoInvalidateCancelledPasses() {
autoInvalidateCancelledPasses_ = false;
onChanged();
return this;
}
private java.util.List locationMessages_ =
java.util.Collections.emptyList();
private void ensureLocationMessagesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
locationMessages_ = new java.util.ArrayList(locationMessages_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Proximity.GPSLocation, com.passkit.grpc.Proximity.GPSLocation.Builder, com.passkit.grpc.Proximity.GPSLocationOrBuilder> locationMessagesBuilder_;
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public java.util.List getLocationMessagesList() {
if (locationMessagesBuilder_ == null) {
return java.util.Collections.unmodifiableList(locationMessages_);
} else {
return locationMessagesBuilder_.getMessageList();
}
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public int getLocationMessagesCount() {
if (locationMessagesBuilder_ == null) {
return locationMessages_.size();
} else {
return locationMessagesBuilder_.getCount();
}
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.GPSLocation getLocationMessages(int index) {
if (locationMessagesBuilder_ == null) {
return locationMessages_.get(index);
} else {
return locationMessagesBuilder_.getMessage(index);
}
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder setLocationMessages(
int index, com.passkit.grpc.Proximity.GPSLocation value) {
if (locationMessagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationMessagesIsMutable();
locationMessages_.set(index, value);
onChanged();
} else {
locationMessagesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder setLocationMessages(
int index, com.passkit.grpc.Proximity.GPSLocation.Builder builderForValue) {
if (locationMessagesBuilder_ == null) {
ensureLocationMessagesIsMutable();
locationMessages_.set(index, builderForValue.build());
onChanged();
} else {
locationMessagesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addLocationMessages(com.passkit.grpc.Proximity.GPSLocation value) {
if (locationMessagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationMessagesIsMutable();
locationMessages_.add(value);
onChanged();
} else {
locationMessagesBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addLocationMessages(
int index, com.passkit.grpc.Proximity.GPSLocation value) {
if (locationMessagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationMessagesIsMutable();
locationMessages_.add(index, value);
onChanged();
} else {
locationMessagesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addLocationMessages(
com.passkit.grpc.Proximity.GPSLocation.Builder builderForValue) {
if (locationMessagesBuilder_ == null) {
ensureLocationMessagesIsMutable();
locationMessages_.add(builderForValue.build());
onChanged();
} else {
locationMessagesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addLocationMessages(
int index, com.passkit.grpc.Proximity.GPSLocation.Builder builderForValue) {
if (locationMessagesBuilder_ == null) {
ensureLocationMessagesIsMutable();
locationMessages_.add(index, builderForValue.build());
onChanged();
} else {
locationMessagesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addAllLocationMessages(
java.lang.Iterable extends com.passkit.grpc.Proximity.GPSLocation> values) {
if (locationMessagesBuilder_ == null) {
ensureLocationMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, locationMessages_);
onChanged();
} else {
locationMessagesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder clearLocationMessages() {
if (locationMessagesBuilder_ == null) {
locationMessages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
locationMessagesBuilder_.clear();
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder removeLocationMessages(int index) {
if (locationMessagesBuilder_ == null) {
ensureLocationMessagesIsMutable();
locationMessages_.remove(index);
onChanged();
} else {
locationMessagesBuilder_.remove(index);
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.GPSLocation.Builder getLocationMessagesBuilder(
int index) {
return getLocationMessagesFieldBuilder().getBuilder(index);
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.GPSLocationOrBuilder getLocationMessagesOrBuilder(
int index) {
if (locationMessagesBuilder_ == null) {
return locationMessages_.get(index); } else {
return locationMessagesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public java.util.List extends com.passkit.grpc.Proximity.GPSLocationOrBuilder>
getLocationMessagesOrBuilderList() {
if (locationMessagesBuilder_ != null) {
return locationMessagesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(locationMessages_);
}
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.GPSLocation.Builder addLocationMessagesBuilder() {
return getLocationMessagesFieldBuilder().addBuilder(
com.passkit.grpc.Proximity.GPSLocation.getDefaultInstance());
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.GPSLocation.Builder addLocationMessagesBuilder(
int index) {
return getLocationMessagesFieldBuilder().addBuilder(
index, com.passkit.grpc.Proximity.GPSLocation.getDefaultInstance());
}
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.GPSLocation locationMessages = 24 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public java.util.List
getLocationMessagesBuilderList() {
return getLocationMessagesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Proximity.GPSLocation, com.passkit.grpc.Proximity.GPSLocation.Builder, com.passkit.grpc.Proximity.GPSLocationOrBuilder>
getLocationMessagesFieldBuilder() {
if (locationMessagesBuilder_ == null) {
locationMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Proximity.GPSLocation, com.passkit.grpc.Proximity.GPSLocation.Builder, com.passkit.grpc.Proximity.GPSLocationOrBuilder>(
locationMessages_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
locationMessages_ = null;
}
return locationMessagesBuilder_;
}
private java.util.List beaconMessages_ =
java.util.Collections.emptyList();
private void ensureBeaconMessagesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
beaconMessages_ = new java.util.ArrayList(beaconMessages_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Proximity.Beacon, com.passkit.grpc.Proximity.Beacon.Builder, com.passkit.grpc.Proximity.BeaconOrBuilder> beaconMessagesBuilder_;
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public java.util.List getBeaconMessagesList() {
if (beaconMessagesBuilder_ == null) {
return java.util.Collections.unmodifiableList(beaconMessages_);
} else {
return beaconMessagesBuilder_.getMessageList();
}
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public int getBeaconMessagesCount() {
if (beaconMessagesBuilder_ == null) {
return beaconMessages_.size();
} else {
return beaconMessagesBuilder_.getCount();
}
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.Beacon getBeaconMessages(int index) {
if (beaconMessagesBuilder_ == null) {
return beaconMessages_.get(index);
} else {
return beaconMessagesBuilder_.getMessage(index);
}
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder setBeaconMessages(
int index, com.passkit.grpc.Proximity.Beacon value) {
if (beaconMessagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBeaconMessagesIsMutable();
beaconMessages_.set(index, value);
onChanged();
} else {
beaconMessagesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder setBeaconMessages(
int index, com.passkit.grpc.Proximity.Beacon.Builder builderForValue) {
if (beaconMessagesBuilder_ == null) {
ensureBeaconMessagesIsMutable();
beaconMessages_.set(index, builderForValue.build());
onChanged();
} else {
beaconMessagesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addBeaconMessages(com.passkit.grpc.Proximity.Beacon value) {
if (beaconMessagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBeaconMessagesIsMutable();
beaconMessages_.add(value);
onChanged();
} else {
beaconMessagesBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addBeaconMessages(
int index, com.passkit.grpc.Proximity.Beacon value) {
if (beaconMessagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBeaconMessagesIsMutable();
beaconMessages_.add(index, value);
onChanged();
} else {
beaconMessagesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addBeaconMessages(
com.passkit.grpc.Proximity.Beacon.Builder builderForValue) {
if (beaconMessagesBuilder_ == null) {
ensureBeaconMessagesIsMutable();
beaconMessages_.add(builderForValue.build());
onChanged();
} else {
beaconMessagesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addBeaconMessages(
int index, com.passkit.grpc.Proximity.Beacon.Builder builderForValue) {
if (beaconMessagesBuilder_ == null) {
ensureBeaconMessagesIsMutable();
beaconMessages_.add(index, builderForValue.build());
onChanged();
} else {
beaconMessagesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addAllBeaconMessages(
java.lang.Iterable extends com.passkit.grpc.Proximity.Beacon> values) {
if (beaconMessagesBuilder_ == null) {
ensureBeaconMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, beaconMessages_);
onChanged();
} else {
beaconMessagesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder clearBeaconMessages() {
if (beaconMessagesBuilder_ == null) {
beaconMessages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
beaconMessagesBuilder_.clear();
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder removeBeaconMessages(int index) {
if (beaconMessagesBuilder_ == null) {
ensureBeaconMessagesIsMutable();
beaconMessages_.remove(index);
onChanged();
} else {
beaconMessagesBuilder_.remove(index);
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.Beacon.Builder getBeaconMessagesBuilder(
int index) {
return getBeaconMessagesFieldBuilder().getBuilder(index);
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.BeaconOrBuilder getBeaconMessagesOrBuilder(
int index) {
if (beaconMessagesBuilder_ == null) {
return beaconMessages_.get(index); } else {
return beaconMessagesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public java.util.List extends com.passkit.grpc.Proximity.BeaconOrBuilder>
getBeaconMessagesOrBuilderList() {
if (beaconMessagesBuilder_ != null) {
return beaconMessagesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(beaconMessages_);
}
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.Beacon.Builder addBeaconMessagesBuilder() {
return getBeaconMessagesFieldBuilder().addBuilder(
com.passkit.grpc.Proximity.Beacon.getDefaultInstance());
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.Beacon.Builder addBeaconMessagesBuilder(
int index) {
return getBeaconMessagesFieldBuilder().addBuilder(
index, com.passkit.grpc.Proximity.Beacon.getDefaultInstance());
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designated defaults.
*
*
* repeated .io.Beacon beaconMessages = 25 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public java.util.List
getBeaconMessagesBuilderList() {
return getBeaconMessagesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Proximity.Beacon, com.passkit.grpc.Proximity.Beacon.Builder, com.passkit.grpc.Proximity.BeaconOrBuilder>
getBeaconMessagesFieldBuilder() {
if (beaconMessagesBuilder_ == null) {
beaconMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Proximity.Beacon, com.passkit.grpc.Proximity.Beacon.Builder, com.passkit.grpc.Proximity.BeaconOrBuilder>(
beaconMessages_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
beaconMessages_ = null;
}
return beaconMessagesBuilder_;
}
private java.util.List links_ =
java.util.Collections.emptyList();
private void ensureLinksIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
links_ = new java.util.ArrayList(links_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Links.Link, com.passkit.grpc.Links.Link.Builder, com.passkit.grpc.Links.LinkOrBuilder> linksBuilder_;
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public java.util.List getLinksList() {
if (linksBuilder_ == null) {
return java.util.Collections.unmodifiableList(links_);
} else {
return linksBuilder_.getMessageList();
}
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public int getLinksCount() {
if (linksBuilder_ == null) {
return links_.size();
} else {
return linksBuilder_.getCount();
}
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Links.Link getLinks(int index) {
if (linksBuilder_ == null) {
return links_.get(index);
} else {
return linksBuilder_.getMessage(index);
}
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder setLinks(
int index, com.passkit.grpc.Links.Link value) {
if (linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
links_.set(index, value);
onChanged();
} else {
linksBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder setLinks(
int index, com.passkit.grpc.Links.Link.Builder builderForValue) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.set(index, builderForValue.build());
onChanged();
} else {
linksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addLinks(com.passkit.grpc.Links.Link value) {
if (linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
links_.add(value);
onChanged();
} else {
linksBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addLinks(
int index, com.passkit.grpc.Links.Link value) {
if (linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
links_.add(index, value);
onChanged();
} else {
linksBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addLinks(
com.passkit.grpc.Links.Link.Builder builderForValue) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.add(builderForValue.build());
onChanged();
} else {
linksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addLinks(
int index, com.passkit.grpc.Links.Link.Builder builderForValue) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.add(index, builderForValue.build());
onChanged();
} else {
linksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addAllLinks(
java.lang.Iterable extends com.passkit.grpc.Links.Link> values) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, links_);
onChanged();
} else {
linksBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder clearLinks() {
if (linksBuilder_ == null) {
links_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
linksBuilder_.clear();
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder removeLinks(int index) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.remove(index);
onChanged();
} else {
linksBuilder_.remove(index);
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Links.Link.Builder getLinksBuilder(
int index) {
return getLinksFieldBuilder().getBuilder(index);
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Links.LinkOrBuilder getLinksOrBuilder(
int index) {
if (linksBuilder_ == null) {
return links_.get(index); } else {
return linksBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public java.util.List extends com.passkit.grpc.Links.LinkOrBuilder>
getLinksOrBuilderList() {
if (linksBuilder_ != null) {
return linksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(links_);
}
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Links.Link.Builder addLinksBuilder() {
return getLinksFieldBuilder().addBuilder(
com.passkit.grpc.Links.Link.getDefaultInstance());
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Links.Link.Builder addLinksBuilder(
int index) {
return getLinksFieldBuilder().addBuilder(
index, com.passkit.grpc.Links.Link.getDefaultInstance());
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link links = 26 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public java.util.List
getLinksBuilderList() {
return getLinksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Links.Link, com.passkit.grpc.Links.Link.Builder, com.passkit.grpc.Links.LinkOrBuilder>
getLinksFieldBuilder() {
if (linksBuilder_ == null) {
linksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Links.Link, com.passkit.grpc.Links.Link.Builder, com.passkit.grpc.Links.LinkOrBuilder>(
links_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
links_ = null;
}
return linksBuilder_;
}
private boolean suspendAutomaticUpdates_ ;
/**
*
* Suspend automatic updates to all boarding passes for this flight.
*
*
* bool suspendAutomaticUpdates = 27;
* @return The suspendAutomaticUpdates.
*/
@java.lang.Override
public boolean getSuspendAutomaticUpdates() {
return suspendAutomaticUpdates_;
}
/**
*
* Suspend automatic updates to all boarding passes for this flight.
*
*
* bool suspendAutomaticUpdates = 27;
* @param value The suspendAutomaticUpdates to set.
* @return This builder for chaining.
*/
public Builder setSuspendAutomaticUpdates(boolean value) {
suspendAutomaticUpdates_ = value;
onChanged();
return this;
}
/**
*
* Suspend automatic updates to all boarding passes for this flight.
*
*
* bool suspendAutomaticUpdates = 27;
* @return This builder for chaining.
*/
public Builder clearSuspendAutomaticUpdates() {
suspendAutomaticUpdates_ = false;
onChanged();
return this;
}
private int boardingPolicy_ = 0;
/**
*
* Used to determine the label printed above the boarding group on the Google Pay pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 28;
* @return The enum numeric value on the wire for boardingPolicy.
*/
@java.lang.Override public int getBoardingPolicyValue() {
return boardingPolicy_;
}
/**
*
* Used to determine the label printed above the boarding group on the Google Pay pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 28;
* @param value The enum numeric value on the wire for boardingPolicy to set.
* @return This builder for chaining.
*/
public Builder setBoardingPolicyValue(int value) {
boardingPolicy_ = value;
onChanged();
return this;
}
/**
*
* Used to determine the label printed above the boarding group on the Google Pay pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 28;
* @return The boardingPolicy.
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.BoardingPolicy getBoardingPolicy() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Flights.FlightDesignatorOuterClass.BoardingPolicy result = com.passkit.grpc.Flights.FlightDesignatorOuterClass.BoardingPolicy.valueOf(boardingPolicy_);
return result == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.BoardingPolicy.UNRECOGNIZED : result;
}
/**
*
* Used to determine the label printed above the boarding group on the Google Pay pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 28;
* @param value The boardingPolicy to set.
* @return This builder for chaining.
*/
public Builder setBoardingPolicy(com.passkit.grpc.Flights.FlightDesignatorOuterClass.BoardingPolicy value) {
if (value == null) {
throw new NullPointerException();
}
boardingPolicy_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Used to determine the label printed above the boarding group on the Google Pay pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 28;
* @return This builder for chaining.
*/
public Builder clearBoardingPolicy() {
boardingPolicy_ = 0;
onChanged();
return this;
}
private int seatingPolicy_ = 0;
/**
*
* Used to determine the label printed above the seat class on the Google Pay pass. E.g. Economy, Economy Plus.
*
*
* .flights.SeatClassPolicy seatingPolicy = 29;
* @return The enum numeric value on the wire for seatingPolicy.
*/
@java.lang.Override public int getSeatingPolicyValue() {
return seatingPolicy_;
}
/**
*
* Used to determine the label printed above the seat class on the Google Pay pass. E.g. Economy, Economy Plus.
*
*
* .flights.SeatClassPolicy seatingPolicy = 29;
* @param value The enum numeric value on the wire for seatingPolicy to set.
* @return This builder for chaining.
*/
public Builder setSeatingPolicyValue(int value) {
seatingPolicy_ = value;
onChanged();
return this;
}
/**
*
* Used to determine the label printed above the seat class on the Google Pay pass. E.g. Economy, Economy Plus.
*
*
* .flights.SeatClassPolicy seatingPolicy = 29;
* @return The seatingPolicy.
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy getSeatingPolicy() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy result = com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy.valueOf(seatingPolicy_);
return result == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy.UNRECOGNIZED : result;
}
/**
*
* Used to determine the label printed above the seat class on the Google Pay pass. E.g. Economy, Economy Plus.
*
*
* .flights.SeatClassPolicy seatingPolicy = 29;
* @param value The seatingPolicy to set.
* @return This builder for chaining.
*/
public Builder setSeatingPolicy(com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy value) {
if (value == null) {
throw new NullPointerException();
}
seatingPolicy_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Used to determine the label printed above the seat class on the Google Pay pass. E.g. Economy, Economy Plus.
*
*
* .flights.SeatClassPolicy seatingPolicy = 29;
* @return This builder for chaining.
*/
public Builder clearSeatingPolicy() {
seatingPolicy_ = 0;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* The status of the flight. This can be manually set, or automatically set for customers subscribing to automatic updates.
*
*
* .flights.FlightStatus status = 30;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* The status of the flight. This can be manually set, or automatically set for customers subscribing to automatic updates.
*
*
* .flights.FlightStatus status = 30;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* The status of the flight. This can be manually set, or automatically set for customers subscribing to automatic updates.
*
*
* .flights.FlightStatus status = 30;
* @return The status.
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightOuterClass.FlightStatus getStatus() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Flights.FlightOuterClass.FlightStatus result = com.passkit.grpc.Flights.FlightOuterClass.FlightStatus.valueOf(status_);
return result == null ? com.passkit.grpc.Flights.FlightOuterClass.FlightStatus.UNRECOGNIZED : result;
}
/**
*
* The status of the flight. This can be manually set, or automatically set for customers subscribing to automatic updates.
*
*
* .flights.FlightStatus status = 30;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.passkit.grpc.Flights.FlightOuterClass.FlightStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The status of the flight. This can be manually set, or automatically set for customers subscribing to automatic updates.
*
*
* .flights.FlightStatus status = 30;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private boolean conditionalItems_ ;
/**
*
* If PassKit are generating barcodes, include conditional items. Default false.
*
*
* bool ConditionalItems = 31;
* @return The conditionalItems.
*/
@java.lang.Override
public boolean getConditionalItems() {
return conditionalItems_;
}
/**
*
* If PassKit are generating barcodes, include conditional items. Default false.
*
*
* bool ConditionalItems = 31;
* @param value The conditionalItems to set.
* @return This builder for chaining.
*/
public Builder setConditionalItems(boolean value) {
conditionalItems_ = value;
onChanged();
return this;
}
/**
*
* If PassKit are generating barcodes, include conditional items. Default false.
*
*
* bool ConditionalItems = 31;
* @return This builder for chaining.
*/
public Builder clearConditionalItems() {
conditionalItems_ = false;
onChanged();
return this;
}
private java.lang.Object barcodeAdditionalData_ = "";
/**
*
* If PassKit are generating barcodes, default airline use data (IATA item 4). This can be overwritten at the flight and boarding pass level.
*
*
* string BarcodeAdditionalData = 32;
* @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;
}
}
/**
*
* If PassKit are generating barcodes, default airline use data (IATA item 4). This can be overwritten at the flight and boarding pass level.
*
*
* string BarcodeAdditionalData = 32;
* @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;
}
}
/**
*
* If PassKit are generating barcodes, default airline use data (IATA item 4). This can be overwritten at the flight and boarding pass level.
*
*
* string BarcodeAdditionalData = 32;
* @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;
}
/**
*
* If PassKit are generating barcodes, default airline use data (IATA item 4). This can be overwritten at the flight and boarding pass level.
*
*
* string BarcodeAdditionalData = 32;
* @return This builder for chaining.
*/
public Builder clearBarcodeAdditionalData() {
barcodeAdditionalData_ = getDefaultInstance().getBarcodeAdditionalData();
onChanged();
return this;
}
/**
*
* If PassKit are generating barcodes, default airline use data (IATA item 4). This can be overwritten at the flight and boarding pass level.
*
*
* string BarcodeAdditionalData = 32;
* @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 com.passkit.grpc.MetricsOuterClass.Metrics metrics_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.MetricsOuterClass.Metrics, com.passkit.grpc.MetricsOuterClass.Metrics.Builder, com.passkit.grpc.MetricsOuterClass.MetricsOrBuilder> metricsBuilder_;
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 33;
* @return Whether the metrics field is set.
*/
public boolean hasMetrics() {
return metricsBuilder_ != null || metrics_ != null;
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 33;
* @return The metrics.
*/
public com.passkit.grpc.MetricsOuterClass.Metrics getMetrics() {
if (metricsBuilder_ == null) {
return metrics_ == null ? com.passkit.grpc.MetricsOuterClass.Metrics.getDefaultInstance() : metrics_;
} else {
return metricsBuilder_.getMessage();
}
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 33;
*/
public Builder setMetrics(com.passkit.grpc.MetricsOuterClass.Metrics value) {
if (metricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metrics_ = value;
onChanged();
} else {
metricsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 33;
*/
public Builder setMetrics(
com.passkit.grpc.MetricsOuterClass.Metrics.Builder builderForValue) {
if (metricsBuilder_ == null) {
metrics_ = builderForValue.build();
onChanged();
} else {
metricsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 33;
*/
public Builder mergeMetrics(com.passkit.grpc.MetricsOuterClass.Metrics value) {
if (metricsBuilder_ == null) {
if (metrics_ != null) {
metrics_ =
com.passkit.grpc.MetricsOuterClass.Metrics.newBuilder(metrics_).mergeFrom(value).buildPartial();
} else {
metrics_ = value;
}
onChanged();
} else {
metricsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 33;
*/
public Builder clearMetrics() {
if (metricsBuilder_ == null) {
metrics_ = null;
onChanged();
} else {
metrics_ = null;
metricsBuilder_ = null;
}
return this;
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 33;
*/
public com.passkit.grpc.MetricsOuterClass.Metrics.Builder getMetricsBuilder() {
onChanged();
return getMetricsFieldBuilder().getBuilder();
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 33;
*/
public com.passkit.grpc.MetricsOuterClass.MetricsOrBuilder getMetricsOrBuilder() {
if (metricsBuilder_ != null) {
return metricsBuilder_.getMessageOrBuilder();
} else {
return metrics_ == null ?
com.passkit.grpc.MetricsOuterClass.Metrics.getDefaultInstance() : metrics_;
}
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 33;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.MetricsOuterClass.Metrics, com.passkit.grpc.MetricsOuterClass.Metrics.Builder, com.passkit.grpc.MetricsOuterClass.MetricsOrBuilder>
getMetricsFieldBuilder() {
if (metricsBuilder_ == null) {
metricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.MetricsOuterClass.Metrics, com.passkit.grpc.MetricsOuterClass.Metrics.Builder, com.passkit.grpc.MetricsOuterClass.MetricsOrBuilder>(
getMetrics(),
getParentForChildren(),
isClean());
metrics_ = null;
}
return metricsBuilder_;
}
private int createMethod_ = 0;
/**
*
* How the flight was created Create mode, manually or automatically.
*
*
* .flights.FlightCreateMode createMethod = 34;
* @return The enum numeric value on the wire for createMethod.
*/
@java.lang.Override public int getCreateMethodValue() {
return createMethod_;
}
/**
*
* How the flight was created Create mode, manually or automatically.
*
*
* .flights.FlightCreateMode createMethod = 34;
* @param value The enum numeric value on the wire for createMethod to set.
* @return This builder for chaining.
*/
public Builder setCreateMethodValue(int value) {
createMethod_ = value;
onChanged();
return this;
}
/**
*
* How the flight was created Create mode, manually or automatically.
*
*
* .flights.FlightCreateMode createMethod = 34;
* @return The createMethod.
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightOuterClass.FlightCreateMode getCreateMethod() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Flights.FlightOuterClass.FlightCreateMode result = com.passkit.grpc.Flights.FlightOuterClass.FlightCreateMode.valueOf(createMethod_);
return result == null ? com.passkit.grpc.Flights.FlightOuterClass.FlightCreateMode.UNRECOGNIZED : result;
}
/**
*
* How the flight was created Create mode, manually or automatically.
*
*
* .flights.FlightCreateMode createMethod = 34;
* @param value The createMethod to set.
* @return This builder for chaining.
*/
public Builder setCreateMethod(com.passkit.grpc.Flights.FlightOuterClass.FlightCreateMode value) {
if (value == null) {
throw new NullPointerException();
}
createMethod_ = value.getNumber();
onChanged();
return this;
}
/**
*
* How the flight was created Create mode, manually or automatically.
*
*
* .flights.FlightCreateMode createMethod = 34;
* @return This builder for chaining.
*/
public Builder clearCreateMethod() {
createMethod_ = 0;
onChanged();
return this;
}
private java.lang.Object designatorId_ = "";
/**
*
* For automatically created flights, shows the ID of the designator that bootstrapped the flight record.
*
*
* string designatorId = 35;
* @return The designatorId.
*/
public java.lang.String getDesignatorId() {
java.lang.Object ref = designatorId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
designatorId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* For automatically created flights, shows the ID of the designator that bootstrapped the flight record.
*
*
* string designatorId = 35;
* @return The bytes for designatorId.
*/
public com.google.protobuf.ByteString
getDesignatorIdBytes() {
java.lang.Object ref = designatorId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
designatorId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* For automatically created flights, shows the ID of the designator that bootstrapped the flight record.
*
*
* string designatorId = 35;
* @param value The designatorId to set.
* @return This builder for chaining.
*/
public Builder setDesignatorId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
designatorId_ = value;
onChanged();
return this;
}
/**
*
* For automatically created flights, shows the ID of the designator that bootstrapped the flight record.
*
*
* string designatorId = 35;
* @return This builder for chaining.
*/
public Builder clearDesignatorId() {
designatorId_ = getDefaultInstance().getDesignatorId();
onChanged();
return this;
}
/**
*
* For automatically created flights, shows the ID of the designator that bootstrapped the flight record.
*
*
* string designatorId = 35;
* @param value The bytes for designatorId to set.
* @return This builder for chaining.
*/
public Builder setDesignatorIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
designatorId_ = value;
onChanged();
return this;
}
private int invalidateCancelledPasses_ = 0;
/**
*
* Invalidate passes where either the booking or the flight have been cancelled. Default is ON.
*
*
* .io.Toggle invalidateCancelledPasses = 36 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The enum numeric value on the wire for invalidateCancelledPasses.
*/
@java.lang.Override public int getInvalidateCancelledPassesValue() {
return invalidateCancelledPasses_;
}
/**
*
* Invalidate passes where either the booking or the flight have been cancelled. Default is ON.
*
*
* .io.Toggle invalidateCancelledPasses = 36 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The enum numeric value on the wire for invalidateCancelledPasses to set.
* @return This builder for chaining.
*/
public Builder setInvalidateCancelledPassesValue(int value) {
invalidateCancelledPasses_ = value;
onChanged();
return this;
}
/**
*
* Invalidate passes where either the booking or the flight have been cancelled. Default is ON.
*
*
* .io.Toggle invalidateCancelledPasses = 36 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The invalidateCancelledPasses.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.Toggle getInvalidateCancelledPasses() {
@SuppressWarnings("deprecation")
com.passkit.grpc.CommonObjects.Toggle result = com.passkit.grpc.CommonObjects.Toggle.valueOf(invalidateCancelledPasses_);
return result == null ? com.passkit.grpc.CommonObjects.Toggle.UNRECOGNIZED : result;
}
/**
*
* Invalidate passes where either the booking or the flight have been cancelled. Default is ON.
*
*
* .io.Toggle invalidateCancelledPasses = 36 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The invalidateCancelledPasses to set.
* @return This builder for chaining.
*/
public Builder setInvalidateCancelledPasses(com.passkit.grpc.CommonObjects.Toggle value) {
if (value == null) {
throw new NullPointerException();
}
invalidateCancelledPasses_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Invalidate passes where either the booking or the flight have been cancelled. Default is ON.
*
*
* .io.Toggle invalidateCancelledPasses = 36 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return This builder for chaining.
*/
public Builder clearInvalidateCancelledPasses() {
invalidateCancelledPasses_ = 0;
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.Flight)
}
// @@protoc_insertion_point(class_scope:flights.Flight)
private static final com.passkit.grpc.Flights.FlightOuterClass.Flight DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Flights.FlightOuterClass.Flight();
}
public static com.passkit.grpc.Flights.FlightOuterClass.Flight getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Flight parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Flight(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.FlightOuterClass.Flight getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FlightRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flights.FlightRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The 2 character IATA code or 3 character ICAO code.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The carrierCode.
*/
java.lang.String getCarrierCode();
/**
*
* The 2 character IATA code or 3 character ICAO code.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for carrierCode.
*/
com.google.protobuf.ByteString
getCarrierCodeBytes();
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The flightNumber.
*/
java.lang.String getFlightNumber();
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for flightNumber.
*/
com.google.protobuf.ByteString
getFlightNumberBytes();
/**
*
* The scheduled date of the flight, stated in the timezone of the boarding point.
*
*
* .io.Date departureDate = 3;
* @return Whether the departureDate field is set.
*/
boolean hasDepartureDate();
/**
*
* The scheduled date of the flight, stated in the timezone of the boarding point.
*
*
* .io.Date departureDate = 3;
* @return The departureDate.
*/
com.passkit.grpc.CommonObjects.Date getDepartureDate();
/**
*
* The scheduled date of the flight, stated in the timezone of the boarding point.
*
*
* .io.Date departureDate = 3;
*/
com.passkit.grpc.CommonObjects.DateOrBuilder getDepartureDateOrBuilder();
/**
*
* The IATA airport code for the boarding point of the flight. Only required for direct flights with stops where the boarding point is after the first port and segment is not provided.
*
*
* string boardingPoint = 5;
* @return The boardingPoint.
*/
java.lang.String getBoardingPoint();
/**
*
* The IATA airport code for the boarding point of the flight. Only required for direct flights with stops where the boarding point is after the first port and segment is not provided.
*
*
* string boardingPoint = 5;
* @return The bytes for boardingPoint.
*/
com.google.protobuf.ByteString
getBoardingPointBytes();
/**
*
* The IATA airport code for the destination of the flight. Only required for direct flights with stops where the flight ends before the final port.
*
*
* string deplaningPoint = 6;
* @return The deplaningPoint.
*/
java.lang.String getDeplaningPoint();
/**
*
* The IATA airport code for the destination of the flight. Only required for direct flights with stops where the flight ends before the final port.
*
*
* string deplaningPoint = 6;
* @return The bytes for deplaningPoint.
*/
com.google.protobuf.ByteString
getDeplaningPointBytes();
}
/**
*
* A Flight Request message is used to retrieve or identify an individual flight operation. For direct flights with multiple stops, a segment number or departure point is required.
*
*
* Protobuf type {@code flights.FlightRequest}
*/
public static final class FlightRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flights.FlightRequest)
FlightRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use FlightRequest.newBuilder() to construct.
private FlightRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FlightRequest() {
carrierCode_ = "";
flightNumber_ = "";
boardingPoint_ = "";
deplaningPoint_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FlightRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FlightRequest(
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();
carrierCode_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
flightNumber_ = s;
break;
}
case 26: {
com.passkit.grpc.CommonObjects.Date.Builder subBuilder = null;
if (departureDate_ != null) {
subBuilder = departureDate_.toBuilder();
}
departureDate_ = input.readMessage(com.passkit.grpc.CommonObjects.Date.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(departureDate_);
departureDate_ = subBuilder.buildPartial();
}
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
boardingPoint_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
deplaningPoint_ = 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.FlightOuterClass.internal_static_flights_FlightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.FlightOuterClass.internal_static_flights_FlightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.FlightOuterClass.FlightRequest.class, com.passkit.grpc.Flights.FlightOuterClass.FlightRequest.Builder.class);
}
public static final int CARRIERCODE_FIELD_NUMBER = 1;
private volatile java.lang.Object carrierCode_;
/**
*
* The 2 character IATA code or 3 character ICAO code.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The carrierCode.
*/
@java.lang.Override
public java.lang.String getCarrierCode() {
java.lang.Object ref = carrierCode_;
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();
carrierCode_ = s;
return s;
}
}
/**
*
* The 2 character IATA code or 3 character ICAO code.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for carrierCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCarrierCodeBytes() {
java.lang.Object ref = carrierCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
carrierCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FLIGHTNUMBER_FIELD_NUMBER = 2;
private volatile java.lang.Object flightNumber_;
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The flightNumber.
*/
@java.lang.Override
public java.lang.String getFlightNumber() {
java.lang.Object ref = flightNumber_;
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();
flightNumber_ = s;
return s;
}
}
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for flightNumber.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFlightNumberBytes() {
java.lang.Object ref = flightNumber_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
flightNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPARTUREDATE_FIELD_NUMBER = 3;
private com.passkit.grpc.CommonObjects.Date departureDate_;
/**
*
* The scheduled date of the flight, stated in the timezone of the boarding point.
*
*
* .io.Date departureDate = 3;
* @return Whether the departureDate field is set.
*/
@java.lang.Override
public boolean hasDepartureDate() {
return departureDate_ != null;
}
/**
*
* The scheduled date of the flight, stated in the timezone of the boarding point.
*
*
* .io.Date departureDate = 3;
* @return The departureDate.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.Date getDepartureDate() {
return departureDate_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : departureDate_;
}
/**
*
* The scheduled date of the flight, stated in the timezone of the boarding point.
*
*
* .io.Date departureDate = 3;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.DateOrBuilder getDepartureDateOrBuilder() {
return getDepartureDate();
}
public static final int BOARDINGPOINT_FIELD_NUMBER = 5;
private volatile java.lang.Object boardingPoint_;
/**
*
* The IATA airport code for the boarding point of the flight. Only required for direct flights with stops where the boarding point is after the first port and segment is not provided.
*
*
* string boardingPoint = 5;
* @return The boardingPoint.
*/
@java.lang.Override
public java.lang.String getBoardingPoint() {
java.lang.Object ref = boardingPoint_;
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();
boardingPoint_ = s;
return s;
}
}
/**
*
* The IATA airport code for the boarding point of the flight. Only required for direct flights with stops where the boarding point is after the first port and segment is not provided.
*
*
* string boardingPoint = 5;
* @return The bytes for boardingPoint.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBoardingPointBytes() {
java.lang.Object ref = boardingPoint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
boardingPoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPLANINGPOINT_FIELD_NUMBER = 6;
private volatile java.lang.Object deplaningPoint_;
/**
*
* The IATA airport code for the destination of the flight. Only required for direct flights with stops where the flight ends before the final port.
*
*
* string deplaningPoint = 6;
* @return The deplaningPoint.
*/
@java.lang.Override
public java.lang.String getDeplaningPoint() {
java.lang.Object ref = deplaningPoint_;
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();
deplaningPoint_ = s;
return s;
}
}
/**
*
* The IATA airport code for the destination of the flight. Only required for direct flights with stops where the flight ends before the final port.
*
*
* string deplaningPoint = 6;
* @return The bytes for deplaningPoint.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeplaningPointBytes() {
java.lang.Object ref = deplaningPoint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deplaningPoint_ = 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 (!getCarrierCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, carrierCode_);
}
if (!getFlightNumberBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flightNumber_);
}
if (departureDate_ != null) {
output.writeMessage(3, getDepartureDate());
}
if (!getBoardingPointBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, boardingPoint_);
}
if (!getDeplaningPointBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, deplaningPoint_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getCarrierCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, carrierCode_);
}
if (!getFlightNumberBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, flightNumber_);
}
if (departureDate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getDepartureDate());
}
if (!getBoardingPointBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, boardingPoint_);
}
if (!getDeplaningPointBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, deplaningPoint_);
}
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.FlightOuterClass.FlightRequest)) {
return super.equals(obj);
}
com.passkit.grpc.Flights.FlightOuterClass.FlightRequest other = (com.passkit.grpc.Flights.FlightOuterClass.FlightRequest) obj;
if (!getCarrierCode()
.equals(other.getCarrierCode())) return false;
if (!getFlightNumber()
.equals(other.getFlightNumber())) return false;
if (hasDepartureDate() != other.hasDepartureDate()) return false;
if (hasDepartureDate()) {
if (!getDepartureDate()
.equals(other.getDepartureDate())) return false;
}
if (!getBoardingPoint()
.equals(other.getBoardingPoint())) return false;
if (!getDeplaningPoint()
.equals(other.getDeplaningPoint())) 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) + CARRIERCODE_FIELD_NUMBER;
hash = (53 * hash) + getCarrierCode().hashCode();
hash = (37 * hash) + FLIGHTNUMBER_FIELD_NUMBER;
hash = (53 * hash) + getFlightNumber().hashCode();
if (hasDepartureDate()) {
hash = (37 * hash) + DEPARTUREDATE_FIELD_NUMBER;
hash = (53 * hash) + getDepartureDate().hashCode();
}
hash = (37 * hash) + BOARDINGPOINT_FIELD_NUMBER;
hash = (53 * hash) + getBoardingPoint().hashCode();
hash = (37 * hash) + DEPLANINGPOINT_FIELD_NUMBER;
hash = (53 * hash) + getDeplaningPoint().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Flights.FlightOuterClass.FlightRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightOuterClass.FlightRequest 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.FlightOuterClass.FlightRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightOuterClass.FlightRequest 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.FlightOuterClass.FlightRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightOuterClass.FlightRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Flights.FlightOuterClass.FlightRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightOuterClass.FlightRequest 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.FlightOuterClass.FlightRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightOuterClass.FlightRequest 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.FlightOuterClass.FlightRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightOuterClass.FlightRequest 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.FlightOuterClass.FlightRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A Flight Request message is used to retrieve or identify an individual flight operation. For direct flights with multiple stops, a segment number or departure point is required.
*
*
* Protobuf type {@code flights.FlightRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flights.FlightRequest)
com.passkit.grpc.Flights.FlightOuterClass.FlightRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Flights.FlightOuterClass.internal_static_flights_FlightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.FlightOuterClass.internal_static_flights_FlightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.FlightOuterClass.FlightRequest.class, com.passkit.grpc.Flights.FlightOuterClass.FlightRequest.Builder.class);
}
// Construct using com.passkit.grpc.Flights.FlightOuterClass.FlightRequest.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();
carrierCode_ = "";
flightNumber_ = "";
if (departureDateBuilder_ == null) {
departureDate_ = null;
} else {
departureDate_ = null;
departureDateBuilder_ = null;
}
boardingPoint_ = "";
deplaningPoint_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Flights.FlightOuterClass.internal_static_flights_FlightRequest_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightOuterClass.FlightRequest getDefaultInstanceForType() {
return com.passkit.grpc.Flights.FlightOuterClass.FlightRequest.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightOuterClass.FlightRequest build() {
com.passkit.grpc.Flights.FlightOuterClass.FlightRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightOuterClass.FlightRequest buildPartial() {
com.passkit.grpc.Flights.FlightOuterClass.FlightRequest result = new com.passkit.grpc.Flights.FlightOuterClass.FlightRequest(this);
result.carrierCode_ = carrierCode_;
result.flightNumber_ = flightNumber_;
if (departureDateBuilder_ == null) {
result.departureDate_ = departureDate_;
} else {
result.departureDate_ = departureDateBuilder_.build();
}
result.boardingPoint_ = boardingPoint_;
result.deplaningPoint_ = deplaningPoint_;
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.FlightOuterClass.FlightRequest) {
return mergeFrom((com.passkit.grpc.Flights.FlightOuterClass.FlightRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Flights.FlightOuterClass.FlightRequest other) {
if (other == com.passkit.grpc.Flights.FlightOuterClass.FlightRequest.getDefaultInstance()) return this;
if (!other.getCarrierCode().isEmpty()) {
carrierCode_ = other.carrierCode_;
onChanged();
}
if (!other.getFlightNumber().isEmpty()) {
flightNumber_ = other.flightNumber_;
onChanged();
}
if (other.hasDepartureDate()) {
mergeDepartureDate(other.getDepartureDate());
}
if (!other.getBoardingPoint().isEmpty()) {
boardingPoint_ = other.boardingPoint_;
onChanged();
}
if (!other.getDeplaningPoint().isEmpty()) {
deplaningPoint_ = other.deplaningPoint_;
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.FlightOuterClass.FlightRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Flights.FlightOuterClass.FlightRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object carrierCode_ = "";
/**
*
* The 2 character IATA code or 3 character ICAO code.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The carrierCode.
*/
public java.lang.String getCarrierCode() {
java.lang.Object ref = carrierCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
carrierCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The 2 character IATA code or 3 character ICAO code.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for carrierCode.
*/
public com.google.protobuf.ByteString
getCarrierCodeBytes() {
java.lang.Object ref = carrierCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
carrierCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The 2 character IATA code or 3 character ICAO code.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The carrierCode to set.
* @return This builder for chaining.
*/
public Builder setCarrierCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
carrierCode_ = value;
onChanged();
return this;
}
/**
*
* The 2 character IATA code or 3 character ICAO code.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return This builder for chaining.
*/
public Builder clearCarrierCode() {
carrierCode_ = getDefaultInstance().getCarrierCode();
onChanged();
return this;
}
/**
*
* The 2 character IATA code or 3 character ICAO code.
*
*
* string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The bytes for carrierCode to set.
* @return This builder for chaining.
*/
public Builder setCarrierCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
carrierCode_ = value;
onChanged();
return this;
}
private java.lang.Object flightNumber_ = "";
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The flightNumber.
*/
public java.lang.String getFlightNumber() {
java.lang.Object ref = flightNumber_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
flightNumber_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for flightNumber.
*/
public com.google.protobuf.ByteString
getFlightNumberBytes() {
java.lang.Object ref = flightNumber_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
flightNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The flightNumber to set.
* @return This builder for chaining.
*/
public Builder setFlightNumber(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
flightNumber_ = value;
onChanged();
return this;
}
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return This builder for chaining.
*/
public Builder clearFlightNumber() {
flightNumber_ = getDefaultInstance().getFlightNumber();
onChanged();
return this;
}
/**
*
* The flight number.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The bytes for flightNumber to set.
* @return This builder for chaining.
*/
public Builder setFlightNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
flightNumber_ = value;
onChanged();
return this;
}
private com.passkit.grpc.CommonObjects.Date departureDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder> departureDateBuilder_;
/**
*
* The scheduled date of the flight, stated in the timezone of the boarding point.
*
*
* .io.Date departureDate = 3;
* @return Whether the departureDate field is set.
*/
public boolean hasDepartureDate() {
return departureDateBuilder_ != null || departureDate_ != null;
}
/**
*
* The scheduled date of the flight, stated in the timezone of the boarding point.
*
*
* .io.Date departureDate = 3;
* @return The departureDate.
*/
public com.passkit.grpc.CommonObjects.Date getDepartureDate() {
if (departureDateBuilder_ == null) {
return departureDate_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : departureDate_;
} else {
return departureDateBuilder_.getMessage();
}
}
/**
*
* The scheduled date of the flight, stated in the timezone of the boarding point.
*
*
* .io.Date departureDate = 3;
*/
public Builder setDepartureDate(com.passkit.grpc.CommonObjects.Date value) {
if (departureDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
departureDate_ = value;
onChanged();
} else {
departureDateBuilder_.setMessage(value);
}
return this;
}
/**
*
* The scheduled date of the flight, stated in the timezone of the boarding point.
*
*
* .io.Date departureDate = 3;
*/
public Builder setDepartureDate(
com.passkit.grpc.CommonObjects.Date.Builder builderForValue) {
if (departureDateBuilder_ == null) {
departureDate_ = builderForValue.build();
onChanged();
} else {
departureDateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The scheduled date of the flight, stated in the timezone of the boarding point.
*
*
* .io.Date departureDate = 3;
*/
public Builder mergeDepartureDate(com.passkit.grpc.CommonObjects.Date value) {
if (departureDateBuilder_ == null) {
if (departureDate_ != null) {
departureDate_ =
com.passkit.grpc.CommonObjects.Date.newBuilder(departureDate_).mergeFrom(value).buildPartial();
} else {
departureDate_ = value;
}
onChanged();
} else {
departureDateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The scheduled date of the flight, stated in the timezone of the boarding point.
*
*
* .io.Date departureDate = 3;
*/
public Builder clearDepartureDate() {
if (departureDateBuilder_ == null) {
departureDate_ = null;
onChanged();
} else {
departureDate_ = null;
departureDateBuilder_ = null;
}
return this;
}
/**
*
* The scheduled date of the flight, stated in the timezone of the boarding point.
*
*
* .io.Date departureDate = 3;
*/
public com.passkit.grpc.CommonObjects.Date.Builder getDepartureDateBuilder() {
onChanged();
return getDepartureDateFieldBuilder().getBuilder();
}
/**
*
* The scheduled date of the flight, stated in the timezone of the boarding point.
*
*
* .io.Date departureDate = 3;
*/
public com.passkit.grpc.CommonObjects.DateOrBuilder getDepartureDateOrBuilder() {
if (departureDateBuilder_ != null) {
return departureDateBuilder_.getMessageOrBuilder();
} else {
return departureDate_ == null ?
com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : departureDate_;
}
}
/**
*
* The scheduled date of the flight, stated in the timezone of the boarding point.
*
*
* .io.Date departureDate = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder>
getDepartureDateFieldBuilder() {
if (departureDateBuilder_ == null) {
departureDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder>(
getDepartureDate(),
getParentForChildren(),
isClean());
departureDate_ = null;
}
return departureDateBuilder_;
}
private java.lang.Object boardingPoint_ = "";
/**
*
* The IATA airport code for the boarding point of the flight. Only required for direct flights with stops where the boarding point is after the first port and segment is not provided.
*
*
* string boardingPoint = 5;
* @return The boardingPoint.
*/
public java.lang.String getBoardingPoint() {
java.lang.Object ref = boardingPoint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
boardingPoint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The IATA airport code for the boarding point of the flight. Only required for direct flights with stops where the boarding point is after the first port and segment is not provided.
*
*
* string boardingPoint = 5;
* @return The bytes for boardingPoint.
*/
public com.google.protobuf.ByteString
getBoardingPointBytes() {
java.lang.Object ref = boardingPoint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
boardingPoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The IATA airport code for the boarding point of the flight. Only required for direct flights with stops where the boarding point is after the first port and segment is not provided.
*
*
* string boardingPoint = 5;
* @param value The boardingPoint to set.
* @return This builder for chaining.
*/
public Builder setBoardingPoint(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
boardingPoint_ = value;
onChanged();
return this;
}
/**
*
* The IATA airport code for the boarding point of the flight. Only required for direct flights with stops where the boarding point is after the first port and segment is not provided.
*
*
* string boardingPoint = 5;
* @return This builder for chaining.
*/
public Builder clearBoardingPoint() {
boardingPoint_ = getDefaultInstance().getBoardingPoint();
onChanged();
return this;
}
/**
*
* The IATA airport code for the boarding point of the flight. Only required for direct flights with stops where the boarding point is after the first port and segment is not provided.
*
*
* string boardingPoint = 5;
* @param value The bytes for boardingPoint to set.
* @return This builder for chaining.
*/
public Builder setBoardingPointBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
boardingPoint_ = value;
onChanged();
return this;
}
private java.lang.Object deplaningPoint_ = "";
/**
*
* The IATA airport code for the destination of the flight. Only required for direct flights with stops where the flight ends before the final port.
*
*
* string deplaningPoint = 6;
* @return The deplaningPoint.
*/
public java.lang.String getDeplaningPoint() {
java.lang.Object ref = deplaningPoint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deplaningPoint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The IATA airport code for the destination of the flight. Only required for direct flights with stops where the flight ends before the final port.
*
*
* string deplaningPoint = 6;
* @return The bytes for deplaningPoint.
*/
public com.google.protobuf.ByteString
getDeplaningPointBytes() {
java.lang.Object ref = deplaningPoint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deplaningPoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The IATA airport code for the destination of the flight. Only required for direct flights with stops where the flight ends before the final port.
*
*
* string deplaningPoint = 6;
* @param value The deplaningPoint to set.
* @return This builder for chaining.
*/
public Builder setDeplaningPoint(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
deplaningPoint_ = value;
onChanged();
return this;
}
/**
*
* The IATA airport code for the destination of the flight. Only required for direct flights with stops where the flight ends before the final port.
*
*
* string deplaningPoint = 6;
* @return This builder for chaining.
*/
public Builder clearDeplaningPoint() {
deplaningPoint_ = getDefaultInstance().getDeplaningPoint();
onChanged();
return this;
}
/**
*
* The IATA airport code for the destination of the flight. Only required for direct flights with stops where the flight ends before the final port.
*
*
* string deplaningPoint = 6;
* @param value The bytes for deplaningPoint to set.
* @return This builder for chaining.
*/
public Builder setDeplaningPointBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
deplaningPoint_ = 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.FlightRequest)
}
// @@protoc_insertion_point(class_scope:flights.FlightRequest)
private static final com.passkit.grpc.Flights.FlightOuterClass.FlightRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Flights.FlightOuterClass.FlightRequest();
}
public static com.passkit.grpc.Flights.FlightOuterClass.FlightRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FlightRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FlightRequest(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.FlightOuterClass.FlightRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flights_Flight_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flights_Flight_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flights_FlightRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flights_FlightRequest_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\027io/flights/flight.proto\022\007flights\032\036io/c" +
"ommon/common_objects.proto\032\031io/common/pr" +
"oximity.proto\032\025io/common/links.proto\032\027io" +
"/common/metrics.proto\032\"io/flights/flight" +
"_designator.proto\032.protoc-gen-openapiv2/" +
"options/annotations.proto\"\354\013\n\006Flight\022\035\n\013" +
"carrierCode\030\001 \001(\tB\010\222A\005x\003\200\001\002\022\033\n\014flightNum" +
"ber\030\002 \001(\tB\005\222A\002x\005\022\034\n\rboardingPoint\030\003 \001(\tB" +
"\005\222A\002x\003\022\035\n\016deplaningPoint\030\004 \001(\tB\005\222A\002x\003\022\037\n" +
"\rdepartureDate\030\005 \001(\0132\010.io.Date\022\031\n\021depart" +
"ureTerminal\030\006 \001(\t\022\027\n\017arrivalTerminal\030\007 \001" +
"(\t\022\025\n\rdepartureGate\030\010 \001(\t\022\023\n\013arrivalGate" +
"\030\t \001(\t\0221\n\026scheduledDepartureTime\030\n \001(\0132\021" +
".io.LocalDateTime\0221\n\026estimatedDepartureT" +
"ime\030\013 \001(\0132\021.io.LocalDateTime\022\'\n\014boarding" +
"Time\030\014 \001(\0132\021.io.LocalDateTime\022*\n\017gateClo" +
"singTime\030\r \001(\0132\021.io.LocalDateTime\022/\n\024sch" +
"eduledArrivalTime\030\016 \001(\0132\021.io.LocalDateTi" +
"me\022/\n\024estimatedArrivalTime\030\017 \001(\0132\021.io.Lo" +
"calDateTime\022&\n\024operatingCarrierCode\030\020 \001(" +
"\tB\010\222A\005x\003\200\001\002\022$\n\025operatingFlightNumber\030\021 \001" +
"(\tB\005\222A\002x\005\022\036\n\026codeShareFlightNumbers\030\022 \003(" +
"\t\022\026\n\016passTemplateId\030\023 \001(\t\022\023\n\013baggageBelt" +
"\030\025 \001(\t\022&\n\023autoInvalidateAfter\030\026 \001(\rB\t\222A\006" +
":\0042880\022)\n\035autoInvalidateCancelledPasses\030" +
"\027 \001(\010B\002\030\001\0221\n\020locationMessages\030\030 \003(\0132\017.io" +
".GPSLocationB\006\222A\003\240\001\n\022*\n\016beaconMessages\030\031" +
" \003(\0132\n.io.BeaconB\006\222A\003\240\001\n\022\037\n\005links\030\032 \003(\0132" +
"\010.io.LinkB\006\222A\003\240\001\n\022\037\n\027suspendAutomaticUpd" +
"ates\030\033 \001(\010\022/\n\016boardingPolicy\030\034 \001(\0162\027.fli" +
"ghts.BoardingPolicy\022/\n\rseatingPolicy\030\035 \001" +
"(\0162\030.flights.SeatClassPolicy\022%\n\006status\030\036" +
" \001(\0162\025.flights.FlightStatus\022\030\n\020Condition" +
"alItems\030\037 \001(\010\022\035\n\025BarcodeAdditionalData\030 " +
" \001(\t\022\034\n\007metrics\030! \001(\0132\013.io.Metrics\022/\n\014cr" +
"eateMethod\030\" \001(\0162\031.flights.FlightCreateM" +
"ode\022\024\n\014designatorId\030# \001(\t\0226\n\031invalidateC" +
"ancelledPasses\030$ \001(\0162\n.io.ToggleB\007\222A\004:\002O" +
"N:\334\001\222A\330\001\n\325\001*\006Flight2SA flight record des" +
"cribes data that is relevant to a single" +
" flight on a given date.\322\001\013carrierCode\322\001" +
"\014flightNumber\322\001\rboardingPoint\322\001\016deplanin" +
"gPoint\322\001\026scheduledDepartureTime\322\001\016passTe" +
"mplateId\322\001\rdepartureDate\"\233\001\n\rFlightReque" +
"st\022\035\n\013carrierCode\030\001 \001(\tB\010\222A\005x\003\200\001\002\022\033\n\014fli" +
"ghtNumber\030\002 \001(\tB\005\222A\002x\005\022\037\n\rdepartureDate\030" +
"\003 \001(\0132\010.io.Date\022\025\n\rboardingPoint\030\005 \001(\t\022\026" +
"\n\016deplaningPoint\030\006 \001(\t*\372\001\n\014FlightStatus\022" +
"\013\n\007UNKNOWN\020\000\022\r\n\tSCHEDULED\020\001\022\014\n\010DEPARTED\020" +
"\002\022\t\n\005INAIR\020\003\022\n\n\006LANDED\020\004\022\013\n\007ARRIVED\020\005\022\r\n" +
"\tCANCELLED\020\006\022\013\n\007DELAYED\020\007\022\025\n\021DEPARTED_DI" +
"VERTED\020\010\022\022\n\016INAIR_DIVERTED\020\t\022\024\n\020ARRIVED_" +
"DIVERTED\020\n\022\025\n\021DEPARTED_RECOVERY\020\013\022\022\n\016INA" +
"IR_RECOVERY\020\014\022\024\n\020ARRIVED_RECOVERY\020\r*=\n\020F" +
"lightCreateMode\022\016\n\nDO_NOT_USE\020\000\022\n\n\006MANUA" +
"L\020\001\022\r\n\tAUTOMATIC\020\002B_\n\030com.passkit.grpc.F" +
"lightsZ,stash.passkit.com/io/model/sdk/g" +
"o/io/flights\252\002\024PassKit.Grpc.Flightsb\006pro" +
"to3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.passkit.grpc.CommonObjects.getDescriptor(),
com.passkit.grpc.Proximity.getDescriptor(),
com.passkit.grpc.Links.getDescriptor(),
com.passkit.grpc.MetricsOuterClass.getDescriptor(),
com.passkit.grpc.Flights.FlightDesignatorOuterClass.getDescriptor(),
grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(),
});
internal_static_flights_Flight_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_flights_Flight_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flights_Flight_descriptor,
new java.lang.String[] { "CarrierCode", "FlightNumber", "BoardingPoint", "DeplaningPoint", "DepartureDate", "DepartureTerminal", "ArrivalTerminal", "DepartureGate", "ArrivalGate", "ScheduledDepartureTime", "EstimatedDepartureTime", "BoardingTime", "GateClosingTime", "ScheduledArrivalTime", "EstimatedArrivalTime", "OperatingCarrierCode", "OperatingFlightNumber", "CodeShareFlightNumbers", "PassTemplateId", "BaggageBelt", "AutoInvalidateAfter", "AutoInvalidateCancelledPasses", "LocationMessages", "BeaconMessages", "Links", "SuspendAutomaticUpdates", "BoardingPolicy", "SeatingPolicy", "Status", "ConditionalItems", "BarcodeAdditionalData", "Metrics", "CreateMethod", "DesignatorId", "InvalidateCancelledPasses", });
internal_static_flights_FlightRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_flights_FlightRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flights_FlightRequest_descriptor,
new java.lang.String[] { "CarrierCode", "FlightNumber", "DepartureDate", "BoardingPoint", "DeplaningPoint", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(grpc.gateway.protoc_gen_openapiv2.options.Annotations.openapiv2Field);
registry.add(grpc.gateway.protoc_gen_openapiv2.options.Annotations.openapiv2Schema);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.passkit.grpc.CommonObjects.getDescriptor();
com.passkit.grpc.Proximity.getDescriptor();
com.passkit.grpc.Links.getDescriptor();
com.passkit.grpc.MetricsOuterClass.getDescriptor();
com.passkit.grpc.Flights.FlightDesignatorOuterClass.getDescriptor();
grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}