com.passkit.grpc.Flights.FlightDesignatorOuterClass 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_designator.proto
package com.passkit.grpc.Flights;
public final class FlightDesignatorOuterClass {
private FlightDesignatorOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* Flight alerts automatically update boarding passes as information becomes available or changes. Note that these services may incur additional usage charges.
*
*
* Protobuf enum {@code flights.FlightAlerts}
*/
public enum FlightAlerts
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Boarding passes will not automatically update.
*
*
* NO_ALERTS = 0;
*/
NO_ALERTS(0),
/**
*
* Boarding passes will automatically update whenever a change to the departure gate/time, arrival gate/time or baggage belt information is detected.
*
*
* ALL_ALERTS = 1;
*/
ALL_ALERTS(1),
/**
*
* Boarding passes will automatically update whenever a change to the departure gate is detected.
*
*
* DEPARTURE_GATE_ALERT = 2;
*/
DEPARTURE_GATE_ALERT(2),
/**
*
* Boarding passes will automatically update whenever a change to the estimated departure gate is detected.
*
*
* DEPARTURE_TIME_ALERT = 4;
*/
DEPARTURE_TIME_ALERT(4),
/**
*
* Boarding passes will automatically update whenever a change to the arrival gate is detected.
*
*
* ARRIVAL_GATE_ALERT = 8;
*/
ARRIVAL_GATE_ALERT(8),
/**
*
* Boarding passes will automatically update whenever a change to the estimated arrival time is detected.
*
*
* ARRIVAL_TIME_ALERT = 16;
*/
ARRIVAL_TIME_ALERT(16),
/**
*
* Boarding passes will automatically update whenever the baggage collection belt or area is known or changes.
*
*
* BAGGAGE_BELT_ALERT = 32;
*/
BAGGAGE_BELT_ALERT(32),
UNRECOGNIZED(-1),
;
/**
*
* Boarding passes will not automatically update.
*
*
* NO_ALERTS = 0;
*/
public static final int NO_ALERTS_VALUE = 0;
/**
*
* Boarding passes will automatically update whenever a change to the departure gate/time, arrival gate/time or baggage belt information is detected.
*
*
* ALL_ALERTS = 1;
*/
public static final int ALL_ALERTS_VALUE = 1;
/**
*
* Boarding passes will automatically update whenever a change to the departure gate is detected.
*
*
* DEPARTURE_GATE_ALERT = 2;
*/
public static final int DEPARTURE_GATE_ALERT_VALUE = 2;
/**
*
* Boarding passes will automatically update whenever a change to the estimated departure gate is detected.
*
*
* DEPARTURE_TIME_ALERT = 4;
*/
public static final int DEPARTURE_TIME_ALERT_VALUE = 4;
/**
*
* Boarding passes will automatically update whenever a change to the arrival gate is detected.
*
*
* ARRIVAL_GATE_ALERT = 8;
*/
public static final int ARRIVAL_GATE_ALERT_VALUE = 8;
/**
*
* Boarding passes will automatically update whenever a change to the estimated arrival time is detected.
*
*
* ARRIVAL_TIME_ALERT = 16;
*/
public static final int ARRIVAL_TIME_ALERT_VALUE = 16;
/**
*
* Boarding passes will automatically update whenever the baggage collection belt or area is known or changes.
*
*
* BAGGAGE_BELT_ALERT = 32;
*/
public static final int BAGGAGE_BELT_ALERT_VALUE = 32;
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 FlightAlerts 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 FlightAlerts forNumber(int value) {
switch (value) {
case 0: return NO_ALERTS;
case 1: return ALL_ALERTS;
case 2: return DEPARTURE_GATE_ALERT;
case 4: return DEPARTURE_TIME_ALERT;
case 8: return ARRIVAL_GATE_ALERT;
case 16: return ARRIVAL_TIME_ALERT;
case 32: return BAGGAGE_BELT_ALERT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
FlightAlerts> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public FlightAlerts findValueByNumber(int number) {
return FlightAlerts.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.FlightDesignatorOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final FlightAlerts[] VALUES = values();
public static FlightAlerts 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 FlightAlerts(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:flights.FlightAlerts)
}
/**
*
* The Boarding Policy is used to determine informational labels on the pass.
*
*
* Protobuf enum {@code flights.BoardingPolicy}
*/
public enum BoardingPolicy
implements com.google.protobuf.ProtocolMessageEnum {
/**
* BOARDING_POLICY_UNSPECIFIED = 0;
*/
BOARDING_POLICY_UNSPECIFIED(0),
/**
*
* Boarding is managed by zone.
*
*
* ZONE_BASED = 1;
*/
ZONE_BASED(1),
/**
*
* Boarding is managed by group.
*
*
* GROUP_BASED = 2;
*/
GROUP_BASED(2),
/**
*
* Another, or No boarding policy is in place.
*
*
* BOARDING_POLICY_OTHER = 3;
*/
BOARDING_POLICY_OTHER(3),
UNRECOGNIZED(-1),
;
/**
* BOARDING_POLICY_UNSPECIFIED = 0;
*/
public static final int BOARDING_POLICY_UNSPECIFIED_VALUE = 0;
/**
*
* Boarding is managed by zone.
*
*
* ZONE_BASED = 1;
*/
public static final int ZONE_BASED_VALUE = 1;
/**
*
* Boarding is managed by group.
*
*
* GROUP_BASED = 2;
*/
public static final int GROUP_BASED_VALUE = 2;
/**
*
* Another, or No boarding policy is in place.
*
*
* BOARDING_POLICY_OTHER = 3;
*/
public static final int BOARDING_POLICY_OTHER_VALUE = 3;
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 BoardingPolicy 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 BoardingPolicy forNumber(int value) {
switch (value) {
case 0: return BOARDING_POLICY_UNSPECIFIED;
case 1: return ZONE_BASED;
case 2: return GROUP_BASED;
case 3: return BOARDING_POLICY_OTHER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
BoardingPolicy> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public BoardingPolicy findValueByNumber(int number) {
return BoardingPolicy.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.FlightDesignatorOuterClass.getDescriptor().getEnumTypes().get(1);
}
private static final BoardingPolicy[] VALUES = values();
public static BoardingPolicy 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 BoardingPolicy(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:flights.BoardingPolicy)
}
/**
*
* The Seat Class Policy is used to determine informational labels on the pass.
*
*
* Protobuf enum {@code flights.SeatClassPolicy}
*/
public enum SeatClassPolicy
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SEAT_CLASS_POLICY_UNSPECIFIED = 0;
*/
SEAT_CLASS_POLICY_UNSPECIFIED(0),
/**
*
* Seats groups are determined by cabin. "Cabin" will be used as the label on the pass.
*
*
* CABIN_BASED = 1;
*/
CABIN_BASED(1),
/**
*
* Seats groups are determined by class of travel. "Class" will be used as the label on the pass.
*
*
* CLASS_BASED = 2;
*/
CLASS_BASED(2),
/**
*
* Seat groups are determined by tier. "Tier" will be used as the label on the pass.
*
*
* TIER_BASED = 3;
*/
TIER_BASED(3),
/**
*
* Another, or no seat policy is in place. No label will be used on the pass.
*
*
* SEAT_CLASS_POLICY_OTHER = 4;
*/
SEAT_CLASS_POLICY_OTHER(4),
UNRECOGNIZED(-1),
;
/**
* SEAT_CLASS_POLICY_UNSPECIFIED = 0;
*/
public static final int SEAT_CLASS_POLICY_UNSPECIFIED_VALUE = 0;
/**
*
* Seats groups are determined by cabin. "Cabin" will be used as the label on the pass.
*
*
* CABIN_BASED = 1;
*/
public static final int CABIN_BASED_VALUE = 1;
/**
*
* Seats groups are determined by class of travel. "Class" will be used as the label on the pass.
*
*
* CLASS_BASED = 2;
*/
public static final int CLASS_BASED_VALUE = 2;
/**
*
* Seat groups are determined by tier. "Tier" will be used as the label on the pass.
*
*
* TIER_BASED = 3;
*/
public static final int TIER_BASED_VALUE = 3;
/**
*
* Another, or no seat policy is in place. No label will be used on the pass.
*
*
* SEAT_CLASS_POLICY_OTHER = 4;
*/
public static final int SEAT_CLASS_POLICY_OTHER_VALUE = 4;
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 SeatClassPolicy 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 SeatClassPolicy forNumber(int value) {
switch (value) {
case 0: return SEAT_CLASS_POLICY_UNSPECIFIED;
case 1: return CABIN_BASED;
case 2: return CLASS_BASED;
case 3: return TIER_BASED;
case 4: return SEAT_CLASS_POLICY_OTHER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SeatClassPolicy> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SeatClassPolicy findValueByNumber(int number) {
return SeatClassPolicy.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.FlightDesignatorOuterClass.getDescriptor().getEnumTypes().get(2);
}
private static final SeatClassPolicy[] VALUES = values();
public static SeatClassPolicy 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 SeatClassPolicy(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:flights.SeatClassPolicy)
}
/**
*
* The authority of an identifier (carrier code, airport code, etc.).
*
*
* Protobuf enum {@code flights.Authority}
*/
public enum Authority
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* International Air Transport Association (IATA).
*
*
* IATA = 0;
*/
IATA(0),
/**
*
* International Civil Aviation Organization (ICAO).
*
*
* ICAO = 1;
*/
ICAO(1),
UNRECOGNIZED(-1),
;
/**
*
* International Air Transport Association (IATA).
*
*
* IATA = 0;
*/
public static final int IATA_VALUE = 0;
/**
*
* International Civil Aviation Organization (ICAO).
*
*
* ICAO = 1;
*/
public static final int ICAO_VALUE = 1;
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 Authority 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 Authority forNumber(int value) {
switch (value) {
case 0: return IATA;
case 1: return ICAO;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Authority> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Authority findValueByNumber(int number) {
return Authority.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.FlightDesignatorOuterClass.getDescriptor().getEnumTypes().get(3);
}
private static final Authority[] VALUES = values();
public static Authority 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 Authority(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:flights.Authority)
}
public interface FlightDesignatorOrBuilder extends
// @@protoc_insertion_point(interface_extends:flights.FlightDesignator)
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. Note this number must match the carrier code.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The flightNumber.
*/
java.lang.String getFlightNumber();
/**
*
* The flight number. Note this number must match the carrier code.
*
*
* string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The bytes for flightNumber.
*/
com.google.protobuf.ByteString
getFlightNumberBytes();
/**
*
* The date that the record is valid from. If not provided, then the date of submission will be used.
*
*
* .io.Date validFrom = 3;
* @return Whether the validFrom field is set.
*/
boolean hasValidFrom();
/**
*
* The date that the record is valid from. If not provided, then the date of submission will be used.
*
*
* .io.Date validFrom = 3;
* @return The validFrom.
*/
com.passkit.grpc.CommonObjects.Date getValidFrom();
/**
*
* The date that the record is valid from. If not provided, then the date of submission will be used.
*
*
* .io.Date validFrom = 3;
*/
com.passkit.grpc.CommonObjects.DateOrBuilder getValidFromOrBuilder();
/**
*
* Multiple designators can be active at a time. Provide a revision to distinguish between versions.
*
*
* uint32 revision = 4;
* @return The revision.
*/
int getRevision();
/**
*
* Setting to false will prevent further flights to be created against this flight number. Will automatically be set to false if a second designator with a validFrom date before the current date and after this designator's validFrom date is found.
*
*
* bool active = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The active.
*/
boolean getActive();
/**
*
* The published flight schedule. If a flight object for a particular departure doesn't exist, these defaults are used. One-off changes to scheduled times for an individual departure should be handled by the Flight object. Long term changes should create a new revision of the FlightDesignator record.
*
*
* .flights.FlightSchedule schedule = 6;
* @return Whether the schedule field is set.
*/
boolean hasSchedule();
/**
*
* The published flight schedule. If a flight object for a particular departure doesn't exist, these defaults are used. One-off changes to scheduled times for an individual departure should be handled by the Flight object. Long term changes should create a new revision of the FlightDesignator record.
*
*
* .flights.FlightSchedule schedule = 6;
* @return The schedule.
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule getSchedule();
/**
*
* The published flight schedule. If a flight object for a particular departure doesn't exist, these defaults are used. One-off changes to scheduled times for an individual departure should be handled by the Flight object. Long term changes should create a new revision of the FlightDesignator record.
*
*
* .flights.FlightSchedule schedule = 6;
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightScheduleOrBuilder getScheduleOrBuilder();
/**
*
* 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 = 7 [(.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 = 7 [(.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 = 8 [(.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 = 8 [(.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 = 9;
* @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 = 9;
* @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 = 9;
* @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 = 9;
* @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 origin port of the flight. In the case of direct flights with multiple stops, this will represent the port where the route commences.
*
*
* string origin = 10;
* @return The origin.
*/
java.lang.String getOrigin();
/**
*
* The origin port of the flight. In the case of direct flights with multiple stops, this will represent the port where the route commences.
*
*
* string origin = 10;
* @return The bytes for origin.
*/
com.google.protobuf.ByteString
getOriginBytes();
/**
*
* The destination port of the flight. In the case of direct flights with multiple stops, this will represent the final port where the route terminates.
*
*
* string destination = 11;
* @return The destination.
*/
java.lang.String getDestination();
/**
*
* The destination port of the flight. In the case of direct flights with multiple stops, this will represent the final port where the route terminates.
*
*
* string destination = 11;
* @return The bytes for destination.
*/
com.google.protobuf.ByteString
getDestinationBytes();
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @return A list containing the transitPoints.
*/
java.util.List
getTransitPointsList();
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @return The count of transitPoints.
*/
int getTransitPointsCount();
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @param index The index of the element to return.
* @return The transitPoints at the given index.
*/
java.lang.String getTransitPoints(int index);
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @param index The index of the value to return.
* @return The bytes of the transitPoints at the given index.
*/
com.google.protobuf.ByteString
getTransitPointsBytes(int index);
/**
*
* The default terminal that the flight departs from.
*
*
* string departureTerminal = 13;
* @return The departureTerminal.
*/
java.lang.String getDepartureTerminal();
/**
*
* The default terminal that the flight departs from.
*
*
* string departureTerminal = 13;
* @return The bytes for departureTerminal.
*/
com.google.protobuf.ByteString
getDepartureTerminalBytes();
/**
*
* The default terminal of the final destination.
*
*
* string arrivalTerminal = 14;
* @return The arrivalTerminal.
*/
java.lang.String getArrivalTerminal();
/**
*
* The default terminal of the final destination.
*
*
* string arrivalTerminal = 14;
* @return The bytes for arrivalTerminal.
*/
com.google.protobuf.ByteString
getArrivalTerminalBytes();
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @return A list containing the transitTerminals.
*/
java.util.List
getTransitTerminalsList();
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @return The count of transitTerminals.
*/
int getTransitTerminalsCount();
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @param index The index of the element to return.
* @return The transitTerminals at the given index.
*/
java.lang.String getTransitTerminals(int index);
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @param index The index of the value to return.
* @return The bytes of the transitTerminals at the given index.
*/
com.google.protobuf.ByteString
getTransitTerminalsBytes(int index);
/**
*
* The Boarding Policy is used to determine informational labels on the pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 16;
* @return The enum numeric value on the wire for boardingPolicy.
*/
int getBoardingPolicyValue();
/**
*
* The Boarding Policy is used to determine informational labels on the pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 16;
* @return The boardingPolicy.
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.BoardingPolicy getBoardingPolicy();
/**
*
* The Seat Class Policy is used to determine informational labels on the pass.
*
*
* .flights.SeatClassPolicy seatClassPolicy = 17;
* @return The enum numeric value on the wire for seatClassPolicy.
*/
int getSeatClassPolicyValue();
/**
*
* The Seat Class Policy is used to determine informational labels on the pass.
*
*
* .flights.SeatClassPolicy seatClassPolicy = 17;
* @return The seatClassPolicy.
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy getSeatClassPolicy();
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @return A list containing the alerts.
*/
java.util.List getAlertsList();
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @return The count of alerts.
*/
int getAlertsCount();
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @param index The index of the element to return.
* @return The alerts at the given index.
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightAlerts getAlerts(int index);
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @return A list containing the enum numeric values on the wire for alerts.
*/
java.util.List
getAlertsValueList();
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of alerts at the given index.
*/
int getAlertsValue(int index);
/**
*
* The PassKit template id that will be used for boarding passes for this flight. It can be overwritten at the flight level.
*
*
* string passTemplateId = 19;
* @return The passTemplateId.
*/
java.lang.String getPassTemplateId();
/**
*
* The PassKit template id that will be used for boarding passes for this flight. It can be overwritten at the flight level.
*
*
* string passTemplateId = 19;
* @return The bytes for passTemplateId.
*/
com.google.protobuf.ByteString
getPassTemplateIdBytes();
/**
*
* Minutes after scheduled arrival time 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 = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The autoInvalidateAfter.
*/
int getAutoInvalidateAfter();
/**
*
* Deprecated: Use InvalidateCancelledPasses.
*
*
* bool autoInvalidateCancelledPasses = 21 [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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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 defaultLinks = 24;
*/
java.util.List
getDefaultLinksList();
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
com.passkit.grpc.Links.Link getDefaultLinks(int index);
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
int getDefaultLinksCount();
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
java.util.List extends com.passkit.grpc.Links.LinkOrBuilder>
getDefaultLinksOrBuilderList();
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
com.passkit.grpc.Links.LinkOrBuilder getDefaultLinksOrBuilder(
int index);
/**
*
* If PassKit are generating barcodes, include conditional items. Default false.
*
*
* bool ConditionalItems = 25;
* @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 = 26;
* @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 = 26;
* @return The bytes for barcodeAdditionalData.
*/
com.google.protobuf.ByteString
getBarcodeAdditionalDataBytes();
/**
*
* Invalidate passes where either the booking or the flight have been cancelled. Default is ON.
*
*
* .io.Toggle invalidateCancelledPasses = 27 [(.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 = 27 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The invalidateCancelledPasses.
*/
com.passkit.grpc.CommonObjects.Toggle getInvalidateCancelledPasses();
}
/**
*
* carrier code and flight number and valid from represent the primary key.
*
*
* Protobuf type {@code flights.FlightDesignator}
*/
public static final class FlightDesignator extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flights.FlightDesignator)
FlightDesignatorOrBuilder {
private static final long serialVersionUID = 0L;
// Use FlightDesignator.newBuilder() to construct.
private FlightDesignator(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FlightDesignator() {
carrierCode_ = "";
flightNumber_ = "";
operatingCarrierCode_ = "";
operatingFlightNumber_ = "";
codeShareFlightNumbers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
origin_ = "";
destination_ = "";
transitPoints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
departureTerminal_ = "";
arrivalTerminal_ = "";
transitTerminals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
boardingPolicy_ = 0;
seatClassPolicy_ = 0;
alerts_ = java.util.Collections.emptyList();
passTemplateId_ = "";
locationMessages_ = java.util.Collections.emptyList();
beaconMessages_ = java.util.Collections.emptyList();
defaultLinks_ = java.util.Collections.emptyList();
barcodeAdditionalData_ = "";
invalidateCancelledPasses_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FlightDesignator();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FlightDesignator(
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: {
com.passkit.grpc.CommonObjects.Date.Builder subBuilder = null;
if (validFrom_ != null) {
subBuilder = validFrom_.toBuilder();
}
validFrom_ = input.readMessage(com.passkit.grpc.CommonObjects.Date.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(validFrom_);
validFrom_ = subBuilder.buildPartial();
}
break;
}
case 32: {
revision_ = input.readUInt32();
break;
}
case 40: {
active_ = input.readBool();
break;
}
case 50: {
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.Builder subBuilder = null;
if (schedule_ != null) {
subBuilder = schedule_.toBuilder();
}
schedule_ = input.readMessage(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(schedule_);
schedule_ = subBuilder.buildPartial();
}
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
operatingCarrierCode_ = s;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
operatingFlightNumber_ = s;
break;
}
case 74: {
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 82: {
java.lang.String s = input.readStringRequireUtf8();
origin_ = s;
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
destination_ = s;
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
transitPoints_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
transitPoints_.add(s);
break;
}
case 106: {
java.lang.String s = input.readStringRequireUtf8();
departureTerminal_ = s;
break;
}
case 114: {
java.lang.String s = input.readStringRequireUtf8();
arrivalTerminal_ = s;
break;
}
case 122: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
transitTerminals_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
transitTerminals_.add(s);
break;
}
case 128: {
int rawValue = input.readEnum();
boardingPolicy_ = rawValue;
break;
}
case 136: {
int rawValue = input.readEnum();
seatClassPolicy_ = rawValue;
break;
}
case 144: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
alerts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
alerts_.add(rawValue);
break;
}
case 146: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
alerts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
alerts_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 154: {
java.lang.String s = input.readStringRequireUtf8();
passTemplateId_ = s;
break;
}
case 160: {
autoInvalidateAfter_ = input.readUInt32();
break;
}
case 168: {
autoInvalidateCancelledPasses_ = input.readBool();
break;
}
case 178: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
locationMessages_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
locationMessages_.add(
input.readMessage(com.passkit.grpc.Proximity.GPSLocation.parser(), extensionRegistry));
break;
}
case 186: {
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
beaconMessages_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
beaconMessages_.add(
input.readMessage(com.passkit.grpc.Proximity.Beacon.parser(), extensionRegistry));
break;
}
case 194: {
if (!((mutable_bitField0_ & 0x00000040) != 0)) {
defaultLinks_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
defaultLinks_.add(
input.readMessage(com.passkit.grpc.Links.Link.parser(), extensionRegistry));
break;
}
case 200: {
conditionalItems_ = input.readBool();
break;
}
case 210: {
java.lang.String s = input.readStringRequireUtf8();
barcodeAdditionalData_ = s;
break;
}
case 216: {
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)) {
transitPoints_ = transitPoints_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
transitTerminals_ = transitTerminals_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
alerts_ = java.util.Collections.unmodifiableList(alerts_);
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
locationMessages_ = java.util.Collections.unmodifiableList(locationMessages_);
}
if (((mutable_bitField0_ & 0x00000020) != 0)) {
beaconMessages_ = java.util.Collections.unmodifiableList(beaconMessages_);
}
if (((mutable_bitField0_ & 0x00000040) != 0)) {
defaultLinks_ = java.util.Collections.unmodifiableList(defaultLinks_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightDesignator_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightDesignator_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator.class, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator.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. Note this number must match the carrier code.
*
*
* 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. Note this number must match the carrier code.
*
*
* 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 VALIDFROM_FIELD_NUMBER = 3;
private com.passkit.grpc.CommonObjects.Date validFrom_;
/**
*
* The date that the record is valid from. If not provided, then the date of submission will be used.
*
*
* .io.Date validFrom = 3;
* @return Whether the validFrom field is set.
*/
@java.lang.Override
public boolean hasValidFrom() {
return validFrom_ != null;
}
/**
*
* The date that the record is valid from. If not provided, then the date of submission will be used.
*
*
* .io.Date validFrom = 3;
* @return The validFrom.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.Date getValidFrom() {
return validFrom_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : validFrom_;
}
/**
*
* The date that the record is valid from. If not provided, then the date of submission will be used.
*
*
* .io.Date validFrom = 3;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.DateOrBuilder getValidFromOrBuilder() {
return getValidFrom();
}
public static final int REVISION_FIELD_NUMBER = 4;
private int revision_;
/**
*
* Multiple designators can be active at a time. Provide a revision to distinguish between versions.
*
*
* uint32 revision = 4;
* @return The revision.
*/
@java.lang.Override
public int getRevision() {
return revision_;
}
public static final int ACTIVE_FIELD_NUMBER = 5;
private boolean active_;
/**
*
* Setting to false will prevent further flights to be created against this flight number. Will automatically be set to false if a second designator with a validFrom date before the current date and after this designator's validFrom date is found.
*
*
* bool active = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The active.
*/
@java.lang.Override
public boolean getActive() {
return active_;
}
public static final int SCHEDULE_FIELD_NUMBER = 6;
private com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule schedule_;
/**
*
* The published flight schedule. If a flight object for a particular departure doesn't exist, these defaults are used. One-off changes to scheduled times for an individual departure should be handled by the Flight object. Long term changes should create a new revision of the FlightDesignator record.
*
*
* .flights.FlightSchedule schedule = 6;
* @return Whether the schedule field is set.
*/
@java.lang.Override
public boolean hasSchedule() {
return schedule_ != null;
}
/**
*
* The published flight schedule. If a flight object for a particular departure doesn't exist, these defaults are used. One-off changes to scheduled times for an individual departure should be handled by the Flight object. Long term changes should create a new revision of the FlightDesignator record.
*
*
* .flights.FlightSchedule schedule = 6;
* @return The schedule.
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule getSchedule() {
return schedule_ == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.getDefaultInstance() : schedule_;
}
/**
*
* The published flight schedule. If a flight object for a particular departure doesn't exist, these defaults are used. One-off changes to scheduled times for an individual departure should be handled by the Flight object. Long term changes should create a new revision of the FlightDesignator record.
*
*
* .flights.FlightSchedule schedule = 6;
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightScheduleOrBuilder getScheduleOrBuilder() {
return getSchedule();
}
public static final int OPERATINGCARRIERCODE_FIELD_NUMBER = 7;
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 = 7 [(.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 = 7 [(.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 = 8;
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 = 8 [(.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 = 8 [(.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 = 9;
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 = 9;
* @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 = 9;
* @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 = 9;
* @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 = 9;
* @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 ORIGIN_FIELD_NUMBER = 10;
private volatile java.lang.Object origin_;
/**
*
* The origin port of the flight. In the case of direct flights with multiple stops, this will represent the port where the route commences.
*
*
* string origin = 10;
* @return The origin.
*/
@java.lang.Override
public java.lang.String getOrigin() {
java.lang.Object ref = origin_;
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();
origin_ = s;
return s;
}
}
/**
*
* The origin port of the flight. In the case of direct flights with multiple stops, this will represent the port where the route commences.
*
*
* string origin = 10;
* @return The bytes for origin.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOriginBytes() {
java.lang.Object ref = origin_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
origin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESTINATION_FIELD_NUMBER = 11;
private volatile java.lang.Object destination_;
/**
*
* The destination port of the flight. In the case of direct flights with multiple stops, this will represent the final port where the route terminates.
*
*
* string destination = 11;
* @return The destination.
*/
@java.lang.Override
public java.lang.String getDestination() {
java.lang.Object ref = destination_;
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();
destination_ = s;
return s;
}
}
/**
*
* The destination port of the flight. In the case of direct flights with multiple stops, this will represent the final port where the route terminates.
*
*
* string destination = 11;
* @return The bytes for destination.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDestinationBytes() {
java.lang.Object ref = destination_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destination_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRANSITPOINTS_FIELD_NUMBER = 12;
private com.google.protobuf.LazyStringList transitPoints_;
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @return A list containing the transitPoints.
*/
public com.google.protobuf.ProtocolStringList
getTransitPointsList() {
return transitPoints_;
}
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @return The count of transitPoints.
*/
public int getTransitPointsCount() {
return transitPoints_.size();
}
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @param index The index of the element to return.
* @return The transitPoints at the given index.
*/
public java.lang.String getTransitPoints(int index) {
return transitPoints_.get(index);
}
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @param index The index of the value to return.
* @return The bytes of the transitPoints at the given index.
*/
public com.google.protobuf.ByteString
getTransitPointsBytes(int index) {
return transitPoints_.getByteString(index);
}
public static final int DEPARTURETERMINAL_FIELD_NUMBER = 13;
private volatile java.lang.Object departureTerminal_;
/**
*
* The default terminal that the flight departs from.
*
*
* string departureTerminal = 13;
* @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;
}
}
/**
*
* The default terminal that the flight departs from.
*
*
* string departureTerminal = 13;
* @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 = 14;
private volatile java.lang.Object arrivalTerminal_;
/**
*
* The default terminal of the final destination.
*
*
* string arrivalTerminal = 14;
* @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;
}
}
/**
*
* The default terminal of the final destination.
*
*
* string arrivalTerminal = 14;
* @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 TRANSITTERMINALS_FIELD_NUMBER = 15;
private com.google.protobuf.LazyStringList transitTerminals_;
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @return A list containing the transitTerminals.
*/
public com.google.protobuf.ProtocolStringList
getTransitTerminalsList() {
return transitTerminals_;
}
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @return The count of transitTerminals.
*/
public int getTransitTerminalsCount() {
return transitTerminals_.size();
}
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @param index The index of the element to return.
* @return The transitTerminals at the given index.
*/
public java.lang.String getTransitTerminals(int index) {
return transitTerminals_.get(index);
}
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @param index The index of the value to return.
* @return The bytes of the transitTerminals at the given index.
*/
public com.google.protobuf.ByteString
getTransitTerminalsBytes(int index) {
return transitTerminals_.getByteString(index);
}
public static final int BOARDINGPOLICY_FIELD_NUMBER = 16;
private int boardingPolicy_;
/**
*
* The Boarding Policy is used to determine informational labels on the pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 16;
* @return The enum numeric value on the wire for boardingPolicy.
*/
@java.lang.Override public int getBoardingPolicyValue() {
return boardingPolicy_;
}
/**
*
* The Boarding Policy is used to determine informational labels on the pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 16;
* @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 SEATCLASSPOLICY_FIELD_NUMBER = 17;
private int seatClassPolicy_;
/**
*
* The Seat Class Policy is used to determine informational labels on the pass.
*
*
* .flights.SeatClassPolicy seatClassPolicy = 17;
* @return The enum numeric value on the wire for seatClassPolicy.
*/
@java.lang.Override public int getSeatClassPolicyValue() {
return seatClassPolicy_;
}
/**
*
* The Seat Class Policy is used to determine informational labels on the pass.
*
*
* .flights.SeatClassPolicy seatClassPolicy = 17;
* @return The seatClassPolicy.
*/
@java.lang.Override public com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy getSeatClassPolicy() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy result = com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy.valueOf(seatClassPolicy_);
return result == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy.UNRECOGNIZED : result;
}
public static final int ALERTS_FIELD_NUMBER = 18;
private java.util.List alerts_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightAlerts> alerts_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightAlerts>() {
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightAlerts convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightAlerts result = com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightAlerts.valueOf(from);
return result == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightAlerts.UNRECOGNIZED : result;
}
};
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @return A list containing the alerts.
*/
@java.lang.Override
public java.util.List getAlertsList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightAlerts>(alerts_, alerts_converter_);
}
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @return The count of alerts.
*/
@java.lang.Override
public int getAlertsCount() {
return alerts_.size();
}
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @param index The index of the element to return.
* @return The alerts at the given index.
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightAlerts getAlerts(int index) {
return alerts_converter_.convert(alerts_.get(index));
}
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @return A list containing the enum numeric values on the wire for alerts.
*/
@java.lang.Override
public java.util.List
getAlertsValueList() {
return alerts_;
}
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of alerts at the given index.
*/
@java.lang.Override
public int getAlertsValue(int index) {
return alerts_.get(index);
}
private int alertsMemoizedSerializedSize;
public static final int PASSTEMPLATEID_FIELD_NUMBER = 19;
private volatile java.lang.Object passTemplateId_;
/**
*
* The PassKit template id that will be used for boarding passes for this flight. It can be overwritten at the flight level.
*
*
* 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 PassKit template id that will be used for boarding passes for this flight. It can be overwritten at the flight level.
*
*
* 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 AUTOINVALIDATEAFTER_FIELD_NUMBER = 20;
private int autoInvalidateAfter_;
/**
*
* Minutes after scheduled arrival time 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 = 20 [(.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 = 21;
private boolean autoInvalidateCancelledPasses_;
/**
*
* Deprecated: Use InvalidateCancelledPasses.
*
*
* bool autoInvalidateCancelledPasses = 21 [deprecated = true];
* @return The autoInvalidateCancelledPasses.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getAutoInvalidateCancelledPasses() {
return autoInvalidateCancelledPasses_;
}
public static final int LOCATIONMESSAGES_FIELD_NUMBER = 22;
private java.util.List locationMessages_;
/**
*
* A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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 = 23;
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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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 DEFAULTLINKS_FIELD_NUMBER = 24;
private java.util.List defaultLinks_;
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
@java.lang.Override
public java.util.List getDefaultLinksList() {
return defaultLinks_;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
@java.lang.Override
public java.util.List extends com.passkit.grpc.Links.LinkOrBuilder>
getDefaultLinksOrBuilderList() {
return defaultLinks_;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
@java.lang.Override
public int getDefaultLinksCount() {
return defaultLinks_.size();
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
@java.lang.Override
public com.passkit.grpc.Links.Link getDefaultLinks(int index) {
return defaultLinks_.get(index);
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
@java.lang.Override
public com.passkit.grpc.Links.LinkOrBuilder getDefaultLinksOrBuilder(
int index) {
return defaultLinks_.get(index);
}
public static final int CONDITIONALITEMS_FIELD_NUMBER = 25;
private boolean conditionalItems_;
/**
*
* If PassKit are generating barcodes, include conditional items. Default false.
*
*
* bool ConditionalItems = 25;
* @return The conditionalItems.
*/
@java.lang.Override
public boolean getConditionalItems() {
return conditionalItems_;
}
public static final int BARCODEADDITIONALDATA_FIELD_NUMBER = 26;
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 = 26;
* @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 = 26;
* @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 INVALIDATECANCELLEDPASSES_FIELD_NUMBER = 27;
private int invalidateCancelledPasses_;
/**
*
* Invalidate passes where either the booking or the flight have been cancelled. Default is ON.
*
*
* .io.Toggle invalidateCancelledPasses = 27 [(.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 = 27 [(.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 {
getSerializedSize();
if (!getCarrierCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, carrierCode_);
}
if (!getFlightNumberBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flightNumber_);
}
if (validFrom_ != null) {
output.writeMessage(3, getValidFrom());
}
if (revision_ != 0) {
output.writeUInt32(4, revision_);
}
if (active_ != false) {
output.writeBool(5, active_);
}
if (schedule_ != null) {
output.writeMessage(6, getSchedule());
}
if (!getOperatingCarrierCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, operatingCarrierCode_);
}
if (!getOperatingFlightNumberBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, operatingFlightNumber_);
}
for (int i = 0; i < codeShareFlightNumbers_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, codeShareFlightNumbers_.getRaw(i));
}
if (!getOriginBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, origin_);
}
if (!getDestinationBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, destination_);
}
for (int i = 0; i < transitPoints_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, transitPoints_.getRaw(i));
}
if (!getDepartureTerminalBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, departureTerminal_);
}
if (!getArrivalTerminalBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, arrivalTerminal_);
}
for (int i = 0; i < transitTerminals_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, transitTerminals_.getRaw(i));
}
if (boardingPolicy_ != com.passkit.grpc.Flights.FlightDesignatorOuterClass.BoardingPolicy.BOARDING_POLICY_UNSPECIFIED.getNumber()) {
output.writeEnum(16, boardingPolicy_);
}
if (seatClassPolicy_ != com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy.SEAT_CLASS_POLICY_UNSPECIFIED.getNumber()) {
output.writeEnum(17, seatClassPolicy_);
}
if (getAlertsList().size() > 0) {
output.writeUInt32NoTag(146);
output.writeUInt32NoTag(alertsMemoizedSerializedSize);
}
for (int i = 0; i < alerts_.size(); i++) {
output.writeEnumNoTag(alerts_.get(i));
}
if (!getPassTemplateIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 19, passTemplateId_);
}
if (autoInvalidateAfter_ != 0) {
output.writeUInt32(20, autoInvalidateAfter_);
}
if (autoInvalidateCancelledPasses_ != false) {
output.writeBool(21, autoInvalidateCancelledPasses_);
}
for (int i = 0; i < locationMessages_.size(); i++) {
output.writeMessage(22, locationMessages_.get(i));
}
for (int i = 0; i < beaconMessages_.size(); i++) {
output.writeMessage(23, beaconMessages_.get(i));
}
for (int i = 0; i < defaultLinks_.size(); i++) {
output.writeMessage(24, defaultLinks_.get(i));
}
if (conditionalItems_ != false) {
output.writeBool(25, conditionalItems_);
}
if (!getBarcodeAdditionalDataBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 26, barcodeAdditionalData_);
}
if (invalidateCancelledPasses_ != com.passkit.grpc.CommonObjects.Toggle.DO_NOT_USE.getNumber()) {
output.writeEnum(27, 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 (validFrom_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getValidFrom());
}
if (revision_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, revision_);
}
if (active_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, active_);
}
if (schedule_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getSchedule());
}
if (!getOperatingCarrierCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, operatingCarrierCode_);
}
if (!getOperatingFlightNumberBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, operatingFlightNumber_);
}
{
int dataSize = 0;
for (int i = 0; i < codeShareFlightNumbers_.size(); i++) {
dataSize += computeStringSizeNoTag(codeShareFlightNumbers_.getRaw(i));
}
size += dataSize;
size += 1 * getCodeShareFlightNumbersList().size();
}
if (!getOriginBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, origin_);
}
if (!getDestinationBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, destination_);
}
{
int dataSize = 0;
for (int i = 0; i < transitPoints_.size(); i++) {
dataSize += computeStringSizeNoTag(transitPoints_.getRaw(i));
}
size += dataSize;
size += 1 * getTransitPointsList().size();
}
if (!getDepartureTerminalBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, departureTerminal_);
}
if (!getArrivalTerminalBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, arrivalTerminal_);
}
{
int dataSize = 0;
for (int i = 0; i < transitTerminals_.size(); i++) {
dataSize += computeStringSizeNoTag(transitTerminals_.getRaw(i));
}
size += dataSize;
size += 1 * getTransitTerminalsList().size();
}
if (boardingPolicy_ != com.passkit.grpc.Flights.FlightDesignatorOuterClass.BoardingPolicy.BOARDING_POLICY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(16, boardingPolicy_);
}
if (seatClassPolicy_ != com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy.SEAT_CLASS_POLICY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(17, seatClassPolicy_);
}
{
int dataSize = 0;
for (int i = 0; i < alerts_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(alerts_.get(i));
}
size += dataSize;
if (!getAlertsList().isEmpty()) { size += 2;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}alertsMemoizedSerializedSize = dataSize;
}
if (!getPassTemplateIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, passTemplateId_);
}
if (autoInvalidateAfter_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(20, autoInvalidateAfter_);
}
if (autoInvalidateCancelledPasses_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(21, autoInvalidateCancelledPasses_);
}
for (int i = 0; i < locationMessages_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, locationMessages_.get(i));
}
for (int i = 0; i < beaconMessages_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(23, beaconMessages_.get(i));
}
for (int i = 0; i < defaultLinks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(24, defaultLinks_.get(i));
}
if (conditionalItems_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(25, conditionalItems_);
}
if (!getBarcodeAdditionalDataBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, barcodeAdditionalData_);
}
if (invalidateCancelledPasses_ != com.passkit.grpc.CommonObjects.Toggle.DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(27, 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.FlightDesignatorOuterClass.FlightDesignator)) {
return super.equals(obj);
}
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator other = (com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator) obj;
if (!getCarrierCode()
.equals(other.getCarrierCode())) return false;
if (!getFlightNumber()
.equals(other.getFlightNumber())) return false;
if (hasValidFrom() != other.hasValidFrom()) return false;
if (hasValidFrom()) {
if (!getValidFrom()
.equals(other.getValidFrom())) return false;
}
if (getRevision()
!= other.getRevision()) return false;
if (getActive()
!= other.getActive()) return false;
if (hasSchedule() != other.hasSchedule()) return false;
if (hasSchedule()) {
if (!getSchedule()
.equals(other.getSchedule())) return false;
}
if (!getOperatingCarrierCode()
.equals(other.getOperatingCarrierCode())) return false;
if (!getOperatingFlightNumber()
.equals(other.getOperatingFlightNumber())) return false;
if (!getCodeShareFlightNumbersList()
.equals(other.getCodeShareFlightNumbersList())) return false;
if (!getOrigin()
.equals(other.getOrigin())) return false;
if (!getDestination()
.equals(other.getDestination())) return false;
if (!getTransitPointsList()
.equals(other.getTransitPointsList())) return false;
if (!getDepartureTerminal()
.equals(other.getDepartureTerminal())) return false;
if (!getArrivalTerminal()
.equals(other.getArrivalTerminal())) return false;
if (!getTransitTerminalsList()
.equals(other.getTransitTerminalsList())) return false;
if (boardingPolicy_ != other.boardingPolicy_) return false;
if (seatClassPolicy_ != other.seatClassPolicy_) return false;
if (!alerts_.equals(other.alerts_)) return false;
if (!getPassTemplateId()
.equals(other.getPassTemplateId())) 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 (!getDefaultLinksList()
.equals(other.getDefaultLinksList())) return false;
if (getConditionalItems()
!= other.getConditionalItems()) return false;
if (!getBarcodeAdditionalData()
.equals(other.getBarcodeAdditionalData())) 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();
if (hasValidFrom()) {
hash = (37 * hash) + VALIDFROM_FIELD_NUMBER;
hash = (53 * hash) + getValidFrom().hashCode();
}
hash = (37 * hash) + REVISION_FIELD_NUMBER;
hash = (53 * hash) + getRevision();
hash = (37 * hash) + ACTIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getActive());
if (hasSchedule()) {
hash = (37 * hash) + SCHEDULE_FIELD_NUMBER;
hash = (53 * hash) + getSchedule().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) + ORIGIN_FIELD_NUMBER;
hash = (53 * hash) + getOrigin().hashCode();
hash = (37 * hash) + DESTINATION_FIELD_NUMBER;
hash = (53 * hash) + getDestination().hashCode();
if (getTransitPointsCount() > 0) {
hash = (37 * hash) + TRANSITPOINTS_FIELD_NUMBER;
hash = (53 * hash) + getTransitPointsList().hashCode();
}
hash = (37 * hash) + DEPARTURETERMINAL_FIELD_NUMBER;
hash = (53 * hash) + getDepartureTerminal().hashCode();
hash = (37 * hash) + ARRIVALTERMINAL_FIELD_NUMBER;
hash = (53 * hash) + getArrivalTerminal().hashCode();
if (getTransitTerminalsCount() > 0) {
hash = (37 * hash) + TRANSITTERMINALS_FIELD_NUMBER;
hash = (53 * hash) + getTransitTerminalsList().hashCode();
}
hash = (37 * hash) + BOARDINGPOLICY_FIELD_NUMBER;
hash = (53 * hash) + boardingPolicy_;
hash = (37 * hash) + SEATCLASSPOLICY_FIELD_NUMBER;
hash = (53 * hash) + seatClassPolicy_;
if (getAlertsCount() > 0) {
hash = (37 * hash) + ALERTS_FIELD_NUMBER;
hash = (53 * hash) + alerts_.hashCode();
}
hash = (37 * hash) + PASSTEMPLATEID_FIELD_NUMBER;
hash = (53 * hash) + getPassTemplateId().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 (getDefaultLinksCount() > 0) {
hash = (37 * hash) + DEFAULTLINKS_FIELD_NUMBER;
hash = (53 * hash) + getDefaultLinksList().hashCode();
}
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();
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.FlightDesignatorOuterClass.FlightDesignator parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator 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.FlightDesignatorOuterClass.FlightDesignator parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator 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.FlightDesignatorOuterClass.FlightDesignator parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator 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.FlightDesignatorOuterClass.FlightDesignator parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator 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.FlightDesignatorOuterClass.FlightDesignator parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator 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.FlightDesignatorOuterClass.FlightDesignator 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;
}
/**
*
* carrier code and flight number and valid from represent the primary key.
*
*
* Protobuf type {@code flights.FlightDesignator}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flights.FlightDesignator)
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightDesignator_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightDesignator_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator.class, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator.Builder.class);
}
// Construct using com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator.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();
getDefaultLinksFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
carrierCode_ = "";
flightNumber_ = "";
if (validFromBuilder_ == null) {
validFrom_ = null;
} else {
validFrom_ = null;
validFromBuilder_ = null;
}
revision_ = 0;
active_ = false;
if (scheduleBuilder_ == null) {
schedule_ = null;
} else {
schedule_ = null;
scheduleBuilder_ = null;
}
operatingCarrierCode_ = "";
operatingFlightNumber_ = "";
codeShareFlightNumbers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
origin_ = "";
destination_ = "";
transitPoints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
departureTerminal_ = "";
arrivalTerminal_ = "";
transitTerminals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
boardingPolicy_ = 0;
seatClassPolicy_ = 0;
alerts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
passTemplateId_ = "";
autoInvalidateAfter_ = 0;
autoInvalidateCancelledPasses_ = false;
if (locationMessagesBuilder_ == null) {
locationMessages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
locationMessagesBuilder_.clear();
}
if (beaconMessagesBuilder_ == null) {
beaconMessages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
beaconMessagesBuilder_.clear();
}
if (defaultLinksBuilder_ == null) {
defaultLinks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
} else {
defaultLinksBuilder_.clear();
}
conditionalItems_ = false;
barcodeAdditionalData_ = "";
invalidateCancelledPasses_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightDesignator_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator getDefaultInstanceForType() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator build() {
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator buildPartial() {
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator result = new com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator(this);
int from_bitField0_ = bitField0_;
result.carrierCode_ = carrierCode_;
result.flightNumber_ = flightNumber_;
if (validFromBuilder_ == null) {
result.validFrom_ = validFrom_;
} else {
result.validFrom_ = validFromBuilder_.build();
}
result.revision_ = revision_;
result.active_ = active_;
if (scheduleBuilder_ == null) {
result.schedule_ = schedule_;
} else {
result.schedule_ = scheduleBuilder_.build();
}
result.operatingCarrierCode_ = operatingCarrierCode_;
result.operatingFlightNumber_ = operatingFlightNumber_;
if (((bitField0_ & 0x00000001) != 0)) {
codeShareFlightNumbers_ = codeShareFlightNumbers_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.codeShareFlightNumbers_ = codeShareFlightNumbers_;
result.origin_ = origin_;
result.destination_ = destination_;
if (((bitField0_ & 0x00000002) != 0)) {
transitPoints_ = transitPoints_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.transitPoints_ = transitPoints_;
result.departureTerminal_ = departureTerminal_;
result.arrivalTerminal_ = arrivalTerminal_;
if (((bitField0_ & 0x00000004) != 0)) {
transitTerminals_ = transitTerminals_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.transitTerminals_ = transitTerminals_;
result.boardingPolicy_ = boardingPolicy_;
result.seatClassPolicy_ = seatClassPolicy_;
if (((bitField0_ & 0x00000008) != 0)) {
alerts_ = java.util.Collections.unmodifiableList(alerts_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.alerts_ = alerts_;
result.passTemplateId_ = passTemplateId_;
result.autoInvalidateAfter_ = autoInvalidateAfter_;
result.autoInvalidateCancelledPasses_ = autoInvalidateCancelledPasses_;
if (locationMessagesBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
locationMessages_ = java.util.Collections.unmodifiableList(locationMessages_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.locationMessages_ = locationMessages_;
} else {
result.locationMessages_ = locationMessagesBuilder_.build();
}
if (beaconMessagesBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
beaconMessages_ = java.util.Collections.unmodifiableList(beaconMessages_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.beaconMessages_ = beaconMessages_;
} else {
result.beaconMessages_ = beaconMessagesBuilder_.build();
}
if (defaultLinksBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
defaultLinks_ = java.util.Collections.unmodifiableList(defaultLinks_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.defaultLinks_ = defaultLinks_;
} else {
result.defaultLinks_ = defaultLinksBuilder_.build();
}
result.conditionalItems_ = conditionalItems_;
result.barcodeAdditionalData_ = barcodeAdditionalData_;
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.FlightDesignatorOuterClass.FlightDesignator) {
return mergeFrom((com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator other) {
if (other == com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator.getDefaultInstance()) return this;
if (!other.getCarrierCode().isEmpty()) {
carrierCode_ = other.carrierCode_;
onChanged();
}
if (!other.getFlightNumber().isEmpty()) {
flightNumber_ = other.flightNumber_;
onChanged();
}
if (other.hasValidFrom()) {
mergeValidFrom(other.getValidFrom());
}
if (other.getRevision() != 0) {
setRevision(other.getRevision());
}
if (other.getActive() != false) {
setActive(other.getActive());
}
if (other.hasSchedule()) {
mergeSchedule(other.getSchedule());
}
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.getOrigin().isEmpty()) {
origin_ = other.origin_;
onChanged();
}
if (!other.getDestination().isEmpty()) {
destination_ = other.destination_;
onChanged();
}
if (!other.transitPoints_.isEmpty()) {
if (transitPoints_.isEmpty()) {
transitPoints_ = other.transitPoints_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTransitPointsIsMutable();
transitPoints_.addAll(other.transitPoints_);
}
onChanged();
}
if (!other.getDepartureTerminal().isEmpty()) {
departureTerminal_ = other.departureTerminal_;
onChanged();
}
if (!other.getArrivalTerminal().isEmpty()) {
arrivalTerminal_ = other.arrivalTerminal_;
onChanged();
}
if (!other.transitTerminals_.isEmpty()) {
if (transitTerminals_.isEmpty()) {
transitTerminals_ = other.transitTerminals_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureTransitTerminalsIsMutable();
transitTerminals_.addAll(other.transitTerminals_);
}
onChanged();
}
if (other.boardingPolicy_ != 0) {
setBoardingPolicyValue(other.getBoardingPolicyValue());
}
if (other.seatClassPolicy_ != 0) {
setSeatClassPolicyValue(other.getSeatClassPolicyValue());
}
if (!other.alerts_.isEmpty()) {
if (alerts_.isEmpty()) {
alerts_ = other.alerts_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAlertsIsMutable();
alerts_.addAll(other.alerts_);
}
onChanged();
}
if (!other.getPassTemplateId().isEmpty()) {
passTemplateId_ = other.passTemplateId_;
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_ & ~0x00000010);
} else {
ensureLocationMessagesIsMutable();
locationMessages_.addAll(other.locationMessages_);
}
onChanged();
}
} else {
if (!other.locationMessages_.isEmpty()) {
if (locationMessagesBuilder_.isEmpty()) {
locationMessagesBuilder_.dispose();
locationMessagesBuilder_ = null;
locationMessages_ = other.locationMessages_;
bitField0_ = (bitField0_ & ~0x00000010);
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_ & ~0x00000020);
} else {
ensureBeaconMessagesIsMutable();
beaconMessages_.addAll(other.beaconMessages_);
}
onChanged();
}
} else {
if (!other.beaconMessages_.isEmpty()) {
if (beaconMessagesBuilder_.isEmpty()) {
beaconMessagesBuilder_.dispose();
beaconMessagesBuilder_ = null;
beaconMessages_ = other.beaconMessages_;
bitField0_ = (bitField0_ & ~0x00000020);
beaconMessagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBeaconMessagesFieldBuilder() : null;
} else {
beaconMessagesBuilder_.addAllMessages(other.beaconMessages_);
}
}
}
if (defaultLinksBuilder_ == null) {
if (!other.defaultLinks_.isEmpty()) {
if (defaultLinks_.isEmpty()) {
defaultLinks_ = other.defaultLinks_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureDefaultLinksIsMutable();
defaultLinks_.addAll(other.defaultLinks_);
}
onChanged();
}
} else {
if (!other.defaultLinks_.isEmpty()) {
if (defaultLinksBuilder_.isEmpty()) {
defaultLinksBuilder_.dispose();
defaultLinksBuilder_ = null;
defaultLinks_ = other.defaultLinks_;
bitField0_ = (bitField0_ & ~0x00000040);
defaultLinksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDefaultLinksFieldBuilder() : null;
} else {
defaultLinksBuilder_.addAllMessages(other.defaultLinks_);
}
}
}
if (other.getConditionalItems() != false) {
setConditionalItems(other.getConditionalItems());
}
if (!other.getBarcodeAdditionalData().isEmpty()) {
barcodeAdditionalData_ = other.barcodeAdditionalData_;
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.FlightDesignatorOuterClass.FlightDesignator parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator) 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. Note this number must match the carrier code.
*
*
* 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. Note this number must match the carrier code.
*
*
* 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. Note this number must match the carrier code.
*
*
* 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. Note this number must match the carrier code.
*
*
* 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. Note this number must match the carrier code.
*
*
* 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 validFrom_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder> validFromBuilder_;
/**
*
* The date that the record is valid from. If not provided, then the date of submission will be used.
*
*
* .io.Date validFrom = 3;
* @return Whether the validFrom field is set.
*/
public boolean hasValidFrom() {
return validFromBuilder_ != null || validFrom_ != null;
}
/**
*
* The date that the record is valid from. If not provided, then the date of submission will be used.
*
*
* .io.Date validFrom = 3;
* @return The validFrom.
*/
public com.passkit.grpc.CommonObjects.Date getValidFrom() {
if (validFromBuilder_ == null) {
return validFrom_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : validFrom_;
} else {
return validFromBuilder_.getMessage();
}
}
/**
*
* The date that the record is valid from. If not provided, then the date of submission will be used.
*
*
* .io.Date validFrom = 3;
*/
public Builder setValidFrom(com.passkit.grpc.CommonObjects.Date value) {
if (validFromBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
validFrom_ = value;
onChanged();
} else {
validFromBuilder_.setMessage(value);
}
return this;
}
/**
*
* The date that the record is valid from. If not provided, then the date of submission will be used.
*
*
* .io.Date validFrom = 3;
*/
public Builder setValidFrom(
com.passkit.grpc.CommonObjects.Date.Builder builderForValue) {
if (validFromBuilder_ == null) {
validFrom_ = builderForValue.build();
onChanged();
} else {
validFromBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The date that the record is valid from. If not provided, then the date of submission will be used.
*
*
* .io.Date validFrom = 3;
*/
public Builder mergeValidFrom(com.passkit.grpc.CommonObjects.Date value) {
if (validFromBuilder_ == null) {
if (validFrom_ != null) {
validFrom_ =
com.passkit.grpc.CommonObjects.Date.newBuilder(validFrom_).mergeFrom(value).buildPartial();
} else {
validFrom_ = value;
}
onChanged();
} else {
validFromBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The date that the record is valid from. If not provided, then the date of submission will be used.
*
*
* .io.Date validFrom = 3;
*/
public Builder clearValidFrom() {
if (validFromBuilder_ == null) {
validFrom_ = null;
onChanged();
} else {
validFrom_ = null;
validFromBuilder_ = null;
}
return this;
}
/**
*
* The date that the record is valid from. If not provided, then the date of submission will be used.
*
*
* .io.Date validFrom = 3;
*/
public com.passkit.grpc.CommonObjects.Date.Builder getValidFromBuilder() {
onChanged();
return getValidFromFieldBuilder().getBuilder();
}
/**
*
* The date that the record is valid from. If not provided, then the date of submission will be used.
*
*
* .io.Date validFrom = 3;
*/
public com.passkit.grpc.CommonObjects.DateOrBuilder getValidFromOrBuilder() {
if (validFromBuilder_ != null) {
return validFromBuilder_.getMessageOrBuilder();
} else {
return validFrom_ == null ?
com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : validFrom_;
}
}
/**
*
* The date that the record is valid from. If not provided, then the date of submission will be used.
*
*
* .io.Date validFrom = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder>
getValidFromFieldBuilder() {
if (validFromBuilder_ == null) {
validFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder>(
getValidFrom(),
getParentForChildren(),
isClean());
validFrom_ = null;
}
return validFromBuilder_;
}
private int revision_ ;
/**
*
* Multiple designators can be active at a time. Provide a revision to distinguish between versions.
*
*
* uint32 revision = 4;
* @return The revision.
*/
@java.lang.Override
public int getRevision() {
return revision_;
}
/**
*
* Multiple designators can be active at a time. Provide a revision to distinguish between versions.
*
*
* uint32 revision = 4;
* @param value The revision to set.
* @return This builder for chaining.
*/
public Builder setRevision(int value) {
revision_ = value;
onChanged();
return this;
}
/**
*
* Multiple designators can be active at a time. Provide a revision to distinguish between versions.
*
*
* uint32 revision = 4;
* @return This builder for chaining.
*/
public Builder clearRevision() {
revision_ = 0;
onChanged();
return this;
}
private boolean active_ ;
/**
*
* Setting to false will prevent further flights to be created against this flight number. Will automatically be set to false if a second designator with a validFrom date before the current date and after this designator's validFrom date is found.
*
*
* bool active = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The active.
*/
@java.lang.Override
public boolean getActive() {
return active_;
}
/**
*
* Setting to false will prevent further flights to be created against this flight number. Will automatically be set to false if a second designator with a validFrom date before the current date and after this designator's validFrom date is found.
*
*
* bool active = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The active to set.
* @return This builder for chaining.
*/
public Builder setActive(boolean value) {
active_ = value;
onChanged();
return this;
}
/**
*
* Setting to false will prevent further flights to be created against this flight number. Will automatically be set to false if a second designator with a validFrom date before the current date and after this designator's validFrom date is found.
*
*
* bool active = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return This builder for chaining.
*/
public Builder clearActive() {
active_ = false;
onChanged();
return this;
}
private com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule schedule_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightScheduleOrBuilder> scheduleBuilder_;
/**
*
* The published flight schedule. If a flight object for a particular departure doesn't exist, these defaults are used. One-off changes to scheduled times for an individual departure should be handled by the Flight object. Long term changes should create a new revision of the FlightDesignator record.
*
*
* .flights.FlightSchedule schedule = 6;
* @return Whether the schedule field is set.
*/
public boolean hasSchedule() {
return scheduleBuilder_ != null || schedule_ != null;
}
/**
*
* The published flight schedule. If a flight object for a particular departure doesn't exist, these defaults are used. One-off changes to scheduled times for an individual departure should be handled by the Flight object. Long term changes should create a new revision of the FlightDesignator record.
*
*
* .flights.FlightSchedule schedule = 6;
* @return The schedule.
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule getSchedule() {
if (scheduleBuilder_ == null) {
return schedule_ == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.getDefaultInstance() : schedule_;
} else {
return scheduleBuilder_.getMessage();
}
}
/**
*
* The published flight schedule. If a flight object for a particular departure doesn't exist, these defaults are used. One-off changes to scheduled times for an individual departure should be handled by the Flight object. Long term changes should create a new revision of the FlightDesignator record.
*
*
* .flights.FlightSchedule schedule = 6;
*/
public Builder setSchedule(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule value) {
if (scheduleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schedule_ = value;
onChanged();
} else {
scheduleBuilder_.setMessage(value);
}
return this;
}
/**
*
* The published flight schedule. If a flight object for a particular departure doesn't exist, these defaults are used. One-off changes to scheduled times for an individual departure should be handled by the Flight object. Long term changes should create a new revision of the FlightDesignator record.
*
*
* .flights.FlightSchedule schedule = 6;
*/
public Builder setSchedule(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.Builder builderForValue) {
if (scheduleBuilder_ == null) {
schedule_ = builderForValue.build();
onChanged();
} else {
scheduleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The published flight schedule. If a flight object for a particular departure doesn't exist, these defaults are used. One-off changes to scheduled times for an individual departure should be handled by the Flight object. Long term changes should create a new revision of the FlightDesignator record.
*
*
* .flights.FlightSchedule schedule = 6;
*/
public Builder mergeSchedule(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule value) {
if (scheduleBuilder_ == null) {
if (schedule_ != null) {
schedule_ =
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.newBuilder(schedule_).mergeFrom(value).buildPartial();
} else {
schedule_ = value;
}
onChanged();
} else {
scheduleBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The published flight schedule. If a flight object for a particular departure doesn't exist, these defaults are used. One-off changes to scheduled times for an individual departure should be handled by the Flight object. Long term changes should create a new revision of the FlightDesignator record.
*
*
* .flights.FlightSchedule schedule = 6;
*/
public Builder clearSchedule() {
if (scheduleBuilder_ == null) {
schedule_ = null;
onChanged();
} else {
schedule_ = null;
scheduleBuilder_ = null;
}
return this;
}
/**
*
* The published flight schedule. If a flight object for a particular departure doesn't exist, these defaults are used. One-off changes to scheduled times for an individual departure should be handled by the Flight object. Long term changes should create a new revision of the FlightDesignator record.
*
*
* .flights.FlightSchedule schedule = 6;
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.Builder getScheduleBuilder() {
onChanged();
return getScheduleFieldBuilder().getBuilder();
}
/**
*
* The published flight schedule. If a flight object for a particular departure doesn't exist, these defaults are used. One-off changes to scheduled times for an individual departure should be handled by the Flight object. Long term changes should create a new revision of the FlightDesignator record.
*
*
* .flights.FlightSchedule schedule = 6;
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightScheduleOrBuilder getScheduleOrBuilder() {
if (scheduleBuilder_ != null) {
return scheduleBuilder_.getMessageOrBuilder();
} else {
return schedule_ == null ?
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.getDefaultInstance() : schedule_;
}
}
/**
*
* The published flight schedule. If a flight object for a particular departure doesn't exist, these defaults are used. One-off changes to scheduled times for an individual departure should be handled by the Flight object. Long term changes should create a new revision of the FlightDesignator record.
*
*
* .flights.FlightSchedule schedule = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightScheduleOrBuilder>
getScheduleFieldBuilder() {
if (scheduleBuilder_ == null) {
scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightScheduleOrBuilder>(
getSchedule(),
getParentForChildren(),
isClean());
schedule_ = null;
}
return scheduleBuilder_;
}
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 = 7 [(.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 = 7 [(.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 = 7 [(.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 = 7 [(.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 = 7 [(.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 = 8 [(.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 = 8 [(.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 = 8 [(.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 = 8 [(.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 = 8 [(.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 = 9;
* @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 = 9;
* @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 = 9;
* @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 = 9;
* @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 = 9;
* @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 = 9;
* @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 = 9;
* @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 = 9;
* @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 = 9;
* @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 origin_ = "";
/**
*
* The origin port of the flight. In the case of direct flights with multiple stops, this will represent the port where the route commences.
*
*
* string origin = 10;
* @return The origin.
*/
public java.lang.String getOrigin() {
java.lang.Object ref = origin_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
origin_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The origin port of the flight. In the case of direct flights with multiple stops, this will represent the port where the route commences.
*
*
* string origin = 10;
* @return The bytes for origin.
*/
public com.google.protobuf.ByteString
getOriginBytes() {
java.lang.Object ref = origin_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
origin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The origin port of the flight. In the case of direct flights with multiple stops, this will represent the port where the route commences.
*
*
* string origin = 10;
* @param value The origin to set.
* @return This builder for chaining.
*/
public Builder setOrigin(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
origin_ = value;
onChanged();
return this;
}
/**
*
* The origin port of the flight. In the case of direct flights with multiple stops, this will represent the port where the route commences.
*
*
* string origin = 10;
* @return This builder for chaining.
*/
public Builder clearOrigin() {
origin_ = getDefaultInstance().getOrigin();
onChanged();
return this;
}
/**
*
* The origin port of the flight. In the case of direct flights with multiple stops, this will represent the port where the route commences.
*
*
* string origin = 10;
* @param value The bytes for origin to set.
* @return This builder for chaining.
*/
public Builder setOriginBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
origin_ = value;
onChanged();
return this;
}
private java.lang.Object destination_ = "";
/**
*
* The destination port of the flight. In the case of direct flights with multiple stops, this will represent the final port where the route terminates.
*
*
* string destination = 11;
* @return The destination.
*/
public java.lang.String getDestination() {
java.lang.Object ref = destination_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
destination_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The destination port of the flight. In the case of direct flights with multiple stops, this will represent the final port where the route terminates.
*
*
* string destination = 11;
* @return The bytes for destination.
*/
public com.google.protobuf.ByteString
getDestinationBytes() {
java.lang.Object ref = destination_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destination_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The destination port of the flight. In the case of direct flights with multiple stops, this will represent the final port where the route terminates.
*
*
* string destination = 11;
* @param value The destination to set.
* @return This builder for chaining.
*/
public Builder setDestination(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
destination_ = value;
onChanged();
return this;
}
/**
*
* The destination port of the flight. In the case of direct flights with multiple stops, this will represent the final port where the route terminates.
*
*
* string destination = 11;
* @return This builder for chaining.
*/
public Builder clearDestination() {
destination_ = getDefaultInstance().getDestination();
onChanged();
return this;
}
/**
*
* The destination port of the flight. In the case of direct flights with multiple stops, this will represent the final port where the route terminates.
*
*
* string destination = 11;
* @param value The bytes for destination to set.
* @return This builder for chaining.
*/
public Builder setDestinationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
destination_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList transitPoints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTransitPointsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
transitPoints_ = new com.google.protobuf.LazyStringArrayList(transitPoints_);
bitField0_ |= 0x00000002;
}
}
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @return A list containing the transitPoints.
*/
public com.google.protobuf.ProtocolStringList
getTransitPointsList() {
return transitPoints_.getUnmodifiableView();
}
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @return The count of transitPoints.
*/
public int getTransitPointsCount() {
return transitPoints_.size();
}
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @param index The index of the element to return.
* @return The transitPoints at the given index.
*/
public java.lang.String getTransitPoints(int index) {
return transitPoints_.get(index);
}
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @param index The index of the value to return.
* @return The bytes of the transitPoints at the given index.
*/
public com.google.protobuf.ByteString
getTransitPointsBytes(int index) {
return transitPoints_.getByteString(index);
}
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @param index The index to set the value at.
* @param value The transitPoints to set.
* @return This builder for chaining.
*/
public Builder setTransitPoints(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTransitPointsIsMutable();
transitPoints_.set(index, value);
onChanged();
return this;
}
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @param value The transitPoints to add.
* @return This builder for chaining.
*/
public Builder addTransitPoints(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTransitPointsIsMutable();
transitPoints_.add(value);
onChanged();
return this;
}
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @param values The transitPoints to add.
* @return This builder for chaining.
*/
public Builder addAllTransitPoints(
java.lang.Iterable values) {
ensureTransitPointsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, transitPoints_);
onChanged();
return this;
}
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @return This builder for chaining.
*/
public Builder clearTransitPoints() {
transitPoints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* In the case of multiple stops, an ordered array of transit points, commencing with the first port after the origin and ending with the penultimate port.
*
*
* repeated string transitPoints = 12;
* @param value The bytes of the transitPoints to add.
* @return This builder for chaining.
*/
public Builder addTransitPointsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTransitPointsIsMutable();
transitPoints_.add(value);
onChanged();
return this;
}
private java.lang.Object departureTerminal_ = "";
/**
*
* The default terminal that the flight departs from.
*
*
* string departureTerminal = 13;
* @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;
}
}
/**
*
* The default terminal that the flight departs from.
*
*
* string departureTerminal = 13;
* @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;
}
}
/**
*
* The default terminal that the flight departs from.
*
*
* string departureTerminal = 13;
* @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;
}
/**
*
* The default terminal that the flight departs from.
*
*
* string departureTerminal = 13;
* @return This builder for chaining.
*/
public Builder clearDepartureTerminal() {
departureTerminal_ = getDefaultInstance().getDepartureTerminal();
onChanged();
return this;
}
/**
*
* The default terminal that the flight departs from.
*
*
* string departureTerminal = 13;
* @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_ = "";
/**
*
* The default terminal of the final destination.
*
*
* string arrivalTerminal = 14;
* @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;
}
}
/**
*
* The default terminal of the final destination.
*
*
* string arrivalTerminal = 14;
* @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;
}
}
/**
*
* The default terminal of the final destination.
*
*
* string arrivalTerminal = 14;
* @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;
}
/**
*
* The default terminal of the final destination.
*
*
* string arrivalTerminal = 14;
* @return This builder for chaining.
*/
public Builder clearArrivalTerminal() {
arrivalTerminal_ = getDefaultInstance().getArrivalTerminal();
onChanged();
return this;
}
/**
*
* The default terminal of the final destination.
*
*
* string arrivalTerminal = 14;
* @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 com.google.protobuf.LazyStringList transitTerminals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTransitTerminalsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
transitTerminals_ = new com.google.protobuf.LazyStringArrayList(transitTerminals_);
bitField0_ |= 0x00000004;
}
}
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @return A list containing the transitTerminals.
*/
public com.google.protobuf.ProtocolStringList
getTransitTerminalsList() {
return transitTerminals_.getUnmodifiableView();
}
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @return The count of transitTerminals.
*/
public int getTransitTerminalsCount() {
return transitTerminals_.size();
}
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @param index The index of the element to return.
* @return The transitTerminals at the given index.
*/
public java.lang.String getTransitTerminals(int index) {
return transitTerminals_.get(index);
}
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @param index The index of the value to return.
* @return The bytes of the transitTerminals at the given index.
*/
public com.google.protobuf.ByteString
getTransitTerminalsBytes(int index) {
return transitTerminals_.getByteString(index);
}
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @param index The index to set the value at.
* @param value The transitTerminals to set.
* @return This builder for chaining.
*/
public Builder setTransitTerminals(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTransitTerminalsIsMutable();
transitTerminals_.set(index, value);
onChanged();
return this;
}
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @param value The transitTerminals to add.
* @return This builder for chaining.
*/
public Builder addTransitTerminals(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTransitTerminalsIsMutable();
transitTerminals_.add(value);
onChanged();
return this;
}
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @param values The transitTerminals to add.
* @return This builder for chaining.
*/
public Builder addAllTransitTerminals(
java.lang.Iterable values) {
ensureTransitTerminalsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, transitTerminals_);
onChanged();
return this;
}
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @return This builder for chaining.
*/
public Builder clearTransitTerminals() {
transitTerminals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* In the case of multiple stops, an ordered array of transit terminals. The length of this array should match the number of transit points.
*
*
* repeated string transitTerminals = 15;
* @param value The bytes of the transitTerminals to add.
* @return This builder for chaining.
*/
public Builder addTransitTerminalsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTransitTerminalsIsMutable();
transitTerminals_.add(value);
onChanged();
return this;
}
private int boardingPolicy_ = 0;
/**
*
* The Boarding Policy is used to determine informational labels on the pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 16;
* @return The enum numeric value on the wire for boardingPolicy.
*/
@java.lang.Override public int getBoardingPolicyValue() {
return boardingPolicy_;
}
/**
*
* The Boarding Policy is used to determine informational labels on the pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 16;
* @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;
}
/**
*
* The Boarding Policy is used to determine informational labels on the pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 16;
* @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;
}
/**
*
* The Boarding Policy is used to determine informational labels on the pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 16;
* @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;
}
/**
*
* The Boarding Policy is used to determine informational labels on the pass.
*
*
* .flights.BoardingPolicy boardingPolicy = 16;
* @return This builder for chaining.
*/
public Builder clearBoardingPolicy() {
boardingPolicy_ = 0;
onChanged();
return this;
}
private int seatClassPolicy_ = 0;
/**
*
* The Seat Class Policy is used to determine informational labels on the pass.
*
*
* .flights.SeatClassPolicy seatClassPolicy = 17;
* @return The enum numeric value on the wire for seatClassPolicy.
*/
@java.lang.Override public int getSeatClassPolicyValue() {
return seatClassPolicy_;
}
/**
*
* The Seat Class Policy is used to determine informational labels on the pass.
*
*
* .flights.SeatClassPolicy seatClassPolicy = 17;
* @param value The enum numeric value on the wire for seatClassPolicy to set.
* @return This builder for chaining.
*/
public Builder setSeatClassPolicyValue(int value) {
seatClassPolicy_ = value;
onChanged();
return this;
}
/**
*
* The Seat Class Policy is used to determine informational labels on the pass.
*
*
* .flights.SeatClassPolicy seatClassPolicy = 17;
* @return The seatClassPolicy.
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy getSeatClassPolicy() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy result = com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy.valueOf(seatClassPolicy_);
return result == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy.UNRECOGNIZED : result;
}
/**
*
* The Seat Class Policy is used to determine informational labels on the pass.
*
*
* .flights.SeatClassPolicy seatClassPolicy = 17;
* @param value The seatClassPolicy to set.
* @return This builder for chaining.
*/
public Builder setSeatClassPolicy(com.passkit.grpc.Flights.FlightDesignatorOuterClass.SeatClassPolicy value) {
if (value == null) {
throw new NullPointerException();
}
seatClassPolicy_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The Seat Class Policy is used to determine informational labels on the pass.
*
*
* .flights.SeatClassPolicy seatClassPolicy = 17;
* @return This builder for chaining.
*/
public Builder clearSeatClassPolicy() {
seatClassPolicy_ = 0;
onChanged();
return this;
}
private java.util.List alerts_ =
java.util.Collections.emptyList();
private void ensureAlertsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
alerts_ = new java.util.ArrayList(alerts_);
bitField0_ |= 0x00000008;
}
}
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @return A list containing the alerts.
*/
public java.util.List getAlertsList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightAlerts>(alerts_, alerts_converter_);
}
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @return The count of alerts.
*/
public int getAlertsCount() {
return alerts_.size();
}
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @param index The index of the element to return.
* @return The alerts at the given index.
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightAlerts getAlerts(int index) {
return alerts_converter_.convert(alerts_.get(index));
}
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @param index The index to set the value at.
* @param value The alerts to set.
* @return This builder for chaining.
*/
public Builder setAlerts(
int index, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightAlerts value) {
if (value == null) {
throw new NullPointerException();
}
ensureAlertsIsMutable();
alerts_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @param value The alerts to add.
* @return This builder for chaining.
*/
public Builder addAlerts(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightAlerts value) {
if (value == null) {
throw new NullPointerException();
}
ensureAlertsIsMutable();
alerts_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @param values The alerts to add.
* @return This builder for chaining.
*/
public Builder addAllAlerts(
java.lang.Iterable extends com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightAlerts> values) {
ensureAlertsIsMutable();
for (com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightAlerts value : values) {
alerts_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @return This builder for chaining.
*/
public Builder clearAlerts() {
alerts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @return A list containing the enum numeric values on the wire for alerts.
*/
public java.util.List
getAlertsValueList() {
return java.util.Collections.unmodifiableList(alerts_);
}
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of alerts at the given index.
*/
public int getAlertsValue(int index) {
return alerts_.get(index);
}
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of alerts at the given index.
* @return This builder for chaining.
*/
public Builder setAlertsValue(
int index, int value) {
ensureAlertsIsMutable();
alerts_.set(index, value);
onChanged();
return this;
}
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @param value The enum numeric value on the wire for alerts to add.
* @return This builder for chaining.
*/
public Builder addAlertsValue(int value) {
ensureAlertsIsMutable();
alerts_.add(value);
onChanged();
return this;
}
/**
*
* An array of alerts to subscribe to for the flight. Note that additional charges apply.
*
*
* repeated .flights.FlightAlerts alerts = 18;
* @param values The enum numeric values on the wire for alerts to add.
* @return This builder for chaining.
*/
public Builder addAllAlertsValue(
java.lang.Iterable values) {
ensureAlertsIsMutable();
for (int value : values) {
alerts_.add(value);
}
onChanged();
return this;
}
private java.lang.Object passTemplateId_ = "";
/**
*
* The PassKit template id that will be used for boarding passes for this flight. It can be overwritten at the flight level.
*
*
* 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 PassKit template id that will be used for boarding passes for this flight. It can be overwritten at the flight level.
*
*
* 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 PassKit template id that will be used for boarding passes for this flight. It can be overwritten at the flight level.
*
*
* 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 PassKit template id that will be used for boarding passes for this flight. It can be overwritten at the flight level.
*
*
* string passTemplateId = 19;
* @return This builder for chaining.
*/
public Builder clearPassTemplateId() {
passTemplateId_ = getDefaultInstance().getPassTemplateId();
onChanged();
return this;
}
/**
*
* The PassKit template id that will be used for boarding passes for this flight. It can be overwritten at the flight level.
*
*
* 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 int autoInvalidateAfter_ ;
/**
*
* Minutes after scheduled arrival time 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 = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The autoInvalidateAfter.
*/
@java.lang.Override
public int getAutoInvalidateAfter() {
return autoInvalidateAfter_;
}
/**
*
* Minutes after scheduled arrival time 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 = 20 [(.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 scheduled arrival time 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 = 20 [(.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 = 21 [deprecated = true];
* @return The autoInvalidateCancelledPasses.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getAutoInvalidateCancelledPasses() {
return autoInvalidateCancelledPasses_;
}
/**
*
* Deprecated: Use InvalidateCancelledPasses.
*
*
* bool autoInvalidateCancelledPasses = 21 [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 = 21 [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_ & 0x00000010) != 0)) {
locationMessages_ = new java.util.ArrayList(locationMessages_);
bitField0_ |= 0x00000010;
}
}
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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder clearLocationMessages() {
if (locationMessagesBuilder_ == null) {
locationMessages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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.
*
*
* repeated .io.GPSLocation locationMessages = 22 [(.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_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
locationMessages_ = null;
}
return locationMessagesBuilder_;
}
private java.util.List beaconMessages_ =
java.util.Collections.emptyList();
private void ensureBeaconMessagesIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
beaconMessages_ = new java.util.ArrayList(beaconMessages_);
bitField0_ |= 0x00000020;
}
}
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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder clearBeaconMessages() {
if (beaconMessagesBuilder_ == null) {
beaconMessages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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.
*
*
* repeated .io.Beacon beaconMessages = 23 [(.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_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
beaconMessages_ = null;
}
return beaconMessagesBuilder_;
}
private java.util.List defaultLinks_ =
java.util.Collections.emptyList();
private void ensureDefaultLinksIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
defaultLinks_ = new java.util.ArrayList(defaultLinks_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Links.Link, com.passkit.grpc.Links.Link.Builder, com.passkit.grpc.Links.LinkOrBuilder> defaultLinksBuilder_;
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public java.util.List getDefaultLinksList() {
if (defaultLinksBuilder_ == null) {
return java.util.Collections.unmodifiableList(defaultLinks_);
} else {
return defaultLinksBuilder_.getMessageList();
}
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public int getDefaultLinksCount() {
if (defaultLinksBuilder_ == null) {
return defaultLinks_.size();
} else {
return defaultLinksBuilder_.getCount();
}
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public com.passkit.grpc.Links.Link getDefaultLinks(int index) {
if (defaultLinksBuilder_ == null) {
return defaultLinks_.get(index);
} else {
return defaultLinksBuilder_.getMessage(index);
}
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public Builder setDefaultLinks(
int index, com.passkit.grpc.Links.Link value) {
if (defaultLinksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDefaultLinksIsMutable();
defaultLinks_.set(index, value);
onChanged();
} else {
defaultLinksBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public Builder setDefaultLinks(
int index, com.passkit.grpc.Links.Link.Builder builderForValue) {
if (defaultLinksBuilder_ == null) {
ensureDefaultLinksIsMutable();
defaultLinks_.set(index, builderForValue.build());
onChanged();
} else {
defaultLinksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public Builder addDefaultLinks(com.passkit.grpc.Links.Link value) {
if (defaultLinksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDefaultLinksIsMutable();
defaultLinks_.add(value);
onChanged();
} else {
defaultLinksBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public Builder addDefaultLinks(
int index, com.passkit.grpc.Links.Link value) {
if (defaultLinksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDefaultLinksIsMutable();
defaultLinks_.add(index, value);
onChanged();
} else {
defaultLinksBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public Builder addDefaultLinks(
com.passkit.grpc.Links.Link.Builder builderForValue) {
if (defaultLinksBuilder_ == null) {
ensureDefaultLinksIsMutable();
defaultLinks_.add(builderForValue.build());
onChanged();
} else {
defaultLinksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public Builder addDefaultLinks(
int index, com.passkit.grpc.Links.Link.Builder builderForValue) {
if (defaultLinksBuilder_ == null) {
ensureDefaultLinksIsMutable();
defaultLinks_.add(index, builderForValue.build());
onChanged();
} else {
defaultLinksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public Builder addAllDefaultLinks(
java.lang.Iterable extends com.passkit.grpc.Links.Link> values) {
if (defaultLinksBuilder_ == null) {
ensureDefaultLinksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, defaultLinks_);
onChanged();
} else {
defaultLinksBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public Builder clearDefaultLinks() {
if (defaultLinksBuilder_ == null) {
defaultLinks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
defaultLinksBuilder_.clear();
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public Builder removeDefaultLinks(int index) {
if (defaultLinksBuilder_ == null) {
ensureDefaultLinksIsMutable();
defaultLinks_.remove(index);
onChanged();
} else {
defaultLinksBuilder_.remove(index);
}
return this;
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public com.passkit.grpc.Links.Link.Builder getDefaultLinksBuilder(
int index) {
return getDefaultLinksFieldBuilder().getBuilder(index);
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public com.passkit.grpc.Links.LinkOrBuilder getDefaultLinksOrBuilder(
int index) {
if (defaultLinksBuilder_ == null) {
return defaultLinks_.get(index); } else {
return defaultLinksBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public java.util.List extends com.passkit.grpc.Links.LinkOrBuilder>
getDefaultLinksOrBuilderList() {
if (defaultLinksBuilder_ != null) {
return defaultLinksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(defaultLinks_);
}
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public com.passkit.grpc.Links.Link.Builder addDefaultLinksBuilder() {
return getDefaultLinksFieldBuilder().addBuilder(
com.passkit.grpc.Links.Link.getDefaultInstance());
}
/**
*
* A list of links to be appended to the end of each boarding pass.
*
*
* repeated .io.Link defaultLinks = 24;
*/
public com.passkit.grpc.Links.Link.Builder addDefaultLinksBuilder(
int index) {
return getDefaultLinksFieldBuilder().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 defaultLinks = 24;
*/
public java.util.List
getDefaultLinksBuilderList() {
return getDefaultLinksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Links.Link, com.passkit.grpc.Links.Link.Builder, com.passkit.grpc.Links.LinkOrBuilder>
getDefaultLinksFieldBuilder() {
if (defaultLinksBuilder_ == null) {
defaultLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Links.Link, com.passkit.grpc.Links.Link.Builder, com.passkit.grpc.Links.LinkOrBuilder>(
defaultLinks_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
defaultLinks_ = null;
}
return defaultLinksBuilder_;
}
private boolean conditionalItems_ ;
/**
*
* If PassKit are generating barcodes, include conditional items. Default false.
*
*
* bool ConditionalItems = 25;
* @return The conditionalItems.
*/
@java.lang.Override
public boolean getConditionalItems() {
return conditionalItems_;
}
/**
*
* If PassKit are generating barcodes, include conditional items. Default false.
*
*
* bool ConditionalItems = 25;
* @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 = 25;
* @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 = 26;
* @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 = 26;
* @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 = 26;
* @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 = 26;
* @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 = 26;
* @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 int invalidateCancelledPasses_ = 0;
/**
*
* Invalidate passes where either the booking or the flight have been cancelled. Default is ON.
*
*
* .io.Toggle invalidateCancelledPasses = 27 [(.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 = 27 [(.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 = 27 [(.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 = 27 [(.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 = 27 [(.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.FlightDesignator)
}
// @@protoc_insertion_point(class_scope:flights.FlightDesignator)
private static final com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator();
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FlightDesignator parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FlightDesignator(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.FlightDesignatorOuterClass.FlightDesignator getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FlightDesignatorRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flights.FlightDesignatorRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The IATA or ICAO carrier code for the flight.
*
*
* 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.
*
*
* 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();
/**
*
* Revision. Each designator record requires a version number.
*
*
* uint32 revision = 3;
* @return The revision.
*/
int getRevision();
}
/**
* Protobuf type {@code flights.FlightDesignatorRequest}
*/
public static final class FlightDesignatorRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flights.FlightDesignatorRequest)
FlightDesignatorRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use FlightDesignatorRequest.newBuilder() to construct.
private FlightDesignatorRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FlightDesignatorRequest() {
carrierCode_ = "";
flightNumber_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FlightDesignatorRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FlightDesignatorRequest(
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 24: {
revision_ = input.readUInt32();
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.FlightDesignatorOuterClass.internal_static_flights_FlightDesignatorRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightDesignatorRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest.class, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest.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.
*
*
* 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.
*
*
* 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 REVISION_FIELD_NUMBER = 3;
private int revision_;
/**
*
* Revision. Each designator record requires a version number.
*
*
* uint32 revision = 3;
* @return The revision.
*/
@java.lang.Override
public int getRevision() {
return revision_;
}
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 (revision_ != 0) {
output.writeUInt32(3, revision_);
}
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 (revision_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, revision_);
}
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.FlightDesignatorOuterClass.FlightDesignatorRequest)) {
return super.equals(obj);
}
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest other = (com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest) obj;
if (!getCarrierCode()
.equals(other.getCarrierCode())) return false;
if (!getFlightNumber()
.equals(other.getFlightNumber())) return false;
if (getRevision()
!= other.getRevision()) 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) + REVISION_FIELD_NUMBER;
hash = (53 * hash) + getRevision();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest 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.FlightDesignatorOuterClass.FlightDesignatorRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest 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.FlightDesignatorOuterClass.FlightDesignatorRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest 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.FlightDesignatorOuterClass.FlightDesignatorRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest 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.FlightDesignatorOuterClass.FlightDesignatorRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest 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.FlightDesignatorOuterClass.FlightDesignatorRequest 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.FlightDesignatorRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flights.FlightDesignatorRequest)
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightDesignatorRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightDesignatorRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest.class, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest.Builder.class);
}
// Construct using com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest.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_ = "";
revision_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightDesignatorRequest_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest getDefaultInstanceForType() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest build() {
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest buildPartial() {
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest result = new com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest(this);
result.carrierCode_ = carrierCode_;
result.flightNumber_ = flightNumber_;
result.revision_ = revision_;
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.FlightDesignatorOuterClass.FlightDesignatorRequest) {
return mergeFrom((com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest other) {
if (other == com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest.getDefaultInstance()) return this;
if (!other.getCarrierCode().isEmpty()) {
carrierCode_ = other.carrierCode_;
onChanged();
}
if (!other.getFlightNumber().isEmpty()) {
flightNumber_ = other.flightNumber_;
onChanged();
}
if (other.getRevision() != 0) {
setRevision(other.getRevision());
}
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.FlightDesignatorOuterClass.FlightDesignatorRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object carrierCode_ = "";
/**
*
* The IATA or ICAO carrier code for the flight.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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 int revision_ ;
/**
*
* Revision. Each designator record requires a version number.
*
*
* uint32 revision = 3;
* @return The revision.
*/
@java.lang.Override
public int getRevision() {
return revision_;
}
/**
*
* Revision. Each designator record requires a version number.
*
*
* uint32 revision = 3;
* @param value The revision to set.
* @return This builder for chaining.
*/
public Builder setRevision(int value) {
revision_ = value;
onChanged();
return this;
}
/**
*
* Revision. Each designator record requires a version number.
*
*
* uint32 revision = 3;
* @return This builder for chaining.
*/
public Builder clearRevision() {
revision_ = 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.FlightDesignatorRequest)
}
// @@protoc_insertion_point(class_scope:flights.FlightDesignatorRequest)
private static final com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest();
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FlightDesignatorRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FlightDesignatorRequest(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.FlightDesignatorOuterClass.FlightDesignatorRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FlightScheduleOrBuilder extends
// @@protoc_insertion_point(interface_extends:flights.FlightSchedule)
com.google.protobuf.MessageOrBuilder {
/**
* .flights.FlightTimes monday = 1;
* @return Whether the monday field is set.
*/
boolean hasMonday();
/**
* .flights.FlightTimes monday = 1;
* @return The monday.
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getMonday();
/**
* .flights.FlightTimes monday = 1;
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getMondayOrBuilder();
/**
* .flights.FlightTimes tuesday = 2;
* @return Whether the tuesday field is set.
*/
boolean hasTuesday();
/**
* .flights.FlightTimes tuesday = 2;
* @return The tuesday.
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getTuesday();
/**
* .flights.FlightTimes tuesday = 2;
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getTuesdayOrBuilder();
/**
* .flights.FlightTimes wednesday = 3;
* @return Whether the wednesday field is set.
*/
boolean hasWednesday();
/**
* .flights.FlightTimes wednesday = 3;
* @return The wednesday.
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getWednesday();
/**
* .flights.FlightTimes wednesday = 3;
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getWednesdayOrBuilder();
/**
* .flights.FlightTimes thursday = 4;
* @return Whether the thursday field is set.
*/
boolean hasThursday();
/**
* .flights.FlightTimes thursday = 4;
* @return The thursday.
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getThursday();
/**
* .flights.FlightTimes thursday = 4;
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getThursdayOrBuilder();
/**
* .flights.FlightTimes friday = 5;
* @return Whether the friday field is set.
*/
boolean hasFriday();
/**
* .flights.FlightTimes friday = 5;
* @return The friday.
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getFriday();
/**
* .flights.FlightTimes friday = 5;
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getFridayOrBuilder();
/**
* .flights.FlightTimes saturday = 6;
* @return Whether the saturday field is set.
*/
boolean hasSaturday();
/**
* .flights.FlightTimes saturday = 6;
* @return The saturday.
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getSaturday();
/**
* .flights.FlightTimes saturday = 6;
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getSaturdayOrBuilder();
/**
* .flights.FlightTimes sunday = 7;
* @return Whether the sunday field is set.
*/
boolean hasSunday();
/**
* .flights.FlightTimes sunday = 7;
* @return The sunday.
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getSunday();
/**
* .flights.FlightTimes sunday = 7;
*/
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getSundayOrBuilder();
}
/**
*
* If there are no departures on a given day (E.g. flight only operates on Tuesdays and Thursdays), the days with no departures should be nil.
*
*
* Protobuf type {@code flights.FlightSchedule}
*/
public static final class FlightSchedule extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flights.FlightSchedule)
FlightScheduleOrBuilder {
private static final long serialVersionUID = 0L;
// Use FlightSchedule.newBuilder() to construct.
private FlightSchedule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FlightSchedule() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FlightSchedule();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FlightSchedule(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder subBuilder = null;
if (monday_ != null) {
subBuilder = monday_.toBuilder();
}
monday_ = input.readMessage(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(monday_);
monday_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder subBuilder = null;
if (tuesday_ != null) {
subBuilder = tuesday_.toBuilder();
}
tuesday_ = input.readMessage(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tuesday_);
tuesday_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder subBuilder = null;
if (wednesday_ != null) {
subBuilder = wednesday_.toBuilder();
}
wednesday_ = input.readMessage(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(wednesday_);
wednesday_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder subBuilder = null;
if (thursday_ != null) {
subBuilder = thursday_.toBuilder();
}
thursday_ = input.readMessage(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(thursday_);
thursday_ = subBuilder.buildPartial();
}
break;
}
case 42: {
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder subBuilder = null;
if (friday_ != null) {
subBuilder = friday_.toBuilder();
}
friday_ = input.readMessage(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(friday_);
friday_ = subBuilder.buildPartial();
}
break;
}
case 50: {
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder subBuilder = null;
if (saturday_ != null) {
subBuilder = saturday_.toBuilder();
}
saturday_ = input.readMessage(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(saturday_);
saturday_ = subBuilder.buildPartial();
}
break;
}
case 58: {
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder subBuilder = null;
if (sunday_ != null) {
subBuilder = sunday_.toBuilder();
}
sunday_ = input.readMessage(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sunday_);
sunday_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightSchedule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightSchedule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.class, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.Builder.class);
}
public static final int MONDAY_FIELD_NUMBER = 1;
private com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes monday_;
/**
* .flights.FlightTimes monday = 1;
* @return Whether the monday field is set.
*/
@java.lang.Override
public boolean hasMonday() {
return monday_ != null;
}
/**
* .flights.FlightTimes monday = 1;
* @return The monday.
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getMonday() {
return monday_ == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : monday_;
}
/**
* .flights.FlightTimes monday = 1;
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getMondayOrBuilder() {
return getMonday();
}
public static final int TUESDAY_FIELD_NUMBER = 2;
private com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes tuesday_;
/**
* .flights.FlightTimes tuesday = 2;
* @return Whether the tuesday field is set.
*/
@java.lang.Override
public boolean hasTuesday() {
return tuesday_ != null;
}
/**
* .flights.FlightTimes tuesday = 2;
* @return The tuesday.
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getTuesday() {
return tuesday_ == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : tuesday_;
}
/**
* .flights.FlightTimes tuesday = 2;
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getTuesdayOrBuilder() {
return getTuesday();
}
public static final int WEDNESDAY_FIELD_NUMBER = 3;
private com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes wednesday_;
/**
* .flights.FlightTimes wednesday = 3;
* @return Whether the wednesday field is set.
*/
@java.lang.Override
public boolean hasWednesday() {
return wednesday_ != null;
}
/**
* .flights.FlightTimes wednesday = 3;
* @return The wednesday.
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getWednesday() {
return wednesday_ == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : wednesday_;
}
/**
* .flights.FlightTimes wednesday = 3;
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getWednesdayOrBuilder() {
return getWednesday();
}
public static final int THURSDAY_FIELD_NUMBER = 4;
private com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes thursday_;
/**
* .flights.FlightTimes thursday = 4;
* @return Whether the thursday field is set.
*/
@java.lang.Override
public boolean hasThursday() {
return thursday_ != null;
}
/**
* .flights.FlightTimes thursday = 4;
* @return The thursday.
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getThursday() {
return thursday_ == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : thursday_;
}
/**
* .flights.FlightTimes thursday = 4;
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getThursdayOrBuilder() {
return getThursday();
}
public static final int FRIDAY_FIELD_NUMBER = 5;
private com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes friday_;
/**
* .flights.FlightTimes friday = 5;
* @return Whether the friday field is set.
*/
@java.lang.Override
public boolean hasFriday() {
return friday_ != null;
}
/**
* .flights.FlightTimes friday = 5;
* @return The friday.
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getFriday() {
return friday_ == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : friday_;
}
/**
* .flights.FlightTimes friday = 5;
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getFridayOrBuilder() {
return getFriday();
}
public static final int SATURDAY_FIELD_NUMBER = 6;
private com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes saturday_;
/**
* .flights.FlightTimes saturday = 6;
* @return Whether the saturday field is set.
*/
@java.lang.Override
public boolean hasSaturday() {
return saturday_ != null;
}
/**
* .flights.FlightTimes saturday = 6;
* @return The saturday.
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getSaturday() {
return saturday_ == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : saturday_;
}
/**
* .flights.FlightTimes saturday = 6;
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getSaturdayOrBuilder() {
return getSaturday();
}
public static final int SUNDAY_FIELD_NUMBER = 7;
private com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes sunday_;
/**
* .flights.FlightTimes sunday = 7;
* @return Whether the sunday field is set.
*/
@java.lang.Override
public boolean hasSunday() {
return sunday_ != null;
}
/**
* .flights.FlightTimes sunday = 7;
* @return The sunday.
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getSunday() {
return sunday_ == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : sunday_;
}
/**
* .flights.FlightTimes sunday = 7;
*/
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getSundayOrBuilder() {
return getSunday();
}
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 (monday_ != null) {
output.writeMessage(1, getMonday());
}
if (tuesday_ != null) {
output.writeMessage(2, getTuesday());
}
if (wednesday_ != null) {
output.writeMessage(3, getWednesday());
}
if (thursday_ != null) {
output.writeMessage(4, getThursday());
}
if (friday_ != null) {
output.writeMessage(5, getFriday());
}
if (saturday_ != null) {
output.writeMessage(6, getSaturday());
}
if (sunday_ != null) {
output.writeMessage(7, getSunday());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (monday_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMonday());
}
if (tuesday_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTuesday());
}
if (wednesday_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getWednesday());
}
if (thursday_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getThursday());
}
if (friday_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getFriday());
}
if (saturday_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getSaturday());
}
if (sunday_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getSunday());
}
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.FlightDesignatorOuterClass.FlightSchedule)) {
return super.equals(obj);
}
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule other = (com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule) obj;
if (hasMonday() != other.hasMonday()) return false;
if (hasMonday()) {
if (!getMonday()
.equals(other.getMonday())) return false;
}
if (hasTuesday() != other.hasTuesday()) return false;
if (hasTuesday()) {
if (!getTuesday()
.equals(other.getTuesday())) return false;
}
if (hasWednesday() != other.hasWednesday()) return false;
if (hasWednesday()) {
if (!getWednesday()
.equals(other.getWednesday())) return false;
}
if (hasThursday() != other.hasThursday()) return false;
if (hasThursday()) {
if (!getThursday()
.equals(other.getThursday())) return false;
}
if (hasFriday() != other.hasFriday()) return false;
if (hasFriday()) {
if (!getFriday()
.equals(other.getFriday())) return false;
}
if (hasSaturday() != other.hasSaturday()) return false;
if (hasSaturday()) {
if (!getSaturday()
.equals(other.getSaturday())) return false;
}
if (hasSunday() != other.hasSunday()) return false;
if (hasSunday()) {
if (!getSunday()
.equals(other.getSunday())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMonday()) {
hash = (37 * hash) + MONDAY_FIELD_NUMBER;
hash = (53 * hash) + getMonday().hashCode();
}
if (hasTuesday()) {
hash = (37 * hash) + TUESDAY_FIELD_NUMBER;
hash = (53 * hash) + getTuesday().hashCode();
}
if (hasWednesday()) {
hash = (37 * hash) + WEDNESDAY_FIELD_NUMBER;
hash = (53 * hash) + getWednesday().hashCode();
}
if (hasThursday()) {
hash = (37 * hash) + THURSDAY_FIELD_NUMBER;
hash = (53 * hash) + getThursday().hashCode();
}
if (hasFriday()) {
hash = (37 * hash) + FRIDAY_FIELD_NUMBER;
hash = (53 * hash) + getFriday().hashCode();
}
if (hasSaturday()) {
hash = (37 * hash) + SATURDAY_FIELD_NUMBER;
hash = (53 * hash) + getSaturday().hashCode();
}
if (hasSunday()) {
hash = (37 * hash) + SUNDAY_FIELD_NUMBER;
hash = (53 * hash) + getSunday().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule 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.FlightDesignatorOuterClass.FlightSchedule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule 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.FlightDesignatorOuterClass.FlightSchedule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule 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.FlightDesignatorOuterClass.FlightSchedule parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule 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.FlightDesignatorOuterClass.FlightSchedule parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule 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.FlightDesignatorOuterClass.FlightSchedule 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;
}
/**
*
* If there are no departures on a given day (E.g. flight only operates on Tuesdays and Thursdays), the days with no departures should be nil.
*
*
* Protobuf type {@code flights.FlightSchedule}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flights.FlightSchedule)
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightScheduleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightSchedule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightSchedule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.class, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.Builder.class);
}
// Construct using com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (mondayBuilder_ == null) {
monday_ = null;
} else {
monday_ = null;
mondayBuilder_ = null;
}
if (tuesdayBuilder_ == null) {
tuesday_ = null;
} else {
tuesday_ = null;
tuesdayBuilder_ = null;
}
if (wednesdayBuilder_ == null) {
wednesday_ = null;
} else {
wednesday_ = null;
wednesdayBuilder_ = null;
}
if (thursdayBuilder_ == null) {
thursday_ = null;
} else {
thursday_ = null;
thursdayBuilder_ = null;
}
if (fridayBuilder_ == null) {
friday_ = null;
} else {
friday_ = null;
fridayBuilder_ = null;
}
if (saturdayBuilder_ == null) {
saturday_ = null;
} else {
saturday_ = null;
saturdayBuilder_ = null;
}
if (sundayBuilder_ == null) {
sunday_ = null;
} else {
sunday_ = null;
sundayBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightSchedule_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule getDefaultInstanceForType() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule build() {
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule buildPartial() {
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule result = new com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule(this);
if (mondayBuilder_ == null) {
result.monday_ = monday_;
} else {
result.monday_ = mondayBuilder_.build();
}
if (tuesdayBuilder_ == null) {
result.tuesday_ = tuesday_;
} else {
result.tuesday_ = tuesdayBuilder_.build();
}
if (wednesdayBuilder_ == null) {
result.wednesday_ = wednesday_;
} else {
result.wednesday_ = wednesdayBuilder_.build();
}
if (thursdayBuilder_ == null) {
result.thursday_ = thursday_;
} else {
result.thursday_ = thursdayBuilder_.build();
}
if (fridayBuilder_ == null) {
result.friday_ = friday_;
} else {
result.friday_ = fridayBuilder_.build();
}
if (saturdayBuilder_ == null) {
result.saturday_ = saturday_;
} else {
result.saturday_ = saturdayBuilder_.build();
}
if (sundayBuilder_ == null) {
result.sunday_ = sunday_;
} else {
result.sunday_ = sundayBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule) {
return mergeFrom((com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule other) {
if (other == com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule.getDefaultInstance()) return this;
if (other.hasMonday()) {
mergeMonday(other.getMonday());
}
if (other.hasTuesday()) {
mergeTuesday(other.getTuesday());
}
if (other.hasWednesday()) {
mergeWednesday(other.getWednesday());
}
if (other.hasThursday()) {
mergeThursday(other.getThursday());
}
if (other.hasFriday()) {
mergeFriday(other.getFriday());
}
if (other.hasSaturday()) {
mergeSaturday(other.getSaturday());
}
if (other.hasSunday()) {
mergeSunday(other.getSunday());
}
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.FlightDesignatorOuterClass.FlightSchedule parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes monday_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder> mondayBuilder_;
/**
* .flights.FlightTimes monday = 1;
* @return Whether the monday field is set.
*/
public boolean hasMonday() {
return mondayBuilder_ != null || monday_ != null;
}
/**
* .flights.FlightTimes monday = 1;
* @return The monday.
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getMonday() {
if (mondayBuilder_ == null) {
return monday_ == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : monday_;
} else {
return mondayBuilder_.getMessage();
}
}
/**
* .flights.FlightTimes monday = 1;
*/
public Builder setMonday(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes value) {
if (mondayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
monday_ = value;
onChanged();
} else {
mondayBuilder_.setMessage(value);
}
return this;
}
/**
* .flights.FlightTimes monday = 1;
*/
public Builder setMonday(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder builderForValue) {
if (mondayBuilder_ == null) {
monday_ = builderForValue.build();
onChanged();
} else {
mondayBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flights.FlightTimes monday = 1;
*/
public Builder mergeMonday(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes value) {
if (mondayBuilder_ == null) {
if (monday_ != null) {
monday_ =
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.newBuilder(monday_).mergeFrom(value).buildPartial();
} else {
monday_ = value;
}
onChanged();
} else {
mondayBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flights.FlightTimes monday = 1;
*/
public Builder clearMonday() {
if (mondayBuilder_ == null) {
monday_ = null;
onChanged();
} else {
monday_ = null;
mondayBuilder_ = null;
}
return this;
}
/**
* .flights.FlightTimes monday = 1;
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder getMondayBuilder() {
onChanged();
return getMondayFieldBuilder().getBuilder();
}
/**
* .flights.FlightTimes monday = 1;
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getMondayOrBuilder() {
if (mondayBuilder_ != null) {
return mondayBuilder_.getMessageOrBuilder();
} else {
return monday_ == null ?
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : monday_;
}
}
/**
* .flights.FlightTimes monday = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder>
getMondayFieldBuilder() {
if (mondayBuilder_ == null) {
mondayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder>(
getMonday(),
getParentForChildren(),
isClean());
monday_ = null;
}
return mondayBuilder_;
}
private com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes tuesday_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder> tuesdayBuilder_;
/**
* .flights.FlightTimes tuesday = 2;
* @return Whether the tuesday field is set.
*/
public boolean hasTuesday() {
return tuesdayBuilder_ != null || tuesday_ != null;
}
/**
* .flights.FlightTimes tuesday = 2;
* @return The tuesday.
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getTuesday() {
if (tuesdayBuilder_ == null) {
return tuesday_ == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : tuesday_;
} else {
return tuesdayBuilder_.getMessage();
}
}
/**
* .flights.FlightTimes tuesday = 2;
*/
public Builder setTuesday(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes value) {
if (tuesdayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tuesday_ = value;
onChanged();
} else {
tuesdayBuilder_.setMessage(value);
}
return this;
}
/**
* .flights.FlightTimes tuesday = 2;
*/
public Builder setTuesday(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder builderForValue) {
if (tuesdayBuilder_ == null) {
tuesday_ = builderForValue.build();
onChanged();
} else {
tuesdayBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flights.FlightTimes tuesday = 2;
*/
public Builder mergeTuesday(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes value) {
if (tuesdayBuilder_ == null) {
if (tuesday_ != null) {
tuesday_ =
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.newBuilder(tuesday_).mergeFrom(value).buildPartial();
} else {
tuesday_ = value;
}
onChanged();
} else {
tuesdayBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flights.FlightTimes tuesday = 2;
*/
public Builder clearTuesday() {
if (tuesdayBuilder_ == null) {
tuesday_ = null;
onChanged();
} else {
tuesday_ = null;
tuesdayBuilder_ = null;
}
return this;
}
/**
* .flights.FlightTimes tuesday = 2;
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder getTuesdayBuilder() {
onChanged();
return getTuesdayFieldBuilder().getBuilder();
}
/**
* .flights.FlightTimes tuesday = 2;
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getTuesdayOrBuilder() {
if (tuesdayBuilder_ != null) {
return tuesdayBuilder_.getMessageOrBuilder();
} else {
return tuesday_ == null ?
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : tuesday_;
}
}
/**
* .flights.FlightTimes tuesday = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder>
getTuesdayFieldBuilder() {
if (tuesdayBuilder_ == null) {
tuesdayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder>(
getTuesday(),
getParentForChildren(),
isClean());
tuesday_ = null;
}
return tuesdayBuilder_;
}
private com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes wednesday_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder> wednesdayBuilder_;
/**
* .flights.FlightTimes wednesday = 3;
* @return Whether the wednesday field is set.
*/
public boolean hasWednesday() {
return wednesdayBuilder_ != null || wednesday_ != null;
}
/**
* .flights.FlightTimes wednesday = 3;
* @return The wednesday.
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getWednesday() {
if (wednesdayBuilder_ == null) {
return wednesday_ == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : wednesday_;
} else {
return wednesdayBuilder_.getMessage();
}
}
/**
* .flights.FlightTimes wednesday = 3;
*/
public Builder setWednesday(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes value) {
if (wednesdayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
wednesday_ = value;
onChanged();
} else {
wednesdayBuilder_.setMessage(value);
}
return this;
}
/**
* .flights.FlightTimes wednesday = 3;
*/
public Builder setWednesday(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder builderForValue) {
if (wednesdayBuilder_ == null) {
wednesday_ = builderForValue.build();
onChanged();
} else {
wednesdayBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flights.FlightTimes wednesday = 3;
*/
public Builder mergeWednesday(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes value) {
if (wednesdayBuilder_ == null) {
if (wednesday_ != null) {
wednesday_ =
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.newBuilder(wednesday_).mergeFrom(value).buildPartial();
} else {
wednesday_ = value;
}
onChanged();
} else {
wednesdayBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flights.FlightTimes wednesday = 3;
*/
public Builder clearWednesday() {
if (wednesdayBuilder_ == null) {
wednesday_ = null;
onChanged();
} else {
wednesday_ = null;
wednesdayBuilder_ = null;
}
return this;
}
/**
* .flights.FlightTimes wednesday = 3;
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder getWednesdayBuilder() {
onChanged();
return getWednesdayFieldBuilder().getBuilder();
}
/**
* .flights.FlightTimes wednesday = 3;
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getWednesdayOrBuilder() {
if (wednesdayBuilder_ != null) {
return wednesdayBuilder_.getMessageOrBuilder();
} else {
return wednesday_ == null ?
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : wednesday_;
}
}
/**
* .flights.FlightTimes wednesday = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder>
getWednesdayFieldBuilder() {
if (wednesdayBuilder_ == null) {
wednesdayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder>(
getWednesday(),
getParentForChildren(),
isClean());
wednesday_ = null;
}
return wednesdayBuilder_;
}
private com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes thursday_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder> thursdayBuilder_;
/**
* .flights.FlightTimes thursday = 4;
* @return Whether the thursday field is set.
*/
public boolean hasThursday() {
return thursdayBuilder_ != null || thursday_ != null;
}
/**
* .flights.FlightTimes thursday = 4;
* @return The thursday.
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getThursday() {
if (thursdayBuilder_ == null) {
return thursday_ == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : thursday_;
} else {
return thursdayBuilder_.getMessage();
}
}
/**
* .flights.FlightTimes thursday = 4;
*/
public Builder setThursday(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes value) {
if (thursdayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
thursday_ = value;
onChanged();
} else {
thursdayBuilder_.setMessage(value);
}
return this;
}
/**
* .flights.FlightTimes thursday = 4;
*/
public Builder setThursday(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder builderForValue) {
if (thursdayBuilder_ == null) {
thursday_ = builderForValue.build();
onChanged();
} else {
thursdayBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flights.FlightTimes thursday = 4;
*/
public Builder mergeThursday(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes value) {
if (thursdayBuilder_ == null) {
if (thursday_ != null) {
thursday_ =
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.newBuilder(thursday_).mergeFrom(value).buildPartial();
} else {
thursday_ = value;
}
onChanged();
} else {
thursdayBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flights.FlightTimes thursday = 4;
*/
public Builder clearThursday() {
if (thursdayBuilder_ == null) {
thursday_ = null;
onChanged();
} else {
thursday_ = null;
thursdayBuilder_ = null;
}
return this;
}
/**
* .flights.FlightTimes thursday = 4;
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder getThursdayBuilder() {
onChanged();
return getThursdayFieldBuilder().getBuilder();
}
/**
* .flights.FlightTimes thursday = 4;
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getThursdayOrBuilder() {
if (thursdayBuilder_ != null) {
return thursdayBuilder_.getMessageOrBuilder();
} else {
return thursday_ == null ?
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : thursday_;
}
}
/**
* .flights.FlightTimes thursday = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder>
getThursdayFieldBuilder() {
if (thursdayBuilder_ == null) {
thursdayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder>(
getThursday(),
getParentForChildren(),
isClean());
thursday_ = null;
}
return thursdayBuilder_;
}
private com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes friday_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder> fridayBuilder_;
/**
* .flights.FlightTimes friday = 5;
* @return Whether the friday field is set.
*/
public boolean hasFriday() {
return fridayBuilder_ != null || friday_ != null;
}
/**
* .flights.FlightTimes friday = 5;
* @return The friday.
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getFriday() {
if (fridayBuilder_ == null) {
return friday_ == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : friday_;
} else {
return fridayBuilder_.getMessage();
}
}
/**
* .flights.FlightTimes friday = 5;
*/
public Builder setFriday(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes value) {
if (fridayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
friday_ = value;
onChanged();
} else {
fridayBuilder_.setMessage(value);
}
return this;
}
/**
* .flights.FlightTimes friday = 5;
*/
public Builder setFriday(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder builderForValue) {
if (fridayBuilder_ == null) {
friday_ = builderForValue.build();
onChanged();
} else {
fridayBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flights.FlightTimes friday = 5;
*/
public Builder mergeFriday(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes value) {
if (fridayBuilder_ == null) {
if (friday_ != null) {
friday_ =
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.newBuilder(friday_).mergeFrom(value).buildPartial();
} else {
friday_ = value;
}
onChanged();
} else {
fridayBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flights.FlightTimes friday = 5;
*/
public Builder clearFriday() {
if (fridayBuilder_ == null) {
friday_ = null;
onChanged();
} else {
friday_ = null;
fridayBuilder_ = null;
}
return this;
}
/**
* .flights.FlightTimes friday = 5;
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder getFridayBuilder() {
onChanged();
return getFridayFieldBuilder().getBuilder();
}
/**
* .flights.FlightTimes friday = 5;
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getFridayOrBuilder() {
if (fridayBuilder_ != null) {
return fridayBuilder_.getMessageOrBuilder();
} else {
return friday_ == null ?
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : friday_;
}
}
/**
* .flights.FlightTimes friday = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder>
getFridayFieldBuilder() {
if (fridayBuilder_ == null) {
fridayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder>(
getFriday(),
getParentForChildren(),
isClean());
friday_ = null;
}
return fridayBuilder_;
}
private com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes saturday_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder> saturdayBuilder_;
/**
* .flights.FlightTimes saturday = 6;
* @return Whether the saturday field is set.
*/
public boolean hasSaturday() {
return saturdayBuilder_ != null || saturday_ != null;
}
/**
* .flights.FlightTimes saturday = 6;
* @return The saturday.
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getSaturday() {
if (saturdayBuilder_ == null) {
return saturday_ == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : saturday_;
} else {
return saturdayBuilder_.getMessage();
}
}
/**
* .flights.FlightTimes saturday = 6;
*/
public Builder setSaturday(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes value) {
if (saturdayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
saturday_ = value;
onChanged();
} else {
saturdayBuilder_.setMessage(value);
}
return this;
}
/**
* .flights.FlightTimes saturday = 6;
*/
public Builder setSaturday(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder builderForValue) {
if (saturdayBuilder_ == null) {
saturday_ = builderForValue.build();
onChanged();
} else {
saturdayBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flights.FlightTimes saturday = 6;
*/
public Builder mergeSaturday(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes value) {
if (saturdayBuilder_ == null) {
if (saturday_ != null) {
saturday_ =
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.newBuilder(saturday_).mergeFrom(value).buildPartial();
} else {
saturday_ = value;
}
onChanged();
} else {
saturdayBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flights.FlightTimes saturday = 6;
*/
public Builder clearSaturday() {
if (saturdayBuilder_ == null) {
saturday_ = null;
onChanged();
} else {
saturday_ = null;
saturdayBuilder_ = null;
}
return this;
}
/**
* .flights.FlightTimes saturday = 6;
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder getSaturdayBuilder() {
onChanged();
return getSaturdayFieldBuilder().getBuilder();
}
/**
* .flights.FlightTimes saturday = 6;
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getSaturdayOrBuilder() {
if (saturdayBuilder_ != null) {
return saturdayBuilder_.getMessageOrBuilder();
} else {
return saturday_ == null ?
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : saturday_;
}
}
/**
* .flights.FlightTimes saturday = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder>
getSaturdayFieldBuilder() {
if (saturdayBuilder_ == null) {
saturdayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder>(
getSaturday(),
getParentForChildren(),
isClean());
saturday_ = null;
}
return saturdayBuilder_;
}
private com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes sunday_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder> sundayBuilder_;
/**
* .flights.FlightTimes sunday = 7;
* @return Whether the sunday field is set.
*/
public boolean hasSunday() {
return sundayBuilder_ != null || sunday_ != null;
}
/**
* .flights.FlightTimes sunday = 7;
* @return The sunday.
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getSunday() {
if (sundayBuilder_ == null) {
return sunday_ == null ? com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : sunday_;
} else {
return sundayBuilder_.getMessage();
}
}
/**
* .flights.FlightTimes sunday = 7;
*/
public Builder setSunday(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes value) {
if (sundayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sunday_ = value;
onChanged();
} else {
sundayBuilder_.setMessage(value);
}
return this;
}
/**
* .flights.FlightTimes sunday = 7;
*/
public Builder setSunday(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder builderForValue) {
if (sundayBuilder_ == null) {
sunday_ = builderForValue.build();
onChanged();
} else {
sundayBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flights.FlightTimes sunday = 7;
*/
public Builder mergeSunday(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes value) {
if (sundayBuilder_ == null) {
if (sunday_ != null) {
sunday_ =
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.newBuilder(sunday_).mergeFrom(value).buildPartial();
} else {
sunday_ = value;
}
onChanged();
} else {
sundayBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flights.FlightTimes sunday = 7;
*/
public Builder clearSunday() {
if (sundayBuilder_ == null) {
sunday_ = null;
onChanged();
} else {
sunday_ = null;
sundayBuilder_ = null;
}
return this;
}
/**
* .flights.FlightTimes sunday = 7;
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder getSundayBuilder() {
onChanged();
return getSundayFieldBuilder().getBuilder();
}
/**
* .flights.FlightTimes sunday = 7;
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder getSundayOrBuilder() {
if (sundayBuilder_ != null) {
return sundayBuilder_.getMessageOrBuilder();
} else {
return sunday_ == null ?
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance() : sunday_;
}
}
/**
* .flights.FlightTimes sunday = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder>
getSundayFieldBuilder() {
if (sundayBuilder_ == null) {
sundayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder>(
getSunday(),
getParentForChildren(),
isClean());
sunday_ = null;
}
return sundayBuilder_;
}
@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.FlightSchedule)
}
// @@protoc_insertion_point(class_scope:flights.FlightSchedule)
private static final com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule();
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightSchedule getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FlightSchedule parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FlightSchedule(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.FlightDesignatorOuterClass.FlightSchedule getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FlightTimesOrBuilder extends
// @@protoc_insertion_point(interface_extends:flights.FlightTimes)
com.google.protobuf.MessageOrBuilder {
/**
*
* The published departure time.
*
*
* .io.Time scheduledDepartureTime = 1;
* @return Whether the scheduledDepartureTime field is set.
*/
boolean hasScheduledDepartureTime();
/**
*
* The published departure time.
*
*
* .io.Time scheduledDepartureTime = 1;
* @return The scheduledDepartureTime.
*/
com.passkit.grpc.CommonObjects.Time getScheduledDepartureTime();
/**
*
* The published departure time.
*
*
* .io.Time scheduledDepartureTime = 1;
*/
com.passkit.grpc.CommonObjects.TimeOrBuilder getScheduledDepartureTimeOrBuilder();
/**
*
* The published boarding time.
*
*
* .io.Time boardingTime = 2;
* @return Whether the boardingTime field is set.
*/
boolean hasBoardingTime();
/**
*
* The published boarding time.
*
*
* .io.Time boardingTime = 2;
* @return The boardingTime.
*/
com.passkit.grpc.CommonObjects.Time getBoardingTime();
/**
*
* The published boarding time.
*
*
* .io.Time boardingTime = 2;
*/
com.passkit.grpc.CommonObjects.TimeOrBuilder getBoardingTimeOrBuilder();
/**
*
* The point after which passengers will be denied boarding.
*
*
* .io.Time gateClosingTime = 3;
* @return Whether the gateClosingTime field is set.
*/
boolean hasGateClosingTime();
/**
*
* The point after which passengers will be denied boarding.
*
*
* .io.Time gateClosingTime = 3;
* @return The gateClosingTime.
*/
com.passkit.grpc.CommonObjects.Time getGateClosingTime();
/**
*
* The point after which passengers will be denied boarding.
*
*
* .io.Time gateClosingTime = 3;
*/
com.passkit.grpc.CommonObjects.TimeOrBuilder getGateClosingTimeOrBuilder();
/**
*
* The published, scheduled arrival time.
*
*
* .io.Time scheduledArrivalTime = 4;
* @return Whether the scheduledArrivalTime field is set.
*/
boolean hasScheduledArrivalTime();
/**
*
* The published, scheduled arrival time.
*
*
* .io.Time scheduledArrivalTime = 4;
* @return The scheduledArrivalTime.
*/
com.passkit.grpc.CommonObjects.Time getScheduledArrivalTime();
/**
*
* The published, scheduled arrival time.
*
*
* .io.Time scheduledArrivalTime = 4;
*/
com.passkit.grpc.CommonObjects.TimeOrBuilder getScheduledArrivalTimeOrBuilder();
}
/**
* Protobuf type {@code flights.FlightTimes}
*/
public static final class FlightTimes extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flights.FlightTimes)
FlightTimesOrBuilder {
private static final long serialVersionUID = 0L;
// Use FlightTimes.newBuilder() to construct.
private FlightTimes(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FlightTimes() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FlightTimes();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FlightTimes(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.passkit.grpc.CommonObjects.Time.Builder subBuilder = null;
if (scheduledDepartureTime_ != null) {
subBuilder = scheduledDepartureTime_.toBuilder();
}
scheduledDepartureTime_ = input.readMessage(com.passkit.grpc.CommonObjects.Time.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scheduledDepartureTime_);
scheduledDepartureTime_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.passkit.grpc.CommonObjects.Time.Builder subBuilder = null;
if (boardingTime_ != null) {
subBuilder = boardingTime_.toBuilder();
}
boardingTime_ = input.readMessage(com.passkit.grpc.CommonObjects.Time.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(boardingTime_);
boardingTime_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.passkit.grpc.CommonObjects.Time.Builder subBuilder = null;
if (gateClosingTime_ != null) {
subBuilder = gateClosingTime_.toBuilder();
}
gateClosingTime_ = input.readMessage(com.passkit.grpc.CommonObjects.Time.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(gateClosingTime_);
gateClosingTime_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.passkit.grpc.CommonObjects.Time.Builder subBuilder = null;
if (scheduledArrivalTime_ != null) {
subBuilder = scheduledArrivalTime_.toBuilder();
}
scheduledArrivalTime_ = input.readMessage(com.passkit.grpc.CommonObjects.Time.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scheduledArrivalTime_);
scheduledArrivalTime_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightTimes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightTimes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.class, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder.class);
}
public static final int SCHEDULEDDEPARTURETIME_FIELD_NUMBER = 1;
private com.passkit.grpc.CommonObjects.Time scheduledDepartureTime_;
/**
*
* The published departure time.
*
*
* .io.Time scheduledDepartureTime = 1;
* @return Whether the scheduledDepartureTime field is set.
*/
@java.lang.Override
public boolean hasScheduledDepartureTime() {
return scheduledDepartureTime_ != null;
}
/**
*
* The published departure time.
*
*
* .io.Time scheduledDepartureTime = 1;
* @return The scheduledDepartureTime.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.Time getScheduledDepartureTime() {
return scheduledDepartureTime_ == null ? com.passkit.grpc.CommonObjects.Time.getDefaultInstance() : scheduledDepartureTime_;
}
/**
*
* The published departure time.
*
*
* .io.Time scheduledDepartureTime = 1;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.TimeOrBuilder getScheduledDepartureTimeOrBuilder() {
return getScheduledDepartureTime();
}
public static final int BOARDINGTIME_FIELD_NUMBER = 2;
private com.passkit.grpc.CommonObjects.Time boardingTime_;
/**
*
* The published boarding time.
*
*
* .io.Time boardingTime = 2;
* @return Whether the boardingTime field is set.
*/
@java.lang.Override
public boolean hasBoardingTime() {
return boardingTime_ != null;
}
/**
*
* The published boarding time.
*
*
* .io.Time boardingTime = 2;
* @return The boardingTime.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.Time getBoardingTime() {
return boardingTime_ == null ? com.passkit.grpc.CommonObjects.Time.getDefaultInstance() : boardingTime_;
}
/**
*
* The published boarding time.
*
*
* .io.Time boardingTime = 2;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.TimeOrBuilder getBoardingTimeOrBuilder() {
return getBoardingTime();
}
public static final int GATECLOSINGTIME_FIELD_NUMBER = 3;
private com.passkit.grpc.CommonObjects.Time gateClosingTime_;
/**
*
* The point after which passengers will be denied boarding.
*
*
* .io.Time gateClosingTime = 3;
* @return Whether the gateClosingTime field is set.
*/
@java.lang.Override
public boolean hasGateClosingTime() {
return gateClosingTime_ != null;
}
/**
*
* The point after which passengers will be denied boarding.
*
*
* .io.Time gateClosingTime = 3;
* @return The gateClosingTime.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.Time getGateClosingTime() {
return gateClosingTime_ == null ? com.passkit.grpc.CommonObjects.Time.getDefaultInstance() : gateClosingTime_;
}
/**
*
* The point after which passengers will be denied boarding.
*
*
* .io.Time gateClosingTime = 3;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.TimeOrBuilder getGateClosingTimeOrBuilder() {
return getGateClosingTime();
}
public static final int SCHEDULEDARRIVALTIME_FIELD_NUMBER = 4;
private com.passkit.grpc.CommonObjects.Time scheduledArrivalTime_;
/**
*
* The published, scheduled arrival time.
*
*
* .io.Time scheduledArrivalTime = 4;
* @return Whether the scheduledArrivalTime field is set.
*/
@java.lang.Override
public boolean hasScheduledArrivalTime() {
return scheduledArrivalTime_ != null;
}
/**
*
* The published, scheduled arrival time.
*
*
* .io.Time scheduledArrivalTime = 4;
* @return The scheduledArrivalTime.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.Time getScheduledArrivalTime() {
return scheduledArrivalTime_ == null ? com.passkit.grpc.CommonObjects.Time.getDefaultInstance() : scheduledArrivalTime_;
}
/**
*
* The published, scheduled arrival time.
*
*
* .io.Time scheduledArrivalTime = 4;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.TimeOrBuilder getScheduledArrivalTimeOrBuilder() {
return getScheduledArrivalTime();
}
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 (scheduledDepartureTime_ != null) {
output.writeMessage(1, getScheduledDepartureTime());
}
if (boardingTime_ != null) {
output.writeMessage(2, getBoardingTime());
}
if (gateClosingTime_ != null) {
output.writeMessage(3, getGateClosingTime());
}
if (scheduledArrivalTime_ != null) {
output.writeMessage(4, getScheduledArrivalTime());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (scheduledDepartureTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getScheduledDepartureTime());
}
if (boardingTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBoardingTime());
}
if (gateClosingTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getGateClosingTime());
}
if (scheduledArrivalTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getScheduledArrivalTime());
}
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.FlightDesignatorOuterClass.FlightTimes)) {
return super.equals(obj);
}
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes other = (com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes) obj;
if (hasScheduledDepartureTime() != other.hasScheduledDepartureTime()) return false;
if (hasScheduledDepartureTime()) {
if (!getScheduledDepartureTime()
.equals(other.getScheduledDepartureTime())) 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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasScheduledDepartureTime()) {
hash = (37 * hash) + SCHEDULEDDEPARTURETIME_FIELD_NUMBER;
hash = (53 * hash) + getScheduledDepartureTime().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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes 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.FlightDesignatorOuterClass.FlightTimes parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes 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.FlightDesignatorOuterClass.FlightTimes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes 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.FlightDesignatorOuterClass.FlightTimes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes 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.FlightDesignatorOuterClass.FlightTimes parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes 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.FlightDesignatorOuterClass.FlightTimes 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.FlightTimes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flights.FlightTimes)
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightTimes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightTimes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.class, com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.Builder.class);
}
// Construct using com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (scheduledDepartureTimeBuilder_ == null) {
scheduledDepartureTime_ = null;
} else {
scheduledDepartureTime_ = null;
scheduledDepartureTimeBuilder_ = 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;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.internal_static_flights_FlightTimes_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getDefaultInstanceForType() {
return com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes build() {
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes buildPartial() {
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes result = new com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes(this);
if (scheduledDepartureTimeBuilder_ == null) {
result.scheduledDepartureTime_ = scheduledDepartureTime_;
} else {
result.scheduledDepartureTime_ = scheduledDepartureTimeBuilder_.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();
}
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.FlightDesignatorOuterClass.FlightTimes) {
return mergeFrom((com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes other) {
if (other == com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes.getDefaultInstance()) return this;
if (other.hasScheduledDepartureTime()) {
mergeScheduledDepartureTime(other.getScheduledDepartureTime());
}
if (other.hasBoardingTime()) {
mergeBoardingTime(other.getBoardingTime());
}
if (other.hasGateClosingTime()) {
mergeGateClosingTime(other.getGateClosingTime());
}
if (other.hasScheduledArrivalTime()) {
mergeScheduledArrivalTime(other.getScheduledArrivalTime());
}
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.FlightDesignatorOuterClass.FlightTimes parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.passkit.grpc.CommonObjects.Time scheduledDepartureTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Time, com.passkit.grpc.CommonObjects.Time.Builder, com.passkit.grpc.CommonObjects.TimeOrBuilder> scheduledDepartureTimeBuilder_;
/**
*
* The published departure time.
*
*
* .io.Time scheduledDepartureTime = 1;
* @return Whether the scheduledDepartureTime field is set.
*/
public boolean hasScheduledDepartureTime() {
return scheduledDepartureTimeBuilder_ != null || scheduledDepartureTime_ != null;
}
/**
*
* The published departure time.
*
*
* .io.Time scheduledDepartureTime = 1;
* @return The scheduledDepartureTime.
*/
public com.passkit.grpc.CommonObjects.Time getScheduledDepartureTime() {
if (scheduledDepartureTimeBuilder_ == null) {
return scheduledDepartureTime_ == null ? com.passkit.grpc.CommonObjects.Time.getDefaultInstance() : scheduledDepartureTime_;
} else {
return scheduledDepartureTimeBuilder_.getMessage();
}
}
/**
*
* The published departure time.
*
*
* .io.Time scheduledDepartureTime = 1;
*/
public Builder setScheduledDepartureTime(com.passkit.grpc.CommonObjects.Time value) {
if (scheduledDepartureTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduledDepartureTime_ = value;
onChanged();
} else {
scheduledDepartureTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The published departure time.
*
*
* .io.Time scheduledDepartureTime = 1;
*/
public Builder setScheduledDepartureTime(
com.passkit.grpc.CommonObjects.Time.Builder builderForValue) {
if (scheduledDepartureTimeBuilder_ == null) {
scheduledDepartureTime_ = builderForValue.build();
onChanged();
} else {
scheduledDepartureTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The published departure time.
*
*
* .io.Time scheduledDepartureTime = 1;
*/
public Builder mergeScheduledDepartureTime(com.passkit.grpc.CommonObjects.Time value) {
if (scheduledDepartureTimeBuilder_ == null) {
if (scheduledDepartureTime_ != null) {
scheduledDepartureTime_ =
com.passkit.grpc.CommonObjects.Time.newBuilder(scheduledDepartureTime_).mergeFrom(value).buildPartial();
} else {
scheduledDepartureTime_ = value;
}
onChanged();
} else {
scheduledDepartureTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The published departure time.
*
*
* .io.Time scheduledDepartureTime = 1;
*/
public Builder clearScheduledDepartureTime() {
if (scheduledDepartureTimeBuilder_ == null) {
scheduledDepartureTime_ = null;
onChanged();
} else {
scheduledDepartureTime_ = null;
scheduledDepartureTimeBuilder_ = null;
}
return this;
}
/**
*
* The published departure time.
*
*
* .io.Time scheduledDepartureTime = 1;
*/
public com.passkit.grpc.CommonObjects.Time.Builder getScheduledDepartureTimeBuilder() {
onChanged();
return getScheduledDepartureTimeFieldBuilder().getBuilder();
}
/**
*
* The published departure time.
*
*
* .io.Time scheduledDepartureTime = 1;
*/
public com.passkit.grpc.CommonObjects.TimeOrBuilder getScheduledDepartureTimeOrBuilder() {
if (scheduledDepartureTimeBuilder_ != null) {
return scheduledDepartureTimeBuilder_.getMessageOrBuilder();
} else {
return scheduledDepartureTime_ == null ?
com.passkit.grpc.CommonObjects.Time.getDefaultInstance() : scheduledDepartureTime_;
}
}
/**
*
* The published departure time.
*
*
* .io.Time scheduledDepartureTime = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Time, com.passkit.grpc.CommonObjects.Time.Builder, com.passkit.grpc.CommonObjects.TimeOrBuilder>
getScheduledDepartureTimeFieldBuilder() {
if (scheduledDepartureTimeBuilder_ == null) {
scheduledDepartureTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Time, com.passkit.grpc.CommonObjects.Time.Builder, com.passkit.grpc.CommonObjects.TimeOrBuilder>(
getScheduledDepartureTime(),
getParentForChildren(),
isClean());
scheduledDepartureTime_ = null;
}
return scheduledDepartureTimeBuilder_;
}
private com.passkit.grpc.CommonObjects.Time boardingTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Time, com.passkit.grpc.CommonObjects.Time.Builder, com.passkit.grpc.CommonObjects.TimeOrBuilder> boardingTimeBuilder_;
/**
*
* The published boarding time.
*
*
* .io.Time boardingTime = 2;
* @return Whether the boardingTime field is set.
*/
public boolean hasBoardingTime() {
return boardingTimeBuilder_ != null || boardingTime_ != null;
}
/**
*
* The published boarding time.
*
*
* .io.Time boardingTime = 2;
* @return The boardingTime.
*/
public com.passkit.grpc.CommonObjects.Time getBoardingTime() {
if (boardingTimeBuilder_ == null) {
return boardingTime_ == null ? com.passkit.grpc.CommonObjects.Time.getDefaultInstance() : boardingTime_;
} else {
return boardingTimeBuilder_.getMessage();
}
}
/**
*
* The published boarding time.
*
*
* .io.Time boardingTime = 2;
*/
public Builder setBoardingTime(com.passkit.grpc.CommonObjects.Time value) {
if (boardingTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
boardingTime_ = value;
onChanged();
} else {
boardingTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The published boarding time.
*
*
* .io.Time boardingTime = 2;
*/
public Builder setBoardingTime(
com.passkit.grpc.CommonObjects.Time.Builder builderForValue) {
if (boardingTimeBuilder_ == null) {
boardingTime_ = builderForValue.build();
onChanged();
} else {
boardingTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The published boarding time.
*
*
* .io.Time boardingTime = 2;
*/
public Builder mergeBoardingTime(com.passkit.grpc.CommonObjects.Time value) {
if (boardingTimeBuilder_ == null) {
if (boardingTime_ != null) {
boardingTime_ =
com.passkit.grpc.CommonObjects.Time.newBuilder(boardingTime_).mergeFrom(value).buildPartial();
} else {
boardingTime_ = value;
}
onChanged();
} else {
boardingTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The published boarding time.
*
*
* .io.Time boardingTime = 2;
*/
public Builder clearBoardingTime() {
if (boardingTimeBuilder_ == null) {
boardingTime_ = null;
onChanged();
} else {
boardingTime_ = null;
boardingTimeBuilder_ = null;
}
return this;
}
/**
*
* The published boarding time.
*
*
* .io.Time boardingTime = 2;
*/
public com.passkit.grpc.CommonObjects.Time.Builder getBoardingTimeBuilder() {
onChanged();
return getBoardingTimeFieldBuilder().getBuilder();
}
/**
*
* The published boarding time.
*
*
* .io.Time boardingTime = 2;
*/
public com.passkit.grpc.CommonObjects.TimeOrBuilder getBoardingTimeOrBuilder() {
if (boardingTimeBuilder_ != null) {
return boardingTimeBuilder_.getMessageOrBuilder();
} else {
return boardingTime_ == null ?
com.passkit.grpc.CommonObjects.Time.getDefaultInstance() : boardingTime_;
}
}
/**
*
* The published boarding time.
*
*
* .io.Time boardingTime = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Time, com.passkit.grpc.CommonObjects.Time.Builder, com.passkit.grpc.CommonObjects.TimeOrBuilder>
getBoardingTimeFieldBuilder() {
if (boardingTimeBuilder_ == null) {
boardingTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Time, com.passkit.grpc.CommonObjects.Time.Builder, com.passkit.grpc.CommonObjects.TimeOrBuilder>(
getBoardingTime(),
getParentForChildren(),
isClean());
boardingTime_ = null;
}
return boardingTimeBuilder_;
}
private com.passkit.grpc.CommonObjects.Time gateClosingTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Time, com.passkit.grpc.CommonObjects.Time.Builder, com.passkit.grpc.CommonObjects.TimeOrBuilder> gateClosingTimeBuilder_;
/**
*
* The point after which passengers will be denied boarding.
*
*
* .io.Time gateClosingTime = 3;
* @return Whether the gateClosingTime field is set.
*/
public boolean hasGateClosingTime() {
return gateClosingTimeBuilder_ != null || gateClosingTime_ != null;
}
/**
*
* The point after which passengers will be denied boarding.
*
*
* .io.Time gateClosingTime = 3;
* @return The gateClosingTime.
*/
public com.passkit.grpc.CommonObjects.Time getGateClosingTime() {
if (gateClosingTimeBuilder_ == null) {
return gateClosingTime_ == null ? com.passkit.grpc.CommonObjects.Time.getDefaultInstance() : gateClosingTime_;
} else {
return gateClosingTimeBuilder_.getMessage();
}
}
/**
*
* The point after which passengers will be denied boarding.
*
*
* .io.Time gateClosingTime = 3;
*/
public Builder setGateClosingTime(com.passkit.grpc.CommonObjects.Time value) {
if (gateClosingTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
gateClosingTime_ = value;
onChanged();
} else {
gateClosingTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The point after which passengers will be denied boarding.
*
*
* .io.Time gateClosingTime = 3;
*/
public Builder setGateClosingTime(
com.passkit.grpc.CommonObjects.Time.Builder builderForValue) {
if (gateClosingTimeBuilder_ == null) {
gateClosingTime_ = builderForValue.build();
onChanged();
} else {
gateClosingTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The point after which passengers will be denied boarding.
*
*
* .io.Time gateClosingTime = 3;
*/
public Builder mergeGateClosingTime(com.passkit.grpc.CommonObjects.Time value) {
if (gateClosingTimeBuilder_ == null) {
if (gateClosingTime_ != null) {
gateClosingTime_ =
com.passkit.grpc.CommonObjects.Time.newBuilder(gateClosingTime_).mergeFrom(value).buildPartial();
} else {
gateClosingTime_ = value;
}
onChanged();
} else {
gateClosingTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The point after which passengers will be denied boarding.
*
*
* .io.Time gateClosingTime = 3;
*/
public Builder clearGateClosingTime() {
if (gateClosingTimeBuilder_ == null) {
gateClosingTime_ = null;
onChanged();
} else {
gateClosingTime_ = null;
gateClosingTimeBuilder_ = null;
}
return this;
}
/**
*
* The point after which passengers will be denied boarding.
*
*
* .io.Time gateClosingTime = 3;
*/
public com.passkit.grpc.CommonObjects.Time.Builder getGateClosingTimeBuilder() {
onChanged();
return getGateClosingTimeFieldBuilder().getBuilder();
}
/**
*
* The point after which passengers will be denied boarding.
*
*
* .io.Time gateClosingTime = 3;
*/
public com.passkit.grpc.CommonObjects.TimeOrBuilder getGateClosingTimeOrBuilder() {
if (gateClosingTimeBuilder_ != null) {
return gateClosingTimeBuilder_.getMessageOrBuilder();
} else {
return gateClosingTime_ == null ?
com.passkit.grpc.CommonObjects.Time.getDefaultInstance() : gateClosingTime_;
}
}
/**
*
* The point after which passengers will be denied boarding.
*
*
* .io.Time gateClosingTime = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Time, com.passkit.grpc.CommonObjects.Time.Builder, com.passkit.grpc.CommonObjects.TimeOrBuilder>
getGateClosingTimeFieldBuilder() {
if (gateClosingTimeBuilder_ == null) {
gateClosingTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Time, com.passkit.grpc.CommonObjects.Time.Builder, com.passkit.grpc.CommonObjects.TimeOrBuilder>(
getGateClosingTime(),
getParentForChildren(),
isClean());
gateClosingTime_ = null;
}
return gateClosingTimeBuilder_;
}
private com.passkit.grpc.CommonObjects.Time scheduledArrivalTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Time, com.passkit.grpc.CommonObjects.Time.Builder, com.passkit.grpc.CommonObjects.TimeOrBuilder> scheduledArrivalTimeBuilder_;
/**
*
* The published, scheduled arrival time.
*
*
* .io.Time scheduledArrivalTime = 4;
* @return Whether the scheduledArrivalTime field is set.
*/
public boolean hasScheduledArrivalTime() {
return scheduledArrivalTimeBuilder_ != null || scheduledArrivalTime_ != null;
}
/**
*
* The published, scheduled arrival time.
*
*
* .io.Time scheduledArrivalTime = 4;
* @return The scheduledArrivalTime.
*/
public com.passkit.grpc.CommonObjects.Time getScheduledArrivalTime() {
if (scheduledArrivalTimeBuilder_ == null) {
return scheduledArrivalTime_ == null ? com.passkit.grpc.CommonObjects.Time.getDefaultInstance() : scheduledArrivalTime_;
} else {
return scheduledArrivalTimeBuilder_.getMessage();
}
}
/**
*
* The published, scheduled arrival time.
*
*
* .io.Time scheduledArrivalTime = 4;
*/
public Builder setScheduledArrivalTime(com.passkit.grpc.CommonObjects.Time value) {
if (scheduledArrivalTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduledArrivalTime_ = value;
onChanged();
} else {
scheduledArrivalTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The published, scheduled arrival time.
*
*
* .io.Time scheduledArrivalTime = 4;
*/
public Builder setScheduledArrivalTime(
com.passkit.grpc.CommonObjects.Time.Builder builderForValue) {
if (scheduledArrivalTimeBuilder_ == null) {
scheduledArrivalTime_ = builderForValue.build();
onChanged();
} else {
scheduledArrivalTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The published, scheduled arrival time.
*
*
* .io.Time scheduledArrivalTime = 4;
*/
public Builder mergeScheduledArrivalTime(com.passkit.grpc.CommonObjects.Time value) {
if (scheduledArrivalTimeBuilder_ == null) {
if (scheduledArrivalTime_ != null) {
scheduledArrivalTime_ =
com.passkit.grpc.CommonObjects.Time.newBuilder(scheduledArrivalTime_).mergeFrom(value).buildPartial();
} else {
scheduledArrivalTime_ = value;
}
onChanged();
} else {
scheduledArrivalTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The published, scheduled arrival time.
*
*
* .io.Time scheduledArrivalTime = 4;
*/
public Builder clearScheduledArrivalTime() {
if (scheduledArrivalTimeBuilder_ == null) {
scheduledArrivalTime_ = null;
onChanged();
} else {
scheduledArrivalTime_ = null;
scheduledArrivalTimeBuilder_ = null;
}
return this;
}
/**
*
* The published, scheduled arrival time.
*
*
* .io.Time scheduledArrivalTime = 4;
*/
public com.passkit.grpc.CommonObjects.Time.Builder getScheduledArrivalTimeBuilder() {
onChanged();
return getScheduledArrivalTimeFieldBuilder().getBuilder();
}
/**
*
* The published, scheduled arrival time.
*
*
* .io.Time scheduledArrivalTime = 4;
*/
public com.passkit.grpc.CommonObjects.TimeOrBuilder getScheduledArrivalTimeOrBuilder() {
if (scheduledArrivalTimeBuilder_ != null) {
return scheduledArrivalTimeBuilder_.getMessageOrBuilder();
} else {
return scheduledArrivalTime_ == null ?
com.passkit.grpc.CommonObjects.Time.getDefaultInstance() : scheduledArrivalTime_;
}
}
/**
*
* The published, scheduled arrival time.
*
*
* .io.Time scheduledArrivalTime = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Time, com.passkit.grpc.CommonObjects.Time.Builder, com.passkit.grpc.CommonObjects.TimeOrBuilder>
getScheduledArrivalTimeFieldBuilder() {
if (scheduledArrivalTimeBuilder_ == null) {
scheduledArrivalTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Time, com.passkit.grpc.CommonObjects.Time.Builder, com.passkit.grpc.CommonObjects.TimeOrBuilder>(
getScheduledArrivalTime(),
getParentForChildren(),
isClean());
scheduledArrivalTime_ = null;
}
return scheduledArrivalTimeBuilder_;
}
@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.FlightTimes)
}
// @@protoc_insertion_point(class_scope:flights.FlightTimes)
private static final com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes();
}
public static com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightTimes getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FlightTimes parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FlightTimes(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.FlightDesignatorOuterClass.FlightTimes getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flights_FlightDesignator_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flights_FlightDesignator_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flights_FlightDesignatorRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flights_FlightDesignatorRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flights_FlightSchedule_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flights_FlightSchedule_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flights_FlightTimes_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flights_FlightTimes_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\"io/flights/flight_designator.proto\022\007fl" +
"ights\032\036io/common/common_objects.proto\032\031i" +
"o/common/proximity.proto\032\025io/common/link" +
"s.proto\032.protoc-gen-openapiv2/options/an" +
"notations.proto\"\204\t\n\020FlightDesignator\022*\n\013" +
"carrierCode\030\001 \001(\tB\025\222A\022\212\001\017^[A-Z0-9]{3,4}$" +
"\022\033\n\014flightNumber\030\002 \001(\tB\005\222A\002x\005\022\033\n\tvalidFr" +
"om\030\003 \001(\0132\010.io.Date\022\020\n\010revision\030\004 \001(\r\022\031\n\006" +
"active\030\005 \001(\010B\t\222A\006:\004TRUE\022)\n\010schedule\030\006 \001(" +
"\0132\027.flights.FlightSchedule\022&\n\024operatingC" +
"arrierCode\030\007 \001(\tB\010\222A\005x\003\200\001\002\022$\n\025operatingF" +
"lightNumber\030\010 \001(\tB\005\222A\002x\005\022\036\n\026codeShareFli" +
"ghtNumbers\030\t \003(\t\022\016\n\006origin\030\n \001(\t\022\023\n\013dest" +
"ination\030\013 \001(\t\022\025\n\rtransitPoints\030\014 \003(\t\022\031\n\021" +
"departureTerminal\030\r \001(\t\022\027\n\017arrivalTermin" +
"al\030\016 \001(\t\022\030\n\020transitTerminals\030\017 \003(\t\022/\n\016bo" +
"ardingPolicy\030\020 \001(\0162\027.flights.BoardingPol" +
"icy\0221\n\017seatClassPolicy\030\021 \001(\0162\030.flights.S" +
"eatClassPolicy\022%\n\006alerts\030\022 \003(\0162\025.flights" +
".FlightAlerts\022\026\n\016passTemplateId\030\023 \001(\t\022&\n" +
"\023autoInvalidateAfter\030\024 \001(\rB\t\222A\006:\0042880\022)\n" +
"\035autoInvalidateCancelledPasses\030\025 \001(\010B\002\030\001" +
"\0221\n\020locationMessages\030\026 \003(\0132\017.io.GPSLocat" +
"ionB\006\222A\003\240\001\n\022*\n\016beaconMessages\030\027 \003(\0132\n.io" +
".BeaconB\006\222A\003\240\001\n\022\036\n\014defaultLinks\030\030 \003(\0132\010." +
"io.Link\022\030\n\020ConditionalItems\030\031 \001(\010\022\035\n\025Bar" +
"codeAdditionalData\030\032 \001(\t\0228\n\031invalidateCa" +
"ncelledPasses\030\033 \001(\0162\n.io.ToggleB\t\222A\006:\004TR" +
"UE:\321\001\222A\315\001\n\312\001*\021Flight Designator2ZA fligh" +
"t designator record describes mostly sta" +
"tic data with regard to a flight operati" +
"on.\322\001\013carrierCode\322\001\014flightNumber\322\001\006origi" +
"n\322\001\010schedule\322\001\010revision\322\001\013destination\322\001\016" +
"passTemplateId\"\346\001\n\027FlightDesignatorReque" +
"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\020\n\010revision\030\003 \001(\r" +
":}\222Az\nx*\031Flight Designator Request2>Used" +
" for retrieving details of a particular " +
"flight designator.\322\001\013carrierCode\322\001\014fligh" +
"tNumber\"\242\002\n\016FlightSchedule\022$\n\006monday\030\001 \001" +
"(\0132\024.flights.FlightTimes\022%\n\007tuesday\030\002 \001(" +
"\0132\024.flights.FlightTimes\022\'\n\twednesday\030\003 \001" +
"(\0132\024.flights.FlightTimes\022&\n\010thursday\030\004 \001" +
"(\0132\024.flights.FlightTimes\022$\n\006friday\030\005 \001(\013" +
"2\024.flights.FlightTimes\022&\n\010saturday\030\006 \001(\013" +
"2\024.flights.FlightTimes\022$\n\006sunday\030\007 \001(\0132\024" +
".flights.FlightTimes\"\242\001\n\013FlightTimes\022(\n\026" +
"scheduledDepartureTime\030\001 \001(\0132\010.io.Time\022\036" +
"\n\014boardingTime\030\002 \001(\0132\010.io.Time\022!\n\017gateCl" +
"osingTime\030\003 \001(\0132\010.io.Time\022&\n\024scheduledAr" +
"rivalTime\030\004 \001(\0132\010.io.Time*\251\001\n\014FlightAler" +
"ts\022\r\n\tNO_ALERTS\020\000\022\016\n\nALL_ALERTS\020\001\022\030\n\024DEP" +
"ARTURE_GATE_ALERT\020\002\022\030\n\024DEPARTURE_TIME_AL" +
"ERT\020\004\022\026\n\022ARRIVAL_GATE_ALERT\020\010\022\026\n\022ARRIVAL" +
"_TIME_ALERT\020\020\022\026\n\022BAGGAGE_BELT_ALERT\020 *m\n" +
"\016BoardingPolicy\022\037\n\033BOARDING_POLICY_UNSPE" +
"CIFIED\020\000\022\016\n\nZONE_BASED\020\001\022\017\n\013GROUP_BASED\020" +
"\002\022\031\n\025BOARDING_POLICY_OTHER\020\003*\203\001\n\017SeatCla" +
"ssPolicy\022!\n\035SEAT_CLASS_POLICY_UNSPECIFIE" +
"D\020\000\022\017\n\013CABIN_BASED\020\001\022\017\n\013CLASS_BASED\020\002\022\016\n" +
"\nTIER_BASED\020\003\022\033\n\027SEAT_CLASS_POLICY_OTHER" +
"\020\004*\037\n\tAuthority\022\010\n\004IATA\020\000\022\010\n\004ICAO\020\001B_\n\030c" +
"om.passkit.grpc.FlightsZ,stash.passkit.c" +
"om/io/model/sdk/go/io/flights\252\002\024PassKit." +
"Grpc.Flightsb\006proto3"
};
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(),
grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(),
});
internal_static_flights_FlightDesignator_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_flights_FlightDesignator_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flights_FlightDesignator_descriptor,
new java.lang.String[] { "CarrierCode", "FlightNumber", "ValidFrom", "Revision", "Active", "Schedule", "OperatingCarrierCode", "OperatingFlightNumber", "CodeShareFlightNumbers", "Origin", "Destination", "TransitPoints", "DepartureTerminal", "ArrivalTerminal", "TransitTerminals", "BoardingPolicy", "SeatClassPolicy", "Alerts", "PassTemplateId", "AutoInvalidateAfter", "AutoInvalidateCancelledPasses", "LocationMessages", "BeaconMessages", "DefaultLinks", "ConditionalItems", "BarcodeAdditionalData", "InvalidateCancelledPasses", });
internal_static_flights_FlightDesignatorRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_flights_FlightDesignatorRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flights_FlightDesignatorRequest_descriptor,
new java.lang.String[] { "CarrierCode", "FlightNumber", "Revision", });
internal_static_flights_FlightSchedule_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_flights_FlightSchedule_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flights_FlightSchedule_descriptor,
new java.lang.String[] { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday", });
internal_static_flights_FlightTimes_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_flights_FlightTimes_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flights_FlightTimes_descriptor,
new java.lang.String[] { "ScheduledDepartureTime", "BoardingTime", "GateClosingTime", "ScheduledArrivalTime", });
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();
grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}