com.passkit.grpc.Flights.FlightsGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
SDK for the PassKit gRPC API that can be used to create, configure and manage Membership, Loyalty, Event Ticket, Coupon, Transit and Boarding Pass content for mobile wallet applications, including Apple Pay and Google Pay.
package com.passkit.grpc.Flights;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.33.1)",
comments = "Source: io/flights/a_rpc.proto")
public final class FlightsGrpc {
private FlightsGrpc() {}
public static final String SERVICE_NAME = "flights.Flights";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getCreatePortMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "createPort",
requestType = com.passkit.grpc.Flights.Airport.Port.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreatePortMethod() {
io.grpc.MethodDescriptor getCreatePortMethod;
if ((getCreatePortMethod = FlightsGrpc.getCreatePortMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getCreatePortMethod = FlightsGrpc.getCreatePortMethod) == null) {
FlightsGrpc.getCreatePortMethod = getCreatePortMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "createPort"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.Airport.Port.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("createPort"))
.build();
}
}
}
return getCreatePortMethod;
}
private static volatile io.grpc.MethodDescriptor getGetPortMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getPort",
requestType = com.passkit.grpc.Flights.Airport.AirportCode.class,
responseType = com.passkit.grpc.Flights.Airport.Port.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetPortMethod() {
io.grpc.MethodDescriptor getGetPortMethod;
if ((getGetPortMethod = FlightsGrpc.getGetPortMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getGetPortMethod = FlightsGrpc.getGetPortMethod) == null) {
FlightsGrpc.getGetPortMethod = getGetPortMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getPort"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.Airport.AirportCode.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.Airport.Port.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("getPort"))
.build();
}
}
}
return getGetPortMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdatePortMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updatePort",
requestType = com.passkit.grpc.Flights.Airport.Port.class,
responseType = com.passkit.grpc.Flights.Airport.Port.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdatePortMethod() {
io.grpc.MethodDescriptor getUpdatePortMethod;
if ((getUpdatePortMethod = FlightsGrpc.getUpdatePortMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getUpdatePortMethod = FlightsGrpc.getUpdatePortMethod) == null) {
FlightsGrpc.getUpdatePortMethod = getUpdatePortMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "updatePort"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.Airport.Port.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.Airport.Port.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("updatePort"))
.build();
}
}
}
return getUpdatePortMethod;
}
private static volatile io.grpc.MethodDescriptor getDeletePortMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "deletePort",
requestType = com.passkit.grpc.Flights.Airport.AirportCode.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeletePortMethod() {
io.grpc.MethodDescriptor getDeletePortMethod;
if ((getDeletePortMethod = FlightsGrpc.getDeletePortMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getDeletePortMethod = FlightsGrpc.getDeletePortMethod) == null) {
FlightsGrpc.getDeletePortMethod = getDeletePortMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "deletePort"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.Airport.AirportCode.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("deletePort"))
.build();
}
}
}
return getDeletePortMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateCarrierMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "createCarrier",
requestType = com.passkit.grpc.Flights.CarrierOuterClass.Carrier.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateCarrierMethod() {
io.grpc.MethodDescriptor getCreateCarrierMethod;
if ((getCreateCarrierMethod = FlightsGrpc.getCreateCarrierMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getCreateCarrierMethod = FlightsGrpc.getCreateCarrierMethod) == null) {
FlightsGrpc.getCreateCarrierMethod = getCreateCarrierMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "createCarrier"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.CarrierOuterClass.Carrier.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("createCarrier"))
.build();
}
}
}
return getCreateCarrierMethod;
}
private static volatile io.grpc.MethodDescriptor getGetCarrierMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getCarrier",
requestType = com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode.class,
responseType = com.passkit.grpc.Flights.CarrierOuterClass.Carrier.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetCarrierMethod() {
io.grpc.MethodDescriptor getGetCarrierMethod;
if ((getGetCarrierMethod = FlightsGrpc.getGetCarrierMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getGetCarrierMethod = FlightsGrpc.getGetCarrierMethod) == null) {
FlightsGrpc.getGetCarrierMethod = getGetCarrierMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getCarrier"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.CarrierOuterClass.Carrier.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("getCarrier"))
.build();
}
}
}
return getGetCarrierMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateCarrierMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateCarrier",
requestType = com.passkit.grpc.Flights.CarrierOuterClass.Carrier.class,
responseType = com.passkit.grpc.Flights.CarrierOuterClass.Carrier.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateCarrierMethod() {
io.grpc.MethodDescriptor getUpdateCarrierMethod;
if ((getUpdateCarrierMethod = FlightsGrpc.getUpdateCarrierMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getUpdateCarrierMethod = FlightsGrpc.getUpdateCarrierMethod) == null) {
FlightsGrpc.getUpdateCarrierMethod = getUpdateCarrierMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "updateCarrier"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.CarrierOuterClass.Carrier.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.CarrierOuterClass.Carrier.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("updateCarrier"))
.build();
}
}
}
return getUpdateCarrierMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteCarrierMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "deleteCarrier",
requestType = com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteCarrierMethod() {
io.grpc.MethodDescriptor getDeleteCarrierMethod;
if ((getDeleteCarrierMethod = FlightsGrpc.getDeleteCarrierMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getDeleteCarrierMethod = FlightsGrpc.getDeleteCarrierMethod) == null) {
FlightsGrpc.getDeleteCarrierMethod = getDeleteCarrierMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "deleteCarrier"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("deleteCarrier"))
.build();
}
}
}
return getDeleteCarrierMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateFlightDesignatorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "createFlightDesignator",
requestType = com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateFlightDesignatorMethod() {
io.grpc.MethodDescriptor getCreateFlightDesignatorMethod;
if ((getCreateFlightDesignatorMethod = FlightsGrpc.getCreateFlightDesignatorMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getCreateFlightDesignatorMethod = FlightsGrpc.getCreateFlightDesignatorMethod) == null) {
FlightsGrpc.getCreateFlightDesignatorMethod = getCreateFlightDesignatorMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "createFlightDesignator"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("createFlightDesignator"))
.build();
}
}
}
return getCreateFlightDesignatorMethod;
}
private static volatile io.grpc.MethodDescriptor getGetFlightDesignatorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getFlightDesignator",
requestType = com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest.class,
responseType = com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetFlightDesignatorMethod() {
io.grpc.MethodDescriptor getGetFlightDesignatorMethod;
if ((getGetFlightDesignatorMethod = FlightsGrpc.getGetFlightDesignatorMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getGetFlightDesignatorMethod = FlightsGrpc.getGetFlightDesignatorMethod) == null) {
FlightsGrpc.getGetFlightDesignatorMethod = getGetFlightDesignatorMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getFlightDesignator"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("getFlightDesignator"))
.build();
}
}
}
return getGetFlightDesignatorMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateFlightDesignatorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateFlightDesignator",
requestType = com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator.class,
responseType = com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateFlightDesignatorMethod() {
io.grpc.MethodDescriptor getUpdateFlightDesignatorMethod;
if ((getUpdateFlightDesignatorMethod = FlightsGrpc.getUpdateFlightDesignatorMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getUpdateFlightDesignatorMethod = FlightsGrpc.getUpdateFlightDesignatorMethod) == null) {
FlightsGrpc.getUpdateFlightDesignatorMethod = getUpdateFlightDesignatorMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "updateFlightDesignator"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("updateFlightDesignator"))
.build();
}
}
}
return getUpdateFlightDesignatorMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteFlightDesignatorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "deleteFlightDesignator",
requestType = com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteFlightDesignatorMethod() {
io.grpc.MethodDescriptor getDeleteFlightDesignatorMethod;
if ((getDeleteFlightDesignatorMethod = FlightsGrpc.getDeleteFlightDesignatorMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getDeleteFlightDesignatorMethod = FlightsGrpc.getDeleteFlightDesignatorMethod) == null) {
FlightsGrpc.getDeleteFlightDesignatorMethod = getDeleteFlightDesignatorMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "deleteFlightDesignator"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("deleteFlightDesignator"))
.build();
}
}
}
return getDeleteFlightDesignatorMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateFlightMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "createFlight",
requestType = com.passkit.grpc.Flights.FlightOuterClass.Flight.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateFlightMethod() {
io.grpc.MethodDescriptor getCreateFlightMethod;
if ((getCreateFlightMethod = FlightsGrpc.getCreateFlightMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getCreateFlightMethod = FlightsGrpc.getCreateFlightMethod) == null) {
FlightsGrpc.getCreateFlightMethod = getCreateFlightMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "createFlight"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.FlightOuterClass.Flight.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("createFlight"))
.build();
}
}
}
return getCreateFlightMethod;
}
private static volatile io.grpc.MethodDescriptor getGetFlightMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getFlight",
requestType = com.passkit.grpc.Flights.FlightOuterClass.FlightRequest.class,
responseType = com.passkit.grpc.Flights.FlightOuterClass.Flight.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetFlightMethod() {
io.grpc.MethodDescriptor getGetFlightMethod;
if ((getGetFlightMethod = FlightsGrpc.getGetFlightMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getGetFlightMethod = FlightsGrpc.getGetFlightMethod) == null) {
FlightsGrpc.getGetFlightMethod = getGetFlightMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getFlight"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.FlightOuterClass.FlightRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.FlightOuterClass.Flight.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("getFlight"))
.build();
}
}
}
return getGetFlightMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateFlightMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateFlight",
requestType = com.passkit.grpc.Flights.FlightOuterClass.Flight.class,
responseType = com.passkit.grpc.Flights.FlightOuterClass.Flight.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateFlightMethod() {
io.grpc.MethodDescriptor getUpdateFlightMethod;
if ((getUpdateFlightMethod = FlightsGrpc.getUpdateFlightMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getUpdateFlightMethod = FlightsGrpc.getUpdateFlightMethod) == null) {
FlightsGrpc.getUpdateFlightMethod = getUpdateFlightMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "updateFlight"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.FlightOuterClass.Flight.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.FlightOuterClass.Flight.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("updateFlight"))
.build();
}
}
}
return getUpdateFlightMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteFlightMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "deleteFlight",
requestType = com.passkit.grpc.Flights.FlightOuterClass.FlightRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteFlightMethod() {
io.grpc.MethodDescriptor getDeleteFlightMethod;
if ((getDeleteFlightMethod = FlightsGrpc.getDeleteFlightMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getDeleteFlightMethod = FlightsGrpc.getDeleteFlightMethod) == null) {
FlightsGrpc.getDeleteFlightMethod = getDeleteFlightMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "deleteFlight"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.FlightOuterClass.FlightRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("deleteFlight"))
.build();
}
}
}
return getDeleteFlightMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateBoardingPassMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "createBoardingPass",
requestType = com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord.class,
responseType = com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateBoardingPassMethod() {
io.grpc.MethodDescriptor getCreateBoardingPassMethod;
if ((getCreateBoardingPassMethod = FlightsGrpc.getCreateBoardingPassMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getCreateBoardingPassMethod = FlightsGrpc.getCreateBoardingPassMethod) == null) {
FlightsGrpc.getCreateBoardingPassMethod = getCreateBoardingPassMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "createBoardingPass"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("createBoardingPass"))
.build();
}
}
}
return getCreateBoardingPassMethod;
}
private static volatile io.grpc.MethodDescriptor getGetBoardingPassRecordMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getBoardingPassRecord",
requestType = com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest.class,
responseType = com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetBoardingPassRecordMethod() {
io.grpc.MethodDescriptor getGetBoardingPassRecordMethod;
if ((getGetBoardingPassRecordMethod = FlightsGrpc.getGetBoardingPassRecordMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getGetBoardingPassRecordMethod = FlightsGrpc.getGetBoardingPassRecordMethod) == null) {
FlightsGrpc.getGetBoardingPassRecordMethod = getGetBoardingPassRecordMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getBoardingPassRecord"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("getBoardingPassRecord"))
.build();
}
}
}
return getGetBoardingPassRecordMethod;
}
private static volatile io.grpc.MethodDescriptor getGetBoardingPassMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getBoardingPass",
requestType = com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest.class,
responseType = com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetBoardingPassMethod() {
io.grpc.MethodDescriptor getGetBoardingPassMethod;
if ((getGetBoardingPassMethod = FlightsGrpc.getGetBoardingPassMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getGetBoardingPassMethod = FlightsGrpc.getGetBoardingPassMethod) == null) {
FlightsGrpc.getGetBoardingPassMethod = getGetBoardingPassMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getBoardingPass"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("getBoardingPass"))
.build();
}
}
}
return getGetBoardingPassMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateBoardingPassMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateBoardingPass",
requestType = com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord.class,
responseType = com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateBoardingPassMethod() {
io.grpc.MethodDescriptor getUpdateBoardingPassMethod;
if ((getUpdateBoardingPassMethod = FlightsGrpc.getUpdateBoardingPassMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getUpdateBoardingPassMethod = FlightsGrpc.getUpdateBoardingPassMethod) == null) {
FlightsGrpc.getUpdateBoardingPassMethod = getUpdateBoardingPassMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "updateBoardingPass"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("updateBoardingPass"))
.build();
}
}
}
return getUpdateBoardingPassMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteBoardingPassMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "deleteBoardingPass",
requestType = com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteBoardingPassMethod() {
io.grpc.MethodDescriptor getDeleteBoardingPassMethod;
if ((getDeleteBoardingPassMethod = FlightsGrpc.getDeleteBoardingPassMethod) == null) {
synchronized (FlightsGrpc.class) {
if ((getDeleteBoardingPassMethod = FlightsGrpc.getDeleteBoardingPassMethod) == null) {
FlightsGrpc.getDeleteBoardingPassMethod = getDeleteBoardingPassMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "deleteBoardingPass"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new FlightsMethodDescriptorSupplier("deleteBoardingPass"))
.build();
}
}
}
return getDeleteBoardingPassMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static FlightsStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FlightsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FlightsStub(channel, callOptions);
}
};
return FlightsStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static FlightsBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FlightsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FlightsBlockingStub(channel, callOptions);
}
};
return FlightsBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static FlightsFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FlightsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FlightsFutureStub(channel, callOptions);
}
};
return FlightsFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class FlightsImplBase implements io.grpc.BindableService {
/**
*
* Create an airport record. Optional method allowing the carrier to specify how the airport name is rendered in the pass and the GPS location that will trigger a lock-screen alert.
*
*/
public void createPort(com.passkit.grpc.Flights.Airport.Port request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getCreatePortMethod(), responseObserver);
}
/**
*
* Retrieve an airport record. The AirportCode is the three character IATA code or 4 character ICAO code.
*
*/
public void getPort(com.passkit.grpc.Flights.Airport.AirportCode request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetPortMethod(), responseObserver);
}
/**
*
* Update an airport record.
*
*/
public void updatePort(com.passkit.grpc.Flights.Airport.Port request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getUpdatePortMethod(), responseObserver);
}
/**
*
* Delete an airport record. Deleting a record will remove any custom data provided. A new Airport record may be automatically created for a flight departing, arriving or transiting an airport which does not have a record, using publicly available data.
*
*/
public void deletePort(com.passkit.grpc.Flights.Airport.AirportCode request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getDeletePortMethod(), responseObserver);
}
/**
*
* Create a carrier record. All Flight Designations and Flights must have a carrier record.
*
*/
public void createCarrier(com.passkit.grpc.Flights.CarrierOuterClass.Carrier request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getCreateCarrierMethod(), responseObserver);
}
/**
*
* Retrieve a carrier record.
*
*/
public void getCarrier(com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetCarrierMethod(), responseObserver);
}
/**
*
* Update a carrier record
*
*/
public void updateCarrier(com.passkit.grpc.Flights.CarrierOuterClass.Carrier request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getUpdateCarrierMethod(), responseObserver);
}
/**
*
* Delete a carrier record.
*
*/
public void deleteCarrier(com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getDeleteCarrierMethod(), responseObserver);
}
/**
*
* Create a flight designator record. As much default information as possible should be provided to facilitate the automatic generation of flight records.
*
*/
public void createFlightDesignator(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getCreateFlightDesignatorMethod(), responseObserver);
}
/**
*
* Retrieve a flight designation record.
*
*/
public void getFlightDesignator(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetFlightDesignatorMethod(), responseObserver);
}
/**
*
* Update a flight designation record.
*
*/
public void updateFlightDesignator(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getUpdateFlightDesignatorMethod(), responseObserver);
}
/**
*
* Delete a flight designation record.
*
*/
public void deleteFlightDesignator(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getDeleteFlightDesignatorMethod(), responseObserver);
}
/**
*
* Create a flight record. In practice, this method is not often used, since flight records can be automatically generated. Any information in the flight record will override information in the carrier and flight designation records.
*
*/
public void createFlight(com.passkit.grpc.Flights.FlightOuterClass.Flight request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getCreateFlightMethod(), responseObserver);
}
/**
*
* Retrieve a flight record.
*
*/
public void getFlight(com.passkit.grpc.Flights.FlightOuterClass.FlightRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetFlightMethod(), responseObserver);
}
/**
*
* Update a flight record.
*
*/
public void updateFlight(com.passkit.grpc.Flights.FlightOuterClass.Flight request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getUpdateFlightMethod(), responseObserver);
}
/**
*
* Delete a flight record.
*
*/
public void deleteFlight(com.passkit.grpc.Flights.FlightOuterClass.FlightRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getDeleteFlightMethod(), responseObserver);
}
/**
*
* Create a boarding pass record. Flight related information not present in the boarding pass record will be populated from the flight, flight designator or carrier records.
*
*/
public void createBoardingPass(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getCreateBoardingPassMethod(), responseObserver);
}
/**
*
* Retrieve a boarding pass record.
*
*/
public void getBoardingPassRecord(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetBoardingPassRecordMethod(), responseObserver);
}
/**
*
* Retrieve digital boarding pass(es) in the requested format by ticket number, index, PNR or id.
*
*/
public void getBoardingPass(com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetBoardingPassMethod(), responseObserver);
}
/**
*
* Update a boarding pass record.
*
*/
public void updateBoardingPass(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getUpdateBoardingPassMethod(), responseObserver);
}
/**
*
* Delete a boarding pass record.
*
*/
public void deleteBoardingPass(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getDeleteBoardingPassMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreatePortMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.Airport.Port,
com.google.protobuf.Empty>(
this, METHODID_CREATE_PORT)))
.addMethod(
getGetPortMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.Airport.AirportCode,
com.passkit.grpc.Flights.Airport.Port>(
this, METHODID_GET_PORT)))
.addMethod(
getUpdatePortMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.Airport.Port,
com.passkit.grpc.Flights.Airport.Port>(
this, METHODID_UPDATE_PORT)))
.addMethod(
getDeletePortMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.Airport.AirportCode,
com.google.protobuf.Empty>(
this, METHODID_DELETE_PORT)))
.addMethod(
getCreateCarrierMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.CarrierOuterClass.Carrier,
com.google.protobuf.Empty>(
this, METHODID_CREATE_CARRIER)))
.addMethod(
getGetCarrierMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode,
com.passkit.grpc.Flights.CarrierOuterClass.Carrier>(
this, METHODID_GET_CARRIER)))
.addMethod(
getUpdateCarrierMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.CarrierOuterClass.Carrier,
com.passkit.grpc.Flights.CarrierOuterClass.Carrier>(
this, METHODID_UPDATE_CARRIER)))
.addMethod(
getDeleteCarrierMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode,
com.google.protobuf.Empty>(
this, METHODID_DELETE_CARRIER)))
.addMethod(
getCreateFlightDesignatorMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator,
com.google.protobuf.Empty>(
this, METHODID_CREATE_FLIGHT_DESIGNATOR)))
.addMethod(
getGetFlightDesignatorMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest,
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator>(
this, METHODID_GET_FLIGHT_DESIGNATOR)))
.addMethod(
getUpdateFlightDesignatorMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator,
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator>(
this, METHODID_UPDATE_FLIGHT_DESIGNATOR)))
.addMethod(
getDeleteFlightDesignatorMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest,
com.google.protobuf.Empty>(
this, METHODID_DELETE_FLIGHT_DESIGNATOR)))
.addMethod(
getCreateFlightMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.FlightOuterClass.Flight,
com.google.protobuf.Empty>(
this, METHODID_CREATE_FLIGHT)))
.addMethod(
getGetFlightMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.FlightOuterClass.FlightRequest,
com.passkit.grpc.Flights.FlightOuterClass.Flight>(
this, METHODID_GET_FLIGHT)))
.addMethod(
getUpdateFlightMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.FlightOuterClass.Flight,
com.passkit.grpc.Flights.FlightOuterClass.Flight>(
this, METHODID_UPDATE_FLIGHT)))
.addMethod(
getDeleteFlightMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.FlightOuterClass.FlightRequest,
com.google.protobuf.Empty>(
this, METHODID_DELETE_FLIGHT)))
.addMethod(
getCreateBoardingPassMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord,
com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse>(
this, METHODID_CREATE_BOARDING_PASS)))
.addMethod(
getGetBoardingPassRecordMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest,
com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord>(
this, METHODID_GET_BOARDING_PASS_RECORD)))
.addMethod(
getGetBoardingPassMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest,
com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse>(
this, METHODID_GET_BOARDING_PASS)))
.addMethod(
getUpdateBoardingPassMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord,
com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord>(
this, METHODID_UPDATE_BOARDING_PASS)))
.addMethod(
getDeleteBoardingPassMethod(),
asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest,
com.google.protobuf.Empty>(
this, METHODID_DELETE_BOARDING_PASS)))
.build();
}
}
/**
*/
public static final class FlightsStub extends io.grpc.stub.AbstractAsyncStub {
private FlightsStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FlightsStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FlightsStub(channel, callOptions);
}
/**
*
* Create an airport record. Optional method allowing the carrier to specify how the airport name is rendered in the pass and the GPS location that will trigger a lock-screen alert.
*
*/
public void createPort(com.passkit.grpc.Flights.Airport.Port request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getCreatePortMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Retrieve an airport record. The AirportCode is the three character IATA code or 4 character ICAO code.
*
*/
public void getPort(com.passkit.grpc.Flights.Airport.AirportCode request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetPortMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Update an airport record.
*
*/
public void updatePort(com.passkit.grpc.Flights.Airport.Port request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getUpdatePortMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Delete an airport record. Deleting a record will remove any custom data provided. A new Airport record may be automatically created for a flight departing, arriving or transiting an airport which does not have a record, using publicly available data.
*
*/
public void deletePort(com.passkit.grpc.Flights.Airport.AirportCode request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getDeletePortMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Create a carrier record. All Flight Designations and Flights must have a carrier record.
*
*/
public void createCarrier(com.passkit.grpc.Flights.CarrierOuterClass.Carrier request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getCreateCarrierMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Retrieve a carrier record.
*
*/
public void getCarrier(com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetCarrierMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Update a carrier record
*
*/
public void updateCarrier(com.passkit.grpc.Flights.CarrierOuterClass.Carrier request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getUpdateCarrierMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Delete a carrier record.
*
*/
public void deleteCarrier(com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getDeleteCarrierMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Create a flight designator record. As much default information as possible should be provided to facilitate the automatic generation of flight records.
*
*/
public void createFlightDesignator(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getCreateFlightDesignatorMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Retrieve a flight designation record.
*
*/
public void getFlightDesignator(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetFlightDesignatorMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Update a flight designation record.
*
*/
public void updateFlightDesignator(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getUpdateFlightDesignatorMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Delete a flight designation record.
*
*/
public void deleteFlightDesignator(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getDeleteFlightDesignatorMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Create a flight record. In practice, this method is not often used, since flight records can be automatically generated. Any information in the flight record will override information in the carrier and flight designation records.
*
*/
public void createFlight(com.passkit.grpc.Flights.FlightOuterClass.Flight request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getCreateFlightMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Retrieve a flight record.
*
*/
public void getFlight(com.passkit.grpc.Flights.FlightOuterClass.FlightRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetFlightMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Update a flight record.
*
*/
public void updateFlight(com.passkit.grpc.Flights.FlightOuterClass.Flight request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getUpdateFlightMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Delete a flight record.
*
*/
public void deleteFlight(com.passkit.grpc.Flights.FlightOuterClass.FlightRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getDeleteFlightMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Create a boarding pass record. Flight related information not present in the boarding pass record will be populated from the flight, flight designator or carrier records.
*
*/
public void createBoardingPass(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getCreateBoardingPassMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Retrieve a boarding pass record.
*
*/
public void getBoardingPassRecord(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetBoardingPassRecordMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Retrieve digital boarding pass(es) in the requested format by ticket number, index, PNR or id.
*
*/
public void getBoardingPass(com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetBoardingPassMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Update a boarding pass record.
*
*/
public void updateBoardingPass(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getUpdateBoardingPassMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Delete a boarding pass record.
*
*/
public void deleteBoardingPass(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getDeleteBoardingPassMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class FlightsBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private FlightsBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FlightsBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FlightsBlockingStub(channel, callOptions);
}
/**
*
* Create an airport record. Optional method allowing the carrier to specify how the airport name is rendered in the pass and the GPS location that will trigger a lock-screen alert.
*
*/
public com.google.protobuf.Empty createPort(com.passkit.grpc.Flights.Airport.Port request) {
return blockingUnaryCall(
getChannel(), getCreatePortMethod(), getCallOptions(), request);
}
/**
*
* Retrieve an airport record. The AirportCode is the three character IATA code or 4 character ICAO code.
*
*/
public com.passkit.grpc.Flights.Airport.Port getPort(com.passkit.grpc.Flights.Airport.AirportCode request) {
return blockingUnaryCall(
getChannel(), getGetPortMethod(), getCallOptions(), request);
}
/**
*
* Update an airport record.
*
*/
public com.passkit.grpc.Flights.Airport.Port updatePort(com.passkit.grpc.Flights.Airport.Port request) {
return blockingUnaryCall(
getChannel(), getUpdatePortMethod(), getCallOptions(), request);
}
/**
*
* Delete an airport record. Deleting a record will remove any custom data provided. A new Airport record may be automatically created for a flight departing, arriving or transiting an airport which does not have a record, using publicly available data.
*
*/
public com.google.protobuf.Empty deletePort(com.passkit.grpc.Flights.Airport.AirportCode request) {
return blockingUnaryCall(
getChannel(), getDeletePortMethod(), getCallOptions(), request);
}
/**
*
* Create a carrier record. All Flight Designations and Flights must have a carrier record.
*
*/
public com.google.protobuf.Empty createCarrier(com.passkit.grpc.Flights.CarrierOuterClass.Carrier request) {
return blockingUnaryCall(
getChannel(), getCreateCarrierMethod(), getCallOptions(), request);
}
/**
*
* Retrieve a carrier record.
*
*/
public com.passkit.grpc.Flights.CarrierOuterClass.Carrier getCarrier(com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode request) {
return blockingUnaryCall(
getChannel(), getGetCarrierMethod(), getCallOptions(), request);
}
/**
*
* Update a carrier record
*
*/
public com.passkit.grpc.Flights.CarrierOuterClass.Carrier updateCarrier(com.passkit.grpc.Flights.CarrierOuterClass.Carrier request) {
return blockingUnaryCall(
getChannel(), getUpdateCarrierMethod(), getCallOptions(), request);
}
/**
*
* Delete a carrier record.
*
*/
public com.google.protobuf.Empty deleteCarrier(com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode request) {
return blockingUnaryCall(
getChannel(), getDeleteCarrierMethod(), getCallOptions(), request);
}
/**
*
* Create a flight designator record. As much default information as possible should be provided to facilitate the automatic generation of flight records.
*
*/
public com.google.protobuf.Empty createFlightDesignator(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator request) {
return blockingUnaryCall(
getChannel(), getCreateFlightDesignatorMethod(), getCallOptions(), request);
}
/**
*
* Retrieve a flight designation record.
*
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator getFlightDesignator(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest request) {
return blockingUnaryCall(
getChannel(), getGetFlightDesignatorMethod(), getCallOptions(), request);
}
/**
*
* Update a flight designation record.
*
*/
public com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator updateFlightDesignator(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator request) {
return blockingUnaryCall(
getChannel(), getUpdateFlightDesignatorMethod(), getCallOptions(), request);
}
/**
*
* Delete a flight designation record.
*
*/
public com.google.protobuf.Empty deleteFlightDesignator(com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest request) {
return blockingUnaryCall(
getChannel(), getDeleteFlightDesignatorMethod(), getCallOptions(), request);
}
/**
*
* Create a flight record. In practice, this method is not often used, since flight records can be automatically generated. Any information in the flight record will override information in the carrier and flight designation records.
*
*/
public com.google.protobuf.Empty createFlight(com.passkit.grpc.Flights.FlightOuterClass.Flight request) {
return blockingUnaryCall(
getChannel(), getCreateFlightMethod(), getCallOptions(), request);
}
/**
*
* Retrieve a flight record.
*
*/
public com.passkit.grpc.Flights.FlightOuterClass.Flight getFlight(com.passkit.grpc.Flights.FlightOuterClass.FlightRequest request) {
return blockingUnaryCall(
getChannel(), getGetFlightMethod(), getCallOptions(), request);
}
/**
*
* Update a flight record.
*
*/
public com.passkit.grpc.Flights.FlightOuterClass.Flight updateFlight(com.passkit.grpc.Flights.FlightOuterClass.Flight request) {
return blockingUnaryCall(
getChannel(), getUpdateFlightMethod(), getCallOptions(), request);
}
/**
*
* Delete a flight record.
*
*/
public com.google.protobuf.Empty deleteFlight(com.passkit.grpc.Flights.FlightOuterClass.FlightRequest request) {
return blockingUnaryCall(
getChannel(), getDeleteFlightMethod(), getCallOptions(), request);
}
/**
*
* Create a boarding pass record. Flight related information not present in the boarding pass record will be populated from the flight, flight designator or carrier records.
*
*/
public com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse createBoardingPass(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord request) {
return blockingUnaryCall(
getChannel(), getCreateBoardingPassMethod(), getCallOptions(), request);
}
/**
*
* Retrieve a boarding pass record.
*
*/
public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord getBoardingPassRecord(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest request) {
return blockingUnaryCall(
getChannel(), getGetBoardingPassRecordMethod(), getCallOptions(), request);
}
/**
*
* Retrieve digital boarding pass(es) in the requested format by ticket number, index, PNR or id.
*
*/
public com.passkit.grpc.Flights.BoardingPass.BoardingPassesResponse getBoardingPass(com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest request) {
return blockingUnaryCall(
getChannel(), getGetBoardingPassMethod(), getCallOptions(), request);
}
/**
*
* Update a boarding pass record.
*
*/
public com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord updateBoardingPass(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord request) {
return blockingUnaryCall(
getChannel(), getUpdateBoardingPassMethod(), getCallOptions(), request);
}
/**
*
* Delete a boarding pass record.
*
*/
public com.google.protobuf.Empty deleteBoardingPass(com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest request) {
return blockingUnaryCall(
getChannel(), getDeleteBoardingPassMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class FlightsFutureStub extends io.grpc.stub.AbstractFutureStub {
private FlightsFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FlightsFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FlightsFutureStub(channel, callOptions);
}
/**
*
* Create an airport record. Optional method allowing the carrier to specify how the airport name is rendered in the pass and the GPS location that will trigger a lock-screen alert.
*
*/
public com.google.common.util.concurrent.ListenableFuture createPort(
com.passkit.grpc.Flights.Airport.Port request) {
return futureUnaryCall(
getChannel().newCall(getCreatePortMethod(), getCallOptions()), request);
}
/**
*
* Retrieve an airport record. The AirportCode is the three character IATA code or 4 character ICAO code.
*
*/
public com.google.common.util.concurrent.ListenableFuture getPort(
com.passkit.grpc.Flights.Airport.AirportCode request) {
return futureUnaryCall(
getChannel().newCall(getGetPortMethod(), getCallOptions()), request);
}
/**
*
* Update an airport record.
*
*/
public com.google.common.util.concurrent.ListenableFuture updatePort(
com.passkit.grpc.Flights.Airport.Port request) {
return futureUnaryCall(
getChannel().newCall(getUpdatePortMethod(), getCallOptions()), request);
}
/**
*
* Delete an airport record. Deleting a record will remove any custom data provided. A new Airport record may be automatically created for a flight departing, arriving or transiting an airport which does not have a record, using publicly available data.
*
*/
public com.google.common.util.concurrent.ListenableFuture deletePort(
com.passkit.grpc.Flights.Airport.AirportCode request) {
return futureUnaryCall(
getChannel().newCall(getDeletePortMethod(), getCallOptions()), request);
}
/**
*
* Create a carrier record. All Flight Designations and Flights must have a carrier record.
*
*/
public com.google.common.util.concurrent.ListenableFuture createCarrier(
com.passkit.grpc.Flights.CarrierOuterClass.Carrier request) {
return futureUnaryCall(
getChannel().newCall(getCreateCarrierMethod(), getCallOptions()), request);
}
/**
*
* Retrieve a carrier record.
*
*/
public com.google.common.util.concurrent.ListenableFuture getCarrier(
com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode request) {
return futureUnaryCall(
getChannel().newCall(getGetCarrierMethod(), getCallOptions()), request);
}
/**
*
* Update a carrier record
*
*/
public com.google.common.util.concurrent.ListenableFuture updateCarrier(
com.passkit.grpc.Flights.CarrierOuterClass.Carrier request) {
return futureUnaryCall(
getChannel().newCall(getUpdateCarrierMethod(), getCallOptions()), request);
}
/**
*
* Delete a carrier record.
*
*/
public com.google.common.util.concurrent.ListenableFuture deleteCarrier(
com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode request) {
return futureUnaryCall(
getChannel().newCall(getDeleteCarrierMethod(), getCallOptions()), request);
}
/**
*
* Create a flight designator record. As much default information as possible should be provided to facilitate the automatic generation of flight records.
*
*/
public com.google.common.util.concurrent.ListenableFuture createFlightDesignator(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator request) {
return futureUnaryCall(
getChannel().newCall(getCreateFlightDesignatorMethod(), getCallOptions()), request);
}
/**
*
* Retrieve a flight designation record.
*
*/
public com.google.common.util.concurrent.ListenableFuture getFlightDesignator(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetFlightDesignatorMethod(), getCallOptions()), request);
}
/**
*
* Update a flight designation record.
*
*/
public com.google.common.util.concurrent.ListenableFuture updateFlightDesignator(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator request) {
return futureUnaryCall(
getChannel().newCall(getUpdateFlightDesignatorMethod(), getCallOptions()), request);
}
/**
*
* Delete a flight designation record.
*
*/
public com.google.common.util.concurrent.ListenableFuture deleteFlightDesignator(
com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest request) {
return futureUnaryCall(
getChannel().newCall(getDeleteFlightDesignatorMethod(), getCallOptions()), request);
}
/**
*
* Create a flight record. In practice, this method is not often used, since flight records can be automatically generated. Any information in the flight record will override information in the carrier and flight designation records.
*
*/
public com.google.common.util.concurrent.ListenableFuture createFlight(
com.passkit.grpc.Flights.FlightOuterClass.Flight request) {
return futureUnaryCall(
getChannel().newCall(getCreateFlightMethod(), getCallOptions()), request);
}
/**
*
* Retrieve a flight record.
*
*/
public com.google.common.util.concurrent.ListenableFuture getFlight(
com.passkit.grpc.Flights.FlightOuterClass.FlightRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetFlightMethod(), getCallOptions()), request);
}
/**
*
* Update a flight record.
*
*/
public com.google.common.util.concurrent.ListenableFuture updateFlight(
com.passkit.grpc.Flights.FlightOuterClass.Flight request) {
return futureUnaryCall(
getChannel().newCall(getUpdateFlightMethod(), getCallOptions()), request);
}
/**
*
* Delete a flight record.
*
*/
public com.google.common.util.concurrent.ListenableFuture deleteFlight(
com.passkit.grpc.Flights.FlightOuterClass.FlightRequest request) {
return futureUnaryCall(
getChannel().newCall(getDeleteFlightMethod(), getCallOptions()), request);
}
/**
*
* Create a boarding pass record. Flight related information not present in the boarding pass record will be populated from the flight, flight designator or carrier records.
*
*/
public com.google.common.util.concurrent.ListenableFuture createBoardingPass(
com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord request) {
return futureUnaryCall(
getChannel().newCall(getCreateBoardingPassMethod(), getCallOptions()), request);
}
/**
*
* Retrieve a boarding pass record.
*
*/
public com.google.common.util.concurrent.ListenableFuture getBoardingPassRecord(
com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetBoardingPassRecordMethod(), getCallOptions()), request);
}
/**
*
* Retrieve digital boarding pass(es) in the requested format by ticket number, index, PNR or id.
*
*/
public com.google.common.util.concurrent.ListenableFuture getBoardingPass(
com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetBoardingPassMethod(), getCallOptions()), request);
}
/**
*
* Update a boarding pass record.
*
*/
public com.google.common.util.concurrent.ListenableFuture updateBoardingPass(
com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord request) {
return futureUnaryCall(
getChannel().newCall(getUpdateBoardingPassMethod(), getCallOptions()), request);
}
/**
*
* Delete a boarding pass record.
*
*/
public com.google.common.util.concurrent.ListenableFuture deleteBoardingPass(
com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest request) {
return futureUnaryCall(
getChannel().newCall(getDeleteBoardingPassMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE_PORT = 0;
private static final int METHODID_GET_PORT = 1;
private static final int METHODID_UPDATE_PORT = 2;
private static final int METHODID_DELETE_PORT = 3;
private static final int METHODID_CREATE_CARRIER = 4;
private static final int METHODID_GET_CARRIER = 5;
private static final int METHODID_UPDATE_CARRIER = 6;
private static final int METHODID_DELETE_CARRIER = 7;
private static final int METHODID_CREATE_FLIGHT_DESIGNATOR = 8;
private static final int METHODID_GET_FLIGHT_DESIGNATOR = 9;
private static final int METHODID_UPDATE_FLIGHT_DESIGNATOR = 10;
private static final int METHODID_DELETE_FLIGHT_DESIGNATOR = 11;
private static final int METHODID_CREATE_FLIGHT = 12;
private static final int METHODID_GET_FLIGHT = 13;
private static final int METHODID_UPDATE_FLIGHT = 14;
private static final int METHODID_DELETE_FLIGHT = 15;
private static final int METHODID_CREATE_BOARDING_PASS = 16;
private static final int METHODID_GET_BOARDING_PASS_RECORD = 17;
private static final int METHODID_GET_BOARDING_PASS = 18;
private static final int METHODID_UPDATE_BOARDING_PASS = 19;
private static final int METHODID_DELETE_BOARDING_PASS = 20;
private static final class MethodHandlers implements
io.grpc.stub.ServerCalls.UnaryMethod,
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final FlightsImplBase serviceImpl;
private final int methodId;
MethodHandlers(FlightsImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_CREATE_PORT:
serviceImpl.createPort((com.passkit.grpc.Flights.Airport.Port) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_PORT:
serviceImpl.getPort((com.passkit.grpc.Flights.Airport.AirportCode) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_PORT:
serviceImpl.updatePort((com.passkit.grpc.Flights.Airport.Port) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_PORT:
serviceImpl.deletePort((com.passkit.grpc.Flights.Airport.AirportCode) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_CARRIER:
serviceImpl.createCarrier((com.passkit.grpc.Flights.CarrierOuterClass.Carrier) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_CARRIER:
serviceImpl.getCarrier((com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_CARRIER:
serviceImpl.updateCarrier((com.passkit.grpc.Flights.CarrierOuterClass.Carrier) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_CARRIER:
serviceImpl.deleteCarrier((com.passkit.grpc.Flights.CarrierOuterClass.CarrierCode) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_FLIGHT_DESIGNATOR:
serviceImpl.createFlightDesignator((com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_FLIGHT_DESIGNATOR:
serviceImpl.getFlightDesignator((com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_FLIGHT_DESIGNATOR:
serviceImpl.updateFlightDesignator((com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignator) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_FLIGHT_DESIGNATOR:
serviceImpl.deleteFlightDesignator((com.passkit.grpc.Flights.FlightDesignatorOuterClass.FlightDesignatorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_FLIGHT:
serviceImpl.createFlight((com.passkit.grpc.Flights.FlightOuterClass.Flight) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_FLIGHT:
serviceImpl.getFlight((com.passkit.grpc.Flights.FlightOuterClass.FlightRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_FLIGHT:
serviceImpl.updateFlight((com.passkit.grpc.Flights.FlightOuterClass.Flight) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_FLIGHT:
serviceImpl.deleteFlight((com.passkit.grpc.Flights.FlightOuterClass.FlightRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_BOARDING_PASS:
serviceImpl.createBoardingPass((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_BOARDING_PASS_RECORD:
serviceImpl.getBoardingPassRecord((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_BOARDING_PASS:
serviceImpl.getBoardingPass((com.passkit.grpc.Flights.BoardingPass.BoardingPassRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_BOARDING_PASS:
serviceImpl.updateBoardingPass((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecord) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_BOARDING_PASS:
serviceImpl.deleteBoardingPass((com.passkit.grpc.Flights.BoardingPass.BoardingPassRecordRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
private static abstract class FlightsBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
FlightsBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.passkit.grpc.Flights.ARpc.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("Flights");
}
}
private static final class FlightsFileDescriptorSupplier
extends FlightsBaseDescriptorSupplier {
FlightsFileDescriptorSupplier() {}
}
private static final class FlightsMethodDescriptorSupplier
extends FlightsBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
FlightsMethodDescriptorSupplier(String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (FlightsGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new FlightsFileDescriptorSupplier())
.addMethod(getCreatePortMethod())
.addMethod(getGetPortMethod())
.addMethod(getUpdatePortMethod())
.addMethod(getDeletePortMethod())
.addMethod(getCreateCarrierMethod())
.addMethod(getGetCarrierMethod())
.addMethod(getUpdateCarrierMethod())
.addMethod(getDeleteCarrierMethod())
.addMethod(getCreateFlightDesignatorMethod())
.addMethod(getGetFlightDesignatorMethod())
.addMethod(getUpdateFlightDesignatorMethod())
.addMethod(getDeleteFlightDesignatorMethod())
.addMethod(getCreateFlightMethod())
.addMethod(getGetFlightMethod())
.addMethod(getUpdateFlightMethod())
.addMethod(getDeleteFlightMethod())
.addMethod(getCreateBoardingPassMethod())
.addMethod(getGetBoardingPassRecordMethod())
.addMethod(getGetBoardingPassMethod())
.addMethod(getUpdateBoardingPassMethod())
.addMethod(getDeleteBoardingPassMethod())
.build();
}
}
}
return result;
}
}