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

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

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: io/flights/carrier.proto

package com.passkit.grpc.Flights;

public final class CarrierOuterClass {
  private CarrierOuterClass() {}
  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 CarrierOrBuilder extends
      // @@protoc_insertion_point(interface_extends:flights.Carrier)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * The IATA carrier code. If the carrier has not been issued an IATA carrier code or an ICAO carrier code, use YY.
     * 
* * string iataCarrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The iataCarrierCode. */ java.lang.String getIataCarrierCode(); /** *
     * The IATA carrier code. If the carrier has not been issued an IATA carrier code or an ICAO carrier code, use YY.
     * 
* * string iataCarrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for iataCarrierCode. */ com.google.protobuf.ByteString getIataCarrierCodeBytes(); /** *
     * The ICAO carrier code. Required if an iataCarrierCode is not provided.
     * 
* * string icaoCarrierCode = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The icaoCarrierCode. */ java.lang.String getIcaoCarrierCode(); /** *
     * The ICAO carrier code. Required if an iataCarrierCode is not provided.
     * 
* * string icaoCarrierCode = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for icaoCarrierCode. */ com.google.protobuf.ByteString getIcaoCarrierCodeBytes(); /** *
     * The IATA accounting code / AWB prefix.  If no code has been allocated, enter zero.
     * 
* * int32 iataAccountingCode = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The iataAccountingCode. */ int getIataAccountingCode(); /** *
     * The name of the airline. This will be printed below the logo on the Google Pay pass.
     * 
* * string airlineName = 4; * @return The airlineName. */ java.lang.String getAirlineName(); /** *
     * The name of the airline. This will be printed below the logo on the Google Pay pass.
     * 
* * string airlineName = 4; * @return The bytes for airlineName. */ com.google.protobuf.ByteString getAirlineNameBytes(); /** *
     * The localized airline name, if applicable.
     * 
* * .io.LocalizedString localizedAirlineName = 5; * @return Whether the localizedAirlineName field is set. */ boolean hasLocalizedAirlineName(); /** *
     * The localized airline name, if applicable.
     * 
* * .io.LocalizedString localizedAirlineName = 5; * @return The localizedAirlineName. */ com.passkit.grpc.Localization.LocalizedString getLocalizedAirlineName(); /** *
     * The localized airline name, if applicable.
     * 
* * .io.LocalizedString localizedAirlineName = 5; */ com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAirlineNameOrBuilder(); /** *
     * If the carrier will issue Apple Wallet passes, supply the certificate id (E.g. pass.com.passkitair). The certificate must have previously been uploaded.
     * 
* * string passTypeIdentifier = 6; * @return The passTypeIdentifier. */ java.lang.String getPassTypeIdentifier(); /** *
     * If the carrier will issue Apple Wallet passes, supply the certificate id (E.g. pass.com.passkitair). The certificate must have previously been uploaded.
     * 
* * string passTypeIdentifier = 6; * @return The bytes for passTypeIdentifier. */ com.google.protobuf.ByteString getPassTypeIdentifierBytes(); /** *
     * If PassKit are generating the boarding pass barcode, and the barcode needs signing, the ID of the private key used to sign the barcode payload.
     * 
* * string privateKeyId = 7; * @return The privateKeyId. */ java.lang.String getPrivateKeyId(); /** *
     * If PassKit are generating the boarding pass barcode, and the barcode needs signing, the ID of the private key used to sign the barcode payload.
     * 
* * string privateKeyId = 7; * @return The bytes for privateKeyId. */ com.google.protobuf.ByteString getPrivateKeyIdBytes(); } /** *
   * A carrier record contains details of the carrier.  The carrier will be the issuer of the boarding pass and may be used as a marketing or operating carrier.
   * 
* * Protobuf type {@code flights.Carrier} */ public static final class Carrier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flights.Carrier) CarrierOrBuilder { private static final long serialVersionUID = 0L; // Use Carrier.newBuilder() to construct. private Carrier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Carrier() { iataCarrierCode_ = ""; icaoCarrierCode_ = ""; airlineName_ = ""; passTypeIdentifier_ = ""; privateKeyId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Carrier(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Carrier( 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(); iataCarrierCode_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); icaoCarrierCode_ = s; break; } case 24: { iataAccountingCode_ = input.readInt32(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); airlineName_ = s; break; } case 42: { com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null; if (localizedAirlineName_ != null) { subBuilder = localizedAirlineName_.toBuilder(); } localizedAirlineName_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localizedAirlineName_); localizedAirlineName_ = subBuilder.buildPartial(); } break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); passTypeIdentifier_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); privateKeyId_ = 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.CarrierOuterClass.internal_static_flights_Carrier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.CarrierOuterClass.internal_static_flights_Carrier_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.CarrierOuterClass.Carrier.class, com.passkit.grpc.Flights.CarrierOuterClass.Carrier.Builder.class); } public static final int IATACARRIERCODE_FIELD_NUMBER = 1; private volatile java.lang.Object iataCarrierCode_; /** *
     * The IATA carrier code. If the carrier has not been issued an IATA carrier code or an ICAO carrier code, use YY.
     * 
* * string iataCarrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The iataCarrierCode. */ @java.lang.Override public java.lang.String getIataCarrierCode() { java.lang.Object ref = iataCarrierCode_; 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(); iataCarrierCode_ = s; return s; } } /** *
     * The IATA carrier code. If the carrier has not been issued an IATA carrier code or an ICAO carrier code, use YY.
     * 
* * string iataCarrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for iataCarrierCode. */ @java.lang.Override public com.google.protobuf.ByteString getIataCarrierCodeBytes() { java.lang.Object ref = iataCarrierCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); iataCarrierCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ICAOCARRIERCODE_FIELD_NUMBER = 2; private volatile java.lang.Object icaoCarrierCode_; /** *
     * The ICAO carrier code. Required if an iataCarrierCode is not provided.
     * 
* * string icaoCarrierCode = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The icaoCarrierCode. */ @java.lang.Override public java.lang.String getIcaoCarrierCode() { java.lang.Object ref = icaoCarrierCode_; 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(); icaoCarrierCode_ = s; return s; } } /** *
     * The ICAO carrier code. Required if an iataCarrierCode is not provided.
     * 
* * string icaoCarrierCode = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for icaoCarrierCode. */ @java.lang.Override public com.google.protobuf.ByteString getIcaoCarrierCodeBytes() { java.lang.Object ref = icaoCarrierCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); icaoCarrierCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IATAACCOUNTINGCODE_FIELD_NUMBER = 3; private int iataAccountingCode_; /** *
     * The IATA accounting code / AWB prefix.  If no code has been allocated, enter zero.
     * 
* * int32 iataAccountingCode = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The iataAccountingCode. */ @java.lang.Override public int getIataAccountingCode() { return iataAccountingCode_; } public static final int AIRLINENAME_FIELD_NUMBER = 4; private volatile java.lang.Object airlineName_; /** *
     * The name of the airline. This will be printed below the logo on the Google Pay pass.
     * 
* * string airlineName = 4; * @return The airlineName. */ @java.lang.Override public java.lang.String getAirlineName() { java.lang.Object ref = airlineName_; 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(); airlineName_ = s; return s; } } /** *
     * The name of the airline. This will be printed below the logo on the Google Pay pass.
     * 
* * string airlineName = 4; * @return The bytes for airlineName. */ @java.lang.Override public com.google.protobuf.ByteString getAirlineNameBytes() { java.lang.Object ref = airlineName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); airlineName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCALIZEDAIRLINENAME_FIELD_NUMBER = 5; private com.passkit.grpc.Localization.LocalizedString localizedAirlineName_; /** *
     * The localized airline name, if applicable.
     * 
* * .io.LocalizedString localizedAirlineName = 5; * @return Whether the localizedAirlineName field is set. */ @java.lang.Override public boolean hasLocalizedAirlineName() { return localizedAirlineName_ != null; } /** *
     * The localized airline name, if applicable.
     * 
* * .io.LocalizedString localizedAirlineName = 5; * @return The localizedAirlineName. */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedString getLocalizedAirlineName() { return localizedAirlineName_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAirlineName_; } /** *
     * The localized airline name, if applicable.
     * 
* * .io.LocalizedString localizedAirlineName = 5; */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAirlineNameOrBuilder() { return getLocalizedAirlineName(); } public static final int PASSTYPEIDENTIFIER_FIELD_NUMBER = 6; private volatile java.lang.Object passTypeIdentifier_; /** *
     * If the carrier will issue Apple Wallet passes, supply the certificate id (E.g. pass.com.passkitair). The certificate must have previously been uploaded.
     * 
* * string passTypeIdentifier = 6; * @return The passTypeIdentifier. */ @java.lang.Override public java.lang.String getPassTypeIdentifier() { java.lang.Object ref = passTypeIdentifier_; 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(); passTypeIdentifier_ = s; return s; } } /** *
     * If the carrier will issue Apple Wallet passes, supply the certificate id (E.g. pass.com.passkitair). The certificate must have previously been uploaded.
     * 
* * string passTypeIdentifier = 6; * @return The bytes for passTypeIdentifier. */ @java.lang.Override public com.google.protobuf.ByteString getPassTypeIdentifierBytes() { java.lang.Object ref = passTypeIdentifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passTypeIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRIVATEKEYID_FIELD_NUMBER = 7; private volatile java.lang.Object privateKeyId_; /** *
     * If PassKit are generating the boarding pass barcode, and the barcode needs signing, the ID of the private key used to sign the barcode payload.
     * 
* * string privateKeyId = 7; * @return The privateKeyId. */ @java.lang.Override public java.lang.String getPrivateKeyId() { java.lang.Object ref = privateKeyId_; 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(); privateKeyId_ = s; return s; } } /** *
     * If PassKit are generating the boarding pass barcode, and the barcode needs signing, the ID of the private key used to sign the barcode payload.
     * 
* * string privateKeyId = 7; * @return The bytes for privateKeyId. */ @java.lang.Override public com.google.protobuf.ByteString getPrivateKeyIdBytes() { java.lang.Object ref = privateKeyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); privateKeyId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iataCarrierCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iataCarrierCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(icaoCarrierCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, icaoCarrierCode_); } if (iataAccountingCode_ != 0) { output.writeInt32(3, iataAccountingCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(airlineName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, airlineName_); } if (localizedAirlineName_ != null) { output.writeMessage(5, getLocalizedAirlineName()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(passTypeIdentifier_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, passTypeIdentifier_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateKeyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, privateKeyId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iataCarrierCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, iataCarrierCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(icaoCarrierCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, icaoCarrierCode_); } if (iataAccountingCode_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, iataAccountingCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(airlineName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, airlineName_); } if (localizedAirlineName_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLocalizedAirlineName()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(passTypeIdentifier_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, passTypeIdentifier_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateKeyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, privateKeyId_); } 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.CarrierOuterClass.Carrier)) { return super.equals(obj); } com.passkit.grpc.Flights.CarrierOuterClass.Carrier other = (com.passkit.grpc.Flights.CarrierOuterClass.Carrier) obj; if (!getIataCarrierCode() .equals(other.getIataCarrierCode())) return false; if (!getIcaoCarrierCode() .equals(other.getIcaoCarrierCode())) return false; if (getIataAccountingCode() != other.getIataAccountingCode()) return false; if (!getAirlineName() .equals(other.getAirlineName())) return false; if (hasLocalizedAirlineName() != other.hasLocalizedAirlineName()) return false; if (hasLocalizedAirlineName()) { if (!getLocalizedAirlineName() .equals(other.getLocalizedAirlineName())) return false; } if (!getPassTypeIdentifier() .equals(other.getPassTypeIdentifier())) return false; if (!getPrivateKeyId() .equals(other.getPrivateKeyId())) 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) + IATACARRIERCODE_FIELD_NUMBER; hash = (53 * hash) + getIataCarrierCode().hashCode(); hash = (37 * hash) + ICAOCARRIERCODE_FIELD_NUMBER; hash = (53 * hash) + getIcaoCarrierCode().hashCode(); hash = (37 * hash) + IATAACCOUNTINGCODE_FIELD_NUMBER; hash = (53 * hash) + getIataAccountingCode(); hash = (37 * hash) + AIRLINENAME_FIELD_NUMBER; hash = (53 * hash) + getAirlineName().hashCode(); if (hasLocalizedAirlineName()) { hash = (37 * hash) + LOCALIZEDAIRLINENAME_FIELD_NUMBER; hash = (53 * hash) + getLocalizedAirlineName().hashCode(); } hash = (37 * hash) + PASSTYPEIDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getPassTypeIdentifier().hashCode(); hash = (37 * hash) + PRIVATEKEYID_FIELD_NUMBER; hash = (53 * hash) + getPrivateKeyId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Flights.CarrierOuterClass.Carrier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.CarrierOuterClass.Carrier 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.CarrierOuterClass.Carrier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.CarrierOuterClass.Carrier 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.CarrierOuterClass.Carrier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.CarrierOuterClass.Carrier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Flights.CarrierOuterClass.Carrier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.CarrierOuterClass.Carrier 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.CarrierOuterClass.Carrier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.CarrierOuterClass.Carrier 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.CarrierOuterClass.Carrier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.CarrierOuterClass.Carrier 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.CarrierOuterClass.Carrier 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 carrier record contains details of the carrier.  The carrier will be the issuer of the boarding pass and may be used as a marketing or operating carrier.
     * 
* * Protobuf type {@code flights.Carrier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flights.Carrier) com.passkit.grpc.Flights.CarrierOuterClass.CarrierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Flights.CarrierOuterClass.internal_static_flights_Carrier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.CarrierOuterClass.internal_static_flights_Carrier_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.CarrierOuterClass.Carrier.class, com.passkit.grpc.Flights.CarrierOuterClass.Carrier.Builder.class); } // Construct using com.passkit.grpc.Flights.CarrierOuterClass.Carrier.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(); iataCarrierCode_ = ""; icaoCarrierCode_ = ""; iataAccountingCode_ = 0; airlineName_ = ""; if (localizedAirlineNameBuilder_ == null) { localizedAirlineName_ = null; } else { localizedAirlineName_ = null; localizedAirlineNameBuilder_ = null; } passTypeIdentifier_ = ""; privateKeyId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Flights.CarrierOuterClass.internal_static_flights_Carrier_descriptor; } @java.lang.Override public com.passkit.grpc.Flights.CarrierOuterClass.Carrier getDefaultInstanceForType() { return com.passkit.grpc.Flights.CarrierOuterClass.Carrier.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Flights.CarrierOuterClass.Carrier build() { com.passkit.grpc.Flights.CarrierOuterClass.Carrier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Flights.CarrierOuterClass.Carrier buildPartial() { com.passkit.grpc.Flights.CarrierOuterClass.Carrier result = new com.passkit.grpc.Flights.CarrierOuterClass.Carrier(this); result.iataCarrierCode_ = iataCarrierCode_; result.icaoCarrierCode_ = icaoCarrierCode_; result.iataAccountingCode_ = iataAccountingCode_; result.airlineName_ = airlineName_; if (localizedAirlineNameBuilder_ == null) { result.localizedAirlineName_ = localizedAirlineName_; } else { result.localizedAirlineName_ = localizedAirlineNameBuilder_.build(); } result.passTypeIdentifier_ = passTypeIdentifier_; result.privateKeyId_ = privateKeyId_; 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.CarrierOuterClass.Carrier) { return mergeFrom((com.passkit.grpc.Flights.CarrierOuterClass.Carrier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Flights.CarrierOuterClass.Carrier other) { if (other == com.passkit.grpc.Flights.CarrierOuterClass.Carrier.getDefaultInstance()) return this; if (!other.getIataCarrierCode().isEmpty()) { iataCarrierCode_ = other.iataCarrierCode_; onChanged(); } if (!other.getIcaoCarrierCode().isEmpty()) { icaoCarrierCode_ = other.icaoCarrierCode_; onChanged(); } if (other.getIataAccountingCode() != 0) { setIataAccountingCode(other.getIataAccountingCode()); } if (!other.getAirlineName().isEmpty()) { airlineName_ = other.airlineName_; onChanged(); } if (other.hasLocalizedAirlineName()) { mergeLocalizedAirlineName(other.getLocalizedAirlineName()); } if (!other.getPassTypeIdentifier().isEmpty()) { passTypeIdentifier_ = other.passTypeIdentifier_; onChanged(); } if (!other.getPrivateKeyId().isEmpty()) { privateKeyId_ = other.privateKeyId_; 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.CarrierOuterClass.Carrier parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Flights.CarrierOuterClass.Carrier) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object iataCarrierCode_ = ""; /** *
       * The IATA carrier code. If the carrier has not been issued an IATA carrier code or an ICAO carrier code, use YY.
       * 
* * string iataCarrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The iataCarrierCode. */ public java.lang.String getIataCarrierCode() { java.lang.Object ref = iataCarrierCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); iataCarrierCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The IATA carrier code. If the carrier has not been issued an IATA carrier code or an ICAO carrier code, use YY.
       * 
* * string iataCarrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for iataCarrierCode. */ public com.google.protobuf.ByteString getIataCarrierCodeBytes() { java.lang.Object ref = iataCarrierCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); iataCarrierCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The IATA carrier code. If the carrier has not been issued an IATA carrier code or an ICAO carrier code, use YY.
       * 
* * string iataCarrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The iataCarrierCode to set. * @return This builder for chaining. */ public Builder setIataCarrierCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } iataCarrierCode_ = value; onChanged(); return this; } /** *
       * The IATA carrier code. If the carrier has not been issued an IATA carrier code or an ICAO carrier code, use YY.
       * 
* * string iataCarrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearIataCarrierCode() { iataCarrierCode_ = getDefaultInstance().getIataCarrierCode(); onChanged(); return this; } /** *
       * The IATA carrier code. If the carrier has not been issued an IATA carrier code or an ICAO carrier code, use YY.
       * 
* * string iataCarrierCode = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The bytes for iataCarrierCode to set. * @return This builder for chaining. */ public Builder setIataCarrierCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); iataCarrierCode_ = value; onChanged(); return this; } private java.lang.Object icaoCarrierCode_ = ""; /** *
       * The ICAO carrier code. Required if an iataCarrierCode is not provided.
       * 
* * string icaoCarrierCode = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The icaoCarrierCode. */ public java.lang.String getIcaoCarrierCode() { java.lang.Object ref = icaoCarrierCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); icaoCarrierCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The ICAO carrier code. Required if an iataCarrierCode is not provided.
       * 
* * string icaoCarrierCode = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for icaoCarrierCode. */ public com.google.protobuf.ByteString getIcaoCarrierCodeBytes() { java.lang.Object ref = icaoCarrierCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); icaoCarrierCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The ICAO carrier code. Required if an iataCarrierCode is not provided.
       * 
* * string icaoCarrierCode = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The icaoCarrierCode to set. * @return This builder for chaining. */ public Builder setIcaoCarrierCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } icaoCarrierCode_ = value; onChanged(); return this; } /** *
       * The ICAO carrier code. Required if an iataCarrierCode is not provided.
       * 
* * string icaoCarrierCode = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearIcaoCarrierCode() { icaoCarrierCode_ = getDefaultInstance().getIcaoCarrierCode(); onChanged(); return this; } /** *
       * The ICAO carrier code. Required if an iataCarrierCode is not provided.
       * 
* * string icaoCarrierCode = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The bytes for icaoCarrierCode to set. * @return This builder for chaining. */ public Builder setIcaoCarrierCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); icaoCarrierCode_ = value; onChanged(); return this; } private int iataAccountingCode_ ; /** *
       * The IATA accounting code / AWB prefix.  If no code has been allocated, enter zero.
       * 
* * int32 iataAccountingCode = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The iataAccountingCode. */ @java.lang.Override public int getIataAccountingCode() { return iataAccountingCode_; } /** *
       * The IATA accounting code / AWB prefix.  If no code has been allocated, enter zero.
       * 
* * int32 iataAccountingCode = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The iataAccountingCode to set. * @return This builder for chaining. */ public Builder setIataAccountingCode(int value) { iataAccountingCode_ = value; onChanged(); return this; } /** *
       * The IATA accounting code / AWB prefix.  If no code has been allocated, enter zero.
       * 
* * int32 iataAccountingCode = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearIataAccountingCode() { iataAccountingCode_ = 0; onChanged(); return this; } private java.lang.Object airlineName_ = ""; /** *
       * The name of the airline. This will be printed below the logo on the Google Pay pass.
       * 
* * string airlineName = 4; * @return The airlineName. */ public java.lang.String getAirlineName() { java.lang.Object ref = airlineName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); airlineName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name of the airline. This will be printed below the logo on the Google Pay pass.
       * 
* * string airlineName = 4; * @return The bytes for airlineName. */ public com.google.protobuf.ByteString getAirlineNameBytes() { java.lang.Object ref = airlineName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); airlineName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name of the airline. This will be printed below the logo on the Google Pay pass.
       * 
* * string airlineName = 4; * @param value The airlineName to set. * @return This builder for chaining. */ public Builder setAirlineName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } airlineName_ = value; onChanged(); return this; } /** *
       * The name of the airline. This will be printed below the logo on the Google Pay pass.
       * 
* * string airlineName = 4; * @return This builder for chaining. */ public Builder clearAirlineName() { airlineName_ = getDefaultInstance().getAirlineName(); onChanged(); return this; } /** *
       * The name of the airline. This will be printed below the logo on the Google Pay pass.
       * 
* * string airlineName = 4; * @param value The bytes for airlineName to set. * @return This builder for chaining. */ public Builder setAirlineNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); airlineName_ = value; onChanged(); return this; } private com.passkit.grpc.Localization.LocalizedString localizedAirlineName_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedAirlineNameBuilder_; /** *
       * The localized airline name, if applicable.
       * 
* * .io.LocalizedString localizedAirlineName = 5; * @return Whether the localizedAirlineName field is set. */ public boolean hasLocalizedAirlineName() { return localizedAirlineNameBuilder_ != null || localizedAirlineName_ != null; } /** *
       * The localized airline name, if applicable.
       * 
* * .io.LocalizedString localizedAirlineName = 5; * @return The localizedAirlineName. */ public com.passkit.grpc.Localization.LocalizedString getLocalizedAirlineName() { if (localizedAirlineNameBuilder_ == null) { return localizedAirlineName_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAirlineName_; } else { return localizedAirlineNameBuilder_.getMessage(); } } /** *
       * The localized airline name, if applicable.
       * 
* * .io.LocalizedString localizedAirlineName = 5; */ public Builder setLocalizedAirlineName(com.passkit.grpc.Localization.LocalizedString value) { if (localizedAirlineNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localizedAirlineName_ = value; onChanged(); } else { localizedAirlineNameBuilder_.setMessage(value); } return this; } /** *
       * The localized airline name, if applicable.
       * 
* * .io.LocalizedString localizedAirlineName = 5; */ public Builder setLocalizedAirlineName( com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) { if (localizedAirlineNameBuilder_ == null) { localizedAirlineName_ = builderForValue.build(); onChanged(); } else { localizedAirlineNameBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The localized airline name, if applicable.
       * 
* * .io.LocalizedString localizedAirlineName = 5; */ public Builder mergeLocalizedAirlineName(com.passkit.grpc.Localization.LocalizedString value) { if (localizedAirlineNameBuilder_ == null) { if (localizedAirlineName_ != null) { localizedAirlineName_ = com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedAirlineName_).mergeFrom(value).buildPartial(); } else { localizedAirlineName_ = value; } onChanged(); } else { localizedAirlineNameBuilder_.mergeFrom(value); } return this; } /** *
       * The localized airline name, if applicable.
       * 
* * .io.LocalizedString localizedAirlineName = 5; */ public Builder clearLocalizedAirlineName() { if (localizedAirlineNameBuilder_ == null) { localizedAirlineName_ = null; onChanged(); } else { localizedAirlineName_ = null; localizedAirlineNameBuilder_ = null; } return this; } /** *
       * The localized airline name, if applicable.
       * 
* * .io.LocalizedString localizedAirlineName = 5; */ public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedAirlineNameBuilder() { onChanged(); return getLocalizedAirlineNameFieldBuilder().getBuilder(); } /** *
       * The localized airline name, if applicable.
       * 
* * .io.LocalizedString localizedAirlineName = 5; */ public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAirlineNameOrBuilder() { if (localizedAirlineNameBuilder_ != null) { return localizedAirlineNameBuilder_.getMessageOrBuilder(); } else { return localizedAirlineName_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAirlineName_; } } /** *
       * The localized airline name, if applicable.
       * 
* * .io.LocalizedString localizedAirlineName = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> getLocalizedAirlineNameFieldBuilder() { if (localizedAirlineNameBuilder_ == null) { localizedAirlineNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>( getLocalizedAirlineName(), getParentForChildren(), isClean()); localizedAirlineName_ = null; } return localizedAirlineNameBuilder_; } private java.lang.Object passTypeIdentifier_ = ""; /** *
       * If the carrier will issue Apple Wallet passes, supply the certificate id (E.g. pass.com.passkitair). The certificate must have previously been uploaded.
       * 
* * string passTypeIdentifier = 6; * @return The passTypeIdentifier. */ public java.lang.String getPassTypeIdentifier() { java.lang.Object ref = passTypeIdentifier_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); passTypeIdentifier_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * If the carrier will issue Apple Wallet passes, supply the certificate id (E.g. pass.com.passkitair). The certificate must have previously been uploaded.
       * 
* * string passTypeIdentifier = 6; * @return The bytes for passTypeIdentifier. */ public com.google.protobuf.ByteString getPassTypeIdentifierBytes() { java.lang.Object ref = passTypeIdentifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passTypeIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * If the carrier will issue Apple Wallet passes, supply the certificate id (E.g. pass.com.passkitair). The certificate must have previously been uploaded.
       * 
* * string passTypeIdentifier = 6; * @param value The passTypeIdentifier to set. * @return This builder for chaining. */ public Builder setPassTypeIdentifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } passTypeIdentifier_ = value; onChanged(); return this; } /** *
       * If the carrier will issue Apple Wallet passes, supply the certificate id (E.g. pass.com.passkitair). The certificate must have previously been uploaded.
       * 
* * string passTypeIdentifier = 6; * @return This builder for chaining. */ public Builder clearPassTypeIdentifier() { passTypeIdentifier_ = getDefaultInstance().getPassTypeIdentifier(); onChanged(); return this; } /** *
       * If the carrier will issue Apple Wallet passes, supply the certificate id (E.g. pass.com.passkitair). The certificate must have previously been uploaded.
       * 
* * string passTypeIdentifier = 6; * @param value The bytes for passTypeIdentifier to set. * @return This builder for chaining. */ public Builder setPassTypeIdentifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); passTypeIdentifier_ = value; onChanged(); return this; } private java.lang.Object privateKeyId_ = ""; /** *
       * If PassKit are generating the boarding pass barcode, and the barcode needs signing, the ID of the private key used to sign the barcode payload.
       * 
* * string privateKeyId = 7; * @return The privateKeyId. */ public java.lang.String getPrivateKeyId() { java.lang.Object ref = privateKeyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateKeyId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * If PassKit are generating the boarding pass barcode, and the barcode needs signing, the ID of the private key used to sign the barcode payload.
       * 
* * string privateKeyId = 7; * @return The bytes for privateKeyId. */ public com.google.protobuf.ByteString getPrivateKeyIdBytes() { java.lang.Object ref = privateKeyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); privateKeyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * If PassKit are generating the boarding pass barcode, and the barcode needs signing, the ID of the private key used to sign the barcode payload.
       * 
* * string privateKeyId = 7; * @param value The privateKeyId to set. * @return This builder for chaining. */ public Builder setPrivateKeyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } privateKeyId_ = value; onChanged(); return this; } /** *
       * If PassKit are generating the boarding pass barcode, and the barcode needs signing, the ID of the private key used to sign the barcode payload.
       * 
* * string privateKeyId = 7; * @return This builder for chaining. */ public Builder clearPrivateKeyId() { privateKeyId_ = getDefaultInstance().getPrivateKeyId(); onChanged(); return this; } /** *
       * If PassKit are generating the boarding pass barcode, and the barcode needs signing, the ID of the private key used to sign the barcode payload.
       * 
* * string privateKeyId = 7; * @param value The bytes for privateKeyId to set. * @return This builder for chaining. */ public Builder setPrivateKeyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); privateKeyId_ = 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.Carrier) } // @@protoc_insertion_point(class_scope:flights.Carrier) private static final com.passkit.grpc.Flights.CarrierOuterClass.Carrier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Flights.CarrierOuterClass.Carrier(); } public static com.passkit.grpc.Flights.CarrierOuterClass.Carrier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Carrier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Carrier(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.CarrierOuterClass.Carrier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CarrierCodeOrBuilder extends // @@protoc_insertion_point(interface_extends:flights.CarrierCode) com.google.protobuf.MessageOrBuilder { /** *
     * The IATA or ICAO carrier code.
     * 
* * string carrierCode = 1; * @return The carrierCode. */ java.lang.String getCarrierCode(); /** *
     * The IATA or ICAO carrier code.
     * 
* * string carrierCode = 1; * @return The bytes for carrierCode. */ com.google.protobuf.ByteString getCarrierCodeBytes(); } /** *
   * CarrierCode is used for retrieving or deleting a port record.
   * 
* * Protobuf type {@code flights.CarrierCode} */ public static final class CarrierCode extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flights.CarrierCode) CarrierCodeOrBuilder { private static final long serialVersionUID = 0L; // Use CarrierCode.newBuilder() to construct. private CarrierCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CarrierCode() { carrierCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CarrierCode(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CarrierCode( 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; } 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.CarrierOuterClass.internal_static_flights_CarrierCode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.CarrierOuterClass.internal_static_flights_CarrierCode_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode.class, com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode.Builder.class); } public static final int CARRIERCODE_FIELD_NUMBER = 1; private volatile java.lang.Object carrierCode_; /** *
     * The IATA or ICAO carrier code.
     * 
* * string carrierCode = 1; * @return The carrierCode. */ @java.lang.Override public java.lang.String getCarrierCode() { java.lang.Object ref = carrierCode_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); carrierCode_ = s; return s; } } /** *
     * The IATA or ICAO carrier code.
     * 
* * string carrierCode = 1; * @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; } } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(carrierCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, carrierCode_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(carrierCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, carrierCode_); } 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.CarrierOuterClass.CarrierCode)) { return super.equals(obj); } com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode other = (com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode) obj; if (!getCarrierCode() .equals(other.getCarrierCode())) 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode 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.CarrierOuterClass.CarrierCode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode 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.CarrierOuterClass.CarrierCode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode 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.CarrierOuterClass.CarrierCode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode 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.CarrierOuterClass.CarrierCode parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode 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.CarrierOuterClass.CarrierCode 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; } /** *
     * CarrierCode is used for retrieving or deleting a port record.
     * 
* * Protobuf type {@code flights.CarrierCode} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flights.CarrierCode) com.passkit.grpc.Flights.CarrierOuterClass.CarrierCodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Flights.CarrierOuterClass.internal_static_flights_CarrierCode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Flights.CarrierOuterClass.internal_static_flights_CarrierCode_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode.class, com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode.Builder.class); } // Construct using com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode.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_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Flights.CarrierOuterClass.internal_static_flights_CarrierCode_descriptor; } @java.lang.Override public com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode getDefaultInstanceForType() { return com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode build() { com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode buildPartial() { com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode result = new com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode(this); result.carrierCode_ = carrierCode_; 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.CarrierOuterClass.CarrierCode) { return mergeFrom((com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode other) { if (other == com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode.getDefaultInstance()) return this; if (!other.getCarrierCode().isEmpty()) { carrierCode_ = other.carrierCode_; 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.CarrierOuterClass.CarrierCode parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object carrierCode_ = ""; /** *
       * The IATA or ICAO carrier code.
       * 
* * string carrierCode = 1; * @return The carrierCode. */ public java.lang.String getCarrierCode() { java.lang.Object ref = carrierCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); carrierCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The IATA or ICAO carrier code.
       * 
* * string carrierCode = 1; * @return The bytes for carrierCode. */ public com.google.protobuf.ByteString getCarrierCodeBytes() { java.lang.Object ref = carrierCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); carrierCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The IATA or ICAO carrier code.
       * 
* * string carrierCode = 1; * @param value The carrierCode to set. * @return This builder for chaining. */ public Builder setCarrierCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } carrierCode_ = value; onChanged(); return this; } /** *
       * The IATA or ICAO carrier code.
       * 
* * string carrierCode = 1; * @return This builder for chaining. */ public Builder clearCarrierCode() { carrierCode_ = getDefaultInstance().getCarrierCode(); onChanged(); return this; } /** *
       * The IATA or ICAO carrier code.
       * 
* * string carrierCode = 1; * @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; } @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.CarrierCode) } // @@protoc_insertion_point(class_scope:flights.CarrierCode) private static final com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode(); } public static com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CarrierCode parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CarrierCode(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.CarrierOuterClass.CarrierCode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_flights_Carrier_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flights_Carrier_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flights_CarrierCode_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flights_CarrierCode_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\030io/flights/carrier.proto\022\007flights\032\034io/" + "common/localization.proto\032.protoc-gen-op" + "enapiv2/options/annotations.proto\"\257\004\n\007Ca" + "rrier\022,\n\017iataCarrierCode\030\001 \001(\tB\023\222A\020\212\001\r^[" + "A-Z0-9]{2}$\022,\n\017icaoCarrierCode\030\002 \001(\tB\023\222A" + "\020\212\001\r^[A-Z0-9]{3}$\022(\n\022iataAccountingCode\030" + "\003 \001(\005B\014\222A\tY\000\000\000\000\0008\217@\022\023\n\013airlineName\030\004 \001(\t" + "\0221\n\024localizedAirlineName\030\005 \001(\0132\023.io.Loca" + "lizedString\022\032\n\022passTypeIdentifier\030\006 \001(\t\022" + "\024\n\014privateKeyId\030\007 \001(\t:\243\002\222A\237\002\n\234\002*\007Carrier" + "2\333\001A carrier record contains details of " + "the carrier. The carrier will be the is" + "suer of the boarding pass and may be use" + "d as a marketing or operating carrier. " + "All marketing and operating carriers req" + "uire a Carrier record.\322\001\017iataCarrierCode" + "\322\001\013airlineName\322\001\022passTypeIdentifier\"\"\n\013C" + "arrierCode\022\023\n\013carrierCode\030\001 \001(\tB_\n\030com.p" + "asskit.grpc.FlightsZ,stash.passkit.com/i" + "o/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.Localization.getDescriptor(), grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(), }); internal_static_flights_Carrier_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_flights_Carrier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flights_Carrier_descriptor, new java.lang.String[] { "IataCarrierCode", "IcaoCarrierCode", "IataAccountingCode", "AirlineName", "LocalizedAirlineName", "PassTypeIdentifier", "PrivateKeyId", }); internal_static_flights_CarrierCode_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_flights_CarrierCode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flights_CarrierCode_descriptor, new java.lang.String[] { "CarrierCode", }); 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.Localization.getDescriptor(); grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy