All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.passkit.grpc.Flights.BoardingPass Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.1.97
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: io/flights/boarding_pass.proto

package com.passkit.grpc.Flights;

public final class BoardingPass {
  private BoardingPass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface BoardingPassRecordOrBuilder extends
      // @@protoc_insertion_point(interface_extends:flights.BoardingPassRecord)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Id assigned by PassKit to represent the boarding pass record. It will be used as the serial number in Apple Wallet and as the Object identifier for Google Wallet. This field is not writable.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * Id assigned by PassKit to represent the boarding pass record. It will be used as the serial number in Apple Wallet and as the Object identifier for Google Wallet. This field is not writable.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * PNR code of the carrier operating the flight, independent of code-share, lease or other issues.
     * 
* * string operatingCarrierPNR = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The operatingCarrierPNR. */ java.lang.String getOperatingCarrierPNR(); /** *
     * PNR code of the carrier operating the flight, independent of code-share, lease or other issues.
     * 
* * string operatingCarrierPNR = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for operatingCarrierPNR. */ com.google.protobuf.ByteString getOperatingCarrierPNRBytes(); /** *
     * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
     * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return A list containing the relatedPNRs. */ java.util.List getRelatedPNRsList(); /** *
     * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
     * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The count of relatedPNRs. */ int getRelatedPNRsCount(); /** *
     * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
     * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param index The index of the element to return. * @return The relatedPNRs at the given index. */ java.lang.String getRelatedPNRs(int index); /** *
     * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
     * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param index The index of the value to return. * @return The bytes of the relatedPNRs at the given index. */ com.google.protobuf.ByteString getRelatedPNRsBytes(int index); /** *
     * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
     * 
* * string ticketNumber = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The ticketNumber. */ java.lang.String getTicketNumber(); /** *
     * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
     * 
* * string ticketNumber = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for ticketNumber. */ com.google.protobuf.ByteString getTicketNumberBytes(); /** *
     * The leg of the ticketed journey. For a return flight, the outbound flight would be leg 1 and the inbound flight would be leg 2.  For Direct flights, a ticketed leg includes all stops between the boarding point and deplaning point. Leg cannot be zero and ticket/leg combination cannot already exist for a 'create' call.
     * 
* * int32 ticketLeg = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The ticketLeg. */ int getTicketLeg(); /** *
     * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
     * 
* * string boardingPoint = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The boardingPoint. */ java.lang.String getBoardingPoint(); /** *
     * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
     * 
* * string boardingPoint = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for boardingPoint. */ com.google.protobuf.ByteString getBoardingPointBytes(); /** *
     * 3 letter IATA code or 4 letter ICAO code of the passenger deplaning point.
     * 
* * string deplaningPoint = 7 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The deplaningPoint. */ java.lang.String getDeplaningPoint(); /** *
     * 3 letter IATA code or 4 letter ICAO code of the passenger deplaning point.
     * 
* * string deplaningPoint = 7 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for deplaningPoint. */ com.google.protobuf.ByteString getDeplaningPointBytes(); /** *
     * The two or three character airline code of the marketing carrier.
     * 
* * string carrierCode = 8 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The carrierCode. */ java.lang.String getCarrierCode(); /** *
     * The two or three character airline code of the marketing carrier.
     * 
* * string carrierCode = 8 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for carrierCode. */ com.google.protobuf.ByteString getCarrierCodeBytes(); /** *
     * The flight number of the marketing character (excluding the carrier code).
     * 
* * string flightNumber = 9 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The flightNumber. */ java.lang.String getFlightNumber(); /** *
     * The flight number of the marketing character (excluding the carrier code).
     * 
* * string flightNumber = 9 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for flightNumber. */ com.google.protobuf.ByteString getFlightNumberBytes(); /** *
     * The date of departure in local airport time.
     * 
* * .io.Date departureDate = 11; * @return Whether the departureDate field is set. */ boolean hasDepartureDate(); /** *
     * The date of departure in local airport time.
     * 
* * .io.Date departureDate = 11; * @return The departureDate. */ com.passkit.grpc.CommonObjects.Date getDepartureDate(); /** *
     * The date of departure in local airport time.
     * 
* * .io.Date departureDate = 11; */ com.passkit.grpc.CommonObjects.DateOrBuilder getDepartureDateOrBuilder(); /** *
     * Details of the passenger and any infant.
     * 
* * .flights.Passenger passenger = 12; * @return Whether the passenger field is set. */ boolean hasPassenger(); /** *
     * Details of the passenger and any infant.
     * 
* * .flights.Passenger passenger = 12; * @return The passenger. */ com.passkit.grpc.Flights.PassengerOuterClass.Passenger getPassenger(); /** *
     * Details of the passenger and any infant.
     * 
* * .flights.Passenger passenger = 12; */ com.passkit.grpc.Flights.PassengerOuterClass.PassengerOrBuilder getPassengerOrBuilder(); /** *
     * Free-form text that can be used to describe the ticket class, tier or cabin. E.g. "Business", "Premium Economy", "Club World".
     * 
* * string class = 13; * @return The class. */ java.lang.String getClass_(); /** *
     * Free-form text that can be used to describe the ticket class, tier or cabin. E.g. "Business", "Premium Economy", "Club World".
     * 
* * string class = 13; * @return The bytes for class. */ com.google.protobuf.ByteString getClass_Bytes(); /** *
     * The compartment code / class of the ticket.
     * 
* * .cabin_codes.CompartmentCode compartmentCode = 14; * @return The enum numeric value on the wire for compartmentCode. */ int getCompartmentCodeValue(); /** *
     * The compartment code / class of the ticket.
     * 
* * .cabin_codes.CompartmentCode compartmentCode = 14; * @return The compartmentCode. */ com.passkit.grpc.Flights.CabinCodes.CabinCodes.CompartmentCode getCompartmentCode(); /** *
     * The allocated seat number.  The text "ANY" or "XXX" can be used where a free seating condition exists.
     * 
* * string seatNumber = 15 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The seatNumber. */ java.lang.String getSeatNumber(); /** *
     * The allocated seat number.  The text "ANY" or "XXX" can be used where a free seating condition exists.
     * 
* * string seatNumber = 15 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for seatNumber. */ com.google.protobuf.ByteString getSeatNumberBytes(); /** *
     * The check in sequence number.
     * 
* * int32 sequenceNumber = 16; * @return The sequenceNumber. */ int getSequenceNumber(); /** *
     * A boarding group or zone indicator. This is displayed on the pass to assist passengers and ground-staff to expedite boarding.
     * 
* * string boardingGroup = 17; * @return The boardingGroup. */ java.lang.String getBoardingGroup(); /** *
     * A boarding group or zone indicator. This is displayed on the pass to assist passengers and ground-staff to expedite boarding.
     * 
* * string boardingGroup = 17; * @return The bytes for boardingGroup. */ com.google.protobuf.ByteString getBoardingGroupBytes(); /** *
     * An additional field to indicate boarding priority or order.
     * 
* * string boardingPosition = 18; * @return The boardingPosition. */ java.lang.String getBoardingPosition(); /** *
     * An additional field to indicate boarding priority or order.
     * 
* * string boardingPosition = 18; * @return The bytes for boardingPosition. */ com.google.protobuf.ByteString getBoardingPositionBytes(); /** *
     * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
     * 
* * string freeBaggageAllowance = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The freeBaggageAllowance. */ java.lang.String getFreeBaggageAllowance(); /** *
     * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
     * 
* * string freeBaggageAllowance = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for freeBaggageAllowance. */ com.google.protobuf.ByteString getFreeBaggageAllowanceBytes(); /** *
     * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
     * 
* * string carryOnAllowance = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The carryOnAllowance. */ java.lang.String getCarryOnAllowance(); /** *
     * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
     * 
* * string carryOnAllowance = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for carryOnAllowance. */ com.google.protobuf.ByteString getCarryOnAllowanceBytes(); /** *
     * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
     * 
* * repeated string ssrCodes = 21; * @return A list containing the ssrCodes. */ java.util.List getSsrCodesList(); /** *
     * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
     * 
* * repeated string ssrCodes = 21; * @return The count of ssrCodes. */ int getSsrCodesCount(); /** *
     * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
     * 
* * repeated string ssrCodes = 21; * @param index The index of the element to return. * @return The ssrCodes at the given index. */ java.lang.String getSsrCodes(int index); /** *
     * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
     * 
* * repeated string ssrCodes = 21; * @param index The index of the value to return. * @return The bytes of the ssrCodes at the given index. */ com.google.protobuf.ByteString getSsrCodesBytes(int index); /** *
     * Other service information that may be relevant to the booking.
     * 
* * string osi = 22; * @return The osi. */ java.lang.String getOsi(); /** *
     * Other service information that may be relevant to the booking.
     * 
* * string osi = 22; * @return The bytes for osi. */ com.google.protobuf.ByteString getOsiBytes(); /** *
     * Free text booking remarks.
     * 
* * string remarks = 23; * @return The remarks. */ java.lang.String getRemarks(); /** *
     * Free text booking remarks.
     * 
* * string remarks = 23; * @return The bytes for remarks. */ com.google.protobuf.ByteString getRemarksBytes(); /** *
     * Passenger Description as detailed in IATA PSC Resolution 792 Attachment 'C'.
     * 
* * .flights.PassengerStatus passengerStatus = 24; * @return The enum numeric value on the wire for passengerStatus. */ int getPassengerStatusValue(); /** *
     * Passenger Description as detailed in IATA PSC Resolution 792 Attachment 'C'.
     * 
* * .flights.PassengerStatus passengerStatus = 24; * @return The passengerStatus. */ com.passkit.grpc.Flights.Barcode.PassengerStatus getPassengerStatus(); /** *
     * Conditional items for the flight segment as described in IATA PSC Resolution 792.
     * 
* * .flights.ConditionalItems conditionalItems = 25; * @return Whether the conditionalItems field is set. */ boolean hasConditionalItems(); /** *
     * Conditional items for the flight segment as described in IATA PSC Resolution 792.
     * 
* * .flights.ConditionalItems conditionalItems = 25; * @return The conditionalItems. */ com.passkit.grpc.Flights.Barcode.ConditionalItems getConditionalItems(); /** *
     * Conditional items for the flight segment as described in IATA PSC Resolution 792.
     * 
* * .flights.ConditionalItems conditionalItems = 25; */ com.passkit.grpc.Flights.Barcode.ConditionalItemsOrBuilder getConditionalItemsOrBuilder(); /** *
     * Payload to be encoded in the pass barcode. If omitted, an IATA BCBP Standard (Resolution 792) barcode will be generated.
     * 
* * string barcodePayload = 26; * @return The barcodePayload. */ java.lang.String getBarcodePayload(); /** *
     * Payload to be encoded in the pass barcode. If omitted, an IATA BCBP Standard (Resolution 792) barcode will be generated.
     * 
* * string barcodePayload = 26; * @return The bytes for barcodePayload. */ com.google.protobuf.ByteString getBarcodePayloadBytes(); /** *
     * Security image id for display above the barcode on a Google Pay pass.
     * 
* * string securityImage = 27; * @return The securityImage. */ java.lang.String getSecurityImage(); /** *
     * Security image id for display above the barcode on a Google Pay pass.
     * 
* * string securityImage = 27; * @return The bytes for securityImage. */ com.google.protobuf.ByteString getSecurityImageBytes(); /** *
     * Privilege image id for display above the barcode on a Google Pay pass.
     * 
* * string privilegeImage = 28; * @return The privilegeImage. */ java.lang.String getPrivilegeImage(); /** *
     * Privilege image id for display above the barcode on a Google Pay pass.
     * 
* * string privilegeImage = 28; * @return The bytes for privilegeImage. */ com.google.protobuf.ByteString getPrivilegeImageBytes(); /** *
     * Footer image id for display above the barcode on iOS devices.
     * 
* * string footerImage = 29; * @return The footerImage. */ java.lang.String getFooterImage(); /** *
     * Footer image id for display above the barcode on iOS devices.
     * 
* * string footerImage = 29; * @return The bytes for footerImage. */ com.google.protobuf.ByteString getFooterImageBytes(); /** *
     * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ java.util.List getLocationMessagesList(); /** *
     * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ com.passkit.grpc.Proximity.GPSLocation getLocationMessages(int index); /** *
     * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ int getLocationMessagesCount(); /** *
     * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ java.util.List getLocationMessagesOrBuilderList(); /** *
     * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ com.passkit.grpc.Proximity.GPSLocationOrBuilder getLocationMessagesOrBuilder( int index); /** *
     * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ java.util.List getBeaconMessagesList(); /** *
     * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ com.passkit.grpc.Proximity.Beacon getBeaconMessages(int index); /** *
     * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ int getBeaconMessagesCount(); /** *
     * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ java.util.List getBeaconMessagesOrBuilderList(); /** *
     * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ com.passkit.grpc.Proximity.BeaconOrBuilder getBeaconMessagesOrBuilder( int index); /** *
     * A list of links to be appended to the end of each boarding pass.
     * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ java.util.List getLinksList(); /** *
     * A list of links to be appended to the end of each boarding pass.
     * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ com.passkit.grpc.Links.Link getLinks(int index); /** *
     * A list of links to be appended to the end of each boarding pass.
     * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ int getLinksCount(); /** *
     * A list of links to be appended to the end of each boarding pass.
     * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ java.util.List getLinksOrBuilderList(); /** *
     * A list of links to be appended to the end of each boarding pass.
     * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ com.passkit.grpc.Links.LinkOrBuilder getLinksOrBuilder( int index); /** *
     * If PassKit are generating barcodes, airline use data (IATA item 4) to be included in the barcode.
     * 
* * string barcodeAdditionalData = 33; * @return The barcodeAdditionalData. */ java.lang.String getBarcodeAdditionalData(); /** *
     * If PassKit are generating barcodes, airline use data (IATA item 4) to be included in the barcode.
     * 
* * string barcodeAdditionalData = 33; * @return The bytes for barcodeAdditionalData. */ com.google.protobuf.ByteString getBarcodeAdditionalDataBytes(); /** *
     * If a passenger is travelling as an infant and the airline is not using conditional data with a passenger description of 6 (Adult With Infant), an id of the infant's boarding pass will be recorded here.
     * 
* * string infantPassId = 34; * @return The infantPassId. */ java.lang.String getInfantPassId(); /** *
     * If a passenger is travelling as an infant and the airline is not using conditional data with a passenger description of 6 (Adult With Infant), an id of the infant's boarding pass will be recorded here.
     * 
* * string infantPassId = 34; * @return The bytes for infantPassId. */ com.google.protobuf.ByteString getInfantPassIdBytes(); /** *
     * Optional key value pairs to be added in to the flight record
     * 
* * .io.DataItems additionalDataItems = 35; * @return Whether the additionalDataItems field is set. */ boolean hasAdditionalDataItems(); /** *
     * Optional key value pairs to be added in to the flight record
     * 
* * .io.DataItems additionalDataItems = 35; * @return The additionalDataItems. */ com.passkit.grpc.CommonObjects.DataItems getAdditionalDataItems(); /** *
     * Optional key value pairs to be added in to the flight record
     * 
* * .io.DataItems additionalDataItems = 35; */ com.passkit.grpc.CommonObjects.DataItemsOrBuilder getAdditionalDataItemsOrBuilder(); /** *
     * Pass Metadata
     * 
* * .io.Metadata metadata = 36; * @return Whether the metadata field is set. */ boolean hasMetadata(); /** *
     * Pass Metadata
     * 
* * .io.Metadata metadata = 36; * @return The metadata. */ com.passkit.grpc.MetricsOuterClass.Metadata getMetadata(); /** *
     * Pass Metadata
     * 
* * .io.Metadata metadata = 36; */ com.passkit.grpc.MetricsOuterClass.MetadataOrBuilder getMetadataOrBuilder(); } /** *
   * A Boarding Pass record is unique to an individual passenger journey form a boarding point to a deplaning point. A Carrier and a Flight Designation record must exist. If a Flight record does not already exist, then it will be auto-generated based on the Flight Designation record and other publicly available data.
   * 
* * Protobuf type {@code flights.BoardingPassRecord} */ public static final class BoardingPassRecord extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flights.BoardingPassRecord) BoardingPassRecordOrBuilder { private static final long serialVersionUID = 0L; // Use BoardingPassRecord.newBuilder() to construct. private BoardingPassRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BoardingPassRecord() { id_ = ""; operatingCarrierPNR_ = ""; relatedPNRs_ = com.google.protobuf.LazyStringArrayList.EMPTY; ticketNumber_ = ""; boardingPoint_ = ""; deplaningPoint_ = ""; carrierCode_ = ""; flightNumber_ = ""; class__ = ""; compartmentCode_ = 0; seatNumber_ = ""; boardingGroup_ = ""; boardingPosition_ = ""; freeBaggageAllowance_ = ""; carryOnAllowance_ = ""; ssrCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; osi_ = ""; remarks_ = ""; passengerStatus_ = 0; barcodePayload_ = ""; securityImage_ = ""; privilegeImage_ = ""; footerImage_ = ""; locationMessages_ = java.util.Collections.emptyList(); beaconMessages_ = java.util.Collections.emptyList(); links_ = java.util.Collections.emptyList(); barcodeAdditionalData_ = ""; infantPassId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BoardingPassRecord(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BoardingPassRecord( 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(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); operatingCarrierPNR_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { relatedPNRs_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } relatedPNRs_.add(s); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); ticketNumber_ = s; break; } case 40: { ticketLeg_ = input.readInt32(); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); boardingPoint_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); deplaningPoint_ = s; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); carrierCode_ = s; break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); flightNumber_ = s; break; } case 90: { com.passkit.grpc.CommonObjects.Date.Builder subBuilder = null; if (departureDate_ != null) { subBuilder = departureDate_.toBuilder(); } departureDate_ = input.readMessage(com.passkit.grpc.CommonObjects.Date.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(departureDate_); departureDate_ = subBuilder.buildPartial(); } break; } case 98: { com.passkit.grpc.Flights.PassengerOuterClass.Passenger.Builder subBuilder = null; if (passenger_ != null) { subBuilder = passenger_.toBuilder(); } passenger_ = input.readMessage(com.passkit.grpc.Flights.PassengerOuterClass.Passenger.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(passenger_); passenger_ = subBuilder.buildPartial(); } break; } case 106: { java.lang.String s = input.readStringRequireUtf8(); class__ = s; break; } case 112: { int rawValue = input.readEnum(); compartmentCode_ = rawValue; break; } case 122: { java.lang.String s = input.readStringRequireUtf8(); seatNumber_ = s; break; } case 128: { sequenceNumber_ = input.readInt32(); break; } case 138: { java.lang.String s = input.readStringRequireUtf8(); boardingGroup_ = s; break; } case 146: { java.lang.String s = input.readStringRequireUtf8(); boardingPosition_ = s; break; } case 154: { java.lang.String s = input.readStringRequireUtf8(); freeBaggageAllowance_ = s; break; } case 162: { java.lang.String s = input.readStringRequireUtf8(); carryOnAllowance_ = s; break; } case 170: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { ssrCodes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } ssrCodes_.add(s); break; } case 178: { java.lang.String s = input.readStringRequireUtf8(); osi_ = s; break; } case 186: { java.lang.String s = input.readStringRequireUtf8(); remarks_ = s; break; } case 192: { int rawValue = input.readEnum(); passengerStatus_ = rawValue; break; } case 202: { com.passkit.grpc.Flights.Barcode.ConditionalItems.Builder subBuilder = null; if (conditionalItems_ != null) { subBuilder = conditionalItems_.toBuilder(); } conditionalItems_ = input.readMessage(com.passkit.grpc.Flights.Barcode.ConditionalItems.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(conditionalItems_); conditionalItems_ = subBuilder.buildPartial(); } break; } case 210: { java.lang.String s = input.readStringRequireUtf8(); barcodePayload_ = s; break; } case 218: { java.lang.String s = input.readStringRequireUtf8(); securityImage_ = s; break; } case 226: { java.lang.String s = input.readStringRequireUtf8(); privilegeImage_ = s; break; } case 234: { java.lang.String s = input.readStringRequireUtf8(); footerImage_ = s; break; } case 242: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { locationMessages_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } locationMessages_.add( input.readMessage(com.passkit.grpc.Proximity.GPSLocation.parser(), extensionRegistry)); break; } case 250: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { beaconMessages_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } beaconMessages_.add( input.readMessage(com.passkit.grpc.Proximity.Beacon.parser(), extensionRegistry)); break; } case 258: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { links_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } links_.add( input.readMessage(com.passkit.grpc.Links.Link.parser(), extensionRegistry)); break; } case 266: { java.lang.String s = input.readStringRequireUtf8(); barcodeAdditionalData_ = s; break; } case 274: { java.lang.String s = input.readStringRequireUtf8(); infantPassId_ = s; break; } case 282: { com.passkit.grpc.CommonObjects.DataItems.Builder subBuilder = null; if (additionalDataItems_ != null) { subBuilder = additionalDataItems_.toBuilder(); } additionalDataItems_ = input.readMessage(com.passkit.grpc.CommonObjects.DataItems.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(additionalDataItems_); additionalDataItems_ = subBuilder.buildPartial(); } break; } case 290: { com.passkit.grpc.MetricsOuterClass.Metadata.Builder subBuilder = null; if (metadata_ != null) { subBuilder = metadata_.toBuilder(); } metadata_ = input.readMessage(com.passkit.grpc.MetricsOuterClass.Metadata.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadata_); metadata_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { relatedPNRs_ = relatedPNRs_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) != 0)) { ssrCodes_ = ssrCodes_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) != 0)) { locationMessages_ = java.util.Collections.unmodifiableList(locationMessages_); } if (((mutable_bitField0_ & 0x00000008) != 0)) { beaconMessages_ = java.util.Collections.unmodifiableList(beaconMessages_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { links_ = java.util.Collections.unmodifiableList(links_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord.class, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * Id assigned by PassKit to represent the boarding pass record. It will be used as the serial number in Apple Wallet and as the Object identifier for Google Wallet. This field is not writable.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
     * Id assigned by PassKit to represent the boarding pass record. It will be used as the serial number in Apple Wallet and as the Object identifier for Google Wallet. This field is not writable.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPERATINGCARRIERPNR_FIELD_NUMBER = 2; private volatile java.lang.Object operatingCarrierPNR_; /** *
     * PNR code of the carrier operating the flight, independent of code-share, lease or other issues.
     * 
* * string operatingCarrierPNR = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The operatingCarrierPNR. */ @java.lang.Override public java.lang.String getOperatingCarrierPNR() { java.lang.Object ref = operatingCarrierPNR_; 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(); operatingCarrierPNR_ = s; return s; } } /** *
     * PNR code of the carrier operating the flight, independent of code-share, lease or other issues.
     * 
* * string operatingCarrierPNR = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for operatingCarrierPNR. */ @java.lang.Override public com.google.protobuf.ByteString getOperatingCarrierPNRBytes() { java.lang.Object ref = operatingCarrierPNR_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); operatingCarrierPNR_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RELATEDPNRS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList relatedPNRs_; /** *
     * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
     * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return A list containing the relatedPNRs. */ public com.google.protobuf.ProtocolStringList getRelatedPNRsList() { return relatedPNRs_; } /** *
     * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
     * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The count of relatedPNRs. */ public int getRelatedPNRsCount() { return relatedPNRs_.size(); } /** *
     * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
     * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param index The index of the element to return. * @return The relatedPNRs at the given index. */ public java.lang.String getRelatedPNRs(int index) { return relatedPNRs_.get(index); } /** *
     * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
     * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param index The index of the value to return. * @return The bytes of the relatedPNRs at the given index. */ public com.google.protobuf.ByteString getRelatedPNRsBytes(int index) { return relatedPNRs_.getByteString(index); } public static final int TICKETNUMBER_FIELD_NUMBER = 4; private volatile java.lang.Object ticketNumber_; /** *
     * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
     * 
* * string ticketNumber = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The ticketNumber. */ @java.lang.Override public java.lang.String getTicketNumber() { java.lang.Object ref = ticketNumber_; 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(); ticketNumber_ = s; return s; } } /** *
     * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
     * 
* * string ticketNumber = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for ticketNumber. */ @java.lang.Override public com.google.protobuf.ByteString getTicketNumberBytes() { java.lang.Object ref = ticketNumber_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ticketNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TICKETLEG_FIELD_NUMBER = 5; private int ticketLeg_; /** *
     * The leg of the ticketed journey. For a return flight, the outbound flight would be leg 1 and the inbound flight would be leg 2.  For Direct flights, a ticketed leg includes all stops between the boarding point and deplaning point. Leg cannot be zero and ticket/leg combination cannot already exist for a 'create' call.
     * 
* * int32 ticketLeg = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The ticketLeg. */ @java.lang.Override public int getTicketLeg() { return ticketLeg_; } public static final int BOARDINGPOINT_FIELD_NUMBER = 6; private volatile java.lang.Object boardingPoint_; /** *
     * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
     * 
* * string boardingPoint = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The boardingPoint. */ @java.lang.Override public java.lang.String getBoardingPoint() { java.lang.Object ref = boardingPoint_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); boardingPoint_ = s; return s; } } /** *
     * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
     * 
* * string boardingPoint = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for boardingPoint. */ @java.lang.Override public com.google.protobuf.ByteString getBoardingPointBytes() { java.lang.Object ref = boardingPoint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); boardingPoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEPLANINGPOINT_FIELD_NUMBER = 7; private volatile java.lang.Object deplaningPoint_; /** *
     * 3 letter IATA code or 4 letter ICAO code of the passenger deplaning point.
     * 
* * string deplaningPoint = 7 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The deplaningPoint. */ @java.lang.Override public java.lang.String getDeplaningPoint() { java.lang.Object ref = deplaningPoint_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deplaningPoint_ = s; return s; } } /** *
     * 3 letter IATA code or 4 letter ICAO code of the passenger deplaning point.
     * 
* * string deplaningPoint = 7 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for deplaningPoint. */ @java.lang.Override public com.google.protobuf.ByteString getDeplaningPointBytes() { java.lang.Object ref = deplaningPoint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deplaningPoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CARRIERCODE_FIELD_NUMBER = 8; private volatile java.lang.Object carrierCode_; /** *
     * The two or three character airline code of the marketing carrier.
     * 
* * string carrierCode = 8 [(.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 two or three character airline code of the marketing carrier.
     * 
* * string carrierCode = 8 [(.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 = 9; private volatile java.lang.Object flightNumber_; /** *
     * The flight number of the marketing character (excluding the carrier code).
     * 
* * string flightNumber = 9 [(.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 of the marketing character (excluding the carrier code).
     * 
* * string flightNumber = 9 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for flightNumber. */ @java.lang.Override public com.google.protobuf.ByteString getFlightNumberBytes() { java.lang.Object ref = flightNumber_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); flightNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEPARTUREDATE_FIELD_NUMBER = 11; private com.passkit.grpc.CommonObjects.Date departureDate_; /** *
     * The date of departure in local airport time.
     * 
* * .io.Date departureDate = 11; * @return Whether the departureDate field is set. */ @java.lang.Override public boolean hasDepartureDate() { return departureDate_ != null; } /** *
     * The date of departure in local airport time.
     * 
* * .io.Date departureDate = 11; * @return The departureDate. */ @java.lang.Override public com.passkit.grpc.CommonObjects.Date getDepartureDate() { return departureDate_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : departureDate_; } /** *
     * The date of departure in local airport time.
     * 
* * .io.Date departureDate = 11; */ @java.lang.Override public com.passkit.grpc.CommonObjects.DateOrBuilder getDepartureDateOrBuilder() { return getDepartureDate(); } public static final int PASSENGER_FIELD_NUMBER = 12; private com.passkit.grpc.Flights.PassengerOuterClass.Passenger passenger_; /** *
     * Details of the passenger and any infant.
     * 
* * .flights.Passenger passenger = 12; * @return Whether the passenger field is set. */ @java.lang.Override public boolean hasPassenger() { return passenger_ != null; } /** *
     * Details of the passenger and any infant.
     * 
* * .flights.Passenger passenger = 12; * @return The passenger. */ @java.lang.Override public com.passkit.grpc.Flights.PassengerOuterClass.Passenger getPassenger() { return passenger_ == null ? com.passkit.grpc.Flights.PassengerOuterClass.Passenger.getDefaultInstance() : passenger_; } /** *
     * Details of the passenger and any infant.
     * 
* * .flights.Passenger passenger = 12; */ @java.lang.Override public com.passkit.grpc.Flights.PassengerOuterClass.PassengerOrBuilder getPassengerOrBuilder() { return getPassenger(); } public static final int CLASS_FIELD_NUMBER = 13; private volatile java.lang.Object class__; /** *
     * Free-form text that can be used to describe the ticket class, tier or cabin. E.g. "Business", "Premium Economy", "Club World".
     * 
* * string class = 13; * @return The class. */ @java.lang.Override public java.lang.String getClass_() { java.lang.Object ref = class__; 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(); class__ = s; return s; } } /** *
     * Free-form text that can be used to describe the ticket class, tier or cabin. E.g. "Business", "Premium Economy", "Club World".
     * 
* * string class = 13; * @return The bytes for class. */ @java.lang.Override public com.google.protobuf.ByteString getClass_Bytes() { java.lang.Object ref = class__; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); class__ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPARTMENTCODE_FIELD_NUMBER = 14; private int compartmentCode_; /** *
     * The compartment code / class of the ticket.
     * 
* * .cabin_codes.CompartmentCode compartmentCode = 14; * @return The enum numeric value on the wire for compartmentCode. */ @java.lang.Override public int getCompartmentCodeValue() { return compartmentCode_; } /** *
     * The compartment code / class of the ticket.
     * 
* * .cabin_codes.CompartmentCode compartmentCode = 14; * @return The compartmentCode. */ @java.lang.Override public com.passkit.grpc.Flights.CabinCodes.CabinCodes.CompartmentCode getCompartmentCode() { @SuppressWarnings("deprecation") com.passkit.grpc.Flights.CabinCodes.CabinCodes.CompartmentCode result = com.passkit.grpc.Flights.CabinCodes.CabinCodes.CompartmentCode.valueOf(compartmentCode_); return result == null ? com.passkit.grpc.Flights.CabinCodes.CabinCodes.CompartmentCode.UNRECOGNIZED : result; } public static final int SEATNUMBER_FIELD_NUMBER = 15; private volatile java.lang.Object seatNumber_; /** *
     * The allocated seat number.  The text "ANY" or "XXX" can be used where a free seating condition exists.
     * 
* * string seatNumber = 15 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The seatNumber. */ @java.lang.Override public java.lang.String getSeatNumber() { java.lang.Object ref = seatNumber_; 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(); seatNumber_ = s; return s; } } /** *
     * The allocated seat number.  The text "ANY" or "XXX" can be used where a free seating condition exists.
     * 
* * string seatNumber = 15 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for seatNumber. */ @java.lang.Override public com.google.protobuf.ByteString getSeatNumberBytes() { java.lang.Object ref = seatNumber_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); seatNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SEQUENCENUMBER_FIELD_NUMBER = 16; private int sequenceNumber_; /** *
     * The check in sequence number.
     * 
* * int32 sequenceNumber = 16; * @return The sequenceNumber. */ @java.lang.Override public int getSequenceNumber() { return sequenceNumber_; } public static final int BOARDINGGROUP_FIELD_NUMBER = 17; private volatile java.lang.Object boardingGroup_; /** *
     * A boarding group or zone indicator. This is displayed on the pass to assist passengers and ground-staff to expedite boarding.
     * 
* * string boardingGroup = 17; * @return The boardingGroup. */ @java.lang.Override public java.lang.String getBoardingGroup() { java.lang.Object ref = boardingGroup_; 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(); boardingGroup_ = s; return s; } } /** *
     * A boarding group or zone indicator. This is displayed on the pass to assist passengers and ground-staff to expedite boarding.
     * 
* * string boardingGroup = 17; * @return The bytes for boardingGroup. */ @java.lang.Override public com.google.protobuf.ByteString getBoardingGroupBytes() { java.lang.Object ref = boardingGroup_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); boardingGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BOARDINGPOSITION_FIELD_NUMBER = 18; private volatile java.lang.Object boardingPosition_; /** *
     * An additional field to indicate boarding priority or order.
     * 
* * string boardingPosition = 18; * @return The boardingPosition. */ @java.lang.Override public java.lang.String getBoardingPosition() { java.lang.Object ref = boardingPosition_; 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(); boardingPosition_ = s; return s; } } /** *
     * An additional field to indicate boarding priority or order.
     * 
* * string boardingPosition = 18; * @return The bytes for boardingPosition. */ @java.lang.Override public com.google.protobuf.ByteString getBoardingPositionBytes() { java.lang.Object ref = boardingPosition_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); boardingPosition_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FREEBAGGAGEALLOWANCE_FIELD_NUMBER = 19; private volatile java.lang.Object freeBaggageAllowance_; /** *
     * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
     * 
* * string freeBaggageAllowance = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The freeBaggageAllowance. */ @java.lang.Override public java.lang.String getFreeBaggageAllowance() { java.lang.Object ref = freeBaggageAllowance_; 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(); freeBaggageAllowance_ = s; return s; } } /** *
     * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
     * 
* * string freeBaggageAllowance = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for freeBaggageAllowance. */ @java.lang.Override public com.google.protobuf.ByteString getFreeBaggageAllowanceBytes() { java.lang.Object ref = freeBaggageAllowance_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); freeBaggageAllowance_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CARRYONALLOWANCE_FIELD_NUMBER = 20; private volatile java.lang.Object carryOnAllowance_; /** *
     * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
     * 
* * string carryOnAllowance = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The carryOnAllowance. */ @java.lang.Override public java.lang.String getCarryOnAllowance() { java.lang.Object ref = carryOnAllowance_; 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(); carryOnAllowance_ = s; return s; } } /** *
     * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
     * 
* * string carryOnAllowance = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for carryOnAllowance. */ @java.lang.Override public com.google.protobuf.ByteString getCarryOnAllowanceBytes() { java.lang.Object ref = carryOnAllowance_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); carryOnAllowance_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SSRCODES_FIELD_NUMBER = 21; private com.google.protobuf.LazyStringList ssrCodes_; /** *
     * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
     * 
* * repeated string ssrCodes = 21; * @return A list containing the ssrCodes. */ public com.google.protobuf.ProtocolStringList getSsrCodesList() { return ssrCodes_; } /** *
     * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
     * 
* * repeated string ssrCodes = 21; * @return The count of ssrCodes. */ public int getSsrCodesCount() { return ssrCodes_.size(); } /** *
     * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
     * 
* * repeated string ssrCodes = 21; * @param index The index of the element to return. * @return The ssrCodes at the given index. */ public java.lang.String getSsrCodes(int index) { return ssrCodes_.get(index); } /** *
     * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
     * 
* * repeated string ssrCodes = 21; * @param index The index of the value to return. * @return The bytes of the ssrCodes at the given index. */ public com.google.protobuf.ByteString getSsrCodesBytes(int index) { return ssrCodes_.getByteString(index); } public static final int OSI_FIELD_NUMBER = 22; private volatile java.lang.Object osi_; /** *
     * Other service information that may be relevant to the booking.
     * 
* * string osi = 22; * @return The osi. */ @java.lang.Override public java.lang.String getOsi() { java.lang.Object ref = osi_; 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(); osi_ = s; return s; } } /** *
     * Other service information that may be relevant to the booking.
     * 
* * string osi = 22; * @return The bytes for osi. */ @java.lang.Override public com.google.protobuf.ByteString getOsiBytes() { java.lang.Object ref = osi_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); osi_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REMARKS_FIELD_NUMBER = 23; private volatile java.lang.Object remarks_; /** *
     * Free text booking remarks.
     * 
* * string remarks = 23; * @return The remarks. */ @java.lang.Override public java.lang.String getRemarks() { java.lang.Object ref = remarks_; 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(); remarks_ = s; return s; } } /** *
     * Free text booking remarks.
     * 
* * string remarks = 23; * @return The bytes for remarks. */ @java.lang.Override public com.google.protobuf.ByteString getRemarksBytes() { java.lang.Object ref = remarks_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); remarks_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSENGERSTATUS_FIELD_NUMBER = 24; private int passengerStatus_; /** *
     * Passenger Description as detailed in IATA PSC Resolution 792 Attachment 'C'.
     * 
* * .flights.PassengerStatus passengerStatus = 24; * @return The enum numeric value on the wire for passengerStatus. */ @java.lang.Override public int getPassengerStatusValue() { return passengerStatus_; } /** *
     * Passenger Description as detailed in IATA PSC Resolution 792 Attachment 'C'.
     * 
* * .flights.PassengerStatus passengerStatus = 24; * @return The passengerStatus. */ @java.lang.Override public com.passkit.grpc.Flights.Barcode.PassengerStatus getPassengerStatus() { @SuppressWarnings("deprecation") com.passkit.grpc.Flights.Barcode.PassengerStatus result = com.passkit.grpc.Flights.Barcode.PassengerStatus.valueOf(passengerStatus_); return result == null ? com.passkit.grpc.Flights.Barcode.PassengerStatus.UNRECOGNIZED : result; } public static final int CONDITIONALITEMS_FIELD_NUMBER = 25; private com.passkit.grpc.Flights.Barcode.ConditionalItems conditionalItems_; /** *
     * Conditional items for the flight segment as described in IATA PSC Resolution 792.
     * 
* * .flights.ConditionalItems conditionalItems = 25; * @return Whether the conditionalItems field is set. */ @java.lang.Override public boolean hasConditionalItems() { return conditionalItems_ != null; } /** *
     * Conditional items for the flight segment as described in IATA PSC Resolution 792.
     * 
* * .flights.ConditionalItems conditionalItems = 25; * @return The conditionalItems. */ @java.lang.Override public com.passkit.grpc.Flights.Barcode.ConditionalItems getConditionalItems() { return conditionalItems_ == null ? com.passkit.grpc.Flights.Barcode.ConditionalItems.getDefaultInstance() : conditionalItems_; } /** *
     * Conditional items for the flight segment as described in IATA PSC Resolution 792.
     * 
* * .flights.ConditionalItems conditionalItems = 25; */ @java.lang.Override public com.passkit.grpc.Flights.Barcode.ConditionalItemsOrBuilder getConditionalItemsOrBuilder() { return getConditionalItems(); } public static final int BARCODEPAYLOAD_FIELD_NUMBER = 26; private volatile java.lang.Object barcodePayload_; /** *
     * Payload to be encoded in the pass barcode. If omitted, an IATA BCBP Standard (Resolution 792) barcode will be generated.
     * 
* * string barcodePayload = 26; * @return The barcodePayload. */ @java.lang.Override public java.lang.String getBarcodePayload() { java.lang.Object ref = barcodePayload_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); barcodePayload_ = s; return s; } } /** *
     * Payload to be encoded in the pass barcode. If omitted, an IATA BCBP Standard (Resolution 792) barcode will be generated.
     * 
* * string barcodePayload = 26; * @return The bytes for barcodePayload. */ @java.lang.Override public com.google.protobuf.ByteString getBarcodePayloadBytes() { java.lang.Object ref = barcodePayload_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); barcodePayload_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECURITYIMAGE_FIELD_NUMBER = 27; private volatile java.lang.Object securityImage_; /** *
     * Security image id for display above the barcode on a Google Pay pass.
     * 
* * string securityImage = 27; * @return The securityImage. */ @java.lang.Override public java.lang.String getSecurityImage() { java.lang.Object ref = securityImage_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); securityImage_ = s; return s; } } /** *
     * Security image id for display above the barcode on a Google Pay pass.
     * 
* * string securityImage = 27; * @return The bytes for securityImage. */ @java.lang.Override public com.google.protobuf.ByteString getSecurityImageBytes() { java.lang.Object ref = securityImage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); securityImage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRIVILEGEIMAGE_FIELD_NUMBER = 28; private volatile java.lang.Object privilegeImage_; /** *
     * Privilege image id for display above the barcode on a Google Pay pass.
     * 
* * string privilegeImage = 28; * @return The privilegeImage. */ @java.lang.Override public java.lang.String getPrivilegeImage() { java.lang.Object ref = privilegeImage_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privilegeImage_ = s; return s; } } /** *
     * Privilege image id for display above the barcode on a Google Pay pass.
     * 
* * string privilegeImage = 28; * @return The bytes for privilegeImage. */ @java.lang.Override public com.google.protobuf.ByteString getPrivilegeImageBytes() { java.lang.Object ref = privilegeImage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); privilegeImage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOOTERIMAGE_FIELD_NUMBER = 29; private volatile java.lang.Object footerImage_; /** *
     * Footer image id for display above the barcode on iOS devices.
     * 
* * string footerImage = 29; * @return The footerImage. */ @java.lang.Override public java.lang.String getFooterImage() { java.lang.Object ref = footerImage_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); footerImage_ = s; return s; } } /** *
     * Footer image id for display above the barcode on iOS devices.
     * 
* * string footerImage = 29; * @return The bytes for footerImage. */ @java.lang.Override public com.google.protobuf.ByteString getFooterImageBytes() { java.lang.Object ref = footerImage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); footerImage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCATIONMESSAGES_FIELD_NUMBER = 30; private java.util.List locationMessages_; /** *
     * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ @java.lang.Override public java.util.List getLocationMessagesList() { return locationMessages_; } /** *
     * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ @java.lang.Override public java.util.List getLocationMessagesOrBuilderList() { return locationMessages_; } /** *
     * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ @java.lang.Override public int getLocationMessagesCount() { return locationMessages_.size(); } /** *
     * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ @java.lang.Override public com.passkit.grpc.Proximity.GPSLocation getLocationMessages(int index) { return locationMessages_.get(index); } /** *
     * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.GPSLocation locationMessages = 30 [(.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 = 31; private java.util.List beaconMessages_; /** *
     * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ @java.lang.Override public java.util.List getBeaconMessagesList() { return beaconMessages_; } /** *
     * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ @java.lang.Override public java.util.List getBeaconMessagesOrBuilderList() { return beaconMessages_; } /** *
     * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ @java.lang.Override public int getBeaconMessagesCount() { return beaconMessages_.size(); } /** *
     * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ @java.lang.Override public com.passkit.grpc.Proximity.Beacon getBeaconMessages(int index) { return beaconMessages_.get(index); } /** *
     * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
     * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ @java.lang.Override public com.passkit.grpc.Proximity.BeaconOrBuilder getBeaconMessagesOrBuilder( int index) { return beaconMessages_.get(index); } public static final int LINKS_FIELD_NUMBER = 32; private java.util.List links_; /** *
     * A list of links to be appended to the end of each boarding pass.
     * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ @java.lang.Override public java.util.List getLinksList() { return links_; } /** *
     * A list of links to be appended to the end of each boarding pass.
     * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ @java.lang.Override public java.util.List getLinksOrBuilderList() { return links_; } /** *
     * A list of links to be appended to the end of each boarding pass.
     * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ @java.lang.Override public int getLinksCount() { return links_.size(); } /** *
     * A list of links to be appended to the end of each boarding pass.
     * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ @java.lang.Override public com.passkit.grpc.Links.Link getLinks(int index) { return links_.get(index); } /** *
     * A list of links to be appended to the end of each boarding pass.
     * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ @java.lang.Override public com.passkit.grpc.Links.LinkOrBuilder getLinksOrBuilder( int index) { return links_.get(index); } public static final int BARCODEADDITIONALDATA_FIELD_NUMBER = 33; private volatile java.lang.Object barcodeAdditionalData_; /** *
     * If PassKit are generating barcodes, airline use data (IATA item 4) to be included in the barcode.
     * 
* * string barcodeAdditionalData = 33; * @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, airline use data (IATA item 4) to be included in the barcode.
     * 
* * string barcodeAdditionalData = 33; * @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 INFANTPASSID_FIELD_NUMBER = 34; private volatile java.lang.Object infantPassId_; /** *
     * If a passenger is travelling as an infant and the airline is not using conditional data with a passenger description of 6 (Adult With Infant), an id of the infant's boarding pass will be recorded here.
     * 
* * string infantPassId = 34; * @return The infantPassId. */ @java.lang.Override public java.lang.String getInfantPassId() { java.lang.Object ref = infantPassId_; 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(); infantPassId_ = s; return s; } } /** *
     * If a passenger is travelling as an infant and the airline is not using conditional data with a passenger description of 6 (Adult With Infant), an id of the infant's boarding pass will be recorded here.
     * 
* * string infantPassId = 34; * @return The bytes for infantPassId. */ @java.lang.Override public com.google.protobuf.ByteString getInfantPassIdBytes() { java.lang.Object ref = infantPassId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); infantPassId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADDITIONALDATAITEMS_FIELD_NUMBER = 35; private com.passkit.grpc.CommonObjects.DataItems additionalDataItems_; /** *
     * Optional key value pairs to be added in to the flight record
     * 
* * .io.DataItems additionalDataItems = 35; * @return Whether the additionalDataItems field is set. */ @java.lang.Override public boolean hasAdditionalDataItems() { return additionalDataItems_ != null; } /** *
     * Optional key value pairs to be added in to the flight record
     * 
* * .io.DataItems additionalDataItems = 35; * @return The additionalDataItems. */ @java.lang.Override public com.passkit.grpc.CommonObjects.DataItems getAdditionalDataItems() { return additionalDataItems_ == null ? com.passkit.grpc.CommonObjects.DataItems.getDefaultInstance() : additionalDataItems_; } /** *
     * Optional key value pairs to be added in to the flight record
     * 
* * .io.DataItems additionalDataItems = 35; */ @java.lang.Override public com.passkit.grpc.CommonObjects.DataItemsOrBuilder getAdditionalDataItemsOrBuilder() { return getAdditionalDataItems(); } public static final int METADATA_FIELD_NUMBER = 36; private com.passkit.grpc.MetricsOuterClass.Metadata metadata_; /** *
     * Pass Metadata
     * 
* * .io.Metadata metadata = 36; * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { return metadata_ != null; } /** *
     * Pass Metadata
     * 
* * .io.Metadata metadata = 36; * @return The metadata. */ @java.lang.Override public com.passkit.grpc.MetricsOuterClass.Metadata getMetadata() { return metadata_ == null ? com.passkit.grpc.MetricsOuterClass.Metadata.getDefaultInstance() : metadata_; } /** *
     * Pass Metadata
     * 
* * .io.Metadata metadata = 36; */ @java.lang.Override public com.passkit.grpc.MetricsOuterClass.MetadataOrBuilder getMetadataOrBuilder() { return getMetadata(); } 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 (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!getOperatingCarrierPNRBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operatingCarrierPNR_); } for (int i = 0; i < relatedPNRs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, relatedPNRs_.getRaw(i)); } if (!getTicketNumberBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ticketNumber_); } if (ticketLeg_ != 0) { output.writeInt32(5, ticketLeg_); } if (!getBoardingPointBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, boardingPoint_); } if (!getDeplaningPointBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, deplaningPoint_); } if (!getCarrierCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, carrierCode_); } if (!getFlightNumberBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, flightNumber_); } if (departureDate_ != null) { output.writeMessage(11, getDepartureDate()); } if (passenger_ != null) { output.writeMessage(12, getPassenger()); } if (!getClass_Bytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, class__); } if (compartmentCode_ != com.passkit.grpc.Flights.CabinCodes.CabinCodes.CompartmentCode.NONE.getNumber()) { output.writeEnum(14, compartmentCode_); } if (!getSeatNumberBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, seatNumber_); } if (sequenceNumber_ != 0) { output.writeInt32(16, sequenceNumber_); } if (!getBoardingGroupBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, boardingGroup_); } if (!getBoardingPositionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, boardingPosition_); } if (!getFreeBaggageAllowanceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 19, freeBaggageAllowance_); } if (!getCarryOnAllowanceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, carryOnAllowance_); } for (int i = 0; i < ssrCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, ssrCodes_.getRaw(i)); } if (!getOsiBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 22, osi_); } if (!getRemarksBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 23, remarks_); } if (passengerStatus_ != com.passkit.grpc.Flights.Barcode.PassengerStatus.ISSUED_NOT_CHECKED_IN.getNumber()) { output.writeEnum(24, passengerStatus_); } if (conditionalItems_ != null) { output.writeMessage(25, getConditionalItems()); } if (!getBarcodePayloadBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 26, barcodePayload_); } if (!getSecurityImageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 27, securityImage_); } if (!getPrivilegeImageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 28, privilegeImage_); } if (!getFooterImageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, footerImage_); } for (int i = 0; i < locationMessages_.size(); i++) { output.writeMessage(30, locationMessages_.get(i)); } for (int i = 0; i < beaconMessages_.size(); i++) { output.writeMessage(31, beaconMessages_.get(i)); } for (int i = 0; i < links_.size(); i++) { output.writeMessage(32, links_.get(i)); } if (!getBarcodeAdditionalDataBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 33, barcodeAdditionalData_); } if (!getInfantPassIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 34, infantPassId_); } if (additionalDataItems_ != null) { output.writeMessage(35, getAdditionalDataItems()); } if (metadata_ != null) { output.writeMessage(36, getMetadata()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!getOperatingCarrierPNRBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operatingCarrierPNR_); } { int dataSize = 0; for (int i = 0; i < relatedPNRs_.size(); i++) { dataSize += computeStringSizeNoTag(relatedPNRs_.getRaw(i)); } size += dataSize; size += 1 * getRelatedPNRsList().size(); } if (!getTicketNumberBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, ticketNumber_); } if (ticketLeg_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, ticketLeg_); } if (!getBoardingPointBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, boardingPoint_); } if (!getDeplaningPointBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, deplaningPoint_); } if (!getCarrierCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, carrierCode_); } if (!getFlightNumberBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, flightNumber_); } if (departureDate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getDepartureDate()); } if (passenger_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getPassenger()); } if (!getClass_Bytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, class__); } if (compartmentCode_ != com.passkit.grpc.Flights.CabinCodes.CabinCodes.CompartmentCode.NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(14, compartmentCode_); } if (!getSeatNumberBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, seatNumber_); } if (sequenceNumber_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(16, sequenceNumber_); } if (!getBoardingGroupBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, boardingGroup_); } if (!getBoardingPositionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, boardingPosition_); } if (!getFreeBaggageAllowanceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, freeBaggageAllowance_); } if (!getCarryOnAllowanceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, carryOnAllowance_); } { int dataSize = 0; for (int i = 0; i < ssrCodes_.size(); i++) { dataSize += computeStringSizeNoTag(ssrCodes_.getRaw(i)); } size += dataSize; size += 2 * getSsrCodesList().size(); } if (!getOsiBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, osi_); } if (!getRemarksBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, remarks_); } if (passengerStatus_ != com.passkit.grpc.Flights.Barcode.PassengerStatus.ISSUED_NOT_CHECKED_IN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(24, passengerStatus_); } if (conditionalItems_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(25, getConditionalItems()); } if (!getBarcodePayloadBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, barcodePayload_); } if (!getSecurityImageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, securityImage_); } if (!getPrivilegeImageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, privilegeImage_); } if (!getFooterImageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, footerImage_); } for (int i = 0; i < locationMessages_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, locationMessages_.get(i)); } for (int i = 0; i < beaconMessages_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, beaconMessages_.get(i)); } for (int i = 0; i < links_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, links_.get(i)); } if (!getBarcodeAdditionalDataBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, barcodeAdditionalData_); } if (!getInfantPassIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(34, infantPassId_); } if (additionalDataItems_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(35, getAdditionalDataItems()); } if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(36, getMetadata()); } 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.BoardingPass.BoardingPassRecord)) { return super.equals(obj); } com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord other = (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord) obj; if (!getId() .equals(other.getId())) return false; if (!getOperatingCarrierPNR() .equals(other.getOperatingCarrierPNR())) return false; if (!getRelatedPNRsList() .equals(other.getRelatedPNRsList())) return false; if (!getTicketNumber() .equals(other.getTicketNumber())) return false; if (getTicketLeg() != other.getTicketLeg()) return false; if (!getBoardingPoint() .equals(other.getBoardingPoint())) return false; if (!getDeplaningPoint() .equals(other.getDeplaningPoint())) return false; if (!getCarrierCode() .equals(other.getCarrierCode())) return false; if (!getFlightNumber() .equals(other.getFlightNumber())) return false; if (hasDepartureDate() != other.hasDepartureDate()) return false; if (hasDepartureDate()) { if (!getDepartureDate() .equals(other.getDepartureDate())) return false; } if (hasPassenger() != other.hasPassenger()) return false; if (hasPassenger()) { if (!getPassenger() .equals(other.getPassenger())) return false; } if (!getClass_() .equals(other.getClass_())) return false; if (compartmentCode_ != other.compartmentCode_) return false; if (!getSeatNumber() .equals(other.getSeatNumber())) return false; if (getSequenceNumber() != other.getSequenceNumber()) return false; if (!getBoardingGroup() .equals(other.getBoardingGroup())) return false; if (!getBoardingPosition() .equals(other.getBoardingPosition())) return false; if (!getFreeBaggageAllowance() .equals(other.getFreeBaggageAllowance())) return false; if (!getCarryOnAllowance() .equals(other.getCarryOnAllowance())) return false; if (!getSsrCodesList() .equals(other.getSsrCodesList())) return false; if (!getOsi() .equals(other.getOsi())) return false; if (!getRemarks() .equals(other.getRemarks())) return false; if (passengerStatus_ != other.passengerStatus_) return false; if (hasConditionalItems() != other.hasConditionalItems()) return false; if (hasConditionalItems()) { if (!getConditionalItems() .equals(other.getConditionalItems())) return false; } if (!getBarcodePayload() .equals(other.getBarcodePayload())) return false; if (!getSecurityImage() .equals(other.getSecurityImage())) return false; if (!getPrivilegeImage() .equals(other.getPrivilegeImage())) return false; if (!getFooterImage() .equals(other.getFooterImage())) return false; if (!getLocationMessagesList() .equals(other.getLocationMessagesList())) return false; if (!getBeaconMessagesList() .equals(other.getBeaconMessagesList())) return false; if (!getLinksList() .equals(other.getLinksList())) return false; if (!getBarcodeAdditionalData() .equals(other.getBarcodeAdditionalData())) return false; if (!getInfantPassId() .equals(other.getInfantPassId())) return false; if (hasAdditionalDataItems() != other.hasAdditionalDataItems()) return false; if (hasAdditionalDataItems()) { if (!getAdditionalDataItems() .equals(other.getAdditionalDataItems())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { if (!getMetadata() .equals(other.getMetadata())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + OPERATINGCARRIERPNR_FIELD_NUMBER; hash = (53 * hash) + getOperatingCarrierPNR().hashCode(); if (getRelatedPNRsCount() > 0) { hash = (37 * hash) + RELATEDPNRS_FIELD_NUMBER; hash = (53 * hash) + getRelatedPNRsList().hashCode(); } hash = (37 * hash) + TICKETNUMBER_FIELD_NUMBER; hash = (53 * hash) + getTicketNumber().hashCode(); hash = (37 * hash) + TICKETLEG_FIELD_NUMBER; hash = (53 * hash) + getTicketLeg(); hash = (37 * hash) + BOARDINGPOINT_FIELD_NUMBER; hash = (53 * hash) + getBoardingPoint().hashCode(); hash = (37 * hash) + DEPLANINGPOINT_FIELD_NUMBER; hash = (53 * hash) + getDeplaningPoint().hashCode(); hash = (37 * hash) + CARRIERCODE_FIELD_NUMBER; hash = (53 * hash) + getCarrierCode().hashCode(); hash = (37 * hash) + FLIGHTNUMBER_FIELD_NUMBER; hash = (53 * hash) + getFlightNumber().hashCode(); if (hasDepartureDate()) { hash = (37 * hash) + DEPARTUREDATE_FIELD_NUMBER; hash = (53 * hash) + getDepartureDate().hashCode(); } if (hasPassenger()) { hash = (37 * hash) + PASSENGER_FIELD_NUMBER; hash = (53 * hash) + getPassenger().hashCode(); } hash = (37 * hash) + CLASS_FIELD_NUMBER; hash = (53 * hash) + getClass_().hashCode(); hash = (37 * hash) + COMPARTMENTCODE_FIELD_NUMBER; hash = (53 * hash) + compartmentCode_; hash = (37 * hash) + SEATNUMBER_FIELD_NUMBER; hash = (53 * hash) + getSeatNumber().hashCode(); hash = (37 * hash) + SEQUENCENUMBER_FIELD_NUMBER; hash = (53 * hash) + getSequenceNumber(); hash = (37 * hash) + BOARDINGGROUP_FIELD_NUMBER; hash = (53 * hash) + getBoardingGroup().hashCode(); hash = (37 * hash) + BOARDINGPOSITION_FIELD_NUMBER; hash = (53 * hash) + getBoardingPosition().hashCode(); hash = (37 * hash) + FREEBAGGAGEALLOWANCE_FIELD_NUMBER; hash = (53 * hash) + getFreeBaggageAllowance().hashCode(); hash = (37 * hash) + CARRYONALLOWANCE_FIELD_NUMBER; hash = (53 * hash) + getCarryOnAllowance().hashCode(); if (getSsrCodesCount() > 0) { hash = (37 * hash) + SSRCODES_FIELD_NUMBER; hash = (53 * hash) + getSsrCodesList().hashCode(); } hash = (37 * hash) + OSI_FIELD_NUMBER; hash = (53 * hash) + getOsi().hashCode(); hash = (37 * hash) + REMARKS_FIELD_NUMBER; hash = (53 * hash) + getRemarks().hashCode(); hash = (37 * hash) + PASSENGERSTATUS_FIELD_NUMBER; hash = (53 * hash) + passengerStatus_; if (hasConditionalItems()) { hash = (37 * hash) + CONDITIONALITEMS_FIELD_NUMBER; hash = (53 * hash) + getConditionalItems().hashCode(); } hash = (37 * hash) + BARCODEPAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getBarcodePayload().hashCode(); hash = (37 * hash) + SECURITYIMAGE_FIELD_NUMBER; hash = (53 * hash) + getSecurityImage().hashCode(); hash = (37 * hash) + PRIVILEGEIMAGE_FIELD_NUMBER; hash = (53 * hash) + getPrivilegeImage().hashCode(); hash = (37 * hash) + FOOTERIMAGE_FIELD_NUMBER; hash = (53 * hash) + getFooterImage().hashCode(); if (getLocationMessagesCount() > 0) { hash = (37 * hash) + LOCATIONMESSAGES_FIELD_NUMBER; hash = (53 * hash) + getLocationMessagesList().hashCode(); } if (getBeaconMessagesCount() > 0) { hash = (37 * hash) + BEACONMESSAGES_FIELD_NUMBER; hash = (53 * hash) + getBeaconMessagesList().hashCode(); } if (getLinksCount() > 0) { hash = (37 * hash) + LINKS_FIELD_NUMBER; hash = (53 * hash) + getLinksList().hashCode(); } hash = (37 * hash) + BARCODEADDITIONALDATA_FIELD_NUMBER; hash = (53 * hash) + getBarcodeAdditionalData().hashCode(); hash = (37 * hash) + INFANTPASSID_FIELD_NUMBER; hash = (53 * hash) + getInfantPassId().hashCode(); if (hasAdditionalDataItems()) { hash = (37 * hash) + ADDITIONALDATAITEMS_FIELD_NUMBER; hash = (53 * hash) + getAdditionalDataItems().hashCode(); } if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord 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.BoardingPass.BoardingPassRecord parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord 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.BoardingPass.BoardingPassRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord 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.BoardingPass.BoardingPassRecord parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord 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.BoardingPass.BoardingPassRecord parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord 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.BoardingPass.BoardingPassRecord prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A Boarding Pass record is unique to an individual passenger journey form a boarding point to a deplaning point. A Carrier and a Flight Designation record must exist. If a Flight record does not already exist, then it will be auto-generated based on the Flight Designation record and other publicly available data.
     * 
* * Protobuf type {@code flights.BoardingPassRecord} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flights.BoardingPassRecord) com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord.class, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord.Builder.class); } // Construct using com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLocationMessagesFieldBuilder(); getBeaconMessagesFieldBuilder(); getLinksFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; operatingCarrierPNR_ = ""; relatedPNRs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); ticketNumber_ = ""; ticketLeg_ = 0; boardingPoint_ = ""; deplaningPoint_ = ""; carrierCode_ = ""; flightNumber_ = ""; if (departureDateBuilder_ == null) { departureDate_ = null; } else { departureDate_ = null; departureDateBuilder_ = null; } if (passengerBuilder_ == null) { passenger_ = null; } else { passenger_ = null; passengerBuilder_ = null; } class__ = ""; compartmentCode_ = 0; seatNumber_ = ""; sequenceNumber_ = 0; boardingGroup_ = ""; boardingPosition_ = ""; freeBaggageAllowance_ = ""; carryOnAllowance_ = ""; ssrCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); osi_ = ""; remarks_ = ""; passengerStatus_ = 0; if (conditionalItemsBuilder_ == null) { conditionalItems_ = null; } else { conditionalItems_ = null; conditionalItemsBuilder_ = null; } barcodePayload_ = ""; securityImage_ = ""; privilegeImage_ = ""; footerImage_ = ""; if (locationMessagesBuilder_ == null) { locationMessages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { locationMessagesBuilder_.clear(); } if (beaconMessagesBuilder_ == null) { beaconMessages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { beaconMessagesBuilder_.clear(); } if (linksBuilder_ == null) { links_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { linksBuilder_.clear(); } barcodeAdditionalData_ = ""; infantPassId_ = ""; if (additionalDataItemsBuilder_ == null) { additionalDataItems_ = null; } else { additionalDataItems_ = null; additionalDataItemsBuilder_ = null; } if (metadataBuilder_ == null) { metadata_ = null; } else { metadata_ = null; metadataBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecord_descriptor; } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord getDefaultInstanceForType() { return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord build() { com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord buildPartial() { com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord result = new com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.operatingCarrierPNR_ = operatingCarrierPNR_; if (((bitField0_ & 0x00000001) != 0)) { relatedPNRs_ = relatedPNRs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.relatedPNRs_ = relatedPNRs_; result.ticketNumber_ = ticketNumber_; result.ticketLeg_ = ticketLeg_; result.boardingPoint_ = boardingPoint_; result.deplaningPoint_ = deplaningPoint_; result.carrierCode_ = carrierCode_; result.flightNumber_ = flightNumber_; if (departureDateBuilder_ == null) { result.departureDate_ = departureDate_; } else { result.departureDate_ = departureDateBuilder_.build(); } if (passengerBuilder_ == null) { result.passenger_ = passenger_; } else { result.passenger_ = passengerBuilder_.build(); } result.class__ = class__; result.compartmentCode_ = compartmentCode_; result.seatNumber_ = seatNumber_; result.sequenceNumber_ = sequenceNumber_; result.boardingGroup_ = boardingGroup_; result.boardingPosition_ = boardingPosition_; result.freeBaggageAllowance_ = freeBaggageAllowance_; result.carryOnAllowance_ = carryOnAllowance_; if (((bitField0_ & 0x00000002) != 0)) { ssrCodes_ = ssrCodes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.ssrCodes_ = ssrCodes_; result.osi_ = osi_; result.remarks_ = remarks_; result.passengerStatus_ = passengerStatus_; if (conditionalItemsBuilder_ == null) { result.conditionalItems_ = conditionalItems_; } else { result.conditionalItems_ = conditionalItemsBuilder_.build(); } result.barcodePayload_ = barcodePayload_; result.securityImage_ = securityImage_; result.privilegeImage_ = privilegeImage_; result.footerImage_ = footerImage_; if (locationMessagesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { locationMessages_ = java.util.Collections.unmodifiableList(locationMessages_); bitField0_ = (bitField0_ & ~0x00000004); } result.locationMessages_ = locationMessages_; } else { result.locationMessages_ = locationMessagesBuilder_.build(); } if (beaconMessagesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { beaconMessages_ = java.util.Collections.unmodifiableList(beaconMessages_); bitField0_ = (bitField0_ & ~0x00000008); } result.beaconMessages_ = beaconMessages_; } else { result.beaconMessages_ = beaconMessagesBuilder_.build(); } if (linksBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { links_ = java.util.Collections.unmodifiableList(links_); bitField0_ = (bitField0_ & ~0x00000010); } result.links_ = links_; } else { result.links_ = linksBuilder_.build(); } result.barcodeAdditionalData_ = barcodeAdditionalData_; result.infantPassId_ = infantPassId_; if (additionalDataItemsBuilder_ == null) { result.additionalDataItems_ = additionalDataItems_; } else { result.additionalDataItems_ = additionalDataItemsBuilder_.build(); } if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.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.BoardingPass.BoardingPassRecord) { return mergeFrom((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord other) { if (other == com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getOperatingCarrierPNR().isEmpty()) { operatingCarrierPNR_ = other.operatingCarrierPNR_; onChanged(); } if (!other.relatedPNRs_.isEmpty()) { if (relatedPNRs_.isEmpty()) { relatedPNRs_ = other.relatedPNRs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRelatedPNRsIsMutable(); relatedPNRs_.addAll(other.relatedPNRs_); } onChanged(); } if (!other.getTicketNumber().isEmpty()) { ticketNumber_ = other.ticketNumber_; onChanged(); } if (other.getTicketLeg() != 0) { setTicketLeg(other.getTicketLeg()); } if (!other.getBoardingPoint().isEmpty()) { boardingPoint_ = other.boardingPoint_; onChanged(); } if (!other.getDeplaningPoint().isEmpty()) { deplaningPoint_ = other.deplaningPoint_; onChanged(); } if (!other.getCarrierCode().isEmpty()) { carrierCode_ = other.carrierCode_; onChanged(); } if (!other.getFlightNumber().isEmpty()) { flightNumber_ = other.flightNumber_; onChanged(); } if (other.hasDepartureDate()) { mergeDepartureDate(other.getDepartureDate()); } if (other.hasPassenger()) { mergePassenger(other.getPassenger()); } if (!other.getClass_().isEmpty()) { class__ = other.class__; onChanged(); } if (other.compartmentCode_ != 0) { setCompartmentCodeValue(other.getCompartmentCodeValue()); } if (!other.getSeatNumber().isEmpty()) { seatNumber_ = other.seatNumber_; onChanged(); } if (other.getSequenceNumber() != 0) { setSequenceNumber(other.getSequenceNumber()); } if (!other.getBoardingGroup().isEmpty()) { boardingGroup_ = other.boardingGroup_; onChanged(); } if (!other.getBoardingPosition().isEmpty()) { boardingPosition_ = other.boardingPosition_; onChanged(); } if (!other.getFreeBaggageAllowance().isEmpty()) { freeBaggageAllowance_ = other.freeBaggageAllowance_; onChanged(); } if (!other.getCarryOnAllowance().isEmpty()) { carryOnAllowance_ = other.carryOnAllowance_; onChanged(); } if (!other.ssrCodes_.isEmpty()) { if (ssrCodes_.isEmpty()) { ssrCodes_ = other.ssrCodes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSsrCodesIsMutable(); ssrCodes_.addAll(other.ssrCodes_); } onChanged(); } if (!other.getOsi().isEmpty()) { osi_ = other.osi_; onChanged(); } if (!other.getRemarks().isEmpty()) { remarks_ = other.remarks_; onChanged(); } if (other.passengerStatus_ != 0) { setPassengerStatusValue(other.getPassengerStatusValue()); } if (other.hasConditionalItems()) { mergeConditionalItems(other.getConditionalItems()); } if (!other.getBarcodePayload().isEmpty()) { barcodePayload_ = other.barcodePayload_; onChanged(); } if (!other.getSecurityImage().isEmpty()) { securityImage_ = other.securityImage_; onChanged(); } if (!other.getPrivilegeImage().isEmpty()) { privilegeImage_ = other.privilegeImage_; onChanged(); } if (!other.getFooterImage().isEmpty()) { footerImage_ = other.footerImage_; onChanged(); } if (locationMessagesBuilder_ == null) { if (!other.locationMessages_.isEmpty()) { if (locationMessages_.isEmpty()) { locationMessages_ = other.locationMessages_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLocationMessagesIsMutable(); locationMessages_.addAll(other.locationMessages_); } onChanged(); } } else { if (!other.locationMessages_.isEmpty()) { if (locationMessagesBuilder_.isEmpty()) { locationMessagesBuilder_.dispose(); locationMessagesBuilder_ = null; locationMessages_ = other.locationMessages_; bitField0_ = (bitField0_ & ~0x00000004); 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_ & ~0x00000008); } else { ensureBeaconMessagesIsMutable(); beaconMessages_.addAll(other.beaconMessages_); } onChanged(); } } else { if (!other.beaconMessages_.isEmpty()) { if (beaconMessagesBuilder_.isEmpty()) { beaconMessagesBuilder_.dispose(); beaconMessagesBuilder_ = null; beaconMessages_ = other.beaconMessages_; bitField0_ = (bitField0_ & ~0x00000008); beaconMessagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBeaconMessagesFieldBuilder() : null; } else { beaconMessagesBuilder_.addAllMessages(other.beaconMessages_); } } } if (linksBuilder_ == null) { if (!other.links_.isEmpty()) { if (links_.isEmpty()) { links_ = other.links_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureLinksIsMutable(); links_.addAll(other.links_); } onChanged(); } } else { if (!other.links_.isEmpty()) { if (linksBuilder_.isEmpty()) { linksBuilder_.dispose(); linksBuilder_ = null; links_ = other.links_; bitField0_ = (bitField0_ & ~0x00000010); linksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLinksFieldBuilder() : null; } else { linksBuilder_.addAllMessages(other.links_); } } } if (!other.getBarcodeAdditionalData().isEmpty()) { barcodeAdditionalData_ = other.barcodeAdditionalData_; onChanged(); } if (!other.getInfantPassId().isEmpty()) { infantPassId_ = other.infantPassId_; onChanged(); } if (other.hasAdditionalDataItems()) { mergeAdditionalDataItems(other.getAdditionalDataItems()); } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } 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.BoardingPass.BoardingPassRecord parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * Id assigned by PassKit to represent the boarding pass record. It will be used as the serial number in Apple Wallet and as the Object identifier for Google Wallet. This field is not writable.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Id assigned by PassKit to represent the boarding pass record. It will be used as the serial number in Apple Wallet and as the Object identifier for Google Wallet. This field is not writable.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Id assigned by PassKit to represent the boarding pass record. It will be used as the serial number in Apple Wallet and as the Object identifier for Google Wallet. This field is not writable.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * Id assigned by PassKit to represent the boarding pass record. It will be used as the serial number in Apple Wallet and as the Object identifier for Google Wallet. This field is not writable.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * Id assigned by PassKit to represent the boarding pass record. It will be used as the serial number in Apple Wallet and as the Object identifier for Google Wallet. This field is not writable.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object operatingCarrierPNR_ = ""; /** *
       * PNR code of the carrier operating the flight, independent of code-share, lease or other issues.
       * 
* * string operatingCarrierPNR = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The operatingCarrierPNR. */ public java.lang.String getOperatingCarrierPNR() { java.lang.Object ref = operatingCarrierPNR_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operatingCarrierPNR_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * PNR code of the carrier operating the flight, independent of code-share, lease or other issues.
       * 
* * string operatingCarrierPNR = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for operatingCarrierPNR. */ public com.google.protobuf.ByteString getOperatingCarrierPNRBytes() { java.lang.Object ref = operatingCarrierPNR_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); operatingCarrierPNR_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * PNR code of the carrier operating the flight, independent of code-share, lease or other issues.
       * 
* * string operatingCarrierPNR = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The operatingCarrierPNR to set. * @return This builder for chaining. */ public Builder setOperatingCarrierPNR( java.lang.String value) { if (value == null) { throw new NullPointerException(); } operatingCarrierPNR_ = value; onChanged(); return this; } /** *
       * PNR code of the carrier operating the flight, independent of code-share, lease or other issues.
       * 
* * string operatingCarrierPNR = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearOperatingCarrierPNR() { operatingCarrierPNR_ = getDefaultInstance().getOperatingCarrierPNR(); onChanged(); return this; } /** *
       * PNR code of the carrier operating the flight, independent of code-share, lease or other issues.
       * 
* * string operatingCarrierPNR = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The bytes for operatingCarrierPNR to set. * @return This builder for chaining. */ public Builder setOperatingCarrierPNRBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); operatingCarrierPNR_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList relatedPNRs_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRelatedPNRsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { relatedPNRs_ = new com.google.protobuf.LazyStringArrayList(relatedPNRs_); bitField0_ |= 0x00000001; } } /** *
       * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
       * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return A list containing the relatedPNRs. */ public com.google.protobuf.ProtocolStringList getRelatedPNRsList() { return relatedPNRs_.getUnmodifiableView(); } /** *
       * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
       * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The count of relatedPNRs. */ public int getRelatedPNRsCount() { return relatedPNRs_.size(); } /** *
       * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
       * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param index The index of the element to return. * @return The relatedPNRs at the given index. */ public java.lang.String getRelatedPNRs(int index) { return relatedPNRs_.get(index); } /** *
       * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
       * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param index The index of the value to return. * @return The bytes of the relatedPNRs at the given index. */ public com.google.protobuf.ByteString getRelatedPNRsBytes(int index) { return relatedPNRs_.getByteString(index); } /** *
       * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
       * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param index The index to set the value at. * @param value The relatedPNRs to set. * @return This builder for chaining. */ public Builder setRelatedPNRs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRelatedPNRsIsMutable(); relatedPNRs_.set(index, value); onChanged(); return this; } /** *
       * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
       * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The relatedPNRs to add. * @return This builder for chaining. */ public Builder addRelatedPNRs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRelatedPNRsIsMutable(); relatedPNRs_.add(value); onChanged(); return this; } /** *
       * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
       * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param values The relatedPNRs to add. * @return This builder for chaining. */ public Builder addAllRelatedPNRs( java.lang.Iterable values) { ensureRelatedPNRsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, relatedPNRs_); onChanged(); return this; } /** *
       * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
       * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearRelatedPNRs() { relatedPNRs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Up to three related PNRs can be used to index the record and can be the marketing carrier PNR or a master PNR containing multiple bookings. If required, a related PNR can be followed by the two or three character designator of the carrier or CRS controlling the PNR, separated by an oblique.
       * 
* * repeated string relatedPNRs = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The bytes of the relatedPNRs to add. * @return This builder for chaining. */ public Builder addRelatedPNRsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRelatedPNRsIsMutable(); relatedPNRs_.add(value); onChanged(); return this; } private java.lang.Object ticketNumber_ = ""; /** *
       * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
       * 
* * string ticketNumber = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The ticketNumber. */ public java.lang.String getTicketNumber() { java.lang.Object ref = ticketNumber_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ticketNumber_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
       * 
* * string ticketNumber = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for ticketNumber. */ public com.google.protobuf.ByteString getTicketNumberBytes() { java.lang.Object ref = ticketNumber_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ticketNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
       * 
* * string ticketNumber = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The ticketNumber to set. * @return This builder for chaining. */ public Builder setTicketNumber( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ticketNumber_ = value; onChanged(); return this; } /** *
       * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
       * 
* * string ticketNumber = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearTicketNumber() { ticketNumber_ = getDefaultInstance().getTicketNumber(); onChanged(); return this; } /** *
       * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
       * 
* * string ticketNumber = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The bytes for ticketNumber to set. * @return This builder for chaining. */ public Builder setTicketNumberBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ticketNumber_ = value; onChanged(); return this; } private int ticketLeg_ ; /** *
       * The leg of the ticketed journey. For a return flight, the outbound flight would be leg 1 and the inbound flight would be leg 2.  For Direct flights, a ticketed leg includes all stops between the boarding point and deplaning point. Leg cannot be zero and ticket/leg combination cannot already exist for a 'create' call.
       * 
* * int32 ticketLeg = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The ticketLeg. */ @java.lang.Override public int getTicketLeg() { return ticketLeg_; } /** *
       * The leg of the ticketed journey. For a return flight, the outbound flight would be leg 1 and the inbound flight would be leg 2.  For Direct flights, a ticketed leg includes all stops between the boarding point and deplaning point. Leg cannot be zero and ticket/leg combination cannot already exist for a 'create' call.
       * 
* * int32 ticketLeg = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The ticketLeg to set. * @return This builder for chaining. */ public Builder setTicketLeg(int value) { ticketLeg_ = value; onChanged(); return this; } /** *
       * The leg of the ticketed journey. For a return flight, the outbound flight would be leg 1 and the inbound flight would be leg 2.  For Direct flights, a ticketed leg includes all stops between the boarding point and deplaning point. Leg cannot be zero and ticket/leg combination cannot already exist for a 'create' call.
       * 
* * int32 ticketLeg = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearTicketLeg() { ticketLeg_ = 0; onChanged(); return this; } private java.lang.Object boardingPoint_ = ""; /** *
       * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The boardingPoint. */ public java.lang.String getBoardingPoint() { java.lang.Object ref = boardingPoint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); boardingPoint_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for boardingPoint. */ public com.google.protobuf.ByteString getBoardingPointBytes() { java.lang.Object ref = boardingPoint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); boardingPoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The boardingPoint to set. * @return This builder for chaining. */ public Builder setBoardingPoint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } boardingPoint_ = value; onChanged(); return this; } /** *
       * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearBoardingPoint() { boardingPoint_ = getDefaultInstance().getBoardingPoint(); onChanged(); return this; } /** *
       * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The bytes for boardingPoint to set. * @return This builder for chaining. */ public Builder setBoardingPointBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); boardingPoint_ = value; onChanged(); return this; } private java.lang.Object deplaningPoint_ = ""; /** *
       * 3 letter IATA code or 4 letter ICAO code of the passenger deplaning point.
       * 
* * string deplaningPoint = 7 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The deplaningPoint. */ public java.lang.String getDeplaningPoint() { java.lang.Object ref = deplaningPoint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deplaningPoint_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 3 letter IATA code or 4 letter ICAO code of the passenger deplaning point.
       * 
* * string deplaningPoint = 7 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for deplaningPoint. */ public com.google.protobuf.ByteString getDeplaningPointBytes() { java.lang.Object ref = deplaningPoint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deplaningPoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 3 letter IATA code or 4 letter ICAO code of the passenger deplaning point.
       * 
* * string deplaningPoint = 7 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The deplaningPoint to set. * @return This builder for chaining. */ public Builder setDeplaningPoint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deplaningPoint_ = value; onChanged(); return this; } /** *
       * 3 letter IATA code or 4 letter ICAO code of the passenger deplaning point.
       * 
* * string deplaningPoint = 7 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearDeplaningPoint() { deplaningPoint_ = getDefaultInstance().getDeplaningPoint(); onChanged(); return this; } /** *
       * 3 letter IATA code or 4 letter ICAO code of the passenger deplaning point.
       * 
* * string deplaningPoint = 7 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The bytes for deplaningPoint to set. * @return This builder for chaining. */ public Builder setDeplaningPointBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deplaningPoint_ = value; onChanged(); return this; } private java.lang.Object carrierCode_ = ""; /** *
       * The two or three character airline code of the marketing carrier.
       * 
* * string carrierCode = 8 [(.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 two or three character airline code of the marketing carrier.
       * 
* * string carrierCode = 8 [(.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 two or three character airline code of the marketing carrier.
       * 
* * string carrierCode = 8 [(.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 two or three character airline code of the marketing carrier.
       * 
* * string carrierCode = 8 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearCarrierCode() { carrierCode_ = getDefaultInstance().getCarrierCode(); onChanged(); return this; } /** *
       * The two or three character airline code of the marketing carrier.
       * 
* * string carrierCode = 8 [(.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 of the marketing character (excluding the carrier code).
       * 
* * string flightNumber = 9 [(.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 of the marketing character (excluding the carrier code).
       * 
* * string flightNumber = 9 [(.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 of the marketing character (excluding the carrier code).
       * 
* * string flightNumber = 9 [(.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 of the marketing character (excluding the carrier code).
       * 
* * string flightNumber = 9 [(.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 of the marketing character (excluding the carrier code).
       * 
* * string flightNumber = 9 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The bytes for flightNumber to set. * @return This builder for chaining. */ public Builder setFlightNumberBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); flightNumber_ = value; onChanged(); return this; } private com.passkit.grpc.CommonObjects.Date departureDate_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder> departureDateBuilder_; /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 11; * @return Whether the departureDate field is set. */ public boolean hasDepartureDate() { return departureDateBuilder_ != null || departureDate_ != null; } /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 11; * @return The departureDate. */ public com.passkit.grpc.CommonObjects.Date getDepartureDate() { if (departureDateBuilder_ == null) { return departureDate_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : departureDate_; } else { return departureDateBuilder_.getMessage(); } } /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 11; */ public Builder setDepartureDate(com.passkit.grpc.CommonObjects.Date value) { if (departureDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } departureDate_ = value; onChanged(); } else { departureDateBuilder_.setMessage(value); } return this; } /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 11; */ public Builder setDepartureDate( com.passkit.grpc.CommonObjects.Date.Builder builderForValue) { if (departureDateBuilder_ == null) { departureDate_ = builderForValue.build(); onChanged(); } else { departureDateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 11; */ public Builder mergeDepartureDate(com.passkit.grpc.CommonObjects.Date value) { if (departureDateBuilder_ == null) { if (departureDate_ != null) { departureDate_ = com.passkit.grpc.CommonObjects.Date.newBuilder(departureDate_).mergeFrom(value).buildPartial(); } else { departureDate_ = value; } onChanged(); } else { departureDateBuilder_.mergeFrom(value); } return this; } /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 11; */ public Builder clearDepartureDate() { if (departureDateBuilder_ == null) { departureDate_ = null; onChanged(); } else { departureDate_ = null; departureDateBuilder_ = null; } return this; } /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 11; */ public com.passkit.grpc.CommonObjects.Date.Builder getDepartureDateBuilder() { onChanged(); return getDepartureDateFieldBuilder().getBuilder(); } /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 11; */ public com.passkit.grpc.CommonObjects.DateOrBuilder getDepartureDateOrBuilder() { if (departureDateBuilder_ != null) { return departureDateBuilder_.getMessageOrBuilder(); } else { return departureDate_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : departureDate_; } } /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder> getDepartureDateFieldBuilder() { if (departureDateBuilder_ == null) { departureDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder>( getDepartureDate(), getParentForChildren(), isClean()); departureDate_ = null; } return departureDateBuilder_; } private com.passkit.grpc.Flights.PassengerOuterClass.Passenger passenger_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.PassengerOuterClass.Passenger, com.passkit.grpc.Flights.PassengerOuterClass.Passenger.Builder, com.passkit.grpc.Flights.PassengerOuterClass.PassengerOrBuilder> passengerBuilder_; /** *
       * Details of the passenger and any infant.
       * 
* * .flights.Passenger passenger = 12; * @return Whether the passenger field is set. */ public boolean hasPassenger() { return passengerBuilder_ != null || passenger_ != null; } /** *
       * Details of the passenger and any infant.
       * 
* * .flights.Passenger passenger = 12; * @return The passenger. */ public com.passkit.grpc.Flights.PassengerOuterClass.Passenger getPassenger() { if (passengerBuilder_ == null) { return passenger_ == null ? com.passkit.grpc.Flights.PassengerOuterClass.Passenger.getDefaultInstance() : passenger_; } else { return passengerBuilder_.getMessage(); } } /** *
       * Details of the passenger and any infant.
       * 
* * .flights.Passenger passenger = 12; */ public Builder setPassenger(com.passkit.grpc.Flights.PassengerOuterClass.Passenger value) { if (passengerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } passenger_ = value; onChanged(); } else { passengerBuilder_.setMessage(value); } return this; } /** *
       * Details of the passenger and any infant.
       * 
* * .flights.Passenger passenger = 12; */ public Builder setPassenger( com.passkit.grpc.Flights.PassengerOuterClass.Passenger.Builder builderForValue) { if (passengerBuilder_ == null) { passenger_ = builderForValue.build(); onChanged(); } else { passengerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Details of the passenger and any infant.
       * 
* * .flights.Passenger passenger = 12; */ public Builder mergePassenger(com.passkit.grpc.Flights.PassengerOuterClass.Passenger value) { if (passengerBuilder_ == null) { if (passenger_ != null) { passenger_ = com.passkit.grpc.Flights.PassengerOuterClass.Passenger.newBuilder(passenger_).mergeFrom(value).buildPartial(); } else { passenger_ = value; } onChanged(); } else { passengerBuilder_.mergeFrom(value); } return this; } /** *
       * Details of the passenger and any infant.
       * 
* * .flights.Passenger passenger = 12; */ public Builder clearPassenger() { if (passengerBuilder_ == null) { passenger_ = null; onChanged(); } else { passenger_ = null; passengerBuilder_ = null; } return this; } /** *
       * Details of the passenger and any infant.
       * 
* * .flights.Passenger passenger = 12; */ public com.passkit.grpc.Flights.PassengerOuterClass.Passenger.Builder getPassengerBuilder() { onChanged(); return getPassengerFieldBuilder().getBuilder(); } /** *
       * Details of the passenger and any infant.
       * 
* * .flights.Passenger passenger = 12; */ public com.passkit.grpc.Flights.PassengerOuterClass.PassengerOrBuilder getPassengerOrBuilder() { if (passengerBuilder_ != null) { return passengerBuilder_.getMessageOrBuilder(); } else { return passenger_ == null ? com.passkit.grpc.Flights.PassengerOuterClass.Passenger.getDefaultInstance() : passenger_; } } /** *
       * Details of the passenger and any infant.
       * 
* * .flights.Passenger passenger = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.PassengerOuterClass.Passenger, com.passkit.grpc.Flights.PassengerOuterClass.Passenger.Builder, com.passkit.grpc.Flights.PassengerOuterClass.PassengerOrBuilder> getPassengerFieldBuilder() { if (passengerBuilder_ == null) { passengerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.PassengerOuterClass.Passenger, com.passkit.grpc.Flights.PassengerOuterClass.Passenger.Builder, com.passkit.grpc.Flights.PassengerOuterClass.PassengerOrBuilder>( getPassenger(), getParentForChildren(), isClean()); passenger_ = null; } return passengerBuilder_; } private java.lang.Object class__ = ""; /** *
       * Free-form text that can be used to describe the ticket class, tier or cabin. E.g. "Business", "Premium Economy", "Club World".
       * 
* * string class = 13; * @return The class. */ public java.lang.String getClass_() { java.lang.Object ref = class__; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); class__ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Free-form text that can be used to describe the ticket class, tier or cabin. E.g. "Business", "Premium Economy", "Club World".
       * 
* * string class = 13; * @return The bytes for class. */ public com.google.protobuf.ByteString getClass_Bytes() { java.lang.Object ref = class__; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); class__ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Free-form text that can be used to describe the ticket class, tier or cabin. E.g. "Business", "Premium Economy", "Club World".
       * 
* * string class = 13; * @param value The class to set. * @return This builder for chaining. */ public Builder setClass_( java.lang.String value) { if (value == null) { throw new NullPointerException(); } class__ = value; onChanged(); return this; } /** *
       * Free-form text that can be used to describe the ticket class, tier or cabin. E.g. "Business", "Premium Economy", "Club World".
       * 
* * string class = 13; * @return This builder for chaining. */ public Builder clearClass_() { class__ = getDefaultInstance().getClass_(); onChanged(); return this; } /** *
       * Free-form text that can be used to describe the ticket class, tier or cabin. E.g. "Business", "Premium Economy", "Club World".
       * 
* * string class = 13; * @param value The bytes for class to set. * @return This builder for chaining. */ public Builder setClass_Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); class__ = value; onChanged(); return this; } private int compartmentCode_ = 0; /** *
       * The compartment code / class of the ticket.
       * 
* * .cabin_codes.CompartmentCode compartmentCode = 14; * @return The enum numeric value on the wire for compartmentCode. */ @java.lang.Override public int getCompartmentCodeValue() { return compartmentCode_; } /** *
       * The compartment code / class of the ticket.
       * 
* * .cabin_codes.CompartmentCode compartmentCode = 14; * @param value The enum numeric value on the wire for compartmentCode to set. * @return This builder for chaining. */ public Builder setCompartmentCodeValue(int value) { compartmentCode_ = value; onChanged(); return this; } /** *
       * The compartment code / class of the ticket.
       * 
* * .cabin_codes.CompartmentCode compartmentCode = 14; * @return The compartmentCode. */ @java.lang.Override public com.passkit.grpc.Flights.CabinCodes.CabinCodes.CompartmentCode getCompartmentCode() { @SuppressWarnings("deprecation") com.passkit.grpc.Flights.CabinCodes.CabinCodes.CompartmentCode result = com.passkit.grpc.Flights.CabinCodes.CabinCodes.CompartmentCode.valueOf(compartmentCode_); return result == null ? com.passkit.grpc.Flights.CabinCodes.CabinCodes.CompartmentCode.UNRECOGNIZED : result; } /** *
       * The compartment code / class of the ticket.
       * 
* * .cabin_codes.CompartmentCode compartmentCode = 14; * @param value The compartmentCode to set. * @return This builder for chaining. */ public Builder setCompartmentCode(com.passkit.grpc.Flights.CabinCodes.CabinCodes.CompartmentCode value) { if (value == null) { throw new NullPointerException(); } compartmentCode_ = value.getNumber(); onChanged(); return this; } /** *
       * The compartment code / class of the ticket.
       * 
* * .cabin_codes.CompartmentCode compartmentCode = 14; * @return This builder for chaining. */ public Builder clearCompartmentCode() { compartmentCode_ = 0; onChanged(); return this; } private java.lang.Object seatNumber_ = ""; /** *
       * The allocated seat number.  The text "ANY" or "XXX" can be used where a free seating condition exists.
       * 
* * string seatNumber = 15 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The seatNumber. */ public java.lang.String getSeatNumber() { java.lang.Object ref = seatNumber_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); seatNumber_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The allocated seat number.  The text "ANY" or "XXX" can be used where a free seating condition exists.
       * 
* * string seatNumber = 15 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for seatNumber. */ public com.google.protobuf.ByteString getSeatNumberBytes() { java.lang.Object ref = seatNumber_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); seatNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The allocated seat number.  The text "ANY" or "XXX" can be used where a free seating condition exists.
       * 
* * string seatNumber = 15 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The seatNumber to set. * @return This builder for chaining. */ public Builder setSeatNumber( java.lang.String value) { if (value == null) { throw new NullPointerException(); } seatNumber_ = value; onChanged(); return this; } /** *
       * The allocated seat number.  The text "ANY" or "XXX" can be used where a free seating condition exists.
       * 
* * string seatNumber = 15 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearSeatNumber() { seatNumber_ = getDefaultInstance().getSeatNumber(); onChanged(); return this; } /** *
       * The allocated seat number.  The text "ANY" or "XXX" can be used where a free seating condition exists.
       * 
* * string seatNumber = 15 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The bytes for seatNumber to set. * @return This builder for chaining. */ public Builder setSeatNumberBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); seatNumber_ = value; onChanged(); return this; } private int sequenceNumber_ ; /** *
       * The check in sequence number.
       * 
* * int32 sequenceNumber = 16; * @return The sequenceNumber. */ @java.lang.Override public int getSequenceNumber() { return sequenceNumber_; } /** *
       * The check in sequence number.
       * 
* * int32 sequenceNumber = 16; * @param value The sequenceNumber to set. * @return This builder for chaining. */ public Builder setSequenceNumber(int value) { sequenceNumber_ = value; onChanged(); return this; } /** *
       * The check in sequence number.
       * 
* * int32 sequenceNumber = 16; * @return This builder for chaining. */ public Builder clearSequenceNumber() { sequenceNumber_ = 0; onChanged(); return this; } private java.lang.Object boardingGroup_ = ""; /** *
       * A boarding group or zone indicator. This is displayed on the pass to assist passengers and ground-staff to expedite boarding.
       * 
* * string boardingGroup = 17; * @return The boardingGroup. */ public java.lang.String getBoardingGroup() { java.lang.Object ref = boardingGroup_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); boardingGroup_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A boarding group or zone indicator. This is displayed on the pass to assist passengers and ground-staff to expedite boarding.
       * 
* * string boardingGroup = 17; * @return The bytes for boardingGroup. */ public com.google.protobuf.ByteString getBoardingGroupBytes() { java.lang.Object ref = boardingGroup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); boardingGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A boarding group or zone indicator. This is displayed on the pass to assist passengers and ground-staff to expedite boarding.
       * 
* * string boardingGroup = 17; * @param value The boardingGroup to set. * @return This builder for chaining. */ public Builder setBoardingGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } boardingGroup_ = value; onChanged(); return this; } /** *
       * A boarding group or zone indicator. This is displayed on the pass to assist passengers and ground-staff to expedite boarding.
       * 
* * string boardingGroup = 17; * @return This builder for chaining. */ public Builder clearBoardingGroup() { boardingGroup_ = getDefaultInstance().getBoardingGroup(); onChanged(); return this; } /** *
       * A boarding group or zone indicator. This is displayed on the pass to assist passengers and ground-staff to expedite boarding.
       * 
* * string boardingGroup = 17; * @param value The bytes for boardingGroup to set. * @return This builder for chaining. */ public Builder setBoardingGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); boardingGroup_ = value; onChanged(); return this; } private java.lang.Object boardingPosition_ = ""; /** *
       * An additional field to indicate boarding priority or order.
       * 
* * string boardingPosition = 18; * @return The boardingPosition. */ public java.lang.String getBoardingPosition() { java.lang.Object ref = boardingPosition_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); boardingPosition_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * An additional field to indicate boarding priority or order.
       * 
* * string boardingPosition = 18; * @return The bytes for boardingPosition. */ public com.google.protobuf.ByteString getBoardingPositionBytes() { java.lang.Object ref = boardingPosition_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); boardingPosition_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * An additional field to indicate boarding priority or order.
       * 
* * string boardingPosition = 18; * @param value The boardingPosition to set. * @return This builder for chaining. */ public Builder setBoardingPosition( java.lang.String value) { if (value == null) { throw new NullPointerException(); } boardingPosition_ = value; onChanged(); return this; } /** *
       * An additional field to indicate boarding priority or order.
       * 
* * string boardingPosition = 18; * @return This builder for chaining. */ public Builder clearBoardingPosition() { boardingPosition_ = getDefaultInstance().getBoardingPosition(); onChanged(); return this; } /** *
       * An additional field to indicate boarding priority or order.
       * 
* * string boardingPosition = 18; * @param value The bytes for boardingPosition to set. * @return This builder for chaining. */ public Builder setBoardingPositionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); boardingPosition_ = value; onChanged(); return this; } private java.lang.Object freeBaggageAllowance_ = ""; /** *
       * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
       * 
* * string freeBaggageAllowance = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The freeBaggageAllowance. */ public java.lang.String getFreeBaggageAllowance() { java.lang.Object ref = freeBaggageAllowance_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); freeBaggageAllowance_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
       * 
* * string freeBaggageAllowance = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for freeBaggageAllowance. */ public com.google.protobuf.ByteString getFreeBaggageAllowanceBytes() { java.lang.Object ref = freeBaggageAllowance_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); freeBaggageAllowance_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
       * 
* * string freeBaggageAllowance = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The freeBaggageAllowance to set. * @return This builder for chaining. */ public Builder setFreeBaggageAllowance( java.lang.String value) { if (value == null) { throw new NullPointerException(); } freeBaggageAllowance_ = value; onChanged(); return this; } /** *
       * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
       * 
* * string freeBaggageAllowance = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearFreeBaggageAllowance() { freeBaggageAllowance_ = getDefaultInstance().getFreeBaggageAllowance(); onChanged(); return this; } /** *
       * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
       * 
* * string freeBaggageAllowance = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The bytes for freeBaggageAllowance to set. * @return This builder for chaining. */ public Builder setFreeBaggageAllowanceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); freeBaggageAllowance_ = value; onChanged(); return this; } private java.lang.Object carryOnAllowance_ = ""; /** *
       * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
       * 
* * string carryOnAllowance = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The carryOnAllowance. */ public java.lang.String getCarryOnAllowance() { java.lang.Object ref = carryOnAllowance_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); carryOnAllowance_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
       * 
* * string carryOnAllowance = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for carryOnAllowance. */ public com.google.protobuf.ByteString getCarryOnAllowanceBytes() { java.lang.Object ref = carryOnAllowance_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); carryOnAllowance_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
       * 
* * string carryOnAllowance = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The carryOnAllowance to set. * @return This builder for chaining. */ public Builder setCarryOnAllowance( java.lang.String value) { if (value == null) { throw new NullPointerException(); } carryOnAllowance_ = value; onChanged(); return this; } /** *
       * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
       * 
* * string carryOnAllowance = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearCarryOnAllowance() { carryOnAllowance_ = getDefaultInstance().getCarryOnAllowance(); onChanged(); return this; } /** *
       * 3 character string comprising the quantity, followed by the unit code (PC - piece, L - lbs, K - kgs). E.g. 2PC, 20K.
       * 
* * string carryOnAllowance = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The bytes for carryOnAllowance to set. * @return This builder for chaining. */ public Builder setCarryOnAllowanceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); carryOnAllowance_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList ssrCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSsrCodesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { ssrCodes_ = new com.google.protobuf.LazyStringArrayList(ssrCodes_); bitField0_ |= 0x00000002; } } /** *
       * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
       * 
* * repeated string ssrCodes = 21; * @return A list containing the ssrCodes. */ public com.google.protobuf.ProtocolStringList getSsrCodesList() { return ssrCodes_.getUnmodifiableView(); } /** *
       * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
       * 
* * repeated string ssrCodes = 21; * @return The count of ssrCodes. */ public int getSsrCodesCount() { return ssrCodes_.size(); } /** *
       * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
       * 
* * repeated string ssrCodes = 21; * @param index The index of the element to return. * @return The ssrCodes at the given index. */ public java.lang.String getSsrCodes(int index) { return ssrCodes_.get(index); } /** *
       * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
       * 
* * repeated string ssrCodes = 21; * @param index The index of the value to return. * @return The bytes of the ssrCodes at the given index. */ public com.google.protobuf.ByteString getSsrCodesBytes(int index) { return ssrCodes_.getByteString(index); } /** *
       * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
       * 
* * repeated string ssrCodes = 21; * @param index The index to set the value at. * @param value The ssrCodes to set. * @return This builder for chaining. */ public Builder setSsrCodes( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSsrCodesIsMutable(); ssrCodes_.set(index, value); onChanged(); return this; } /** *
       * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
       * 
* * repeated string ssrCodes = 21; * @param value The ssrCodes to add. * @return This builder for chaining. */ public Builder addSsrCodes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSsrCodesIsMutable(); ssrCodes_.add(value); onChanged(); return this; } /** *
       * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
       * 
* * repeated string ssrCodes = 21; * @param values The ssrCodes to add. * @return This builder for chaining. */ public Builder addAllSsrCodes( java.lang.Iterable values) { ensureSsrCodesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ssrCodes_); onChanged(); return this; } /** *
       * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
       * 
* * repeated string ssrCodes = 21; * @return This builder for chaining. */ public Builder clearSsrCodes() { ssrCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * An array of SSR codes. Codes should be 4 capitalized letters. Codes may be annotated.
       * 
* * repeated string ssrCodes = 21; * @param value The bytes of the ssrCodes to add. * @return This builder for chaining. */ public Builder addSsrCodesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSsrCodesIsMutable(); ssrCodes_.add(value); onChanged(); return this; } private java.lang.Object osi_ = ""; /** *
       * Other service information that may be relevant to the booking.
       * 
* * string osi = 22; * @return The osi. */ public java.lang.String getOsi() { java.lang.Object ref = osi_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); osi_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Other service information that may be relevant to the booking.
       * 
* * string osi = 22; * @return The bytes for osi. */ public com.google.protobuf.ByteString getOsiBytes() { java.lang.Object ref = osi_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); osi_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Other service information that may be relevant to the booking.
       * 
* * string osi = 22; * @param value The osi to set. * @return This builder for chaining. */ public Builder setOsi( java.lang.String value) { if (value == null) { throw new NullPointerException(); } osi_ = value; onChanged(); return this; } /** *
       * Other service information that may be relevant to the booking.
       * 
* * string osi = 22; * @return This builder for chaining. */ public Builder clearOsi() { osi_ = getDefaultInstance().getOsi(); onChanged(); return this; } /** *
       * Other service information that may be relevant to the booking.
       * 
* * string osi = 22; * @param value The bytes for osi to set. * @return This builder for chaining. */ public Builder setOsiBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); osi_ = value; onChanged(); return this; } private java.lang.Object remarks_ = ""; /** *
       * Free text booking remarks.
       * 
* * string remarks = 23; * @return The remarks. */ public java.lang.String getRemarks() { java.lang.Object ref = remarks_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); remarks_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Free text booking remarks.
       * 
* * string remarks = 23; * @return The bytes for remarks. */ public com.google.protobuf.ByteString getRemarksBytes() { java.lang.Object ref = remarks_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); remarks_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Free text booking remarks.
       * 
* * string remarks = 23; * @param value The remarks to set. * @return This builder for chaining. */ public Builder setRemarks( java.lang.String value) { if (value == null) { throw new NullPointerException(); } remarks_ = value; onChanged(); return this; } /** *
       * Free text booking remarks.
       * 
* * string remarks = 23; * @return This builder for chaining. */ public Builder clearRemarks() { remarks_ = getDefaultInstance().getRemarks(); onChanged(); return this; } /** *
       * Free text booking remarks.
       * 
* * string remarks = 23; * @param value The bytes for remarks to set. * @return This builder for chaining. */ public Builder setRemarksBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); remarks_ = value; onChanged(); return this; } private int passengerStatus_ = 0; /** *
       * Passenger Description as detailed in IATA PSC Resolution 792 Attachment 'C'.
       * 
* * .flights.PassengerStatus passengerStatus = 24; * @return The enum numeric value on the wire for passengerStatus. */ @java.lang.Override public int getPassengerStatusValue() { return passengerStatus_; } /** *
       * Passenger Description as detailed in IATA PSC Resolution 792 Attachment 'C'.
       * 
* * .flights.PassengerStatus passengerStatus = 24; * @param value The enum numeric value on the wire for passengerStatus to set. * @return This builder for chaining. */ public Builder setPassengerStatusValue(int value) { passengerStatus_ = value; onChanged(); return this; } /** *
       * Passenger Description as detailed in IATA PSC Resolution 792 Attachment 'C'.
       * 
* * .flights.PassengerStatus passengerStatus = 24; * @return The passengerStatus. */ @java.lang.Override public com.passkit.grpc.Flights.Barcode.PassengerStatus getPassengerStatus() { @SuppressWarnings("deprecation") com.passkit.grpc.Flights.Barcode.PassengerStatus result = com.passkit.grpc.Flights.Barcode.PassengerStatus.valueOf(passengerStatus_); return result == null ? com.passkit.grpc.Flights.Barcode.PassengerStatus.UNRECOGNIZED : result; } /** *
       * Passenger Description as detailed in IATA PSC Resolution 792 Attachment 'C'.
       * 
* * .flights.PassengerStatus passengerStatus = 24; * @param value The passengerStatus to set. * @return This builder for chaining. */ public Builder setPassengerStatus(com.passkit.grpc.Flights.Barcode.PassengerStatus value) { if (value == null) { throw new NullPointerException(); } passengerStatus_ = value.getNumber(); onChanged(); return this; } /** *
       * Passenger Description as detailed in IATA PSC Resolution 792 Attachment 'C'.
       * 
* * .flights.PassengerStatus passengerStatus = 24; * @return This builder for chaining. */ public Builder clearPassengerStatus() { passengerStatus_ = 0; onChanged(); return this; } private com.passkit.grpc.Flights.Barcode.ConditionalItems conditionalItems_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.Barcode.ConditionalItems, com.passkit.grpc.Flights.Barcode.ConditionalItems.Builder, com.passkit.grpc.Flights.Barcode.ConditionalItemsOrBuilder> conditionalItemsBuilder_; /** *
       * Conditional items for the flight segment as described in IATA PSC Resolution 792.
       * 
* * .flights.ConditionalItems conditionalItems = 25; * @return Whether the conditionalItems field is set. */ public boolean hasConditionalItems() { return conditionalItemsBuilder_ != null || conditionalItems_ != null; } /** *
       * Conditional items for the flight segment as described in IATA PSC Resolution 792.
       * 
* * .flights.ConditionalItems conditionalItems = 25; * @return The conditionalItems. */ public com.passkit.grpc.Flights.Barcode.ConditionalItems getConditionalItems() { if (conditionalItemsBuilder_ == null) { return conditionalItems_ == null ? com.passkit.grpc.Flights.Barcode.ConditionalItems.getDefaultInstance() : conditionalItems_; } else { return conditionalItemsBuilder_.getMessage(); } } /** *
       * Conditional items for the flight segment as described in IATA PSC Resolution 792.
       * 
* * .flights.ConditionalItems conditionalItems = 25; */ public Builder setConditionalItems(com.passkit.grpc.Flights.Barcode.ConditionalItems value) { if (conditionalItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } conditionalItems_ = value; onChanged(); } else { conditionalItemsBuilder_.setMessage(value); } return this; } /** *
       * Conditional items for the flight segment as described in IATA PSC Resolution 792.
       * 
* * .flights.ConditionalItems conditionalItems = 25; */ public Builder setConditionalItems( com.passkit.grpc.Flights.Barcode.ConditionalItems.Builder builderForValue) { if (conditionalItemsBuilder_ == null) { conditionalItems_ = builderForValue.build(); onChanged(); } else { conditionalItemsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Conditional items for the flight segment as described in IATA PSC Resolution 792.
       * 
* * .flights.ConditionalItems conditionalItems = 25; */ public Builder mergeConditionalItems(com.passkit.grpc.Flights.Barcode.ConditionalItems value) { if (conditionalItemsBuilder_ == null) { if (conditionalItems_ != null) { conditionalItems_ = com.passkit.grpc.Flights.Barcode.ConditionalItems.newBuilder(conditionalItems_).mergeFrom(value).buildPartial(); } else { conditionalItems_ = value; } onChanged(); } else { conditionalItemsBuilder_.mergeFrom(value); } return this; } /** *
       * Conditional items for the flight segment as described in IATA PSC Resolution 792.
       * 
* * .flights.ConditionalItems conditionalItems = 25; */ public Builder clearConditionalItems() { if (conditionalItemsBuilder_ == null) { conditionalItems_ = null; onChanged(); } else { conditionalItems_ = null; conditionalItemsBuilder_ = null; } return this; } /** *
       * Conditional items for the flight segment as described in IATA PSC Resolution 792.
       * 
* * .flights.ConditionalItems conditionalItems = 25; */ public com.passkit.grpc.Flights.Barcode.ConditionalItems.Builder getConditionalItemsBuilder() { onChanged(); return getConditionalItemsFieldBuilder().getBuilder(); } /** *
       * Conditional items for the flight segment as described in IATA PSC Resolution 792.
       * 
* * .flights.ConditionalItems conditionalItems = 25; */ public com.passkit.grpc.Flights.Barcode.ConditionalItemsOrBuilder getConditionalItemsOrBuilder() { if (conditionalItemsBuilder_ != null) { return conditionalItemsBuilder_.getMessageOrBuilder(); } else { return conditionalItems_ == null ? com.passkit.grpc.Flights.Barcode.ConditionalItems.getDefaultInstance() : conditionalItems_; } } /** *
       * Conditional items for the flight segment as described in IATA PSC Resolution 792.
       * 
* * .flights.ConditionalItems conditionalItems = 25; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.Barcode.ConditionalItems, com.passkit.grpc.Flights.Barcode.ConditionalItems.Builder, com.passkit.grpc.Flights.Barcode.ConditionalItemsOrBuilder> getConditionalItemsFieldBuilder() { if (conditionalItemsBuilder_ == null) { conditionalItemsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.Barcode.ConditionalItems, com.passkit.grpc.Flights.Barcode.ConditionalItems.Builder, com.passkit.grpc.Flights.Barcode.ConditionalItemsOrBuilder>( getConditionalItems(), getParentForChildren(), isClean()); conditionalItems_ = null; } return conditionalItemsBuilder_; } private java.lang.Object barcodePayload_ = ""; /** *
       * Payload to be encoded in the pass barcode. If omitted, an IATA BCBP Standard (Resolution 792) barcode will be generated.
       * 
* * string barcodePayload = 26; * @return The barcodePayload. */ public java.lang.String getBarcodePayload() { java.lang.Object ref = barcodePayload_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); barcodePayload_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Payload to be encoded in the pass barcode. If omitted, an IATA BCBP Standard (Resolution 792) barcode will be generated.
       * 
* * string barcodePayload = 26; * @return The bytes for barcodePayload. */ public com.google.protobuf.ByteString getBarcodePayloadBytes() { java.lang.Object ref = barcodePayload_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); barcodePayload_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Payload to be encoded in the pass barcode. If omitted, an IATA BCBP Standard (Resolution 792) barcode will be generated.
       * 
* * string barcodePayload = 26; * @param value The barcodePayload to set. * @return This builder for chaining. */ public Builder setBarcodePayload( java.lang.String value) { if (value == null) { throw new NullPointerException(); } barcodePayload_ = value; onChanged(); return this; } /** *
       * Payload to be encoded in the pass barcode. If omitted, an IATA BCBP Standard (Resolution 792) barcode will be generated.
       * 
* * string barcodePayload = 26; * @return This builder for chaining. */ public Builder clearBarcodePayload() { barcodePayload_ = getDefaultInstance().getBarcodePayload(); onChanged(); return this; } /** *
       * Payload to be encoded in the pass barcode. If omitted, an IATA BCBP Standard (Resolution 792) barcode will be generated.
       * 
* * string barcodePayload = 26; * @param value The bytes for barcodePayload to set. * @return This builder for chaining. */ public Builder setBarcodePayloadBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); barcodePayload_ = value; onChanged(); return this; } private java.lang.Object securityImage_ = ""; /** *
       * Security image id for display above the barcode on a Google Pay pass.
       * 
* * string securityImage = 27; * @return The securityImage. */ public java.lang.String getSecurityImage() { java.lang.Object ref = securityImage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); securityImage_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Security image id for display above the barcode on a Google Pay pass.
       * 
* * string securityImage = 27; * @return The bytes for securityImage. */ public com.google.protobuf.ByteString getSecurityImageBytes() { java.lang.Object ref = securityImage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); securityImage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Security image id for display above the barcode on a Google Pay pass.
       * 
* * string securityImage = 27; * @param value The securityImage to set. * @return This builder for chaining. */ public Builder setSecurityImage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } securityImage_ = value; onChanged(); return this; } /** *
       * Security image id for display above the barcode on a Google Pay pass.
       * 
* * string securityImage = 27; * @return This builder for chaining. */ public Builder clearSecurityImage() { securityImage_ = getDefaultInstance().getSecurityImage(); onChanged(); return this; } /** *
       * Security image id for display above the barcode on a Google Pay pass.
       * 
* * string securityImage = 27; * @param value The bytes for securityImage to set. * @return This builder for chaining. */ public Builder setSecurityImageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); securityImage_ = value; onChanged(); return this; } private java.lang.Object privilegeImage_ = ""; /** *
       * Privilege image id for display above the barcode on a Google Pay pass.
       * 
* * string privilegeImage = 28; * @return The privilegeImage. */ public java.lang.String getPrivilegeImage() { java.lang.Object ref = privilegeImage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privilegeImage_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Privilege image id for display above the barcode on a Google Pay pass.
       * 
* * string privilegeImage = 28; * @return The bytes for privilegeImage. */ public com.google.protobuf.ByteString getPrivilegeImageBytes() { java.lang.Object ref = privilegeImage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); privilegeImage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Privilege image id for display above the barcode on a Google Pay pass.
       * 
* * string privilegeImage = 28; * @param value The privilegeImage to set. * @return This builder for chaining. */ public Builder setPrivilegeImage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } privilegeImage_ = value; onChanged(); return this; } /** *
       * Privilege image id for display above the barcode on a Google Pay pass.
       * 
* * string privilegeImage = 28; * @return This builder for chaining. */ public Builder clearPrivilegeImage() { privilegeImage_ = getDefaultInstance().getPrivilegeImage(); onChanged(); return this; } /** *
       * Privilege image id for display above the barcode on a Google Pay pass.
       * 
* * string privilegeImage = 28; * @param value The bytes for privilegeImage to set. * @return This builder for chaining. */ public Builder setPrivilegeImageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); privilegeImage_ = value; onChanged(); return this; } private java.lang.Object footerImage_ = ""; /** *
       * Footer image id for display above the barcode on iOS devices.
       * 
* * string footerImage = 29; * @return The footerImage. */ public java.lang.String getFooterImage() { java.lang.Object ref = footerImage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); footerImage_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Footer image id for display above the barcode on iOS devices.
       * 
* * string footerImage = 29; * @return The bytes for footerImage. */ public com.google.protobuf.ByteString getFooterImageBytes() { java.lang.Object ref = footerImage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); footerImage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Footer image id for display above the barcode on iOS devices.
       * 
* * string footerImage = 29; * @param value The footerImage to set. * @return This builder for chaining. */ public Builder setFooterImage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } footerImage_ = value; onChanged(); return this; } /** *
       * Footer image id for display above the barcode on iOS devices.
       * 
* * string footerImage = 29; * @return This builder for chaining. */ public Builder clearFooterImage() { footerImage_ = getDefaultInstance().getFooterImage(); onChanged(); return this; } /** *
       * Footer image id for display above the barcode on iOS devices.
       * 
* * string footerImage = 29; * @param value The bytes for footerImage to set. * @return This builder for chaining. */ public Builder setFooterImageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); footerImage_ = value; onChanged(); return this; } private java.util.List locationMessages_ = java.util.Collections.emptyList(); private void ensureLocationMessagesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { locationMessages_ = new java.util.ArrayList(locationMessages_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.passkit.grpc.Proximity.GPSLocation, com.passkit.grpc.Proximity.GPSLocation.Builder, com.passkit.grpc.Proximity.GPSLocationOrBuilder> locationMessagesBuilder_; /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public java.util.List getLocationMessagesList() { if (locationMessagesBuilder_ == null) { return java.util.Collections.unmodifiableList(locationMessages_); } else { return locationMessagesBuilder_.getMessageList(); } } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public int getLocationMessagesCount() { if (locationMessagesBuilder_ == null) { return locationMessages_.size(); } else { return locationMessagesBuilder_.getCount(); } } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Proximity.GPSLocation getLocationMessages(int index) { if (locationMessagesBuilder_ == null) { return locationMessages_.get(index); } else { return locationMessagesBuilder_.getMessage(index); } } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder setLocationMessages( int index, com.passkit.grpc.Proximity.GPSLocation value) { if (locationMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationMessagesIsMutable(); locationMessages_.set(index, value); onChanged(); } else { locationMessagesBuilder_.setMessage(index, value); } return this; } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder setLocationMessages( int index, com.passkit.grpc.Proximity.GPSLocation.Builder builderForValue) { if (locationMessagesBuilder_ == null) { ensureLocationMessagesIsMutable(); locationMessages_.set(index, builderForValue.build()); onChanged(); } else { locationMessagesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder addLocationMessages(com.passkit.grpc.Proximity.GPSLocation value) { if (locationMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationMessagesIsMutable(); locationMessages_.add(value); onChanged(); } else { locationMessagesBuilder_.addMessage(value); } return this; } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder addLocationMessages( int index, com.passkit.grpc.Proximity.GPSLocation value) { if (locationMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationMessagesIsMutable(); locationMessages_.add(index, value); onChanged(); } else { locationMessagesBuilder_.addMessage(index, value); } return this; } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder addLocationMessages( com.passkit.grpc.Proximity.GPSLocation.Builder builderForValue) { if (locationMessagesBuilder_ == null) { ensureLocationMessagesIsMutable(); locationMessages_.add(builderForValue.build()); onChanged(); } else { locationMessagesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder addLocationMessages( int index, com.passkit.grpc.Proximity.GPSLocation.Builder builderForValue) { if (locationMessagesBuilder_ == null) { ensureLocationMessagesIsMutable(); locationMessages_.add(index, builderForValue.build()); onChanged(); } else { locationMessagesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder addAllLocationMessages( java.lang.Iterable values) { if (locationMessagesBuilder_ == null) { ensureLocationMessagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, locationMessages_); onChanged(); } else { locationMessagesBuilder_.addAllMessages(values); } return this; } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder clearLocationMessages() { if (locationMessagesBuilder_ == null) { locationMessages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { locationMessagesBuilder_.clear(); } return this; } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder removeLocationMessages(int index) { if (locationMessagesBuilder_ == null) { ensureLocationMessagesIsMutable(); locationMessages_.remove(index); onChanged(); } else { locationMessagesBuilder_.remove(index); } return this; } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Proximity.GPSLocation.Builder getLocationMessagesBuilder( int index) { return getLocationMessagesFieldBuilder().getBuilder(index); } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Proximity.GPSLocationOrBuilder getLocationMessagesOrBuilder( int index) { if (locationMessagesBuilder_ == null) { return locationMessages_.get(index); } else { return locationMessagesBuilder_.getMessageOrBuilder(index); } } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public java.util.List getLocationMessagesOrBuilderList() { if (locationMessagesBuilder_ != null) { return locationMessagesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(locationMessages_); } } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Proximity.GPSLocation.Builder addLocationMessagesBuilder() { return getLocationMessagesFieldBuilder().addBuilder( com.passkit.grpc.Proximity.GPSLocation.getDefaultInstance()); } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Proximity.GPSLocation.Builder addLocationMessagesBuilder( int index) { return getLocationMessagesFieldBuilder().addBuilder( index, com.passkit.grpc.Proximity.GPSLocation.getDefaultInstance()); } /** *
       * A list of up to 10 GPS locations where this boarding pass should be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.GPSLocation locationMessages = 30 [(.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_ & 0x00000004) != 0), getParentForChildren(), isClean()); locationMessages_ = null; } return locationMessagesBuilder_; } private java.util.List beaconMessages_ = java.util.Collections.emptyList(); private void ensureBeaconMessagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { beaconMessages_ = new java.util.ArrayList(beaconMessages_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.passkit.grpc.Proximity.Beacon, com.passkit.grpc.Proximity.Beacon.Builder, com.passkit.grpc.Proximity.BeaconOrBuilder> beaconMessagesBuilder_; /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public java.util.List getBeaconMessagesList() { if (beaconMessagesBuilder_ == null) { return java.util.Collections.unmodifiableList(beaconMessages_); } else { return beaconMessagesBuilder_.getMessageList(); } } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public int getBeaconMessagesCount() { if (beaconMessagesBuilder_ == null) { return beaconMessages_.size(); } else { return beaconMessagesBuilder_.getCount(); } } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Proximity.Beacon getBeaconMessages(int index) { if (beaconMessagesBuilder_ == null) { return beaconMessages_.get(index); } else { return beaconMessagesBuilder_.getMessage(index); } } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder setBeaconMessages( int index, com.passkit.grpc.Proximity.Beacon value) { if (beaconMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBeaconMessagesIsMutable(); beaconMessages_.set(index, value); onChanged(); } else { beaconMessagesBuilder_.setMessage(index, value); } return this; } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder setBeaconMessages( int index, com.passkit.grpc.Proximity.Beacon.Builder builderForValue) { if (beaconMessagesBuilder_ == null) { ensureBeaconMessagesIsMutable(); beaconMessages_.set(index, builderForValue.build()); onChanged(); } else { beaconMessagesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder addBeaconMessages(com.passkit.grpc.Proximity.Beacon value) { if (beaconMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBeaconMessagesIsMutable(); beaconMessages_.add(value); onChanged(); } else { beaconMessagesBuilder_.addMessage(value); } return this; } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder addBeaconMessages( int index, com.passkit.grpc.Proximity.Beacon value) { if (beaconMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBeaconMessagesIsMutable(); beaconMessages_.add(index, value); onChanged(); } else { beaconMessagesBuilder_.addMessage(index, value); } return this; } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder addBeaconMessages( com.passkit.grpc.Proximity.Beacon.Builder builderForValue) { if (beaconMessagesBuilder_ == null) { ensureBeaconMessagesIsMutable(); beaconMessages_.add(builderForValue.build()); onChanged(); } else { beaconMessagesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder addBeaconMessages( int index, com.passkit.grpc.Proximity.Beacon.Builder builderForValue) { if (beaconMessagesBuilder_ == null) { ensureBeaconMessagesIsMutable(); beaconMessages_.add(index, builderForValue.build()); onChanged(); } else { beaconMessagesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder addAllBeaconMessages( java.lang.Iterable values) { if (beaconMessagesBuilder_ == null) { ensureBeaconMessagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, beaconMessages_); onChanged(); } else { beaconMessagesBuilder_.addAllMessages(values); } return this; } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder clearBeaconMessages() { if (beaconMessagesBuilder_ == null) { beaconMessages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { beaconMessagesBuilder_.clear(); } return this; } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder removeBeaconMessages(int index) { if (beaconMessagesBuilder_ == null) { ensureBeaconMessagesIsMutable(); beaconMessages_.remove(index); onChanged(); } else { beaconMessagesBuilder_.remove(index); } return this; } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Proximity.Beacon.Builder getBeaconMessagesBuilder( int index) { return getBeaconMessagesFieldBuilder().getBuilder(index); } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Proximity.BeaconOrBuilder getBeaconMessagesOrBuilder( int index) { if (beaconMessagesBuilder_ == null) { return beaconMessages_.get(index); } else { return beaconMessagesBuilder_.getMessageOrBuilder(index); } } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public java.util.List getBeaconMessagesOrBuilderList() { if (beaconMessagesBuilder_ != null) { return beaconMessagesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(beaconMessages_); } } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Proximity.Beacon.Builder addBeaconMessagesBuilder() { return getBeaconMessagesFieldBuilder().addBuilder( com.passkit.grpc.Proximity.Beacon.getDefaultInstance()); } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Proximity.Beacon.Builder addBeaconMessagesBuilder( int index) { return getBeaconMessagesFieldBuilder().addBuilder( index, com.passkit.grpc.Proximity.Beacon.getDefaultInstance()); } /** *
       * A list of up to 10 Beacon UUIDs that should trigger the boarding pass to be presented on the lock-screen. Values here will override the designation and flight values.
       * 
* * repeated .io.Beacon beaconMessages = 31 [(.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_ & 0x00000008) != 0), getParentForChildren(), isClean()); beaconMessages_ = null; } return beaconMessagesBuilder_; } private java.util.List links_ = java.util.Collections.emptyList(); private void ensureLinksIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { links_ = new java.util.ArrayList(links_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.passkit.grpc.Links.Link, com.passkit.grpc.Links.Link.Builder, com.passkit.grpc.Links.LinkOrBuilder> linksBuilder_; /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public java.util.List getLinksList() { if (linksBuilder_ == null) { return java.util.Collections.unmodifiableList(links_); } else { return linksBuilder_.getMessageList(); } } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public int getLinksCount() { if (linksBuilder_ == null) { return links_.size(); } else { return linksBuilder_.getCount(); } } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Links.Link getLinks(int index) { if (linksBuilder_ == null) { return links_.get(index); } else { return linksBuilder_.getMessage(index); } } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder setLinks( int index, com.passkit.grpc.Links.Link value) { if (linksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinksIsMutable(); links_.set(index, value); onChanged(); } else { linksBuilder_.setMessage(index, value); } return this; } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder setLinks( int index, com.passkit.grpc.Links.Link.Builder builderForValue) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.set(index, builderForValue.build()); onChanged(); } else { linksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder addLinks(com.passkit.grpc.Links.Link value) { if (linksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinksIsMutable(); links_.add(value); onChanged(); } else { linksBuilder_.addMessage(value); } return this; } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder addLinks( int index, com.passkit.grpc.Links.Link value) { if (linksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinksIsMutable(); links_.add(index, value); onChanged(); } else { linksBuilder_.addMessage(index, value); } return this; } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder addLinks( com.passkit.grpc.Links.Link.Builder builderForValue) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.add(builderForValue.build()); onChanged(); } else { linksBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder addLinks( int index, com.passkit.grpc.Links.Link.Builder builderForValue) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.add(index, builderForValue.build()); onChanged(); } else { linksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder addAllLinks( java.lang.Iterable values) { if (linksBuilder_ == null) { ensureLinksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, links_); onChanged(); } else { linksBuilder_.addAllMessages(values); } return this; } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder clearLinks() { if (linksBuilder_ == null) { links_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { linksBuilder_.clear(); } return this; } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder removeLinks(int index) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.remove(index); onChanged(); } else { linksBuilder_.remove(index); } return this; } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Links.Link.Builder getLinksBuilder( int index) { return getLinksFieldBuilder().getBuilder(index); } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Links.LinkOrBuilder getLinksOrBuilder( int index) { if (linksBuilder_ == null) { return links_.get(index); } else { return linksBuilder_.getMessageOrBuilder(index); } } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public java.util.List getLinksOrBuilderList() { if (linksBuilder_ != null) { return linksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(links_); } } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Links.Link.Builder addLinksBuilder() { return getLinksFieldBuilder().addBuilder( com.passkit.grpc.Links.Link.getDefaultInstance()); } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Links.Link.Builder addLinksBuilder( int index) { return getLinksFieldBuilder().addBuilder( index, com.passkit.grpc.Links.Link.getDefaultInstance()); } /** *
       * A list of links to be appended to the end of each boarding pass.
       * 
* * repeated .io.Link links = 32 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public java.util.List getLinksBuilderList() { return getLinksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.passkit.grpc.Links.Link, com.passkit.grpc.Links.Link.Builder, com.passkit.grpc.Links.LinkOrBuilder> getLinksFieldBuilder() { if (linksBuilder_ == null) { linksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.passkit.grpc.Links.Link, com.passkit.grpc.Links.Link.Builder, com.passkit.grpc.Links.LinkOrBuilder>( links_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); links_ = null; } return linksBuilder_; } private java.lang.Object barcodeAdditionalData_ = ""; /** *
       * If PassKit are generating barcodes, airline use data (IATA item 4) to be included in the barcode.
       * 
* * string barcodeAdditionalData = 33; * @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, airline use data (IATA item 4) to be included in the barcode.
       * 
* * string barcodeAdditionalData = 33; * @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, airline use data (IATA item 4) to be included in the barcode.
       * 
* * string barcodeAdditionalData = 33; * @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, airline use data (IATA item 4) to be included in the barcode.
       * 
* * string barcodeAdditionalData = 33; * @return This builder for chaining. */ public Builder clearBarcodeAdditionalData() { barcodeAdditionalData_ = getDefaultInstance().getBarcodeAdditionalData(); onChanged(); return this; } /** *
       * If PassKit are generating barcodes, airline use data (IATA item 4) to be included in the barcode.
       * 
* * string barcodeAdditionalData = 33; * @param value The bytes for barcodeAdditionalData to set. * @return This builder for chaining. */ public Builder setBarcodeAdditionalDataBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); barcodeAdditionalData_ = value; onChanged(); return this; } private java.lang.Object infantPassId_ = ""; /** *
       * If a passenger is travelling as an infant and the airline is not using conditional data with a passenger description of 6 (Adult With Infant), an id of the infant's boarding pass will be recorded here.
       * 
* * string infantPassId = 34; * @return The infantPassId. */ public java.lang.String getInfantPassId() { java.lang.Object ref = infantPassId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); infantPassId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * If a passenger is travelling as an infant and the airline is not using conditional data with a passenger description of 6 (Adult With Infant), an id of the infant's boarding pass will be recorded here.
       * 
* * string infantPassId = 34; * @return The bytes for infantPassId. */ public com.google.protobuf.ByteString getInfantPassIdBytes() { java.lang.Object ref = infantPassId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); infantPassId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * If a passenger is travelling as an infant and the airline is not using conditional data with a passenger description of 6 (Adult With Infant), an id of the infant's boarding pass will be recorded here.
       * 
* * string infantPassId = 34; * @param value The infantPassId to set. * @return This builder for chaining. */ public Builder setInfantPassId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } infantPassId_ = value; onChanged(); return this; } /** *
       * If a passenger is travelling as an infant and the airline is not using conditional data with a passenger description of 6 (Adult With Infant), an id of the infant's boarding pass will be recorded here.
       * 
* * string infantPassId = 34; * @return This builder for chaining. */ public Builder clearInfantPassId() { infantPassId_ = getDefaultInstance().getInfantPassId(); onChanged(); return this; } /** *
       * If a passenger is travelling as an infant and the airline is not using conditional data with a passenger description of 6 (Adult With Infant), an id of the infant's boarding pass will be recorded here.
       * 
* * string infantPassId = 34; * @param value The bytes for infantPassId to set. * @return This builder for chaining. */ public Builder setInfantPassIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); infantPassId_ = value; onChanged(); return this; } private com.passkit.grpc.CommonObjects.DataItems additionalDataItems_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.DataItems, com.passkit.grpc.CommonObjects.DataItems.Builder, com.passkit.grpc.CommonObjects.DataItemsOrBuilder> additionalDataItemsBuilder_; /** *
       * Optional key value pairs to be added in to the flight record
       * 
* * .io.DataItems additionalDataItems = 35; * @return Whether the additionalDataItems field is set. */ public boolean hasAdditionalDataItems() { return additionalDataItemsBuilder_ != null || additionalDataItems_ != null; } /** *
       * Optional key value pairs to be added in to the flight record
       * 
* * .io.DataItems additionalDataItems = 35; * @return The additionalDataItems. */ public com.passkit.grpc.CommonObjects.DataItems getAdditionalDataItems() { if (additionalDataItemsBuilder_ == null) { return additionalDataItems_ == null ? com.passkit.grpc.CommonObjects.DataItems.getDefaultInstance() : additionalDataItems_; } else { return additionalDataItemsBuilder_.getMessage(); } } /** *
       * Optional key value pairs to be added in to the flight record
       * 
* * .io.DataItems additionalDataItems = 35; */ public Builder setAdditionalDataItems(com.passkit.grpc.CommonObjects.DataItems value) { if (additionalDataItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } additionalDataItems_ = value; onChanged(); } else { additionalDataItemsBuilder_.setMessage(value); } return this; } /** *
       * Optional key value pairs to be added in to the flight record
       * 
* * .io.DataItems additionalDataItems = 35; */ public Builder setAdditionalDataItems( com.passkit.grpc.CommonObjects.DataItems.Builder builderForValue) { if (additionalDataItemsBuilder_ == null) { additionalDataItems_ = builderForValue.build(); onChanged(); } else { additionalDataItemsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Optional key value pairs to be added in to the flight record
       * 
* * .io.DataItems additionalDataItems = 35; */ public Builder mergeAdditionalDataItems(com.passkit.grpc.CommonObjects.DataItems value) { if (additionalDataItemsBuilder_ == null) { if (additionalDataItems_ != null) { additionalDataItems_ = com.passkit.grpc.CommonObjects.DataItems.newBuilder(additionalDataItems_).mergeFrom(value).buildPartial(); } else { additionalDataItems_ = value; } onChanged(); } else { additionalDataItemsBuilder_.mergeFrom(value); } return this; } /** *
       * Optional key value pairs to be added in to the flight record
       * 
* * .io.DataItems additionalDataItems = 35; */ public Builder clearAdditionalDataItems() { if (additionalDataItemsBuilder_ == null) { additionalDataItems_ = null; onChanged(); } else { additionalDataItems_ = null; additionalDataItemsBuilder_ = null; } return this; } /** *
       * Optional key value pairs to be added in to the flight record
       * 
* * .io.DataItems additionalDataItems = 35; */ public com.passkit.grpc.CommonObjects.DataItems.Builder getAdditionalDataItemsBuilder() { onChanged(); return getAdditionalDataItemsFieldBuilder().getBuilder(); } /** *
       * Optional key value pairs to be added in to the flight record
       * 
* * .io.DataItems additionalDataItems = 35; */ public com.passkit.grpc.CommonObjects.DataItemsOrBuilder getAdditionalDataItemsOrBuilder() { if (additionalDataItemsBuilder_ != null) { return additionalDataItemsBuilder_.getMessageOrBuilder(); } else { return additionalDataItems_ == null ? com.passkit.grpc.CommonObjects.DataItems.getDefaultInstance() : additionalDataItems_; } } /** *
       * Optional key value pairs to be added in to the flight record
       * 
* * .io.DataItems additionalDataItems = 35; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.DataItems, com.passkit.grpc.CommonObjects.DataItems.Builder, com.passkit.grpc.CommonObjects.DataItemsOrBuilder> getAdditionalDataItemsFieldBuilder() { if (additionalDataItemsBuilder_ == null) { additionalDataItemsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.DataItems, com.passkit.grpc.CommonObjects.DataItems.Builder, com.passkit.grpc.CommonObjects.DataItemsOrBuilder>( getAdditionalDataItems(), getParentForChildren(), isClean()); additionalDataItems_ = null; } return additionalDataItemsBuilder_; } private com.passkit.grpc.MetricsOuterClass.Metadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.MetricsOuterClass.Metadata, com.passkit.grpc.MetricsOuterClass.Metadata.Builder, com.passkit.grpc.MetricsOuterClass.MetadataOrBuilder> metadataBuilder_; /** *
       * Pass Metadata
       * 
* * .io.Metadata metadata = 36; * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** *
       * Pass Metadata
       * 
* * .io.Metadata metadata = 36; * @return The metadata. */ public com.passkit.grpc.MetricsOuterClass.Metadata getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? com.passkit.grpc.MetricsOuterClass.Metadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** *
       * Pass Metadata
       * 
* * .io.Metadata metadata = 36; */ public Builder setMetadata(com.passkit.grpc.MetricsOuterClass.Metadata value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } return this; } /** *
       * Pass Metadata
       * 
* * .io.Metadata metadata = 36; */ public Builder setMetadata( com.passkit.grpc.MetricsOuterClass.Metadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Pass Metadata
       * 
* * .io.Metadata metadata = 36; */ public Builder mergeMetadata(com.passkit.grpc.MetricsOuterClass.Metadata value) { if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = com.passkit.grpc.MetricsOuterClass.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } return this; } /** *
       * Pass Metadata
       * 
* * .io.Metadata metadata = 36; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadata_ = null; metadataBuilder_ = null; } return this; } /** *
       * Pass Metadata
       * 
* * .io.Metadata metadata = 36; */ public com.passkit.grpc.MetricsOuterClass.Metadata.Builder getMetadataBuilder() { onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** *
       * Pass Metadata
       * 
* * .io.Metadata metadata = 36; */ public com.passkit.grpc.MetricsOuterClass.MetadataOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? com.passkit.grpc.MetricsOuterClass.Metadata.getDefaultInstance() : metadata_; } } /** *
       * Pass Metadata
       * 
* * .io.Metadata metadata = 36; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.MetricsOuterClass.Metadata, com.passkit.grpc.MetricsOuterClass.Metadata.Builder, com.passkit.grpc.MetricsOuterClass.MetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.MetricsOuterClass.Metadata, com.passkit.grpc.MetricsOuterClass.Metadata.Builder, com.passkit.grpc.MetricsOuterClass.MetadataOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } @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.BoardingPassRecord) } // @@protoc_insertion_point(class_scope:flights.BoardingPassRecord) private static final com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord(); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BoardingPassRecord parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BoardingPassRecord(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.BoardingPass.BoardingPassRecord getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BoardingPassRecordRequestByTicketNumberOrBuilder extends // @@protoc_insertion_point(interface_extends:flights.BoardingPassRecordRequestByTicketNumber) com.google.protobuf.MessageOrBuilder { /** *
     * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
     * 
* * string ticketNumber = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The ticketNumber. */ java.lang.String getTicketNumber(); /** *
     * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
     * 
* * string ticketNumber = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for ticketNumber. */ com.google.protobuf.ByteString getTicketNumberBytes(); /** *
     * The leg of the ticketed journey. For a return flight, the outbound flight would be leg 1 and the inbound flight would be leg 2.  For Direct flights, a ticketed leg includes all stops between the boarding point and deplaning point. Leg cannot be zero and ticket/leg combination cannot already exist for a 'create' call.
     * 
* * int32 ticketLeg = 2; * @return The ticketLeg. */ int getTicketLeg(); /** *
     * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
     * 
* * string boardingPoint = 3; * @return The boardingPoint. */ java.lang.String getBoardingPoint(); /** *
     * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
     * 
* * string boardingPoint = 3; * @return The bytes for boardingPoint. */ com.google.protobuf.ByteString getBoardingPointBytes(); } /** *
   * Boarding passes are indexed by ticket number and leg or boarding point. Either a journey leg or boarding point is required.
   * 
* * Protobuf type {@code flights.BoardingPassRecordRequestByTicketNumber} */ public static final class BoardingPassRecordRequestByTicketNumber extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flights.BoardingPassRecordRequestByTicketNumber) BoardingPassRecordRequestByTicketNumberOrBuilder { private static final long serialVersionUID = 0L; // Use BoardingPassRecordRequestByTicketNumber.newBuilder() to construct. private BoardingPassRecordRequestByTicketNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BoardingPassRecordRequestByTicketNumber() { ticketNumber_ = ""; boardingPoint_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BoardingPassRecordRequestByTicketNumber(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BoardingPassRecordRequestByTicketNumber( 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(); ticketNumber_ = s; break; } case 16: { ticketLeg_ = input.readInt32(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); boardingPoint_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecordRequestByTicketNumber_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecordRequestByTicketNumber_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.class, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.Builder.class); } public static final int TICKETNUMBER_FIELD_NUMBER = 1; private volatile java.lang.Object ticketNumber_; /** *
     * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
     * 
* * string ticketNumber = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The ticketNumber. */ @java.lang.Override public java.lang.String getTicketNumber() { java.lang.Object ref = ticketNumber_; 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(); ticketNumber_ = s; return s; } } /** *
     * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
     * 
* * string ticketNumber = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for ticketNumber. */ @java.lang.Override public com.google.protobuf.ByteString getTicketNumberBytes() { java.lang.Object ref = ticketNumber_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ticketNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TICKETLEG_FIELD_NUMBER = 2; private int ticketLeg_; /** *
     * The leg of the ticketed journey. For a return flight, the outbound flight would be leg 1 and the inbound flight would be leg 2.  For Direct flights, a ticketed leg includes all stops between the boarding point and deplaning point. Leg cannot be zero and ticket/leg combination cannot already exist for a 'create' call.
     * 
* * int32 ticketLeg = 2; * @return The ticketLeg. */ @java.lang.Override public int getTicketLeg() { return ticketLeg_; } public static final int BOARDINGPOINT_FIELD_NUMBER = 3; private volatile java.lang.Object boardingPoint_; /** *
     * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
     * 
* * string boardingPoint = 3; * @return The boardingPoint. */ @java.lang.Override public java.lang.String getBoardingPoint() { java.lang.Object ref = boardingPoint_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); boardingPoint_ = s; return s; } } /** *
     * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
     * 
* * string boardingPoint = 3; * @return The bytes for boardingPoint. */ @java.lang.Override public com.google.protobuf.ByteString getBoardingPointBytes() { java.lang.Object ref = boardingPoint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); boardingPoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (!getTicketNumberBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ticketNumber_); } if (ticketLeg_ != 0) { output.writeInt32(2, ticketLeg_); } if (!getBoardingPointBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, boardingPoint_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getTicketNumberBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ticketNumber_); } if (ticketLeg_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, ticketLeg_); } if (!getBoardingPointBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, boardingPoint_); } 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.BoardingPass.BoardingPassRecordRequestByTicketNumber)) { return super.equals(obj); } com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber other = (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) obj; if (!getTicketNumber() .equals(other.getTicketNumber())) return false; if (getTicketLeg() != other.getTicketLeg()) return false; if (!getBoardingPoint() .equals(other.getBoardingPoint())) 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) + TICKETNUMBER_FIELD_NUMBER; hash = (53 * hash) + getTicketNumber().hashCode(); hash = (37 * hash) + TICKETLEG_FIELD_NUMBER; hash = (53 * hash) + getTicketLeg(); hash = (37 * hash) + BOARDINGPOINT_FIELD_NUMBER; hash = (53 * hash) + getBoardingPoint().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber 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.BoardingPass.BoardingPassRecordRequestByTicketNumber parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber 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.BoardingPass.BoardingPassRecordRequestByTicketNumber parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber 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.BoardingPass.BoardingPassRecordRequestByTicketNumber parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber 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.BoardingPass.BoardingPassRecordRequestByTicketNumber parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber 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.BoardingPass.BoardingPassRecordRequestByTicketNumber 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; } /** *
     * Boarding passes are indexed by ticket number and leg or boarding point. Either a journey leg or boarding point is required.
     * 
* * Protobuf type {@code flights.BoardingPassRecordRequestByTicketNumber} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flights.BoardingPassRecordRequestByTicketNumber) com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumberOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecordRequestByTicketNumber_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecordRequestByTicketNumber_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.class, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.Builder.class); } // Construct using com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.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(); ticketNumber_ = ""; ticketLeg_ = 0; boardingPoint_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecordRequestByTicketNumber_descriptor; } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber getDefaultInstanceForType() { return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber build() { com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber buildPartial() { com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber result = new com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber(this); result.ticketNumber_ = ticketNumber_; result.ticketLeg_ = ticketLeg_; result.boardingPoint_ = boardingPoint_; 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.BoardingPass.BoardingPassRecordRequestByTicketNumber) { return mergeFrom((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber other) { if (other == com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.getDefaultInstance()) return this; if (!other.getTicketNumber().isEmpty()) { ticketNumber_ = other.ticketNumber_; onChanged(); } if (other.getTicketLeg() != 0) { setTicketLeg(other.getTicketLeg()); } if (!other.getBoardingPoint().isEmpty()) { boardingPoint_ = other.boardingPoint_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object ticketNumber_ = ""; /** *
       * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
       * 
* * string ticketNumber = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The ticketNumber. */ public java.lang.String getTicketNumber() { java.lang.Object ref = ticketNumber_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ticketNumber_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
       * 
* * string ticketNumber = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for ticketNumber. */ public com.google.protobuf.ByteString getTicketNumberBytes() { java.lang.Object ref = ticketNumber_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ticketNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
       * 
* * string ticketNumber = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The ticketNumber to set. * @return This builder for chaining. */ public Builder setTicketNumber( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ticketNumber_ = value; onChanged(); return this; } /** *
       * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
       * 
* * string ticketNumber = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearTicketNumber() { ticketNumber_ = getDefaultInstance().getTicketNumber(); onChanged(); return this; } /** *
       * Ticket number can optionally be prefixed by the 3 digit airline code, followed by a 10 digit ticket number.  For ticket numbers less than 10 digits, pad with zeros.
       * 
* * string ticketNumber = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The bytes for ticketNumber to set. * @return This builder for chaining. */ public Builder setTicketNumberBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ticketNumber_ = value; onChanged(); return this; } private int ticketLeg_ ; /** *
       * The leg of the ticketed journey. For a return flight, the outbound flight would be leg 1 and the inbound flight would be leg 2.  For Direct flights, a ticketed leg includes all stops between the boarding point and deplaning point. Leg cannot be zero and ticket/leg combination cannot already exist for a 'create' call.
       * 
* * int32 ticketLeg = 2; * @return The ticketLeg. */ @java.lang.Override public int getTicketLeg() { return ticketLeg_; } /** *
       * The leg of the ticketed journey. For a return flight, the outbound flight would be leg 1 and the inbound flight would be leg 2.  For Direct flights, a ticketed leg includes all stops between the boarding point and deplaning point. Leg cannot be zero and ticket/leg combination cannot already exist for a 'create' call.
       * 
* * int32 ticketLeg = 2; * @param value The ticketLeg to set. * @return This builder for chaining. */ public Builder setTicketLeg(int value) { ticketLeg_ = value; onChanged(); return this; } /** *
       * The leg of the ticketed journey. For a return flight, the outbound flight would be leg 1 and the inbound flight would be leg 2.  For Direct flights, a ticketed leg includes all stops between the boarding point and deplaning point. Leg cannot be zero and ticket/leg combination cannot already exist for a 'create' call.
       * 
* * int32 ticketLeg = 2; * @return This builder for chaining. */ public Builder clearTicketLeg() { ticketLeg_ = 0; onChanged(); return this; } private java.lang.Object boardingPoint_ = ""; /** *
       * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 3; * @return The boardingPoint. */ public java.lang.String getBoardingPoint() { java.lang.Object ref = boardingPoint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); boardingPoint_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 3; * @return The bytes for boardingPoint. */ public com.google.protobuf.ByteString getBoardingPointBytes() { java.lang.Object ref = boardingPoint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); boardingPoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 3; * @param value The boardingPoint to set. * @return This builder for chaining. */ public Builder setBoardingPoint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } boardingPoint_ = value; onChanged(); return this; } /** *
       * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 3; * @return This builder for chaining. */ public Builder clearBoardingPoint() { boardingPoint_ = getDefaultInstance().getBoardingPoint(); onChanged(); return this; } /** *
       * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 3; * @param value The bytes for boardingPoint to set. * @return This builder for chaining. */ public Builder setBoardingPointBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); boardingPoint_ = value; onChanged(); return this; } @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.BoardingPassRecordRequestByTicketNumber) } // @@protoc_insertion_point(class_scope:flights.BoardingPassRecordRequestByTicketNumber) private static final com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber(); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BoardingPassRecordRequestByTicketNumber parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BoardingPassRecordRequestByTicketNumber(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.BoardingPass.BoardingPassRecordRequestByTicketNumber getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BoardingPassRecordRequestByIndexOrBuilder extends // @@protoc_insertion_point(interface_extends:flights.BoardingPassRecordRequestByIndex) com.google.protobuf.MessageOrBuilder { /** *
     * The two or three character airline code of the marketing carrier.
     * 
* * string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The carrierCode. */ java.lang.String getCarrierCode(); /** *
     * The two or three character airline code of the marketing carrier.
     * 
* * string carrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for carrierCode. */ com.google.protobuf.ByteString getCarrierCodeBytes(); /** *
     * The flight number of the marketing character (excluding the carrier code).
     * 
* * string flightNumber = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The flightNumber. */ java.lang.String getFlightNumber(); /** *
     * The flight number of the marketing character (excluding 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 of departure in local airport time.
     * 
* * .io.Date departureDate = 3; * @return Whether the departureDate field is set. */ boolean hasDepartureDate(); /** *
     * The date of departure in local airport time.
     * 
* * .io.Date departureDate = 3; * @return The departureDate. */ com.passkit.grpc.CommonObjects.Date getDepartureDate(); /** *
     * The date of departure in local airport time.
     * 
* * .io.Date departureDate = 3; */ com.passkit.grpc.CommonObjects.DateOrBuilder getDepartureDateOrBuilder(); /** *
     * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
     * 
* * string boardingPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The boardingPoint. */ java.lang.String getBoardingPoint(); /** *
     * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
     * 
* * string boardingPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for boardingPoint. */ com.google.protobuf.ByteString getBoardingPointBytes(); /** *
     * The check in sequence number.
     * 
* * int32 sequenceNumber = 5; * @return The sequenceNumber. */ int getSequenceNumber(); } /** *
   * Boarding passes are indexed by carrier code, flight number, departure date, boarding point and sequence number.  All values are required.
   * 
* * Protobuf type {@code flights.BoardingPassRecordRequestByIndex} */ public static final class BoardingPassRecordRequestByIndex extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flights.BoardingPassRecordRequestByIndex) BoardingPassRecordRequestByIndexOrBuilder { private static final long serialVersionUID = 0L; // Use BoardingPassRecordRequestByIndex.newBuilder() to construct. private BoardingPassRecordRequestByIndex(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BoardingPassRecordRequestByIndex() { carrierCode_ = ""; flightNumber_ = ""; boardingPoint_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BoardingPassRecordRequestByIndex(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BoardingPassRecordRequestByIndex( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); carrierCode_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); flightNumber_ = s; break; } case 26: { com.passkit.grpc.CommonObjects.Date.Builder subBuilder = null; if (departureDate_ != null) { subBuilder = departureDate_.toBuilder(); } departureDate_ = input.readMessage(com.passkit.grpc.CommonObjects.Date.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(departureDate_); departureDate_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); boardingPoint_ = s; break; } case 40: { sequenceNumber_ = input.readInt32(); 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.BoardingPass.internal_static_flights_BoardingPassRecordRequestByIndex_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecordRequestByIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.class, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.Builder.class); } public static final int CARRIERCODE_FIELD_NUMBER = 1; private volatile java.lang.Object carrierCode_; /** *
     * The two or three character airline code of the marketing carrier.
     * 
* * 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 two or three character airline code of the marketing carrier.
     * 
* * 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 of the marketing character (excluding 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 of the marketing character (excluding 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 DEPARTUREDATE_FIELD_NUMBER = 3; private com.passkit.grpc.CommonObjects.Date departureDate_; /** *
     * The date of departure in local airport time.
     * 
* * .io.Date departureDate = 3; * @return Whether the departureDate field is set. */ @java.lang.Override public boolean hasDepartureDate() { return departureDate_ != null; } /** *
     * The date of departure in local airport time.
     * 
* * .io.Date departureDate = 3; * @return The departureDate. */ @java.lang.Override public com.passkit.grpc.CommonObjects.Date getDepartureDate() { return departureDate_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : departureDate_; } /** *
     * The date of departure in local airport time.
     * 
* * .io.Date departureDate = 3; */ @java.lang.Override public com.passkit.grpc.CommonObjects.DateOrBuilder getDepartureDateOrBuilder() { return getDepartureDate(); } public static final int BOARDINGPOINT_FIELD_NUMBER = 4; private volatile java.lang.Object boardingPoint_; /** *
     * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
     * 
* * string boardingPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The boardingPoint. */ @java.lang.Override public java.lang.String getBoardingPoint() { java.lang.Object ref = boardingPoint_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); boardingPoint_ = s; return s; } } /** *
     * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
     * 
* * string boardingPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for boardingPoint. */ @java.lang.Override public com.google.protobuf.ByteString getBoardingPointBytes() { java.lang.Object ref = boardingPoint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); boardingPoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SEQUENCENUMBER_FIELD_NUMBER = 5; private int sequenceNumber_; /** *
     * The check in sequence number.
     * 
* * int32 sequenceNumber = 5; * @return The sequenceNumber. */ @java.lang.Override public int getSequenceNumber() { return sequenceNumber_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getCarrierCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, carrierCode_); } if (!getFlightNumberBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flightNumber_); } if (departureDate_ != null) { output.writeMessage(3, getDepartureDate()); } if (!getBoardingPointBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, boardingPoint_); } if (sequenceNumber_ != 0) { output.writeInt32(5, sequenceNumber_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getCarrierCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, carrierCode_); } if (!getFlightNumberBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, flightNumber_); } if (departureDate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDepartureDate()); } if (!getBoardingPointBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, boardingPoint_); } if (sequenceNumber_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, sequenceNumber_); } 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.BoardingPass.BoardingPassRecordRequestByIndex)) { return super.equals(obj); } com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex other = (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) obj; if (!getCarrierCode() .equals(other.getCarrierCode())) return false; if (!getFlightNumber() .equals(other.getFlightNumber())) return false; if (hasDepartureDate() != other.hasDepartureDate()) return false; if (hasDepartureDate()) { if (!getDepartureDate() .equals(other.getDepartureDate())) return false; } if (!getBoardingPoint() .equals(other.getBoardingPoint())) return false; if (getSequenceNumber() != other.getSequenceNumber()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CARRIERCODE_FIELD_NUMBER; hash = (53 * hash) + getCarrierCode().hashCode(); hash = (37 * hash) + FLIGHTNUMBER_FIELD_NUMBER; hash = (53 * hash) + getFlightNumber().hashCode(); if (hasDepartureDate()) { hash = (37 * hash) + DEPARTUREDATE_FIELD_NUMBER; hash = (53 * hash) + getDepartureDate().hashCode(); } hash = (37 * hash) + BOARDINGPOINT_FIELD_NUMBER; hash = (53 * hash) + getBoardingPoint().hashCode(); hash = (37 * hash) + SEQUENCENUMBER_FIELD_NUMBER; hash = (53 * hash) + getSequenceNumber(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex 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.BoardingPass.BoardingPassRecordRequestByIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex 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.BoardingPass.BoardingPassRecordRequestByIndex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex 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.BoardingPass.BoardingPassRecordRequestByIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex 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.BoardingPass.BoardingPassRecordRequestByIndex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex 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.BoardingPass.BoardingPassRecordRequestByIndex 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; } /** *
     * Boarding passes are indexed by carrier code, flight number, departure date, boarding point and sequence number.  All values are required.
     * 
* * Protobuf type {@code flights.BoardingPassRecordRequestByIndex} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flights.BoardingPassRecordRequestByIndex) com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecordRequestByIndex_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecordRequestByIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.class, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.Builder.class); } // Construct using com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); carrierCode_ = ""; flightNumber_ = ""; if (departureDateBuilder_ == null) { departureDate_ = null; } else { departureDate_ = null; departureDateBuilder_ = null; } boardingPoint_ = ""; sequenceNumber_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecordRequestByIndex_descriptor; } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex getDefaultInstanceForType() { return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex build() { com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex buildPartial() { com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex result = new com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex(this); result.carrierCode_ = carrierCode_; result.flightNumber_ = flightNumber_; if (departureDateBuilder_ == null) { result.departureDate_ = departureDate_; } else { result.departureDate_ = departureDateBuilder_.build(); } result.boardingPoint_ = boardingPoint_; result.sequenceNumber_ = sequenceNumber_; 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.BoardingPass.BoardingPassRecordRequestByIndex) { return mergeFrom((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex other) { if (other == com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.getDefaultInstance()) return this; if (!other.getCarrierCode().isEmpty()) { carrierCode_ = other.carrierCode_; onChanged(); } if (!other.getFlightNumber().isEmpty()) { flightNumber_ = other.flightNumber_; onChanged(); } if (other.hasDepartureDate()) { mergeDepartureDate(other.getDepartureDate()); } if (!other.getBoardingPoint().isEmpty()) { boardingPoint_ = other.boardingPoint_; onChanged(); } if (other.getSequenceNumber() != 0) { setSequenceNumber(other.getSequenceNumber()); } 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.BoardingPass.BoardingPassRecordRequestByIndex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object carrierCode_ = ""; /** *
       * The two or three character airline code of the marketing carrier.
       * 
* * 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 two or three character airline code of the marketing carrier.
       * 
* * 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 two or three character airline code of the marketing carrier.
       * 
* * 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 two or three character airline code of the marketing carrier.
       * 
* * 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 two or three character airline code of the marketing carrier.
       * 
* * 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 of the marketing character (excluding 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 of the marketing character (excluding 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 of the marketing character (excluding 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 of the marketing character (excluding 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 of the marketing character (excluding 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 departureDate_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder> departureDateBuilder_; /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 3; * @return Whether the departureDate field is set. */ public boolean hasDepartureDate() { return departureDateBuilder_ != null || departureDate_ != null; } /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 3; * @return The departureDate. */ public com.passkit.grpc.CommonObjects.Date getDepartureDate() { if (departureDateBuilder_ == null) { return departureDate_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : departureDate_; } else { return departureDateBuilder_.getMessage(); } } /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 3; */ public Builder setDepartureDate(com.passkit.grpc.CommonObjects.Date value) { if (departureDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } departureDate_ = value; onChanged(); } else { departureDateBuilder_.setMessage(value); } return this; } /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 3; */ public Builder setDepartureDate( com.passkit.grpc.CommonObjects.Date.Builder builderForValue) { if (departureDateBuilder_ == null) { departureDate_ = builderForValue.build(); onChanged(); } else { departureDateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 3; */ public Builder mergeDepartureDate(com.passkit.grpc.CommonObjects.Date value) { if (departureDateBuilder_ == null) { if (departureDate_ != null) { departureDate_ = com.passkit.grpc.CommonObjects.Date.newBuilder(departureDate_).mergeFrom(value).buildPartial(); } else { departureDate_ = value; } onChanged(); } else { departureDateBuilder_.mergeFrom(value); } return this; } /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 3; */ public Builder clearDepartureDate() { if (departureDateBuilder_ == null) { departureDate_ = null; onChanged(); } else { departureDate_ = null; departureDateBuilder_ = null; } return this; } /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 3; */ public com.passkit.grpc.CommonObjects.Date.Builder getDepartureDateBuilder() { onChanged(); return getDepartureDateFieldBuilder().getBuilder(); } /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 3; */ public com.passkit.grpc.CommonObjects.DateOrBuilder getDepartureDateOrBuilder() { if (departureDateBuilder_ != null) { return departureDateBuilder_.getMessageOrBuilder(); } else { return departureDate_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : departureDate_; } } /** *
       * The date of departure in local airport time.
       * 
* * .io.Date departureDate = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder> getDepartureDateFieldBuilder() { if (departureDateBuilder_ == null) { departureDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder>( getDepartureDate(), getParentForChildren(), isClean()); departureDate_ = null; } return departureDateBuilder_; } private java.lang.Object boardingPoint_ = ""; /** *
       * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The boardingPoint. */ public java.lang.String getBoardingPoint() { java.lang.Object ref = boardingPoint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); boardingPoint_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for boardingPoint. */ public com.google.protobuf.ByteString getBoardingPointBytes() { java.lang.Object ref = boardingPoint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); boardingPoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The boardingPoint to set. * @return This builder for chaining. */ public Builder setBoardingPoint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } boardingPoint_ = value; onChanged(); return this; } /** *
       * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearBoardingPoint() { boardingPoint_ = getDefaultInstance().getBoardingPoint(); onChanged(); return this; } /** *
       * 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The bytes for boardingPoint to set. * @return This builder for chaining. */ public Builder setBoardingPointBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); boardingPoint_ = value; onChanged(); return this; } private int sequenceNumber_ ; /** *
       * The check in sequence number.
       * 
* * int32 sequenceNumber = 5; * @return The sequenceNumber. */ @java.lang.Override public int getSequenceNumber() { return sequenceNumber_; } /** *
       * The check in sequence number.
       * 
* * int32 sequenceNumber = 5; * @param value The sequenceNumber to set. * @return This builder for chaining. */ public Builder setSequenceNumber(int value) { sequenceNumber_ = value; onChanged(); return this; } /** *
       * The check in sequence number.
       * 
* * int32 sequenceNumber = 5; * @return This builder for chaining. */ public Builder clearSequenceNumber() { sequenceNumber_ = 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.BoardingPassRecordRequestByIndex) } // @@protoc_insertion_point(class_scope:flights.BoardingPassRecordRequestByIndex) private static final com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex(); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BoardingPassRecordRequestByIndex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BoardingPassRecordRequestByIndex(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.BoardingPass.BoardingPassRecordRequestByIndex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BoardingPassRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:flights.BoardingPassRequest) com.google.protobuf.MessageOrBuilder { /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; * @return Whether the ticketNumber field is set. */ boolean hasTicketNumber(); /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; * @return The ticketNumber. */ com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber getTicketNumber(); /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumberOrBuilder getTicketNumberOrBuilder(); /** * .flights.BoardingPassRecordRequestByIndex index = 2; * @return Whether the index field is set. */ boolean hasIndex(); /** * .flights.BoardingPassRecordRequestByIndex index = 2; * @return The index. */ com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex getIndex(); /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndexOrBuilder getIndexOrBuilder(); /** * .flights.BoardingPassesForBookingRequest pnr = 3; * @return Whether the pnr field is set. */ boolean hasPnr(); /** * .flights.BoardingPassesForBookingRequest pnr = 3; * @return The pnr. */ com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest getPnr(); /** * .flights.BoardingPassesForBookingRequest pnr = 3; */ com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequestOrBuilder getPnrOrBuilder(); /** * .io.Id passId = 4; * @return Whether the passId field is set. */ boolean hasPassId(); /** * .io.Id passId = 4; * @return The passId. */ com.passkit.grpc.CommonObjects.Id getPassId(); /** * .io.Id passId = 4; */ com.passkit.grpc.CommonObjects.IdOrBuilder getPassIdOrBuilder(); /** *
     * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
     * 
* * repeated .io.PassBundleFormat format = 5; * @return A list containing the format. */ java.util.List getFormatList(); /** *
     * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
     * 
* * repeated .io.PassBundleFormat format = 5; * @return The count of format. */ int getFormatCount(); /** *
     * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
     * 
* * repeated .io.PassBundleFormat format = 5; * @param index The index of the element to return. * @return The format at the given index. */ com.passkit.grpc.CommonObjects.PassBundleFormat getFormat(int index); /** *
     * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
     * 
* * repeated .io.PassBundleFormat format = 5; * @return A list containing the enum numeric values on the wire for format. */ java.util.List getFormatValueList(); /** *
     * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
     * 
* * repeated .io.PassBundleFormat format = 5; * @param index The index of the value to return. * @return The enum numeric value on the wire of format at the given index. */ int getFormatValue(int index); public com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest.RequestCase getRequestCase(); } /** *
   * Used to request a digital boarding pass by ticket number, index, PassKit ID or PNR.
   * 
* * Protobuf type {@code flights.BoardingPassRequest} */ public static final class BoardingPassRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flights.BoardingPassRequest) BoardingPassRequestOrBuilder { private static final long serialVersionUID = 0L; // Use BoardingPassRequest.newBuilder() to construct. private BoardingPassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BoardingPassRequest() { format_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BoardingPassRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BoardingPassRequest( 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: { com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.Builder subBuilder = null; if (requestCase_ == 1) { subBuilder = ((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_).toBuilder(); } request_ = input.readMessage(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 1; break; } case 18: { com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.Builder subBuilder = null; if (requestCase_ == 2) { subBuilder = ((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_).toBuilder(); } request_ = input.readMessage(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 2; break; } case 26: { com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.Builder subBuilder = null; if (requestCase_ == 3) { subBuilder = ((com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest) request_).toBuilder(); } request_ = input.readMessage(com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 3; break; } case 34: { com.passkit.grpc.CommonObjects.Id.Builder subBuilder = null; if (requestCase_ == 4) { subBuilder = ((com.passkit.grpc.CommonObjects.Id) request_).toBuilder(); } request_ = input.readMessage(com.passkit.grpc.CommonObjects.Id.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.passkit.grpc.CommonObjects.Id) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 4; break; } case 40: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { format_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } format_.add(rawValue); break; } case 42: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { format_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } format_.add(rawValue); } input.popLimit(oldLimit); 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)) { format_ = java.util.Collections.unmodifiableList(format_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest.class, com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; public enum RequestCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TICKETNUMBER(1), INDEX(2), PNR(3), PASSID(4), REQUEST_NOT_SET(0); private final int value; private RequestCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RequestCase valueOf(int value) { return forNumber(value); } public static RequestCase forNumber(int value) { switch (value) { case 1: return TICKETNUMBER; case 2: return INDEX; case 3: return PNR; case 4: return PASSID; case 0: return REQUEST_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public static final int TICKETNUMBER_FIELD_NUMBER = 1; /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; * @return Whether the ticketNumber field is set. */ @java.lang.Override public boolean hasTicketNumber() { return requestCase_ == 1; } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; * @return The ticketNumber. */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber getTicketNumber() { if (requestCase_ == 1) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.getDefaultInstance(); } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumberOrBuilder getTicketNumberOrBuilder() { if (requestCase_ == 1) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.getDefaultInstance(); } public static final int INDEX_FIELD_NUMBER = 2; /** * .flights.BoardingPassRecordRequestByIndex index = 2; * @return Whether the index field is set. */ @java.lang.Override public boolean hasIndex() { return requestCase_ == 2; } /** * .flights.BoardingPassRecordRequestByIndex index = 2; * @return The index. */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex getIndex() { if (requestCase_ == 2) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.getDefaultInstance(); } /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndexOrBuilder getIndexOrBuilder() { if (requestCase_ == 2) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.getDefaultInstance(); } public static final int PNR_FIELD_NUMBER = 3; /** * .flights.BoardingPassesForBookingRequest pnr = 3; * @return Whether the pnr field is set. */ @java.lang.Override public boolean hasPnr() { return requestCase_ == 3; } /** * .flights.BoardingPassesForBookingRequest pnr = 3; * @return The pnr. */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest getPnr() { if (requestCase_ == 3) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.getDefaultInstance(); } /** * .flights.BoardingPassesForBookingRequest pnr = 3; */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequestOrBuilder getPnrOrBuilder() { if (requestCase_ == 3) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.getDefaultInstance(); } public static final int PASSID_FIELD_NUMBER = 4; /** * .io.Id passId = 4; * @return Whether the passId field is set. */ @java.lang.Override public boolean hasPassId() { return requestCase_ == 4; } /** * .io.Id passId = 4; * @return The passId. */ @java.lang.Override public com.passkit.grpc.CommonObjects.Id getPassId() { if (requestCase_ == 4) { return (com.passkit.grpc.CommonObjects.Id) request_; } return com.passkit.grpc.CommonObjects.Id.getDefaultInstance(); } /** * .io.Id passId = 4; */ @java.lang.Override public com.passkit.grpc.CommonObjects.IdOrBuilder getPassIdOrBuilder() { if (requestCase_ == 4) { return (com.passkit.grpc.CommonObjects.Id) request_; } return com.passkit.grpc.CommonObjects.Id.getDefaultInstance(); } public static final int FORMAT_FIELD_NUMBER = 5; private java.util.List format_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.passkit.grpc.CommonObjects.PassBundleFormat> format_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.passkit.grpc.CommonObjects.PassBundleFormat>() { public com.passkit.grpc.CommonObjects.PassBundleFormat convert(java.lang.Integer from) { @SuppressWarnings("deprecation") com.passkit.grpc.CommonObjects.PassBundleFormat result = com.passkit.grpc.CommonObjects.PassBundleFormat.valueOf(from); return result == null ? com.passkit.grpc.CommonObjects.PassBundleFormat.UNRECOGNIZED : result; } }; /** *
     * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
     * 
* * repeated .io.PassBundleFormat format = 5; * @return A list containing the format. */ @java.lang.Override public java.util.List getFormatList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.passkit.grpc.CommonObjects.PassBundleFormat>(format_, format_converter_); } /** *
     * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
     * 
* * repeated .io.PassBundleFormat format = 5; * @return The count of format. */ @java.lang.Override public int getFormatCount() { return format_.size(); } /** *
     * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
     * 
* * repeated .io.PassBundleFormat format = 5; * @param index The index of the element to return. * @return The format at the given index. */ @java.lang.Override public com.passkit.grpc.CommonObjects.PassBundleFormat getFormat(int index) { return format_converter_.convert(format_.get(index)); } /** *
     * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
     * 
* * repeated .io.PassBundleFormat format = 5; * @return A list containing the enum numeric values on the wire for format. */ @java.lang.Override public java.util.List getFormatValueList() { return format_; } /** *
     * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
     * 
* * repeated .io.PassBundleFormat format = 5; * @param index The index of the value to return. * @return The enum numeric value on the wire of format at the given index. */ @java.lang.Override public int getFormatValue(int index) { return format_.get(index); } private int formatMemoizedSerializedSize; 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 (requestCase_ == 1) { output.writeMessage(1, (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_); } if (requestCase_ == 2) { output.writeMessage(2, (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_); } if (requestCase_ == 3) { output.writeMessage(3, (com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest) request_); } if (requestCase_ == 4) { output.writeMessage(4, (com.passkit.grpc.CommonObjects.Id) request_); } if (getFormatList().size() > 0) { output.writeUInt32NoTag(42); output.writeUInt32NoTag(formatMemoizedSerializedSize); } for (int i = 0; i < format_.size(); i++) { output.writeEnumNoTag(format_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (requestCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_); } if (requestCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_); } if (requestCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest) request_); } if (requestCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.passkit.grpc.CommonObjects.Id) request_); } { int dataSize = 0; for (int i = 0; i < format_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(format_.get(i)); } size += dataSize; if (!getFormatList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }formatMemoizedSerializedSize = dataSize; } 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.BoardingPass.BoardingPassRequest)) { return super.equals(obj); } com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest other = (com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest) obj; if (!format_.equals(other.format_)) return false; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: if (!getTicketNumber() .equals(other.getTicketNumber())) return false; break; case 2: if (!getIndex() .equals(other.getIndex())) return false; break; case 3: if (!getPnr() .equals(other.getPnr())) return false; break; case 4: if (!getPassId() .equals(other.getPassId())) return false; break; case 0: default: } 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 (getFormatCount() > 0) { hash = (37 * hash) + FORMAT_FIELD_NUMBER; hash = (53 * hash) + format_.hashCode(); } switch (requestCase_) { case 1: hash = (37 * hash) + TICKETNUMBER_FIELD_NUMBER; hash = (53 * hash) + getTicketNumber().hashCode(); break; case 2: hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndex().hashCode(); break; case 3: hash = (37 * hash) + PNR_FIELD_NUMBER; hash = (53 * hash) + getPnr().hashCode(); break; case 4: hash = (37 * hash) + PASSID_FIELD_NUMBER; hash = (53 * hash) + getPassId().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest 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.BoardingPass.BoardingPassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest 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.BoardingPass.BoardingPassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest 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.BoardingPass.BoardingPassRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest 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.BoardingPass.BoardingPassRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest 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.BoardingPass.BoardingPassRequest 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; } /** *
     * Used to request a digital boarding pass by ticket number, index, PassKit ID or PNR.
     * 
* * Protobuf type {@code flights.BoardingPassRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flights.BoardingPassRequest) com.passkit.grpc.Flights.BoardingPass.BoardingPassRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest.class, com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest.Builder.class); } // Construct using com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest.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(); format_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); requestCase_ = 0; request_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRequest_descriptor; } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest getDefaultInstanceForType() { return com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest build() { com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest buildPartial() { com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest result = new com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest(this); int from_bitField0_ = bitField0_; if (requestCase_ == 1) { if (ticketNumberBuilder_ == null) { result.request_ = request_; } else { result.request_ = ticketNumberBuilder_.build(); } } if (requestCase_ == 2) { if (indexBuilder_ == null) { result.request_ = request_; } else { result.request_ = indexBuilder_.build(); } } if (requestCase_ == 3) { if (pnrBuilder_ == null) { result.request_ = request_; } else { result.request_ = pnrBuilder_.build(); } } if (requestCase_ == 4) { if (passIdBuilder_ == null) { result.request_ = request_; } else { result.request_ = passIdBuilder_.build(); } } if (((bitField0_ & 0x00000001) != 0)) { format_ = java.util.Collections.unmodifiableList(format_); bitField0_ = (bitField0_ & ~0x00000001); } result.format_ = format_; result.requestCase_ = requestCase_; 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.BoardingPass.BoardingPassRequest) { return mergeFrom((com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest other) { if (other == com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest.getDefaultInstance()) return this; if (!other.format_.isEmpty()) { if (format_.isEmpty()) { format_ = other.format_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFormatIsMutable(); format_.addAll(other.format_); } onChanged(); } switch (other.getRequestCase()) { case TICKETNUMBER: { mergeTicketNumber(other.getTicketNumber()); break; } case INDEX: { mergeIndex(other.getIndex()); break; } case PNR: { mergePnr(other.getPnr()); break; } case PASSID: { mergePassId(other.getPassId()); break; } case REQUEST_NOT_SET: { break; } } 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.BoardingPass.BoardingPassRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int requestCase_ = 0; private java.lang.Object request_; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public Builder clearRequest() { requestCase_ = 0; request_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.Builder, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumberOrBuilder> ticketNumberBuilder_; /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; * @return Whether the ticketNumber field is set. */ @java.lang.Override public boolean hasTicketNumber() { return requestCase_ == 1; } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; * @return The ticketNumber. */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber getTicketNumber() { if (ticketNumberBuilder_ == null) { if (requestCase_ == 1) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.getDefaultInstance(); } else { if (requestCase_ == 1) { return ticketNumberBuilder_.getMessage(); } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.getDefaultInstance(); } } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ public Builder setTicketNumber(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber value) { if (ticketNumberBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { ticketNumberBuilder_.setMessage(value); } requestCase_ = 1; return this; } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ public Builder setTicketNumber( com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.Builder builderForValue) { if (ticketNumberBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { ticketNumberBuilder_.setMessage(builderForValue.build()); } requestCase_ = 1; return this; } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ public Builder mergeTicketNumber(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber value) { if (ticketNumberBuilder_ == null) { if (requestCase_ == 1 && request_ != com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.getDefaultInstance()) { request_ = com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.newBuilder((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 1) { ticketNumberBuilder_.mergeFrom(value); } ticketNumberBuilder_.setMessage(value); } requestCase_ = 1; return this; } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ public Builder clearTicketNumber() { if (ticketNumberBuilder_ == null) { if (requestCase_ == 1) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 1) { requestCase_ = 0; request_ = null; } ticketNumberBuilder_.clear(); } return this; } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.Builder getTicketNumberBuilder() { return getTicketNumberFieldBuilder().getBuilder(); } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumberOrBuilder getTicketNumberOrBuilder() { if ((requestCase_ == 1) && (ticketNumberBuilder_ != null)) { return ticketNumberBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 1) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.getDefaultInstance(); } } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.Builder, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumberOrBuilder> getTicketNumberFieldBuilder() { if (ticketNumberBuilder_ == null) { if (!(requestCase_ == 1)) { request_ = com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.getDefaultInstance(); } ticketNumberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.Builder, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumberOrBuilder>( (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 1; onChanged();; return ticketNumberBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.Builder, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndexOrBuilder> indexBuilder_; /** * .flights.BoardingPassRecordRequestByIndex index = 2; * @return Whether the index field is set. */ @java.lang.Override public boolean hasIndex() { return requestCase_ == 2; } /** * .flights.BoardingPassRecordRequestByIndex index = 2; * @return The index. */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex getIndex() { if (indexBuilder_ == null) { if (requestCase_ == 2) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.getDefaultInstance(); } else { if (requestCase_ == 2) { return indexBuilder_.getMessage(); } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.getDefaultInstance(); } } /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ public Builder setIndex(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex value) { if (indexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { indexBuilder_.setMessage(value); } requestCase_ = 2; return this; } /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ public Builder setIndex( com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.Builder builderForValue) { if (indexBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { indexBuilder_.setMessage(builderForValue.build()); } requestCase_ = 2; return this; } /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ public Builder mergeIndex(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex value) { if (indexBuilder_ == null) { if (requestCase_ == 2 && request_ != com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.getDefaultInstance()) { request_ = com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.newBuilder((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 2) { indexBuilder_.mergeFrom(value); } indexBuilder_.setMessage(value); } requestCase_ = 2; return this; } /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ public Builder clearIndex() { if (indexBuilder_ == null) { if (requestCase_ == 2) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 2) { requestCase_ = 0; request_ = null; } indexBuilder_.clear(); } return this; } /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.Builder getIndexBuilder() { return getIndexFieldBuilder().getBuilder(); } /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndexOrBuilder getIndexOrBuilder() { if ((requestCase_ == 2) && (indexBuilder_ != null)) { return indexBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 2) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.getDefaultInstance(); } } /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.Builder, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndexOrBuilder> getIndexFieldBuilder() { if (indexBuilder_ == null) { if (!(requestCase_ == 2)) { request_ = com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.getDefaultInstance(); } indexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.Builder, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndexOrBuilder>( (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 2; onChanged();; return indexBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest, com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.Builder, com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequestOrBuilder> pnrBuilder_; /** * .flights.BoardingPassesForBookingRequest pnr = 3; * @return Whether the pnr field is set. */ @java.lang.Override public boolean hasPnr() { return requestCase_ == 3; } /** * .flights.BoardingPassesForBookingRequest pnr = 3; * @return The pnr. */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest getPnr() { if (pnrBuilder_ == null) { if (requestCase_ == 3) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.getDefaultInstance(); } else { if (requestCase_ == 3) { return pnrBuilder_.getMessage(); } return com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.getDefaultInstance(); } } /** * .flights.BoardingPassesForBookingRequest pnr = 3; */ public Builder setPnr(com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest value) { if (pnrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { pnrBuilder_.setMessage(value); } requestCase_ = 3; return this; } /** * .flights.BoardingPassesForBookingRequest pnr = 3; */ public Builder setPnr( com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.Builder builderForValue) { if (pnrBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { pnrBuilder_.setMessage(builderForValue.build()); } requestCase_ = 3; return this; } /** * .flights.BoardingPassesForBookingRequest pnr = 3; */ public Builder mergePnr(com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest value) { if (pnrBuilder_ == null) { if (requestCase_ == 3 && request_ != com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.getDefaultInstance()) { request_ = com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.newBuilder((com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 3) { pnrBuilder_.mergeFrom(value); } pnrBuilder_.setMessage(value); } requestCase_ = 3; return this; } /** * .flights.BoardingPassesForBookingRequest pnr = 3; */ public Builder clearPnr() { if (pnrBuilder_ == null) { if (requestCase_ == 3) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 3) { requestCase_ = 0; request_ = null; } pnrBuilder_.clear(); } return this; } /** * .flights.BoardingPassesForBookingRequest pnr = 3; */ public com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.Builder getPnrBuilder() { return getPnrFieldBuilder().getBuilder(); } /** * .flights.BoardingPassesForBookingRequest pnr = 3; */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequestOrBuilder getPnrOrBuilder() { if ((requestCase_ == 3) && (pnrBuilder_ != null)) { return pnrBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 3) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.getDefaultInstance(); } } /** * .flights.BoardingPassesForBookingRequest pnr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest, com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.Builder, com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequestOrBuilder> getPnrFieldBuilder() { if (pnrBuilder_ == null) { if (!(requestCase_ == 3)) { request_ = com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.getDefaultInstance(); } pnrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest, com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.Builder, com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequestOrBuilder>( (com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 3; onChanged();; return pnrBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Id, com.passkit.grpc.CommonObjects.Id.Builder, com.passkit.grpc.CommonObjects.IdOrBuilder> passIdBuilder_; /** * .io.Id passId = 4; * @return Whether the passId field is set. */ @java.lang.Override public boolean hasPassId() { return requestCase_ == 4; } /** * .io.Id passId = 4; * @return The passId. */ @java.lang.Override public com.passkit.grpc.CommonObjects.Id getPassId() { if (passIdBuilder_ == null) { if (requestCase_ == 4) { return (com.passkit.grpc.CommonObjects.Id) request_; } return com.passkit.grpc.CommonObjects.Id.getDefaultInstance(); } else { if (requestCase_ == 4) { return passIdBuilder_.getMessage(); } return com.passkit.grpc.CommonObjects.Id.getDefaultInstance(); } } /** * .io.Id passId = 4; */ public Builder setPassId(com.passkit.grpc.CommonObjects.Id value) { if (passIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { passIdBuilder_.setMessage(value); } requestCase_ = 4; return this; } /** * .io.Id passId = 4; */ public Builder setPassId( com.passkit.grpc.CommonObjects.Id.Builder builderForValue) { if (passIdBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { passIdBuilder_.setMessage(builderForValue.build()); } requestCase_ = 4; return this; } /** * .io.Id passId = 4; */ public Builder mergePassId(com.passkit.grpc.CommonObjects.Id value) { if (passIdBuilder_ == null) { if (requestCase_ == 4 && request_ != com.passkit.grpc.CommonObjects.Id.getDefaultInstance()) { request_ = com.passkit.grpc.CommonObjects.Id.newBuilder((com.passkit.grpc.CommonObjects.Id) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 4) { passIdBuilder_.mergeFrom(value); } passIdBuilder_.setMessage(value); } requestCase_ = 4; return this; } /** * .io.Id passId = 4; */ public Builder clearPassId() { if (passIdBuilder_ == null) { if (requestCase_ == 4) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 4) { requestCase_ = 0; request_ = null; } passIdBuilder_.clear(); } return this; } /** * .io.Id passId = 4; */ public com.passkit.grpc.CommonObjects.Id.Builder getPassIdBuilder() { return getPassIdFieldBuilder().getBuilder(); } /** * .io.Id passId = 4; */ @java.lang.Override public com.passkit.grpc.CommonObjects.IdOrBuilder getPassIdOrBuilder() { if ((requestCase_ == 4) && (passIdBuilder_ != null)) { return passIdBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 4) { return (com.passkit.grpc.CommonObjects.Id) request_; } return com.passkit.grpc.CommonObjects.Id.getDefaultInstance(); } } /** * .io.Id passId = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Id, com.passkit.grpc.CommonObjects.Id.Builder, com.passkit.grpc.CommonObjects.IdOrBuilder> getPassIdFieldBuilder() { if (passIdBuilder_ == null) { if (!(requestCase_ == 4)) { request_ = com.passkit.grpc.CommonObjects.Id.getDefaultInstance(); } passIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Id, com.passkit.grpc.CommonObjects.Id.Builder, com.passkit.grpc.CommonObjects.IdOrBuilder>( (com.passkit.grpc.CommonObjects.Id) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 4; onChanged();; return passIdBuilder_; } private java.util.List format_ = java.util.Collections.emptyList(); private void ensureFormatIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { format_ = new java.util.ArrayList(format_); bitField0_ |= 0x00000001; } } /** *
       * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
       * 
* * repeated .io.PassBundleFormat format = 5; * @return A list containing the format. */ public java.util.List getFormatList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.passkit.grpc.CommonObjects.PassBundleFormat>(format_, format_converter_); } /** *
       * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
       * 
* * repeated .io.PassBundleFormat format = 5; * @return The count of format. */ public int getFormatCount() { return format_.size(); } /** *
       * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
       * 
* * repeated .io.PassBundleFormat format = 5; * @param index The index of the element to return. * @return The format at the given index. */ public com.passkit.grpc.CommonObjects.PassBundleFormat getFormat(int index) { return format_converter_.convert(format_.get(index)); } /** *
       * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
       * 
* * repeated .io.PassBundleFormat format = 5; * @param index The index to set the value at. * @param value The format to set. * @return This builder for chaining. */ public Builder setFormat( int index, com.passkit.grpc.CommonObjects.PassBundleFormat value) { if (value == null) { throw new NullPointerException(); } ensureFormatIsMutable(); format_.set(index, value.getNumber()); onChanged(); return this; } /** *
       * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
       * 
* * repeated .io.PassBundleFormat format = 5; * @param value The format to add. * @return This builder for chaining. */ public Builder addFormat(com.passkit.grpc.CommonObjects.PassBundleFormat value) { if (value == null) { throw new NullPointerException(); } ensureFormatIsMutable(); format_.add(value.getNumber()); onChanged(); return this; } /** *
       * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
       * 
* * repeated .io.PassBundleFormat format = 5; * @param values The format to add. * @return This builder for chaining. */ public Builder addAllFormat( java.lang.Iterable values) { ensureFormatIsMutable(); for (com.passkit.grpc.CommonObjects.PassBundleFormat value : values) { format_.add(value.getNumber()); } onChanged(); return this; } /** *
       * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
       * 
* * repeated .io.PassBundleFormat format = 5; * @return This builder for chaining. */ public Builder clearFormat() { format_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
       * 
* * repeated .io.PassBundleFormat format = 5; * @return A list containing the enum numeric values on the wire for format. */ public java.util.List getFormatValueList() { return java.util.Collections.unmodifiableList(format_); } /** *
       * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
       * 
* * repeated .io.PassBundleFormat format = 5; * @param index The index of the value to return. * @return The enum numeric value on the wire of format at the given index. */ public int getFormatValue(int index) { return format_.get(index); } /** *
       * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
       * 
* * repeated .io.PassBundleFormat format = 5; * @param index The index of the value to return. * @return The enum numeric value on the wire of format at the given index. * @return This builder for chaining. */ public Builder setFormatValue( int index, int value) { ensureFormatIsMutable(); format_.set(index, value); onChanged(); return this; } /** *
       * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
       * 
* * repeated .io.PassBundleFormat format = 5; * @param value The enum numeric value on the wire for format to add. * @return This builder for chaining. */ public Builder addFormatValue(int value) { ensureFormatIsMutable(); format_.add(value); onChanged(); return this; } /** *
       * Optional. If omitted, return the URL to the web pass landing page. Not used when getting or deleting the underlying boarding pass record.
       * 
* * repeated .io.PassBundleFormat format = 5; * @param values The enum numeric values on the wire for format to add. * @return This builder for chaining. */ public Builder addAllFormatValue( java.lang.Iterable values) { ensureFormatIsMutable(); for (int value : values) { format_.add(value); } onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:flights.BoardingPassRequest) } // @@protoc_insertion_point(class_scope:flights.BoardingPassRequest) private static final com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest(); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BoardingPassRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BoardingPassRequest(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.BoardingPass.BoardingPassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BoardingPassRecordRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:flights.BoardingPassRecordRequest) com.google.protobuf.MessageOrBuilder { /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; * @return Whether the ticketNumber field is set. */ boolean hasTicketNumber(); /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; * @return The ticketNumber. */ com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber getTicketNumber(); /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumberOrBuilder getTicketNumberOrBuilder(); /** * .flights.BoardingPassRecordRequestByIndex index = 2; * @return Whether the index field is set. */ boolean hasIndex(); /** * .flights.BoardingPassRecordRequestByIndex index = 2; * @return The index. */ com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex getIndex(); /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndexOrBuilder getIndexOrBuilder(); /** * .io.Id passId = 3; * @return Whether the passId field is set. */ boolean hasPassId(); /** * .io.Id passId = 3; * @return The passId. */ com.passkit.grpc.CommonObjects.Id getPassId(); /** * .io.Id passId = 3; */ com.passkit.grpc.CommonObjects.IdOrBuilder getPassIdOrBuilder(); public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest.RequestCase getRequestCase(); } /** *
   * Used to request a digital boarding pass record by ticket number, index or pass id.
   * 
* * Protobuf type {@code flights.BoardingPassRecordRequest} */ public static final class BoardingPassRecordRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flights.BoardingPassRecordRequest) BoardingPassRecordRequestOrBuilder { private static final long serialVersionUID = 0L; // Use BoardingPassRecordRequest.newBuilder() to construct. private BoardingPassRecordRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BoardingPassRecordRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BoardingPassRecordRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BoardingPassRecordRequest( 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.BoardingPass.BoardingPassRecordRequestByTicketNumber.Builder subBuilder = null; if (requestCase_ == 1) { subBuilder = ((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_).toBuilder(); } request_ = input.readMessage(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 1; break; } case 18: { com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.Builder subBuilder = null; if (requestCase_ == 2) { subBuilder = ((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_).toBuilder(); } request_ = input.readMessage(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 2; break; } case 26: { com.passkit.grpc.CommonObjects.Id.Builder subBuilder = null; if (requestCase_ == 3) { subBuilder = ((com.passkit.grpc.CommonObjects.Id) request_).toBuilder(); } request_ = input.readMessage(com.passkit.grpc.CommonObjects.Id.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.passkit.grpc.CommonObjects.Id) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 3; 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.BoardingPass.internal_static_flights_BoardingPassRecordRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecordRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest.class, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; public enum RequestCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TICKETNUMBER(1), INDEX(2), PASSID(3), REQUEST_NOT_SET(0); private final int value; private RequestCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RequestCase valueOf(int value) { return forNumber(value); } public static RequestCase forNumber(int value) { switch (value) { case 1: return TICKETNUMBER; case 2: return INDEX; case 3: return PASSID; case 0: return REQUEST_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public static final int TICKETNUMBER_FIELD_NUMBER = 1; /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; * @return Whether the ticketNumber field is set. */ @java.lang.Override public boolean hasTicketNumber() { return requestCase_ == 1; } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; * @return The ticketNumber. */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber getTicketNumber() { if (requestCase_ == 1) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.getDefaultInstance(); } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumberOrBuilder getTicketNumberOrBuilder() { if (requestCase_ == 1) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.getDefaultInstance(); } public static final int INDEX_FIELD_NUMBER = 2; /** * .flights.BoardingPassRecordRequestByIndex index = 2; * @return Whether the index field is set. */ @java.lang.Override public boolean hasIndex() { return requestCase_ == 2; } /** * .flights.BoardingPassRecordRequestByIndex index = 2; * @return The index. */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex getIndex() { if (requestCase_ == 2) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.getDefaultInstance(); } /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndexOrBuilder getIndexOrBuilder() { if (requestCase_ == 2) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.getDefaultInstance(); } public static final int PASSID_FIELD_NUMBER = 3; /** * .io.Id passId = 3; * @return Whether the passId field is set. */ @java.lang.Override public boolean hasPassId() { return requestCase_ == 3; } /** * .io.Id passId = 3; * @return The passId. */ @java.lang.Override public com.passkit.grpc.CommonObjects.Id getPassId() { if (requestCase_ == 3) { return (com.passkit.grpc.CommonObjects.Id) request_; } return com.passkit.grpc.CommonObjects.Id.getDefaultInstance(); } /** * .io.Id passId = 3; */ @java.lang.Override public com.passkit.grpc.CommonObjects.IdOrBuilder getPassIdOrBuilder() { if (requestCase_ == 3) { return (com.passkit.grpc.CommonObjects.Id) request_; } return com.passkit.grpc.CommonObjects.Id.getDefaultInstance(); } 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 (requestCase_ == 1) { output.writeMessage(1, (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_); } if (requestCase_ == 2) { output.writeMessage(2, (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_); } if (requestCase_ == 3) { output.writeMessage(3, (com.passkit.grpc.CommonObjects.Id) request_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (requestCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_); } if (requestCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_); } if (requestCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.passkit.grpc.CommonObjects.Id) request_); } 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.BoardingPass.BoardingPassRecordRequest)) { return super.equals(obj); } com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest other = (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest) obj; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: if (!getTicketNumber() .equals(other.getTicketNumber())) return false; break; case 2: if (!getIndex() .equals(other.getIndex())) return false; break; case 3: if (!getPassId() .equals(other.getPassId())) return false; break; case 0: default: } 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(); switch (requestCase_) { case 1: hash = (37 * hash) + TICKETNUMBER_FIELD_NUMBER; hash = (53 * hash) + getTicketNumber().hashCode(); break; case 2: hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndex().hashCode(); break; case 3: hash = (37 * hash) + PASSID_FIELD_NUMBER; hash = (53 * hash) + getPassId().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest 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.BoardingPass.BoardingPassRecordRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest 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.BoardingPass.BoardingPassRecordRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest 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.BoardingPass.BoardingPassRecordRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest 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.BoardingPass.BoardingPassRecordRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest 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.BoardingPass.BoardingPassRecordRequest 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; } /** *
     * Used to request a digital boarding pass record by ticket number, index or pass id.
     * 
* * Protobuf type {@code flights.BoardingPassRecordRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flights.BoardingPassRecordRequest) com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecordRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecordRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest.class, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest.Builder.class); } // Construct using com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest.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(); requestCase_ = 0; request_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassRecordRequest_descriptor; } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest getDefaultInstanceForType() { return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest build() { com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest buildPartial() { com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest result = new com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest(this); if (requestCase_ == 1) { if (ticketNumberBuilder_ == null) { result.request_ = request_; } else { result.request_ = ticketNumberBuilder_.build(); } } if (requestCase_ == 2) { if (indexBuilder_ == null) { result.request_ = request_; } else { result.request_ = indexBuilder_.build(); } } if (requestCase_ == 3) { if (passIdBuilder_ == null) { result.request_ = request_; } else { result.request_ = passIdBuilder_.build(); } } result.requestCase_ = requestCase_; 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.BoardingPass.BoardingPassRecordRequest) { return mergeFrom((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest other) { if (other == com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest.getDefaultInstance()) return this; switch (other.getRequestCase()) { case TICKETNUMBER: { mergeTicketNumber(other.getTicketNumber()); break; } case INDEX: { mergeIndex(other.getIndex()); break; } case PASSID: { mergePassId(other.getPassId()); break; } case REQUEST_NOT_SET: { break; } } 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.BoardingPass.BoardingPassRecordRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int requestCase_ = 0; private java.lang.Object request_; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public Builder clearRequest() { requestCase_ = 0; request_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.Builder, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumberOrBuilder> ticketNumberBuilder_; /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; * @return Whether the ticketNumber field is set. */ @java.lang.Override public boolean hasTicketNumber() { return requestCase_ == 1; } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; * @return The ticketNumber. */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber getTicketNumber() { if (ticketNumberBuilder_ == null) { if (requestCase_ == 1) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.getDefaultInstance(); } else { if (requestCase_ == 1) { return ticketNumberBuilder_.getMessage(); } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.getDefaultInstance(); } } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ public Builder setTicketNumber(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber value) { if (ticketNumberBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { ticketNumberBuilder_.setMessage(value); } requestCase_ = 1; return this; } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ public Builder setTicketNumber( com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.Builder builderForValue) { if (ticketNumberBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { ticketNumberBuilder_.setMessage(builderForValue.build()); } requestCase_ = 1; return this; } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ public Builder mergeTicketNumber(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber value) { if (ticketNumberBuilder_ == null) { if (requestCase_ == 1 && request_ != com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.getDefaultInstance()) { request_ = com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.newBuilder((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 1) { ticketNumberBuilder_.mergeFrom(value); } ticketNumberBuilder_.setMessage(value); } requestCase_ = 1; return this; } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ public Builder clearTicketNumber() { if (ticketNumberBuilder_ == null) { if (requestCase_ == 1) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 1) { requestCase_ = 0; request_ = null; } ticketNumberBuilder_.clear(); } return this; } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.Builder getTicketNumberBuilder() { return getTicketNumberFieldBuilder().getBuilder(); } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumberOrBuilder getTicketNumberOrBuilder() { if ((requestCase_ == 1) && (ticketNumberBuilder_ != null)) { return ticketNumberBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 1) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.getDefaultInstance(); } } /** * .flights.BoardingPassRecordRequestByTicketNumber ticketNumber = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.Builder, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumberOrBuilder> getTicketNumberFieldBuilder() { if (ticketNumberBuilder_ == null) { if (!(requestCase_ == 1)) { request_ = com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.getDefaultInstance(); } ticketNumberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber.Builder, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumberOrBuilder>( (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByTicketNumber) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 1; onChanged();; return ticketNumberBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.Builder, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndexOrBuilder> indexBuilder_; /** * .flights.BoardingPassRecordRequestByIndex index = 2; * @return Whether the index field is set. */ @java.lang.Override public boolean hasIndex() { return requestCase_ == 2; } /** * .flights.BoardingPassRecordRequestByIndex index = 2; * @return The index. */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex getIndex() { if (indexBuilder_ == null) { if (requestCase_ == 2) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.getDefaultInstance(); } else { if (requestCase_ == 2) { return indexBuilder_.getMessage(); } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.getDefaultInstance(); } } /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ public Builder setIndex(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex value) { if (indexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { indexBuilder_.setMessage(value); } requestCase_ = 2; return this; } /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ public Builder setIndex( com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.Builder builderForValue) { if (indexBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { indexBuilder_.setMessage(builderForValue.build()); } requestCase_ = 2; return this; } /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ public Builder mergeIndex(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex value) { if (indexBuilder_ == null) { if (requestCase_ == 2 && request_ != com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.getDefaultInstance()) { request_ = com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.newBuilder((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 2) { indexBuilder_.mergeFrom(value); } indexBuilder_.setMessage(value); } requestCase_ = 2; return this; } /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ public Builder clearIndex() { if (indexBuilder_ == null) { if (requestCase_ == 2) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 2) { requestCase_ = 0; request_ = null; } indexBuilder_.clear(); } return this; } /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.Builder getIndexBuilder() { return getIndexFieldBuilder().getBuilder(); } /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndexOrBuilder getIndexOrBuilder() { if ((requestCase_ == 2) && (indexBuilder_ != null)) { return indexBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 2) { return (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_; } return com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.getDefaultInstance(); } } /** * .flights.BoardingPassRecordRequestByIndex index = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.Builder, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndexOrBuilder> getIndexFieldBuilder() { if (indexBuilder_ == null) { if (!(requestCase_ == 2)) { request_ = com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.getDefaultInstance(); } indexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex.Builder, com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndexOrBuilder>( (com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequestByIndex) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 2; onChanged();; return indexBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Id, com.passkit.grpc.CommonObjects.Id.Builder, com.passkit.grpc.CommonObjects.IdOrBuilder> passIdBuilder_; /** * .io.Id passId = 3; * @return Whether the passId field is set. */ @java.lang.Override public boolean hasPassId() { return requestCase_ == 3; } /** * .io.Id passId = 3; * @return The passId. */ @java.lang.Override public com.passkit.grpc.CommonObjects.Id getPassId() { if (passIdBuilder_ == null) { if (requestCase_ == 3) { return (com.passkit.grpc.CommonObjects.Id) request_; } return com.passkit.grpc.CommonObjects.Id.getDefaultInstance(); } else { if (requestCase_ == 3) { return passIdBuilder_.getMessage(); } return com.passkit.grpc.CommonObjects.Id.getDefaultInstance(); } } /** * .io.Id passId = 3; */ public Builder setPassId(com.passkit.grpc.CommonObjects.Id value) { if (passIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { passIdBuilder_.setMessage(value); } requestCase_ = 3; return this; } /** * .io.Id passId = 3; */ public Builder setPassId( com.passkit.grpc.CommonObjects.Id.Builder builderForValue) { if (passIdBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { passIdBuilder_.setMessage(builderForValue.build()); } requestCase_ = 3; return this; } /** * .io.Id passId = 3; */ public Builder mergePassId(com.passkit.grpc.CommonObjects.Id value) { if (passIdBuilder_ == null) { if (requestCase_ == 3 && request_ != com.passkit.grpc.CommonObjects.Id.getDefaultInstance()) { request_ = com.passkit.grpc.CommonObjects.Id.newBuilder((com.passkit.grpc.CommonObjects.Id) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 3) { passIdBuilder_.mergeFrom(value); } passIdBuilder_.setMessage(value); } requestCase_ = 3; return this; } /** * .io.Id passId = 3; */ public Builder clearPassId() { if (passIdBuilder_ == null) { if (requestCase_ == 3) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 3) { requestCase_ = 0; request_ = null; } passIdBuilder_.clear(); } return this; } /** * .io.Id passId = 3; */ public com.passkit.grpc.CommonObjects.Id.Builder getPassIdBuilder() { return getPassIdFieldBuilder().getBuilder(); } /** * .io.Id passId = 3; */ @java.lang.Override public com.passkit.grpc.CommonObjects.IdOrBuilder getPassIdOrBuilder() { if ((requestCase_ == 3) && (passIdBuilder_ != null)) { return passIdBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 3) { return (com.passkit.grpc.CommonObjects.Id) request_; } return com.passkit.grpc.CommonObjects.Id.getDefaultInstance(); } } /** * .io.Id passId = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Id, com.passkit.grpc.CommonObjects.Id.Builder, com.passkit.grpc.CommonObjects.IdOrBuilder> getPassIdFieldBuilder() { if (passIdBuilder_ == null) { if (!(requestCase_ == 3)) { request_ = com.passkit.grpc.CommonObjects.Id.getDefaultInstance(); } passIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Id, com.passkit.grpc.CommonObjects.Id.Builder, com.passkit.grpc.CommonObjects.IdOrBuilder>( (com.passkit.grpc.CommonObjects.Id) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 3; onChanged();; return passIdBuilder_; } @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.BoardingPassRecordRequest) } // @@protoc_insertion_point(class_scope:flights.BoardingPassRecordRequest) private static final com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest(); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BoardingPassRecordRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BoardingPassRecordRequest(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.BoardingPass.BoardingPassRecordRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BoardingPassesForBookingRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:flights.BoardingPassesForBookingRequest) com.google.protobuf.MessageOrBuilder { /** *
     * The master PNR for the booking.
     * 
* * string pnr = 1; * @return The pnr. */ java.lang.String getPnr(); /** *
     * The master PNR for the booking.
     * 
* * string pnr = 1; * @return The bytes for pnr. */ com.google.protobuf.ByteString getPnrBytes(); /** *
     * Optional. The leg of the ticket. Typically for a return ticket, the outbound leg will be 1 and the return leg will be 2.
     * 
* * int32 ticketLeg = 2; * @return The ticketLeg. */ int getTicketLeg(); /** *
     * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
     * 
* * string boardingPoint = 3; * @return The boardingPoint. */ java.lang.String getBoardingPoint(); /** *
     * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
     * 
* * string boardingPoint = 3; * @return The bytes for boardingPoint. */ com.google.protobuf.ByteString getBoardingPointBytes(); } /** *
   * Used to request digital boarding pass(es) by booking number. Either a journey leg or boarding point is required.
   * 
* * Protobuf type {@code flights.BoardingPassesForBookingRequest} */ public static final class BoardingPassesForBookingRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flights.BoardingPassesForBookingRequest) BoardingPassesForBookingRequestOrBuilder { private static final long serialVersionUID = 0L; // Use BoardingPassesForBookingRequest.newBuilder() to construct. private BoardingPassesForBookingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BoardingPassesForBookingRequest() { pnr_ = ""; boardingPoint_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BoardingPassesForBookingRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BoardingPassesForBookingRequest( 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(); pnr_ = s; break; } case 16: { ticketLeg_ = input.readInt32(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); boardingPoint_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassesForBookingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassesForBookingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.class, com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.Builder.class); } public static final int PNR_FIELD_NUMBER = 1; private volatile java.lang.Object pnr_; /** *
     * The master PNR for the booking.
     * 
* * string pnr = 1; * @return The pnr. */ @java.lang.Override public java.lang.String getPnr() { java.lang.Object ref = pnr_; 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(); pnr_ = s; return s; } } /** *
     * The master PNR for the booking.
     * 
* * string pnr = 1; * @return The bytes for pnr. */ @java.lang.Override public com.google.protobuf.ByteString getPnrBytes() { java.lang.Object ref = pnr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pnr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TICKETLEG_FIELD_NUMBER = 2; private int ticketLeg_; /** *
     * Optional. The leg of the ticket. Typically for a return ticket, the outbound leg will be 1 and the return leg will be 2.
     * 
* * int32 ticketLeg = 2; * @return The ticketLeg. */ @java.lang.Override public int getTicketLeg() { return ticketLeg_; } public static final int BOARDINGPOINT_FIELD_NUMBER = 3; private volatile java.lang.Object boardingPoint_; /** *
     * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
     * 
* * string boardingPoint = 3; * @return The boardingPoint. */ @java.lang.Override public java.lang.String getBoardingPoint() { java.lang.Object ref = boardingPoint_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); boardingPoint_ = s; return s; } } /** *
     * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
     * 
* * string boardingPoint = 3; * @return The bytes for boardingPoint. */ @java.lang.Override public com.google.protobuf.ByteString getBoardingPointBytes() { java.lang.Object ref = boardingPoint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); boardingPoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (!getPnrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pnr_); } if (ticketLeg_ != 0) { output.writeInt32(2, ticketLeg_); } if (!getBoardingPointBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, boardingPoint_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getPnrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pnr_); } if (ticketLeg_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, ticketLeg_); } if (!getBoardingPointBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, boardingPoint_); } 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.BoardingPass.BoardingPassesForBookingRequest)) { return super.equals(obj); } com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest other = (com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest) obj; if (!getPnr() .equals(other.getPnr())) return false; if (getTicketLeg() != other.getTicketLeg()) return false; if (!getBoardingPoint() .equals(other.getBoardingPoint())) 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) + PNR_FIELD_NUMBER; hash = (53 * hash) + getPnr().hashCode(); hash = (37 * hash) + TICKETLEG_FIELD_NUMBER; hash = (53 * hash) + getTicketLeg(); hash = (37 * hash) + BOARDINGPOINT_FIELD_NUMBER; hash = (53 * hash) + getBoardingPoint().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest 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.BoardingPass.BoardingPassesForBookingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest 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.BoardingPass.BoardingPassesForBookingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest 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.BoardingPass.BoardingPassesForBookingRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest 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.BoardingPass.BoardingPassesForBookingRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest 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.BoardingPass.BoardingPassesForBookingRequest 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; } /** *
     * Used to request digital boarding pass(es) by booking number. Either a journey leg or boarding point is required.
     * 
* * Protobuf type {@code flights.BoardingPassesForBookingRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flights.BoardingPassesForBookingRequest) com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassesForBookingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassesForBookingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.class, com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.Builder.class); } // Construct using com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.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(); pnr_ = ""; ticketLeg_ = 0; boardingPoint_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassesForBookingRequest_descriptor; } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest getDefaultInstanceForType() { return com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest build() { com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest buildPartial() { com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest result = new com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest(this); result.pnr_ = pnr_; result.ticketLeg_ = ticketLeg_; result.boardingPoint_ = boardingPoint_; 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.BoardingPass.BoardingPassesForBookingRequest) { return mergeFrom((com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest other) { if (other == com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest.getDefaultInstance()) return this; if (!other.getPnr().isEmpty()) { pnr_ = other.pnr_; onChanged(); } if (other.getTicketLeg() != 0) { setTicketLeg(other.getTicketLeg()); } if (!other.getBoardingPoint().isEmpty()) { boardingPoint_ = other.boardingPoint_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object pnr_ = ""; /** *
       * The master PNR for the booking.
       * 
* * string pnr = 1; * @return The pnr. */ public java.lang.String getPnr() { java.lang.Object ref = pnr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pnr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The master PNR for the booking.
       * 
* * string pnr = 1; * @return The bytes for pnr. */ public com.google.protobuf.ByteString getPnrBytes() { java.lang.Object ref = pnr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pnr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The master PNR for the booking.
       * 
* * string pnr = 1; * @param value The pnr to set. * @return This builder for chaining. */ public Builder setPnr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pnr_ = value; onChanged(); return this; } /** *
       * The master PNR for the booking.
       * 
* * string pnr = 1; * @return This builder for chaining. */ public Builder clearPnr() { pnr_ = getDefaultInstance().getPnr(); onChanged(); return this; } /** *
       * The master PNR for the booking.
       * 
* * string pnr = 1; * @param value The bytes for pnr to set. * @return This builder for chaining. */ public Builder setPnrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pnr_ = value; onChanged(); return this; } private int ticketLeg_ ; /** *
       * Optional. The leg of the ticket. Typically for a return ticket, the outbound leg will be 1 and the return leg will be 2.
       * 
* * int32 ticketLeg = 2; * @return The ticketLeg. */ @java.lang.Override public int getTicketLeg() { return ticketLeg_; } /** *
       * Optional. The leg of the ticket. Typically for a return ticket, the outbound leg will be 1 and the return leg will be 2.
       * 
* * int32 ticketLeg = 2; * @param value The ticketLeg to set. * @return This builder for chaining. */ public Builder setTicketLeg(int value) { ticketLeg_ = value; onChanged(); return this; } /** *
       * Optional. The leg of the ticket. Typically for a return ticket, the outbound leg will be 1 and the return leg will be 2.
       * 
* * int32 ticketLeg = 2; * @return This builder for chaining. */ public Builder clearTicketLeg() { ticketLeg_ = 0; onChanged(); return this; } private java.lang.Object boardingPoint_ = ""; /** *
       * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 3; * @return The boardingPoint. */ public java.lang.String getBoardingPoint() { java.lang.Object ref = boardingPoint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); boardingPoint_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 3; * @return The bytes for boardingPoint. */ public com.google.protobuf.ByteString getBoardingPointBytes() { java.lang.Object ref = boardingPoint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); boardingPoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 3; * @param value The boardingPoint to set. * @return This builder for chaining. */ public Builder setBoardingPoint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } boardingPoint_ = value; onChanged(); return this; } /** *
       * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 3; * @return This builder for chaining. */ public Builder clearBoardingPoint() { boardingPoint_ = getDefaultInstance().getBoardingPoint(); onChanged(); return this; } /** *
       * Required if no ticket leg. The 3 letter IATA code or 4 letter ICAO code of the passenger boarding point.
       * 
* * string boardingPoint = 3; * @param value The bytes for boardingPoint to set. * @return This builder for chaining. */ public Builder setBoardingPointBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); boardingPoint_ = value; onChanged(); return this; } @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.BoardingPassesForBookingRequest) } // @@protoc_insertion_point(class_scope:flights.BoardingPassesForBookingRequest) private static final com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest(); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesForBookingRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BoardingPassesForBookingRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BoardingPassesForBookingRequest(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.BoardingPass.BoardingPassesForBookingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BoardingPassesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:flights.BoardingPassesResponse) com.google.protobuf.MessageOrBuilder { /** *
     * An array of boarding passes found relating to the PNR.
     * 
* * repeated .io.PassBundle boardingPasses = 1; */ java.util.List getBoardingPassesList(); /** *
     * An array of boarding passes found relating to the PNR.
     * 
* * repeated .io.PassBundle boardingPasses = 1; */ com.passkit.grpc.CommonObjects.PassBundle getBoardingPasses(int index); /** *
     * An array of boarding passes found relating to the PNR.
     * 
* * repeated .io.PassBundle boardingPasses = 1; */ int getBoardingPassesCount(); /** *
     * An array of boarding passes found relating to the PNR.
     * 
* * repeated .io.PassBundle boardingPasses = 1; */ java.util.List getBoardingPassesOrBuilderList(); /** *
     * An array of boarding passes found relating to the PNR.
     * 
* * repeated .io.PassBundle boardingPasses = 1; */ com.passkit.grpc.CommonObjects.PassBundleOrBuilder getBoardingPassesOrBuilder( int index); } /** *
   * Contains an array of digital boarding passes.
   * 
* * Protobuf type {@code flights.BoardingPassesResponse} */ public static final class BoardingPassesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flights.BoardingPassesResponse) BoardingPassesResponseOrBuilder { private static final long serialVersionUID = 0L; // Use BoardingPassesResponse.newBuilder() to construct. private BoardingPassesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BoardingPassesResponse() { boardingPasses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BoardingPassesResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BoardingPassesResponse( 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: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { boardingPasses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } boardingPasses_.add( input.readMessage(com.passkit.grpc.CommonObjects.PassBundle.parser(), extensionRegistry)); 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)) { boardingPasses_ = java.util.Collections.unmodifiableList(boardingPasses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse.class, com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse.Builder.class); } public static final int BOARDINGPASSES_FIELD_NUMBER = 1; private java.util.List boardingPasses_; /** *
     * An array of boarding passes found relating to the PNR.
     * 
* * repeated .io.PassBundle boardingPasses = 1; */ @java.lang.Override public java.util.List getBoardingPassesList() { return boardingPasses_; } /** *
     * An array of boarding passes found relating to the PNR.
     * 
* * repeated .io.PassBundle boardingPasses = 1; */ @java.lang.Override public java.util.List getBoardingPassesOrBuilderList() { return boardingPasses_; } /** *
     * An array of boarding passes found relating to the PNR.
     * 
* * repeated .io.PassBundle boardingPasses = 1; */ @java.lang.Override public int getBoardingPassesCount() { return boardingPasses_.size(); } /** *
     * An array of boarding passes found relating to the PNR.
     * 
* * repeated .io.PassBundle boardingPasses = 1; */ @java.lang.Override public com.passkit.grpc.CommonObjects.PassBundle getBoardingPasses(int index) { return boardingPasses_.get(index); } /** *
     * An array of boarding passes found relating to the PNR.
     * 
* * repeated .io.PassBundle boardingPasses = 1; */ @java.lang.Override public com.passkit.grpc.CommonObjects.PassBundleOrBuilder getBoardingPassesOrBuilder( int index) { return boardingPasses_.get(index); } 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 { for (int i = 0; i < boardingPasses_.size(); i++) { output.writeMessage(1, boardingPasses_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < boardingPasses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, boardingPasses_.get(i)); } 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.BoardingPass.BoardingPassesResponse)) { return super.equals(obj); } com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse other = (com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse) obj; if (!getBoardingPassesList() .equals(other.getBoardingPassesList())) 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 (getBoardingPassesCount() > 0) { hash = (37 * hash) + BOARDINGPASSES_FIELD_NUMBER; hash = (53 * hash) + getBoardingPassesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse 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.BoardingPass.BoardingPassesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse 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.BoardingPass.BoardingPassesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse 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.BoardingPass.BoardingPassesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse 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.BoardingPass.BoardingPassesResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse 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.BoardingPass.BoardingPassesResponse 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; } /** *
     * Contains an array of digital boarding passes.
     * 
* * Protobuf type {@code flights.BoardingPassesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flights.BoardingPassesResponse) com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse.class, com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse.Builder.class); } // Construct using com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBoardingPassesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (boardingPassesBuilder_ == null) { boardingPasses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { boardingPassesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Flights.BoardingPass.internal_static_flights_BoardingPassesResponse_descriptor; } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse getDefaultInstanceForType() { return com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse build() { com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse buildPartial() { com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse result = new com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse(this); int from_bitField0_ = bitField0_; if (boardingPassesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { boardingPasses_ = java.util.Collections.unmodifiableList(boardingPasses_); bitField0_ = (bitField0_ & ~0x00000001); } result.boardingPasses_ = boardingPasses_; } else { result.boardingPasses_ = boardingPassesBuilder_.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.BoardingPass.BoardingPassesResponse) { return mergeFrom((com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse other) { if (other == com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse.getDefaultInstance()) return this; if (boardingPassesBuilder_ == null) { if (!other.boardingPasses_.isEmpty()) { if (boardingPasses_.isEmpty()) { boardingPasses_ = other.boardingPasses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBoardingPassesIsMutable(); boardingPasses_.addAll(other.boardingPasses_); } onChanged(); } } else { if (!other.boardingPasses_.isEmpty()) { if (boardingPassesBuilder_.isEmpty()) { boardingPassesBuilder_.dispose(); boardingPassesBuilder_ = null; boardingPasses_ = other.boardingPasses_; bitField0_ = (bitField0_ & ~0x00000001); boardingPassesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBoardingPassesFieldBuilder() : null; } else { boardingPassesBuilder_.addAllMessages(other.boardingPasses_); } } } 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.BoardingPass.BoardingPassesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List boardingPasses_ = java.util.Collections.emptyList(); private void ensureBoardingPassesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { boardingPasses_ = new java.util.ArrayList(boardingPasses_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.passkit.grpc.CommonObjects.PassBundle, com.passkit.grpc.CommonObjects.PassBundle.Builder, com.passkit.grpc.CommonObjects.PassBundleOrBuilder> boardingPassesBuilder_; /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public java.util.List getBoardingPassesList() { if (boardingPassesBuilder_ == null) { return java.util.Collections.unmodifiableList(boardingPasses_); } else { return boardingPassesBuilder_.getMessageList(); } } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public int getBoardingPassesCount() { if (boardingPassesBuilder_ == null) { return boardingPasses_.size(); } else { return boardingPassesBuilder_.getCount(); } } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public com.passkit.grpc.CommonObjects.PassBundle getBoardingPasses(int index) { if (boardingPassesBuilder_ == null) { return boardingPasses_.get(index); } else { return boardingPassesBuilder_.getMessage(index); } } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public Builder setBoardingPasses( int index, com.passkit.grpc.CommonObjects.PassBundle value) { if (boardingPassesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBoardingPassesIsMutable(); boardingPasses_.set(index, value); onChanged(); } else { boardingPassesBuilder_.setMessage(index, value); } return this; } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public Builder setBoardingPasses( int index, com.passkit.grpc.CommonObjects.PassBundle.Builder builderForValue) { if (boardingPassesBuilder_ == null) { ensureBoardingPassesIsMutable(); boardingPasses_.set(index, builderForValue.build()); onChanged(); } else { boardingPassesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public Builder addBoardingPasses(com.passkit.grpc.CommonObjects.PassBundle value) { if (boardingPassesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBoardingPassesIsMutable(); boardingPasses_.add(value); onChanged(); } else { boardingPassesBuilder_.addMessage(value); } return this; } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public Builder addBoardingPasses( int index, com.passkit.grpc.CommonObjects.PassBundle value) { if (boardingPassesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBoardingPassesIsMutable(); boardingPasses_.add(index, value); onChanged(); } else { boardingPassesBuilder_.addMessage(index, value); } return this; } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public Builder addBoardingPasses( com.passkit.grpc.CommonObjects.PassBundle.Builder builderForValue) { if (boardingPassesBuilder_ == null) { ensureBoardingPassesIsMutable(); boardingPasses_.add(builderForValue.build()); onChanged(); } else { boardingPassesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public Builder addBoardingPasses( int index, com.passkit.grpc.CommonObjects.PassBundle.Builder builderForValue) { if (boardingPassesBuilder_ == null) { ensureBoardingPassesIsMutable(); boardingPasses_.add(index, builderForValue.build()); onChanged(); } else { boardingPassesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public Builder addAllBoardingPasses( java.lang.Iterable values) { if (boardingPassesBuilder_ == null) { ensureBoardingPassesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, boardingPasses_); onChanged(); } else { boardingPassesBuilder_.addAllMessages(values); } return this; } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public Builder clearBoardingPasses() { if (boardingPassesBuilder_ == null) { boardingPasses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { boardingPassesBuilder_.clear(); } return this; } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public Builder removeBoardingPasses(int index) { if (boardingPassesBuilder_ == null) { ensureBoardingPassesIsMutable(); boardingPasses_.remove(index); onChanged(); } else { boardingPassesBuilder_.remove(index); } return this; } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public com.passkit.grpc.CommonObjects.PassBundle.Builder getBoardingPassesBuilder( int index) { return getBoardingPassesFieldBuilder().getBuilder(index); } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public com.passkit.grpc.CommonObjects.PassBundleOrBuilder getBoardingPassesOrBuilder( int index) { if (boardingPassesBuilder_ == null) { return boardingPasses_.get(index); } else { return boardingPassesBuilder_.getMessageOrBuilder(index); } } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public java.util.List getBoardingPassesOrBuilderList() { if (boardingPassesBuilder_ != null) { return boardingPassesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(boardingPasses_); } } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public com.passkit.grpc.CommonObjects.PassBundle.Builder addBoardingPassesBuilder() { return getBoardingPassesFieldBuilder().addBuilder( com.passkit.grpc.CommonObjects.PassBundle.getDefaultInstance()); } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public com.passkit.grpc.CommonObjects.PassBundle.Builder addBoardingPassesBuilder( int index) { return getBoardingPassesFieldBuilder().addBuilder( index, com.passkit.grpc.CommonObjects.PassBundle.getDefaultInstance()); } /** *
       * An array of boarding passes found relating to the PNR.
       * 
* * repeated .io.PassBundle boardingPasses = 1; */ public java.util.List getBoardingPassesBuilderList() { return getBoardingPassesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.passkit.grpc.CommonObjects.PassBundle, com.passkit.grpc.CommonObjects.PassBundle.Builder, com.passkit.grpc.CommonObjects.PassBundleOrBuilder> getBoardingPassesFieldBuilder() { if (boardingPassesBuilder_ == null) { boardingPassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.passkit.grpc.CommonObjects.PassBundle, com.passkit.grpc.CommonObjects.PassBundle.Builder, com.passkit.grpc.CommonObjects.PassBundleOrBuilder>( boardingPasses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); boardingPasses_ = null; } return boardingPassesBuilder_; } @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.BoardingPassesResponse) } // @@protoc_insertion_point(class_scope:flights.BoardingPassesResponse) private static final com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse(); } public static com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BoardingPassesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BoardingPassesResponse(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.BoardingPass.BoardingPassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_flights_BoardingPassRecord_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flights_BoardingPassRecord_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flights_BoardingPassRecordRequestByTicketNumber_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flights_BoardingPassRecordRequestByTicketNumber_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flights_BoardingPassRecordRequestByIndex_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flights_BoardingPassRecordRequestByIndex_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flights_BoardingPassRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flights_BoardingPassRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flights_BoardingPassRecordRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flights_BoardingPassRecordRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flights_BoardingPassesForBookingRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flights_BoardingPassesForBookingRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flights_BoardingPassesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flights_BoardingPassesResponse_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\036io/flights/boarding_pass.proto\022\007flight" + "s\032\032io/flights/passenger.proto\032\030io/flight" + "s/barcode.proto\032(io/flights/cabin_codes/" + "cabin_codes.proto\032\036io/common/common_obje" + "cts.proto\032\031io/common/proximity.proto\032\025io" + "/common/links.proto\032\027io/common/metrics.p" + "roto\032.protoc-gen-openapiv2/options/annot" + "ations.proto\"\277\017\n\022BoardingPassRecord\022\n\n\002i" + "d\030\001 \001(\t\0222\n\023operatingCarrierPNR\030\002 \001(\tB\025\222A" + "\022\212\001\017^[A-Z0-9]{5,7}$\022\330\002\n\013relatedPNRs\030\003 \003(" + "\tB\302\002\222A\276\0022\227\002Related PNRs can be used to i" + "ndex the record and can be the marketing" + " carrier PNR or a master PNR containing " + "multiple bookings. If required, a relate" + "d PNR can be followed by the two or thre" + "e character designator of the carrier or" + " CRS controlling the PNR, separated by a" + "n oblique.\212\001!^[A-Z0-9]{5,7}(\\/[A-Z0-9]{2" + ",3})?$\022*\n\014ticketNumber\030\004 \001(\tB\024\222A\021\212\001\016^([0" + "-9]{3,10}$\022\037\n\tticketLeg\030\005 \001(\005B\014\222A\ti\000\000\000\000\000" + "\000\360?\022)\n\rboardingPoint\030\006 \001(\tB\022\222A\017\212\001\014^[A-Z]" + "{3,4}$\022*\n\016deplaningPoint\030\007 \001(\tB\022\222A\017\212\001\014^[" + "A-Z]{3,4}$\022\035\n\013carrierCode\030\010 \001(\tB\010\222A\005x\003\200\001" + "\002\022\033\n\014flightNumber\030\t \001(\tB\005\222A\002x\005\022\037\n\rdepart" + "ureDate\030\013 \001(\0132\010.io.Date\022%\n\tpassenger\030\014 \001" + "(\0132\022.flights.Passenger\022\r\n\005class\030\r \001(\t\0225\n" + "\017compartmentCode\030\016 \001(\0162\034.cabin_codes.Com" + "partmentCode\022\031\n\nseatNumber\030\017 \001(\tB\005\222A\002x\005\022" + "\026\n\016sequenceNumber\030\020 \001(\005\022\025\n\rboardingGroup" + "\030\021 \001(\t\022\030\n\020boardingPosition\030\022 \001(\t\022&\n\024free" + "BaggageAllowance\030\023 \001(\tB\010\222A\005x\003\200\001\003\022\"\n\020carr" + "yOnAllowance\030\024 \001(\tB\010\222A\005x\003\200\001\003\022\020\n\010ssrCodes" + "\030\025 \003(\t\022\013\n\003osi\030\026 \001(\t\022\017\n\007remarks\030\027 \001(\t\0221\n\017" + "passengerStatus\030\030 \001(\0162\030.flights.Passenge" + "rStatus\0223\n\020conditionalItems\030\031 \001(\0132\031.flig" + "hts.ConditionalItems\022\026\n\016barcodePayload\030\032" + " \001(\t\022\025\n\rsecurityImage\030\033 \001(\t\022\026\n\016privilege" + "Image\030\034 \001(\t\022\023\n\013footerImage\030\035 \001(\t\0221\n\020loca" + "tionMessages\030\036 \003(\0132\017.io.GPSLocationB\006\222A\003" + "\240\001\n\022*\n\016beaconMessages\030\037 \003(\0132\n.io.BeaconB" + "\006\222A\003\240\001\n\022\037\n\005links\030 \003(\0132\010.io.LinkB\006\222A\003\240\001\n" + "\022\035\n\025barcodeAdditionalData\030! \001(\t\022\024\n\014infan" + "tPassId\030\" \001(\t\022*\n\023additionalDataItems\030# \001" + "(\0132\r.io.DataItems\022\036\n\010metadata\030$ \001(\0132\014.io" + ".Metadata:\372\003\222A\366\003\n\363\003*\024Boarding Pass Recor" + "d2\331\002A Boarding Pass record is unique to " + "an individual passenger journey form a b" + "oarding point to a deplaning point. A Ca" + "rrier and a Flight Designation record mu" + "st exist. If a Flight record does not al" + "ready exist, then it will be auto-genera" + "ted based on the Flight Designation reco" + "rd (and other publicly available data if" + " subscribed to data updates).\322\001\023operatin" + "gCarrierPNR\322\001\016sequenceNumber\322\001\rboardingP" + "oint\322\001\016deplaningPoint\322\001\014flightNumber\322\001\rd" + "epartureDate\322\001\tpassenger\322\001\013carrierCode\"\271" + "\002\n\'BoardingPassRecordRequestByTicketNumb" + "er\022*\n\014ticketNumber\030\001 \001(\tB\024\222A\021\212\001\016^([0-9]{" + "3,10}$\022\021\n\tticketLeg\030\002 \001(\005\022\025\n\rboardingPoi" + "nt\030\003 \001(\t:\267\001\222A\263\001\n\260\001*%Boarding Pass Record" + " By Ticket Number2xUsed to access a sing" + "le boarding pass or boarding pass record" + ". Either a ticket leg or boarding point" + " should be provided\322\001\014ticketNumber\"\371\002\n B" + "oardingPassRecordRequestByIndex\022\035\n\013carri" + "erCode\030\001 \001(\tB\010\222A\005x\003\200\001\002\022\033\n\014flightNumber\030\002" + " \001(\tB\005\222A\002x\005\022\037\n\rdepartureDate\030\003 \001(\0132\010.io." + "Date\022)\n\rboardingPoint\030\004 \001(\tB\022\222A\017\212\001\014^[A-Z" + "]{3,4}$\022\026\n\016sequenceNumber\030\005 \001(\005:\264\001\222A\260\001\n\255" + "\001*\035Boarding Pass Record By Index2>Used t" + "o access a single boarding pass or board" + "ing pass record.\322\001\013carrierCode\322\001\014flightN" + "umber\322\001\rdepartureDate\322\001\rboardingPoint\322\001\016" + "sequenceNumber\"\237\002\n\023BoardingPassRequest\022H" + "\n\014ticketNumber\030\001 \001(\01320.flights.BoardingP" + "assRecordRequestByTicketNumberH\000\022:\n\005inde" + "x\030\002 \001(\0132).flights.BoardingPassRecordRequ" + "estByIndexH\000\0227\n\003pnr\030\003 \001(\0132(.flights.Boar" + "dingPassesForBookingRequestH\000\022\030\n\006passId\030" + "\004 \001(\0132\006.io.IdH\000\022$\n\006format\030\005 \003(\0162\024.io.Pas" + "sBundleFormatB\t\n\007request\"\306\001\n\031BoardingPas" + "sRecordRequest\022H\n\014ticketNumber\030\001 \001(\01320.f" + "lights.BoardingPassRecordRequestByTicket" + "NumberH\000\022:\n\005index\030\002 \001(\0132).flights.Boardi" + "ngPassRecordRequestByIndexH\000\022\030\n\006passId\030\003" + " \001(\0132\006.io.IdH\000B\t\n\007request\"\330\001\n\037BoardingPa" + "ssesForBookingRequest\022\013\n\003pnr\030\001 \001(\t\022\021\n\tti" + "cketLeg\030\002 \001(\005\022\025\n\rboardingPoint\030\003 \001(\t:~\222A" + "{\ny*\"Boarding Pass Record By PNR record2" + "MUsed to access a single or multiple boa" + "rding passed or boarding pass records.\322\001" + "\003pnr\"@\n\026BoardingPassesResponse\022&\n\016boardi" + "ngPasses\030\001 \003(\0132\016.io.PassBundleB_\n\030com.pa" + "sskit.grpc.FlightsZ,stash.passkit.com/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.Flights.PassengerOuterClass.getDescriptor(), com.passkit.grpc.Flights.Barcode.getDescriptor(), com.passkit.grpc.Flights.CabinCodes.CabinCodes.getDescriptor(), com.passkit.grpc.CommonObjects.getDescriptor(), com.passkit.grpc.Proximity.getDescriptor(), com.passkit.grpc.Links.getDescriptor(), com.passkit.grpc.MetricsOuterClass.getDescriptor(), grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(), }); internal_static_flights_BoardingPassRecord_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_flights_BoardingPassRecord_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flights_BoardingPassRecord_descriptor, new java.lang.String[] { "Id", "OperatingCarrierPNR", "RelatedPNRs", "TicketNumber", "TicketLeg", "BoardingPoint", "DeplaningPoint", "CarrierCode", "FlightNumber", "DepartureDate", "Passenger", "Class_", "CompartmentCode", "SeatNumber", "SequenceNumber", "BoardingGroup", "BoardingPosition", "FreeBaggageAllowance", "CarryOnAllowance", "SsrCodes", "Osi", "Remarks", "PassengerStatus", "ConditionalItems", "BarcodePayload", "SecurityImage", "PrivilegeImage", "FooterImage", "LocationMessages", "BeaconMessages", "Links", "BarcodeAdditionalData", "InfantPassId", "AdditionalDataItems", "Metadata", }); internal_static_flights_BoardingPassRecordRequestByTicketNumber_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_flights_BoardingPassRecordRequestByTicketNumber_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flights_BoardingPassRecordRequestByTicketNumber_descriptor, new java.lang.String[] { "TicketNumber", "TicketLeg", "BoardingPoint", }); internal_static_flights_BoardingPassRecordRequestByIndex_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_flights_BoardingPassRecordRequestByIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flights_BoardingPassRecordRequestByIndex_descriptor, new java.lang.String[] { "CarrierCode", "FlightNumber", "DepartureDate", "BoardingPoint", "SequenceNumber", }); internal_static_flights_BoardingPassRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_flights_BoardingPassRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flights_BoardingPassRequest_descriptor, new java.lang.String[] { "TicketNumber", "Index", "Pnr", "PassId", "Format", "Request", }); internal_static_flights_BoardingPassRecordRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_flights_BoardingPassRecordRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flights_BoardingPassRecordRequest_descriptor, new java.lang.String[] { "TicketNumber", "Index", "PassId", "Request", }); internal_static_flights_BoardingPassesForBookingRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_flights_BoardingPassesForBookingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flights_BoardingPassesForBookingRequest_descriptor, new java.lang.String[] { "Pnr", "TicketLeg", "BoardingPoint", }); internal_static_flights_BoardingPassesResponse_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_flights_BoardingPassesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flights_BoardingPassesResponse_descriptor, new java.lang.String[] { "BoardingPasses", }); 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.Flights.PassengerOuterClass.getDescriptor(); com.passkit.grpc.Flights.Barcode.getDescriptor(); com.passkit.grpc.Flights.CabinCodes.CabinCodes.getDescriptor(); com.passkit.grpc.CommonObjects.getDescriptor(); com.passkit.grpc.Proximity.getDescriptor(); com.passkit.grpc.Links.getDescriptor(); com.passkit.grpc.MetricsOuterClass.getDescriptor(); grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy