Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.passkit.grpc.SingleUseCoupons.SingleUseCouponsGrpc Maven / Gradle / Ivy
package com.passkit.grpc.SingleUseCoupons;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.44.1)",
comments = "Source: io/single_use_coupons/a_rpc.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class SingleUseCouponsGrpc {
private SingleUseCouponsGrpc() {}
public static final String SERVICE_NAME = "single_use_coupons.SingleUseCoupons";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getCreateCouponCampaignMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "createCouponCampaign",
requestType = com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign.class,
responseType = com.passkit.grpc.CommonObjects.Id.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateCouponCampaignMethod() {
io.grpc.MethodDescriptor getCreateCouponCampaignMethod;
if ((getCreateCouponCampaignMethod = SingleUseCouponsGrpc.getCreateCouponCampaignMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getCreateCouponCampaignMethod = SingleUseCouponsGrpc.getCreateCouponCampaignMethod) == null) {
SingleUseCouponsGrpc.getCreateCouponCampaignMethod = getCreateCouponCampaignMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "createCouponCampaign"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Id.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("createCouponCampaign"))
.build();
}
}
}
return getCreateCouponCampaignMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateCouponCampaignMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateCouponCampaign",
requestType = com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign.class,
responseType = com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateCouponCampaignMethod() {
io.grpc.MethodDescriptor getUpdateCouponCampaignMethod;
if ((getUpdateCouponCampaignMethod = SingleUseCouponsGrpc.getUpdateCouponCampaignMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getUpdateCouponCampaignMethod = SingleUseCouponsGrpc.getUpdateCouponCampaignMethod) == null) {
SingleUseCouponsGrpc.getUpdateCouponCampaignMethod = getUpdateCouponCampaignMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "updateCouponCampaign"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("updateCouponCampaign"))
.build();
}
}
}
return getUpdateCouponCampaignMethod;
}
private static volatile io.grpc.MethodDescriptor getGetCouponCampaignMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getCouponCampaign",
requestType = com.passkit.grpc.CommonObjects.Id.class,
responseType = com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetCouponCampaignMethod() {
io.grpc.MethodDescriptor getGetCouponCampaignMethod;
if ((getGetCouponCampaignMethod = SingleUseCouponsGrpc.getGetCouponCampaignMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getGetCouponCampaignMethod = SingleUseCouponsGrpc.getGetCouponCampaignMethod) == null) {
SingleUseCouponsGrpc.getGetCouponCampaignMethod = getGetCouponCampaignMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getCouponCampaign"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Id.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("getCouponCampaign"))
.build();
}
}
}
return getGetCouponCampaignMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteCouponCampaignMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "deleteCouponCampaign",
requestType = com.passkit.grpc.CommonObjects.Id.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteCouponCampaignMethod() {
io.grpc.MethodDescriptor getDeleteCouponCampaignMethod;
if ((getDeleteCouponCampaignMethod = SingleUseCouponsGrpc.getDeleteCouponCampaignMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getDeleteCouponCampaignMethod = SingleUseCouponsGrpc.getDeleteCouponCampaignMethod) == null) {
SingleUseCouponsGrpc.getDeleteCouponCampaignMethod = getDeleteCouponCampaignMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "deleteCouponCampaign"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Id.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("deleteCouponCampaign"))
.build();
}
}
}
return getDeleteCouponCampaignMethod;
}
private static volatile io.grpc.MethodDescriptor getListCouponCampaignsDeprecatedMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "listCouponCampaignsDeprecated",
requestType = com.passkit.grpc.PaginationOuterClass.Pagination.class,
responseType = com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getListCouponCampaignsDeprecatedMethod() {
io.grpc.MethodDescriptor getListCouponCampaignsDeprecatedMethod;
if ((getListCouponCampaignsDeprecatedMethod = SingleUseCouponsGrpc.getListCouponCampaignsDeprecatedMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getListCouponCampaignsDeprecatedMethod = SingleUseCouponsGrpc.getListCouponCampaignsDeprecatedMethod) == null) {
SingleUseCouponsGrpc.getListCouponCampaignsDeprecatedMethod = getListCouponCampaignsDeprecatedMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "listCouponCampaignsDeprecated"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.PaginationOuterClass.Pagination.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("listCouponCampaignsDeprecated"))
.build();
}
}
}
return getListCouponCampaignsDeprecatedMethod;
}
private static volatile io.grpc.MethodDescriptor getListCouponCampaignsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "listCouponCampaigns",
requestType = com.passkit.grpc.Filter.Filters.class,
responseType = com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getListCouponCampaignsMethod() {
io.grpc.MethodDescriptor getListCouponCampaignsMethod;
if ((getListCouponCampaignsMethod = SingleUseCouponsGrpc.getListCouponCampaignsMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getListCouponCampaignsMethod = SingleUseCouponsGrpc.getListCouponCampaignsMethod) == null) {
SingleUseCouponsGrpc.getListCouponCampaignsMethod = getListCouponCampaignsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "listCouponCampaigns"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Filter.Filters.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("listCouponCampaigns"))
.build();
}
}
}
return getListCouponCampaignsMethod;
}
private static volatile io.grpc.MethodDescriptor getGetAnalyticsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getAnalytics",
requestType = com.passkit.grpc.Reporting.AnalyticsRequest.class,
responseType = com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaignAnalyticsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetAnalyticsMethod() {
io.grpc.MethodDescriptor getGetAnalyticsMethod;
if ((getGetAnalyticsMethod = SingleUseCouponsGrpc.getGetAnalyticsMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getGetAnalyticsMethod = SingleUseCouponsGrpc.getGetAnalyticsMethod) == null) {
SingleUseCouponsGrpc.getGetAnalyticsMethod = getGetAnalyticsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getAnalytics"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Reporting.AnalyticsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaignAnalyticsResponse.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("getAnalytics"))
.build();
}
}
}
return getGetAnalyticsMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateCouponOfferMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "createCouponOffer",
requestType = com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.class,
responseType = com.passkit.grpc.CommonObjects.Id.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateCouponOfferMethod() {
io.grpc.MethodDescriptor getCreateCouponOfferMethod;
if ((getCreateCouponOfferMethod = SingleUseCouponsGrpc.getCreateCouponOfferMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getCreateCouponOfferMethod = SingleUseCouponsGrpc.getCreateCouponOfferMethod) == null) {
SingleUseCouponsGrpc.getCreateCouponOfferMethod = getCreateCouponOfferMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "createCouponOffer"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Id.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("createCouponOffer"))
.build();
}
}
}
return getCreateCouponOfferMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateCouponOfferMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateCouponOffer",
requestType = com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.class,
responseType = com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateCouponOfferMethod() {
io.grpc.MethodDescriptor getUpdateCouponOfferMethod;
if ((getUpdateCouponOfferMethod = SingleUseCouponsGrpc.getUpdateCouponOfferMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getUpdateCouponOfferMethod = SingleUseCouponsGrpc.getUpdateCouponOfferMethod) == null) {
SingleUseCouponsGrpc.getUpdateCouponOfferMethod = getUpdateCouponOfferMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "updateCouponOffer"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("updateCouponOffer"))
.build();
}
}
}
return getUpdateCouponOfferMethod;
}
private static volatile io.grpc.MethodDescriptor getGetCouponOfferMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getCouponOffer",
requestType = com.passkit.grpc.CommonObjects.Id.class,
responseType = com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetCouponOfferMethod() {
io.grpc.MethodDescriptor getGetCouponOfferMethod;
if ((getGetCouponOfferMethod = SingleUseCouponsGrpc.getGetCouponOfferMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getGetCouponOfferMethod = SingleUseCouponsGrpc.getGetCouponOfferMethod) == null) {
SingleUseCouponsGrpc.getGetCouponOfferMethod = getGetCouponOfferMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getCouponOffer"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Id.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("getCouponOffer"))
.build();
}
}
}
return getGetCouponOfferMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteCouponOfferMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "deleteCouponOffer",
requestType = com.passkit.grpc.CommonObjects.Id.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteCouponOfferMethod() {
io.grpc.MethodDescriptor getDeleteCouponOfferMethod;
if ((getDeleteCouponOfferMethod = SingleUseCouponsGrpc.getDeleteCouponOfferMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getDeleteCouponOfferMethod = SingleUseCouponsGrpc.getDeleteCouponOfferMethod) == null) {
SingleUseCouponsGrpc.getDeleteCouponOfferMethod = getDeleteCouponOfferMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "deleteCouponOffer"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Id.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("deleteCouponOffer"))
.build();
}
}
}
return getDeleteCouponOfferMethod;
}
private static volatile io.grpc.MethodDescriptor getListCouponOffersDeprecatedMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "listCouponOffersDeprecated",
requestType = com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated.class,
responseType = com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getListCouponOffersDeprecatedMethod() {
io.grpc.MethodDescriptor getListCouponOffersDeprecatedMethod;
if ((getListCouponOffersDeprecatedMethod = SingleUseCouponsGrpc.getListCouponOffersDeprecatedMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getListCouponOffersDeprecatedMethod = SingleUseCouponsGrpc.getListCouponOffersDeprecatedMethod) == null) {
SingleUseCouponsGrpc.getListCouponOffersDeprecatedMethod = getListCouponOffersDeprecatedMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "listCouponOffersDeprecated"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("listCouponOffersDeprecated"))
.build();
}
}
}
return getListCouponOffersDeprecatedMethod;
}
private static volatile io.grpc.MethodDescriptor getListCouponOffersMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "listCouponOffers",
requestType = com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest.class,
responseType = com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getListCouponOffersMethod() {
io.grpc.MethodDescriptor getListCouponOffersMethod;
if ((getListCouponOffersMethod = SingleUseCouponsGrpc.getListCouponOffersMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getListCouponOffersMethod = SingleUseCouponsGrpc.getListCouponOffersMethod) == null) {
SingleUseCouponsGrpc.getListCouponOffersMethod = getListCouponOffersMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "listCouponOffers"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("listCouponOffers"))
.build();
}
}
}
return getListCouponOffersMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateCouponMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "createCoupon",
requestType = com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.class,
responseType = com.passkit.grpc.CommonObjects.Id.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateCouponMethod() {
io.grpc.MethodDescriptor getCreateCouponMethod;
if ((getCreateCouponMethod = SingleUseCouponsGrpc.getCreateCouponMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getCreateCouponMethod = SingleUseCouponsGrpc.getCreateCouponMethod) == null) {
SingleUseCouponsGrpc.getCreateCouponMethod = getCreateCouponMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "createCoupon"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Id.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("createCoupon"))
.build();
}
}
}
return getCreateCouponMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateCouponMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateCoupon",
requestType = com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.class,
responseType = com.passkit.grpc.CommonObjects.Id.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateCouponMethod() {
io.grpc.MethodDescriptor getUpdateCouponMethod;
if ((getUpdateCouponMethod = SingleUseCouponsGrpc.getUpdateCouponMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getUpdateCouponMethod = SingleUseCouponsGrpc.getUpdateCouponMethod) == null) {
SingleUseCouponsGrpc.getUpdateCouponMethod = getUpdateCouponMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "updateCoupon"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Id.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("updateCoupon"))
.build();
}
}
}
return getUpdateCouponMethod;
}
private static volatile io.grpc.MethodDescriptor getStreamCouponUpdatesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "streamCouponUpdates",
requestType = com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.class,
responseType = com.passkit.grpc.CommonObjects.Id.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getStreamCouponUpdatesMethod() {
io.grpc.MethodDescriptor getStreamCouponUpdatesMethod;
if ((getStreamCouponUpdatesMethod = SingleUseCouponsGrpc.getStreamCouponUpdatesMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getStreamCouponUpdatesMethod = SingleUseCouponsGrpc.getStreamCouponUpdatesMethod) == null) {
SingleUseCouponsGrpc.getStreamCouponUpdatesMethod = getStreamCouponUpdatesMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "streamCouponUpdates"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Id.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("streamCouponUpdates"))
.build();
}
}
}
return getStreamCouponUpdatesMethod;
}
private static volatile io.grpc.MethodDescriptor getRedeemCouponMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "redeemCoupon",
requestType = com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.class,
responseType = com.passkit.grpc.CommonObjects.Id.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRedeemCouponMethod() {
io.grpc.MethodDescriptor getRedeemCouponMethod;
if ((getRedeemCouponMethod = SingleUseCouponsGrpc.getRedeemCouponMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getRedeemCouponMethod = SingleUseCouponsGrpc.getRedeemCouponMethod) == null) {
SingleUseCouponsGrpc.getRedeemCouponMethod = getRedeemCouponMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "redeemCoupon"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Id.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("redeemCoupon"))
.build();
}
}
}
return getRedeemCouponMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateCouponExternalIdMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateCouponExternalId",
requestType = com.passkit.grpc.SingleUseCoupons.CouponOuterClass.CouponNewExternalIdRequest.class,
responseType = com.passkit.grpc.CommonObjects.Id.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateCouponExternalIdMethod() {
io.grpc.MethodDescriptor getUpdateCouponExternalIdMethod;
if ((getUpdateCouponExternalIdMethod = SingleUseCouponsGrpc.getUpdateCouponExternalIdMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getUpdateCouponExternalIdMethod = SingleUseCouponsGrpc.getUpdateCouponExternalIdMethod) == null) {
SingleUseCouponsGrpc.getUpdateCouponExternalIdMethod = getUpdateCouponExternalIdMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "updateCouponExternalId"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.CouponNewExternalIdRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Id.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("updateCouponExternalId"))
.build();
}
}
}
return getUpdateCouponExternalIdMethod;
}
private static volatile io.grpc.MethodDescriptor getStreamCouponRedemptionsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "streamCouponRedemptions",
requestType = com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.class,
responseType = com.passkit.grpc.CommonObjects.Id.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getStreamCouponRedemptionsMethod() {
io.grpc.MethodDescriptor getStreamCouponRedemptionsMethod;
if ((getStreamCouponRedemptionsMethod = SingleUseCouponsGrpc.getStreamCouponRedemptionsMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getStreamCouponRedemptionsMethod = SingleUseCouponsGrpc.getStreamCouponRedemptionsMethod) == null) {
SingleUseCouponsGrpc.getStreamCouponRedemptionsMethod = getStreamCouponRedemptionsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "streamCouponRedemptions"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Id.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("streamCouponRedemptions"))
.build();
}
}
}
return getStreamCouponRedemptionsMethod;
}
private static volatile io.grpc.MethodDescriptor getGetCouponByIdMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getCouponById",
requestType = com.passkit.grpc.CommonObjects.Id.class,
responseType = com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetCouponByIdMethod() {
io.grpc.MethodDescriptor getGetCouponByIdMethod;
if ((getGetCouponByIdMethod = SingleUseCouponsGrpc.getGetCouponByIdMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getGetCouponByIdMethod = SingleUseCouponsGrpc.getGetCouponByIdMethod) == null) {
SingleUseCouponsGrpc.getGetCouponByIdMethod = getGetCouponByIdMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getCouponById"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Id.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("getCouponById"))
.build();
}
}
}
return getGetCouponByIdMethod;
}
private static volatile io.grpc.MethodDescriptor getGetCouponByExternalIdMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getCouponByExternalId",
requestType = com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ExternalIdRequest.class,
responseType = com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetCouponByExternalIdMethod() {
io.grpc.MethodDescriptor getGetCouponByExternalIdMethod;
if ((getGetCouponByExternalIdMethod = SingleUseCouponsGrpc.getGetCouponByExternalIdMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getGetCouponByExternalIdMethod = SingleUseCouponsGrpc.getGetCouponByExternalIdMethod) == null) {
SingleUseCouponsGrpc.getGetCouponByExternalIdMethod = getGetCouponByExternalIdMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getCouponByExternalId"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ExternalIdRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("getCouponByExternalId"))
.build();
}
}
}
return getGetCouponByExternalIdMethod;
}
private static volatile io.grpc.MethodDescriptor getVoidCouponMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "voidCoupon",
requestType = com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getVoidCouponMethod() {
io.grpc.MethodDescriptor getVoidCouponMethod;
if ((getVoidCouponMethod = SingleUseCouponsGrpc.getVoidCouponMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getVoidCouponMethod = SingleUseCouponsGrpc.getVoidCouponMethod) == null) {
SingleUseCouponsGrpc.getVoidCouponMethod = getVoidCouponMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "voidCoupon"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("voidCoupon"))
.build();
}
}
}
return getVoidCouponMethod;
}
private static volatile io.grpc.MethodDescriptor getListCouponsByCouponCampaignDeprecatedMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "listCouponsByCouponCampaignDeprecated",
requestType = com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequestDeprecated.class,
responseType = com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getListCouponsByCouponCampaignDeprecatedMethod() {
io.grpc.MethodDescriptor getListCouponsByCouponCampaignDeprecatedMethod;
if ((getListCouponsByCouponCampaignDeprecatedMethod = SingleUseCouponsGrpc.getListCouponsByCouponCampaignDeprecatedMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getListCouponsByCouponCampaignDeprecatedMethod = SingleUseCouponsGrpc.getListCouponsByCouponCampaignDeprecatedMethod) == null) {
SingleUseCouponsGrpc.getListCouponsByCouponCampaignDeprecatedMethod = getListCouponsByCouponCampaignDeprecatedMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "listCouponsByCouponCampaignDeprecated"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequestDeprecated.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("listCouponsByCouponCampaignDeprecated"))
.build();
}
}
}
return getListCouponsByCouponCampaignDeprecatedMethod;
}
private static volatile io.grpc.MethodDescriptor getListCouponsByCouponCampaignMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "listCouponsByCouponCampaign",
requestType = com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequest.class,
responseType = com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getListCouponsByCouponCampaignMethod() {
io.grpc.MethodDescriptor getListCouponsByCouponCampaignMethod;
if ((getListCouponsByCouponCampaignMethod = SingleUseCouponsGrpc.getListCouponsByCouponCampaignMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getListCouponsByCouponCampaignMethod = SingleUseCouponsGrpc.getListCouponsByCouponCampaignMethod) == null) {
SingleUseCouponsGrpc.getListCouponsByCouponCampaignMethod = getListCouponsByCouponCampaignMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "listCouponsByCouponCampaign"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("listCouponsByCouponCampaign"))
.build();
}
}
}
return getListCouponsByCouponCampaignMethod;
}
private static volatile io.grpc.MethodDescriptor getCountCouponsByCouponCampaignDeprecatedMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "countCouponsByCouponCampaignDeprecated",
requestType = com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequestDeprecated.class,
responseType = com.passkit.grpc.CommonObjects.Count.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCountCouponsByCouponCampaignDeprecatedMethod() {
io.grpc.MethodDescriptor getCountCouponsByCouponCampaignDeprecatedMethod;
if ((getCountCouponsByCouponCampaignDeprecatedMethod = SingleUseCouponsGrpc.getCountCouponsByCouponCampaignDeprecatedMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getCountCouponsByCouponCampaignDeprecatedMethod = SingleUseCouponsGrpc.getCountCouponsByCouponCampaignDeprecatedMethod) == null) {
SingleUseCouponsGrpc.getCountCouponsByCouponCampaignDeprecatedMethod = getCountCouponsByCouponCampaignDeprecatedMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "countCouponsByCouponCampaignDeprecated"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequestDeprecated.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Count.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("countCouponsByCouponCampaignDeprecated"))
.build();
}
}
}
return getCountCouponsByCouponCampaignDeprecatedMethod;
}
private static volatile io.grpc.MethodDescriptor getCountCouponsByCouponCampaignMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "countCouponsByCouponCampaign",
requestType = com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequest.class,
responseType = com.passkit.grpc.CommonObjects.Count.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCountCouponsByCouponCampaignMethod() {
io.grpc.MethodDescriptor getCountCouponsByCouponCampaignMethod;
if ((getCountCouponsByCouponCampaignMethod = SingleUseCouponsGrpc.getCountCouponsByCouponCampaignMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getCountCouponsByCouponCampaignMethod = SingleUseCouponsGrpc.getCountCouponsByCouponCampaignMethod) == null) {
SingleUseCouponsGrpc.getCountCouponsByCouponCampaignMethod = getCountCouponsByCouponCampaignMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "countCouponsByCouponCampaign"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Count.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("countCouponsByCouponCampaign"))
.build();
}
}
}
return getCountCouponsByCouponCampaignMethod;
}
private static volatile io.grpc.MethodDescriptor getPatchPersonMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "patchPerson",
requestType = com.passkit.grpc.Personal.PersonRequest.class,
responseType = com.passkit.grpc.CommonObjects.Id.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getPatchPersonMethod() {
io.grpc.MethodDescriptor getPatchPersonMethod;
if ((getPatchPersonMethod = SingleUseCouponsGrpc.getPatchPersonMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getPatchPersonMethod = SingleUseCouponsGrpc.getPatchPersonMethod) == null) {
SingleUseCouponsGrpc.getPatchPersonMethod = getPatchPersonMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "patchPerson"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.Personal.PersonRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Id.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("patchPerson"))
.build();
}
}
}
return getPatchPersonMethod;
}
private static volatile io.grpc.MethodDescriptor getCopyCouponCampaignMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "copyCouponCampaign",
requestType = com.passkit.grpc.SingleUseCoupons.Campaign.CampaignCopyRequest.class,
responseType = com.passkit.grpc.CommonObjects.Id.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCopyCouponCampaignMethod() {
io.grpc.MethodDescriptor getCopyCouponCampaignMethod;
if ((getCopyCouponCampaignMethod = SingleUseCouponsGrpc.getCopyCouponCampaignMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getCopyCouponCampaignMethod = SingleUseCouponsGrpc.getCopyCouponCampaignMethod) == null) {
SingleUseCouponsGrpc.getCopyCouponCampaignMethod = getCopyCouponCampaignMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "copyCouponCampaign"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.SingleUseCoupons.Campaign.CampaignCopyRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Id.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("copyCouponCampaign"))
.build();
}
}
}
return getCopyCouponCampaignMethod;
}
private static volatile io.grpc.MethodDescriptor getGetMetaKeysForCampaignMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getMetaKeysForCampaign",
requestType = com.passkit.grpc.CommonObjects.Id.class,
responseType = com.passkit.grpc.CommonObjects.Strings.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMetaKeysForCampaignMethod() {
io.grpc.MethodDescriptor getGetMetaKeysForCampaignMethod;
if ((getGetMetaKeysForCampaignMethod = SingleUseCouponsGrpc.getGetMetaKeysForCampaignMethod) == null) {
synchronized (SingleUseCouponsGrpc.class) {
if ((getGetMetaKeysForCampaignMethod = SingleUseCouponsGrpc.getGetMetaKeysForCampaignMethod) == null) {
SingleUseCouponsGrpc.getGetMetaKeysForCampaignMethod = getGetMetaKeysForCampaignMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getMetaKeysForCampaign"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Id.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.passkit.grpc.CommonObjects.Strings.getDefaultInstance()))
.setSchemaDescriptor(new SingleUseCouponsMethodDescriptorSupplier("getMetaKeysForCampaign"))
.build();
}
}
}
return getGetMetaKeysForCampaignMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static SingleUseCouponsStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SingleUseCouponsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SingleUseCouponsStub(channel, callOptions);
}
};
return SingleUseCouponsStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static SingleUseCouponsBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SingleUseCouponsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SingleUseCouponsBlockingStub(channel, callOptions);
}
};
return SingleUseCouponsBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static SingleUseCouponsFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SingleUseCouponsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SingleUseCouponsFutureStub(channel, callOptions);
}
};
return SingleUseCouponsFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class SingleUseCouponsImplBase implements io.grpc.BindableService {
/**
*/
public void createCouponCampaign(com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCouponCampaignMethod(), responseObserver);
}
/**
*/
public void updateCouponCampaign(com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCouponCampaignMethod(), responseObserver);
}
/**
*/
public void getCouponCampaign(com.passkit.grpc.CommonObjects.Id request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCouponCampaignMethod(), responseObserver);
}
/**
*/
public void deleteCouponCampaign(com.passkit.grpc.CommonObjects.Id request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCouponCampaignMethod(), responseObserver);
}
/**
*/
public void listCouponCampaignsDeprecated(com.passkit.grpc.PaginationOuterClass.Pagination request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCouponCampaignsDeprecatedMethod(), responseObserver);
}
/**
*/
public void listCouponCampaigns(com.passkit.grpc.Filter.Filters request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCouponCampaignsMethod(), responseObserver);
}
/**
*/
public void getAnalytics(com.passkit.grpc.Reporting.AnalyticsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAnalyticsMethod(), responseObserver);
}
/**
*/
public void createCouponOffer(com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCouponOfferMethod(), responseObserver);
}
/**
*/
public void updateCouponOffer(com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCouponOfferMethod(), responseObserver);
}
/**
*/
public void getCouponOffer(com.passkit.grpc.CommonObjects.Id request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCouponOfferMethod(), responseObserver);
}
/**
*/
public void deleteCouponOffer(com.passkit.grpc.CommonObjects.Id request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCouponOfferMethod(), responseObserver);
}
/**
*/
public void listCouponOffersDeprecated(com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCouponOffersDeprecatedMethod(), responseObserver);
}
/**
*/
public void listCouponOffers(com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCouponOffersMethod(), responseObserver);
}
/**
*/
public void createCoupon(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCouponMethod(), responseObserver);
}
/**
*/
public void updateCoupon(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCouponMethod(), responseObserver);
}
/**
*/
public io.grpc.stub.StreamObserver streamCouponUpdates(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamCouponUpdatesMethod(), responseObserver);
}
/**
*/
public void redeemCoupon(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRedeemCouponMethod(), responseObserver);
}
/**
*/
public void updateCouponExternalId(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.CouponNewExternalIdRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCouponExternalIdMethod(), responseObserver);
}
/**
*/
public io.grpc.stub.StreamObserver streamCouponRedemptions(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamCouponRedemptionsMethod(), responseObserver);
}
/**
*/
public void getCouponById(com.passkit.grpc.CommonObjects.Id request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCouponByIdMethod(), responseObserver);
}
/**
*/
public void getCouponByExternalId(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ExternalIdRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCouponByExternalIdMethod(), responseObserver);
}
/**
*/
public void voidCoupon(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVoidCouponMethod(), responseObserver);
}
/**
*/
public void listCouponsByCouponCampaignDeprecated(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequestDeprecated request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCouponsByCouponCampaignDeprecatedMethod(), responseObserver);
}
/**
*/
public void listCouponsByCouponCampaign(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCouponsByCouponCampaignMethod(), responseObserver);
}
/**
*/
public void countCouponsByCouponCampaignDeprecated(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequestDeprecated request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCountCouponsByCouponCampaignDeprecatedMethod(), responseObserver);
}
/**
*/
public void countCouponsByCouponCampaign(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCountCouponsByCouponCampaignMethod(), responseObserver);
}
/**
*/
public void patchPerson(com.passkit.grpc.Personal.PersonRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPatchPersonMethod(), responseObserver);
}
/**
*/
public void copyCouponCampaign(com.passkit.grpc.SingleUseCoupons.Campaign.CampaignCopyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCopyCouponCampaignMethod(), responseObserver);
}
/**
*/
public void getMetaKeysForCampaign(com.passkit.grpc.CommonObjects.Id request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMetaKeysForCampaignMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateCouponCampaignMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign,
com.passkit.grpc.CommonObjects.Id>(
this, METHODID_CREATE_COUPON_CAMPAIGN)))
.addMethod(
getUpdateCouponCampaignMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign,
com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign>(
this, METHODID_UPDATE_COUPON_CAMPAIGN)))
.addMethod(
getGetCouponCampaignMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.CommonObjects.Id,
com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign>(
this, METHODID_GET_COUPON_CAMPAIGN)))
.addMethod(
getDeleteCouponCampaignMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.CommonObjects.Id,
com.google.protobuf.Empty>(
this, METHODID_DELETE_COUPON_CAMPAIGN)))
.addMethod(
getListCouponCampaignsDeprecatedMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
com.passkit.grpc.PaginationOuterClass.Pagination,
com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign>(
this, METHODID_LIST_COUPON_CAMPAIGNS_DEPRECATED)))
.addMethod(
getListCouponCampaignsMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
com.passkit.grpc.Filter.Filters,
com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign>(
this, METHODID_LIST_COUPON_CAMPAIGNS)))
.addMethod(
getGetAnalyticsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Reporting.AnalyticsRequest,
com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaignAnalyticsResponse>(
this, METHODID_GET_ANALYTICS)))
.addMethod(
getCreateCouponOfferMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer,
com.passkit.grpc.CommonObjects.Id>(
this, METHODID_CREATE_COUPON_OFFER)))
.addMethod(
getUpdateCouponOfferMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer,
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer>(
this, METHODID_UPDATE_COUPON_OFFER)))
.addMethod(
getGetCouponOfferMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.CommonObjects.Id,
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer>(
this, METHODID_GET_COUPON_OFFER)))
.addMethod(
getDeleteCouponOfferMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.CommonObjects.Id,
com.google.protobuf.Empty>(
this, METHODID_DELETE_COUPON_OFFER)))
.addMethod(
getListCouponOffersDeprecatedMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated,
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer>(
this, METHODID_LIST_COUPON_OFFERS_DEPRECATED)))
.addMethod(
getListCouponOffersMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest,
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer>(
this, METHODID_LIST_COUPON_OFFERS)))
.addMethod(
getCreateCouponMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon,
com.passkit.grpc.CommonObjects.Id>(
this, METHODID_CREATE_COUPON)))
.addMethod(
getUpdateCouponMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon,
com.passkit.grpc.CommonObjects.Id>(
this, METHODID_UPDATE_COUPON)))
.addMethod(
getStreamCouponUpdatesMethod(),
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon,
com.passkit.grpc.CommonObjects.Id>(
this, METHODID_STREAM_COUPON_UPDATES)))
.addMethod(
getRedeemCouponMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon,
com.passkit.grpc.CommonObjects.Id>(
this, METHODID_REDEEM_COUPON)))
.addMethod(
getUpdateCouponExternalIdMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.CouponNewExternalIdRequest,
com.passkit.grpc.CommonObjects.Id>(
this, METHODID_UPDATE_COUPON_EXTERNAL_ID)))
.addMethod(
getStreamCouponRedemptionsMethod(),
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon,
com.passkit.grpc.CommonObjects.Id>(
this, METHODID_STREAM_COUPON_REDEMPTIONS)))
.addMethod(
getGetCouponByIdMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.CommonObjects.Id,
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon>(
this, METHODID_GET_COUPON_BY_ID)))
.addMethod(
getGetCouponByExternalIdMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ExternalIdRequest,
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon>(
this, METHODID_GET_COUPON_BY_EXTERNAL_ID)))
.addMethod(
getVoidCouponMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon,
com.google.protobuf.Empty>(
this, METHODID_VOID_COUPON)))
.addMethod(
getListCouponsByCouponCampaignDeprecatedMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequestDeprecated,
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon>(
this, METHODID_LIST_COUPONS_BY_COUPON_CAMPAIGN_DEPRECATED)))
.addMethod(
getListCouponsByCouponCampaignMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequest,
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon>(
this, METHODID_LIST_COUPONS_BY_COUPON_CAMPAIGN)))
.addMethod(
getCountCouponsByCouponCampaignDeprecatedMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequestDeprecated,
com.passkit.grpc.CommonObjects.Count>(
this, METHODID_COUNT_COUPONS_BY_COUPON_CAMPAIGN_DEPRECATED)))
.addMethod(
getCountCouponsByCouponCampaignMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequest,
com.passkit.grpc.CommonObjects.Count>(
this, METHODID_COUNT_COUPONS_BY_COUPON_CAMPAIGN)))
.addMethod(
getPatchPersonMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.Personal.PersonRequest,
com.passkit.grpc.CommonObjects.Id>(
this, METHODID_PATCH_PERSON)))
.addMethod(
getCopyCouponCampaignMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.SingleUseCoupons.Campaign.CampaignCopyRequest,
com.passkit.grpc.CommonObjects.Id>(
this, METHODID_COPY_COUPON_CAMPAIGN)))
.addMethod(
getGetMetaKeysForCampaignMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.passkit.grpc.CommonObjects.Id,
com.passkit.grpc.CommonObjects.Strings>(
this, METHODID_GET_META_KEYS_FOR_CAMPAIGN)))
.build();
}
}
/**
*/
public static final class SingleUseCouponsStub extends io.grpc.stub.AbstractAsyncStub {
private SingleUseCouponsStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SingleUseCouponsStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SingleUseCouponsStub(channel, callOptions);
}
/**
*/
public void createCouponCampaign(com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateCouponCampaignMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updateCouponCampaign(com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateCouponCampaignMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getCouponCampaign(com.passkit.grpc.CommonObjects.Id request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetCouponCampaignMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void deleteCouponCampaign(com.passkit.grpc.CommonObjects.Id request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteCouponCampaignMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void listCouponCampaignsDeprecated(com.passkit.grpc.PaginationOuterClass.Pagination request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getListCouponCampaignsDeprecatedMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void listCouponCampaigns(com.passkit.grpc.Filter.Filters request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getListCouponCampaignsMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getAnalytics(com.passkit.grpc.Reporting.AnalyticsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetAnalyticsMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void createCouponOffer(com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateCouponOfferMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updateCouponOffer(com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateCouponOfferMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getCouponOffer(com.passkit.grpc.CommonObjects.Id request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetCouponOfferMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void deleteCouponOffer(com.passkit.grpc.CommonObjects.Id request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteCouponOfferMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void listCouponOffersDeprecated(com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getListCouponOffersDeprecatedMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void listCouponOffers(com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getListCouponOffersMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void createCoupon(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateCouponMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updateCoupon(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateCouponMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public io.grpc.stub.StreamObserver streamCouponUpdates(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
getChannel().newCall(getStreamCouponUpdatesMethod(), getCallOptions()), responseObserver);
}
/**
*/
public void redeemCoupon(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRedeemCouponMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updateCouponExternalId(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.CouponNewExternalIdRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateCouponExternalIdMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public io.grpc.stub.StreamObserver streamCouponRedemptions(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
getChannel().newCall(getStreamCouponRedemptionsMethod(), getCallOptions()), responseObserver);
}
/**
*/
public void getCouponById(com.passkit.grpc.CommonObjects.Id request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetCouponByIdMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getCouponByExternalId(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ExternalIdRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetCouponByExternalIdMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void voidCoupon(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getVoidCouponMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void listCouponsByCouponCampaignDeprecated(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequestDeprecated request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getListCouponsByCouponCampaignDeprecatedMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void listCouponsByCouponCampaign(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getListCouponsByCouponCampaignMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void countCouponsByCouponCampaignDeprecated(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequestDeprecated request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCountCouponsByCouponCampaignDeprecatedMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void countCouponsByCouponCampaign(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCountCouponsByCouponCampaignMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void patchPerson(com.passkit.grpc.Personal.PersonRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getPatchPersonMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void copyCouponCampaign(com.passkit.grpc.SingleUseCoupons.Campaign.CampaignCopyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCopyCouponCampaignMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getMetaKeysForCampaign(com.passkit.grpc.CommonObjects.Id request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMetaKeysForCampaignMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class SingleUseCouponsBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private SingleUseCouponsBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SingleUseCouponsBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SingleUseCouponsBlockingStub(channel, callOptions);
}
/**
*/
public com.passkit.grpc.CommonObjects.Id createCouponCampaign(com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateCouponCampaignMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign updateCouponCampaign(com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateCouponCampaignMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign getCouponCampaign(com.passkit.grpc.CommonObjects.Id request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetCouponCampaignMethod(), getCallOptions(), request);
}
/**
*/
public com.google.protobuf.Empty deleteCouponCampaign(com.passkit.grpc.CommonObjects.Id request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteCouponCampaignMethod(), getCallOptions(), request);
}
/**
*/
public java.util.Iterator listCouponCampaignsDeprecated(
com.passkit.grpc.PaginationOuterClass.Pagination request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getListCouponCampaignsDeprecatedMethod(), getCallOptions(), request);
}
/**
*/
public java.util.Iterator listCouponCampaigns(
com.passkit.grpc.Filter.Filters request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getListCouponCampaignsMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaignAnalyticsResponse getAnalytics(com.passkit.grpc.Reporting.AnalyticsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetAnalyticsMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.CommonObjects.Id createCouponOffer(com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateCouponOfferMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer updateCouponOffer(com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateCouponOfferMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer getCouponOffer(com.passkit.grpc.CommonObjects.Id request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetCouponOfferMethod(), getCallOptions(), request);
}
/**
*/
public com.google.protobuf.Empty deleteCouponOffer(com.passkit.grpc.CommonObjects.Id request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteCouponOfferMethod(), getCallOptions(), request);
}
/**
*/
public java.util.Iterator listCouponOffersDeprecated(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getListCouponOffersDeprecatedMethod(), getCallOptions(), request);
}
/**
*/
public java.util.Iterator listCouponOffers(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getListCouponOffersMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.CommonObjects.Id createCoupon(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateCouponMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.CommonObjects.Id updateCoupon(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateCouponMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.CommonObjects.Id redeemCoupon(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRedeemCouponMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.CommonObjects.Id updateCouponExternalId(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.CouponNewExternalIdRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateCouponExternalIdMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon getCouponById(com.passkit.grpc.CommonObjects.Id request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetCouponByIdMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon getCouponByExternalId(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ExternalIdRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetCouponByExternalIdMethod(), getCallOptions(), request);
}
/**
*/
public com.google.protobuf.Empty voidCoupon(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getVoidCouponMethod(), getCallOptions(), request);
}
/**
*/
public java.util.Iterator listCouponsByCouponCampaignDeprecated(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequestDeprecated request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getListCouponsByCouponCampaignDeprecatedMethod(), getCallOptions(), request);
}
/**
*/
public java.util.Iterator listCouponsByCouponCampaign(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequest request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getListCouponsByCouponCampaignMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.CommonObjects.Count countCouponsByCouponCampaignDeprecated(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequestDeprecated request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCountCouponsByCouponCampaignDeprecatedMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.CommonObjects.Count countCouponsByCouponCampaign(com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCountCouponsByCouponCampaignMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.CommonObjects.Id patchPerson(com.passkit.grpc.Personal.PersonRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPatchPersonMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.CommonObjects.Id copyCouponCampaign(com.passkit.grpc.SingleUseCoupons.Campaign.CampaignCopyRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCopyCouponCampaignMethod(), getCallOptions(), request);
}
/**
*/
public com.passkit.grpc.CommonObjects.Strings getMetaKeysForCampaign(com.passkit.grpc.CommonObjects.Id request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMetaKeysForCampaignMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class SingleUseCouponsFutureStub extends io.grpc.stub.AbstractFutureStub {
private SingleUseCouponsFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SingleUseCouponsFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SingleUseCouponsFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture createCouponCampaign(
com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateCouponCampaignMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture updateCouponCampaign(
com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateCouponCampaignMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getCouponCampaign(
com.passkit.grpc.CommonObjects.Id request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetCouponCampaignMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture deleteCouponCampaign(
com.passkit.grpc.CommonObjects.Id request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteCouponCampaignMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getAnalytics(
com.passkit.grpc.Reporting.AnalyticsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetAnalyticsMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture createCouponOffer(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateCouponOfferMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture updateCouponOffer(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateCouponOfferMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getCouponOffer(
com.passkit.grpc.CommonObjects.Id request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetCouponOfferMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture deleteCouponOffer(
com.passkit.grpc.CommonObjects.Id request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteCouponOfferMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture createCoupon(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateCouponMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture updateCoupon(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateCouponMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture redeemCoupon(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRedeemCouponMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture updateCouponExternalId(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.CouponNewExternalIdRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateCouponExternalIdMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getCouponById(
com.passkit.grpc.CommonObjects.Id request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetCouponByIdMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getCouponByExternalId(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ExternalIdRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetCouponByExternalIdMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture voidCoupon(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getVoidCouponMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture countCouponsByCouponCampaignDeprecated(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequestDeprecated request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCountCouponsByCouponCampaignDeprecatedMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture countCouponsByCouponCampaign(
com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCountCouponsByCouponCampaignMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture patchPerson(
com.passkit.grpc.Personal.PersonRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getPatchPersonMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture copyCouponCampaign(
com.passkit.grpc.SingleUseCoupons.Campaign.CampaignCopyRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCopyCouponCampaignMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getMetaKeysForCampaign(
com.passkit.grpc.CommonObjects.Id request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetMetaKeysForCampaignMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE_COUPON_CAMPAIGN = 0;
private static final int METHODID_UPDATE_COUPON_CAMPAIGN = 1;
private static final int METHODID_GET_COUPON_CAMPAIGN = 2;
private static final int METHODID_DELETE_COUPON_CAMPAIGN = 3;
private static final int METHODID_LIST_COUPON_CAMPAIGNS_DEPRECATED = 4;
private static final int METHODID_LIST_COUPON_CAMPAIGNS = 5;
private static final int METHODID_GET_ANALYTICS = 6;
private static final int METHODID_CREATE_COUPON_OFFER = 7;
private static final int METHODID_UPDATE_COUPON_OFFER = 8;
private static final int METHODID_GET_COUPON_OFFER = 9;
private static final int METHODID_DELETE_COUPON_OFFER = 10;
private static final int METHODID_LIST_COUPON_OFFERS_DEPRECATED = 11;
private static final int METHODID_LIST_COUPON_OFFERS = 12;
private static final int METHODID_CREATE_COUPON = 13;
private static final int METHODID_UPDATE_COUPON = 14;
private static final int METHODID_REDEEM_COUPON = 15;
private static final int METHODID_UPDATE_COUPON_EXTERNAL_ID = 16;
private static final int METHODID_GET_COUPON_BY_ID = 17;
private static final int METHODID_GET_COUPON_BY_EXTERNAL_ID = 18;
private static final int METHODID_VOID_COUPON = 19;
private static final int METHODID_LIST_COUPONS_BY_COUPON_CAMPAIGN_DEPRECATED = 20;
private static final int METHODID_LIST_COUPONS_BY_COUPON_CAMPAIGN = 21;
private static final int METHODID_COUNT_COUPONS_BY_COUPON_CAMPAIGN_DEPRECATED = 22;
private static final int METHODID_COUNT_COUPONS_BY_COUPON_CAMPAIGN = 23;
private static final int METHODID_PATCH_PERSON = 24;
private static final int METHODID_COPY_COUPON_CAMPAIGN = 25;
private static final int METHODID_GET_META_KEYS_FOR_CAMPAIGN = 26;
private static final int METHODID_STREAM_COUPON_UPDATES = 27;
private static final int METHODID_STREAM_COUPON_REDEMPTIONS = 28;
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 SingleUseCouponsImplBase serviceImpl;
private final int methodId;
MethodHandlers(SingleUseCouponsImplBase 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_COUPON_CAMPAIGN:
serviceImpl.createCouponCampaign((com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_COUPON_CAMPAIGN:
serviceImpl.updateCouponCampaign((com.passkit.grpc.SingleUseCoupons.Campaign.CouponCampaign) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_COUPON_CAMPAIGN:
serviceImpl.getCouponCampaign((com.passkit.grpc.CommonObjects.Id) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_COUPON_CAMPAIGN:
serviceImpl.deleteCouponCampaign((com.passkit.grpc.CommonObjects.Id) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_COUPON_CAMPAIGNS_DEPRECATED:
serviceImpl.listCouponCampaignsDeprecated((com.passkit.grpc.PaginationOuterClass.Pagination) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_COUPON_CAMPAIGNS:
serviceImpl.listCouponCampaigns((com.passkit.grpc.Filter.Filters) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_ANALYTICS:
serviceImpl.getAnalytics((com.passkit.grpc.Reporting.AnalyticsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_COUPON_OFFER:
serviceImpl.createCouponOffer((com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_COUPON_OFFER:
serviceImpl.updateCouponOffer((com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_COUPON_OFFER:
serviceImpl.getCouponOffer((com.passkit.grpc.CommonObjects.Id) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_COUPON_OFFER:
serviceImpl.deleteCouponOffer((com.passkit.grpc.CommonObjects.Id) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_COUPON_OFFERS_DEPRECATED:
serviceImpl.listCouponOffersDeprecated((com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_COUPON_OFFERS:
serviceImpl.listCouponOffers((com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_COUPON:
serviceImpl.createCoupon((com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_COUPON:
serviceImpl.updateCoupon((com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REDEEM_COUPON:
serviceImpl.redeemCoupon((com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_COUPON_EXTERNAL_ID:
serviceImpl.updateCouponExternalId((com.passkit.grpc.SingleUseCoupons.CouponOuterClass.CouponNewExternalIdRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_COUPON_BY_ID:
serviceImpl.getCouponById((com.passkit.grpc.CommonObjects.Id) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_COUPON_BY_EXTERNAL_ID:
serviceImpl.getCouponByExternalId((com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ExternalIdRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_VOID_COUPON:
serviceImpl.voidCoupon((com.passkit.grpc.SingleUseCoupons.CouponOuterClass.Coupon) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_COUPONS_BY_COUPON_CAMPAIGN_DEPRECATED:
serviceImpl.listCouponsByCouponCampaignDeprecated((com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequestDeprecated) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_COUPONS_BY_COUPON_CAMPAIGN:
serviceImpl.listCouponsByCouponCampaign((com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_COUNT_COUPONS_BY_COUPON_CAMPAIGN_DEPRECATED:
serviceImpl.countCouponsByCouponCampaignDeprecated((com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequestDeprecated) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_COUNT_COUPONS_BY_COUPON_CAMPAIGN:
serviceImpl.countCouponsByCouponCampaign((com.passkit.grpc.SingleUseCoupons.CouponOuterClass.ListRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PATCH_PERSON:
serviceImpl.patchPerson((com.passkit.grpc.Personal.PersonRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_COPY_COUPON_CAMPAIGN:
serviceImpl.copyCouponCampaign((com.passkit.grpc.SingleUseCoupons.Campaign.CampaignCopyRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_META_KEYS_FOR_CAMPAIGN:
serviceImpl.getMetaKeysForCampaign((com.passkit.grpc.CommonObjects.Id) 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) {
case METHODID_STREAM_COUPON_UPDATES:
return (io.grpc.stub.StreamObserver) serviceImpl.streamCouponUpdates(
(io.grpc.stub.StreamObserver