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

com.passkit.grpc.Flights.CabinCodes.CabinCodes 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/cabin_codes/cabin_codes.proto

package com.passkit.grpc.Flights.CabinCodes;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * Compartment Code descriptions represent most frequently used classes. Airlines have discretion on how they use these codes.
   * 
* * Protobuf enum {@code cabin_codes.CompartmentCode} */ public enum CompartmentCode implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Compartment code not provided
     * 
* * NONE = 0; */ NONE(0), /** *
     * First class suite (previously supersonic)
     * 
* * R = 1; */ R(1), /** *
     * First class premium
     * 
* * P = 2; */ P(2), /** *
     * First class
     * 
* * F = 3; */ F(3), /** *
     * First class discounted
     * 
* * A = 4; */ A(4), /** *
     * Business class premium
     * 
* * J = 5; */ J(5), /** *
     * Business class
     * 
* * C = 6; */ C(6), /** *
     * Business class discounted
     * 
* * D = 7; */ D(7), /** *
     * Business class discounted
     * 
* * I = 8; */ I(8), /** *
     * Business class discounted
     * 
* * Z = 9; */ Z(9), /** *
     * Premium economy
     * 
* * W = 10; */ W(10), /** *
     * Premium economy discounted
     * 
* * E = 11; */ E(11), /** *
     * Economy
     * 
* * S = 12; */ S(12), /** *
     * Economy
     * 
* * Y = 13; */ Y(13), /** *
     * Economy discounted
     * 
* * B = 14; */ B(14), /** *
     * Economy discounted
     * 
* * H = 15; */ H(15), /** *
     * Economy discounted
     * 
* * K = 16; */ K(16), /** *
     * Economy discounted
     * 
* * L = 17; */ L(17), /** *
     * Economy discounted
     * 
* * M = 18; */ M(18), /** *
     * Economy discounted
     * 
* * N = 19; */ N(19), /** *
     * Economy discounted
     * 
* * O = 20; */ O(20), /** *
     * Economy discounted
     * 
* * Q = 21; */ Q(21), /** *
     * Premium economy discounted / Economy discounted
     * 
* * T = 22; */ T(22), /** *
     * Economy discounted
     * 
* * V = 23; */ V(23), /** *
     * Economy discounted
     * 
* * X = 24; */ X(24), /** *
     * Conditional reservation
     * 
* * G = 25; */ G(25), /** *
     * Shuttle service
     * 
* * U = 26; */ U(26), UNRECOGNIZED(-1), ; /** *
     * Compartment code not provided
     * 
* * NONE = 0; */ public static final int NONE_VALUE = 0; /** *
     * First class suite (previously supersonic)
     * 
* * R = 1; */ public static final int R_VALUE = 1; /** *
     * First class premium
     * 
* * P = 2; */ public static final int P_VALUE = 2; /** *
     * First class
     * 
* * F = 3; */ public static final int F_VALUE = 3; /** *
     * First class discounted
     * 
* * A = 4; */ public static final int A_VALUE = 4; /** *
     * Business class premium
     * 
* * J = 5; */ public static final int J_VALUE = 5; /** *
     * Business class
     * 
* * C = 6; */ public static final int C_VALUE = 6; /** *
     * Business class discounted
     * 
* * D = 7; */ public static final int D_VALUE = 7; /** *
     * Business class discounted
     * 
* * I = 8; */ public static final int I_VALUE = 8; /** *
     * Business class discounted
     * 
* * Z = 9; */ public static final int Z_VALUE = 9; /** *
     * Premium economy
     * 
* * W = 10; */ public static final int W_VALUE = 10; /** *
     * Premium economy discounted
     * 
* * E = 11; */ public static final int E_VALUE = 11; /** *
     * Economy
     * 
* * S = 12; */ public static final int S_VALUE = 12; /** *
     * Economy
     * 
* * Y = 13; */ public static final int Y_VALUE = 13; /** *
     * Economy discounted
     * 
* * B = 14; */ public static final int B_VALUE = 14; /** *
     * Economy discounted
     * 
* * H = 15; */ public static final int H_VALUE = 15; /** *
     * Economy discounted
     * 
* * K = 16; */ public static final int K_VALUE = 16; /** *
     * Economy discounted
     * 
* * L = 17; */ public static final int L_VALUE = 17; /** *
     * Economy discounted
     * 
* * M = 18; */ public static final int M_VALUE = 18; /** *
     * Economy discounted
     * 
* * N = 19; */ public static final int N_VALUE = 19; /** *
     * Economy discounted
     * 
* * O = 20; */ public static final int O_VALUE = 20; /** *
     * Economy discounted
     * 
* * Q = 21; */ public static final int Q_VALUE = 21; /** *
     * Premium economy discounted / Economy discounted
     * 
* * T = 22; */ public static final int T_VALUE = 22; /** *
     * Economy discounted
     * 
* * V = 23; */ public static final int V_VALUE = 23; /** *
     * Economy discounted
     * 
* * X = 24; */ public static final int X_VALUE = 24; /** *
     * Conditional reservation
     * 
* * G = 25; */ public static final int G_VALUE = 25; /** *
     * Shuttle service
     * 
* * U = 26; */ public static final int U_VALUE = 26; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CompartmentCode valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static CompartmentCode forNumber(int value) { switch (value) { case 0: return NONE; case 1: return R; case 2: return P; case 3: return F; case 4: return A; case 5: return J; case 6: return C; case 7: return D; case 8: return I; case 9: return Z; case 10: return W; case 11: return E; case 12: return S; case 13: return Y; case 14: return B; case 15: return H; case 16: return K; case 17: return L; case 18: return M; case 19: return N; case 20: return O; case 21: return Q; case 22: return T; case 23: return V; case 24: return X; case 25: return G; case 26: return U; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CompartmentCode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CompartmentCode findValueByNumber(int number) { return CompartmentCode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.passkit.grpc.Flights.CabinCodes.CabinCodes.getDescriptor().getEnumTypes().get(0); } private static final CompartmentCode[] VALUES = values(); public static CompartmentCode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private CompartmentCode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:cabin_codes.CompartmentCode) } public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n(io/flights/cabin_codes/cabin_codes.pro" + "to\022\013cabin_codes*\321\001\n\017CompartmentCode\022\010\n\004N" + "ONE\020\000\022\005\n\001R\020\001\022\005\n\001P\020\002\022\005\n\001F\020\003\022\005\n\001A\020\004\022\005\n\001J\020\005" + "\022\005\n\001C\020\006\022\005\n\001D\020\007\022\005\n\001I\020\010\022\005\n\001Z\020\t\022\005\n\001W\020\n\022\005\n\001E" + "\020\013\022\005\n\001S\020\014\022\005\n\001Y\020\r\022\005\n\001B\020\016\022\005\n\001H\020\017\022\005\n\001K\020\020\022\005\n" + "\001L\020\021\022\005\n\001M\020\022\022\005\n\001N\020\023\022\005\n\001O\020\024\022\005\n\001Q\020\025\022\005\n\001T\020\026\022" + "\005\n\001V\020\027\022\005\n\001X\020\030\022\005\n\001G\020\031\022\005\n\001U\020\032B\200\001\n#com.pass" + "kit.grpc.Flights.CabinCodesZ7stash.passk" + "it.com/io/model/sdk/go/io/flights/cabinc" + "odes\252\002\037PassKit.Grpc.Flights.CabinCodesb\006" + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy