// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: demo.proto // #pragma warning disable 1591 #region Designer generated code using grpc = global::Grpc.Core; namespace Hipstershop { public static partial class CartService { static readonly string __ServiceName = "hipstershop.CartService"; static readonly grpc::Marshaller __Marshaller_AddItemRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.AddItemRequest.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.Empty.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_GetCartRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.GetCartRequest.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_Cart = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.Cart.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_EmptyCartRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.EmptyCartRequest.Parser.ParseFrom); static readonly grpc::Method __Method_AddItem = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "AddItem", __Marshaller_AddItemRequest, __Marshaller_Empty); static readonly grpc::Method __Method_GetCart = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetCart", __Marshaller_GetCartRequest, __Marshaller_Cart); static readonly grpc::Method __Method_EmptyCart = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "EmptyCart", __Marshaller_EmptyCartRequest, __Marshaller_Empty); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Hipstershop.DemoReflection.Descriptor.Services[0]; } } /// Base class for server-side implementations of CartService public abstract partial class CartServiceBase { public virtual global::System.Threading.Tasks.Task AddItem(global::Hipstershop.AddItemRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } public virtual global::System.Threading.Tasks.Task GetCart(global::Hipstershop.GetCartRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } public virtual global::System.Threading.Tasks.Task EmptyCart(global::Hipstershop.EmptyCartRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for CartService public partial class CartServiceClient : grpc::ClientBase { /// Creates a new client for CartService /// The channel to use to make remote calls. public CartServiceClient(grpc::Channel channel) : base(channel) { } /// Creates a new client for CartService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. public CartServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. protected CartServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. protected CartServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } public virtual global::Hipstershop.Empty AddItem(global::Hipstershop.AddItemRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return AddItem(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual global::Hipstershop.Empty AddItem(global::Hipstershop.AddItemRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_AddItem, null, options, request); } public virtual grpc::AsyncUnaryCall AddItemAsync(global::Hipstershop.AddItemRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return AddItemAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual grpc::AsyncUnaryCall AddItemAsync(global::Hipstershop.AddItemRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_AddItem, null, options, request); } public virtual global::Hipstershop.Cart GetCart(global::Hipstershop.GetCartRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetCart(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual global::Hipstershop.Cart GetCart(global::Hipstershop.GetCartRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetCart, null, options, request); } public virtual grpc::AsyncUnaryCall GetCartAsync(global::Hipstershop.GetCartRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetCartAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual grpc::AsyncUnaryCall GetCartAsync(global::Hipstershop.GetCartRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetCart, null, options, request); } public virtual global::Hipstershop.Empty EmptyCart(global::Hipstershop.EmptyCartRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return EmptyCart(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual global::Hipstershop.Empty EmptyCart(global::Hipstershop.EmptyCartRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_EmptyCart, null, options, request); } public virtual grpc::AsyncUnaryCall EmptyCartAsync(global::Hipstershop.EmptyCartRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return EmptyCartAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual grpc::AsyncUnaryCall EmptyCartAsync(global::Hipstershop.EmptyCartRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_EmptyCart, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. protected override CartServiceClient NewInstance(ClientBaseConfiguration configuration) { return new CartServiceClient(configuration); } } /// Creates service definition that can be registered with a server /// An object implementing the server-side handling logic. public static grpc::ServerServiceDefinition BindService(CartServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_AddItem, serviceImpl.AddItem) .AddMethod(__Method_GetCart, serviceImpl.GetCart) .AddMethod(__Method_EmptyCart, serviceImpl.EmptyCart).Build(); } } public static partial class RecommendationService { static readonly string __ServiceName = "hipstershop.RecommendationService"; static readonly grpc::Marshaller __Marshaller_ListRecommendationsRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.ListRecommendationsRequest.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_ListRecommendationsResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.ListRecommendationsResponse.Parser.ParseFrom); static readonly grpc::Method __Method_ListRecommendations = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "ListRecommendations", __Marshaller_ListRecommendationsRequest, __Marshaller_ListRecommendationsResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Hipstershop.DemoReflection.Descriptor.Services[1]; } } /// Base class for server-side implementations of RecommendationService public abstract partial class RecommendationServiceBase { public virtual global::System.Threading.Tasks.Task ListRecommendations(global::Hipstershop.ListRecommendationsRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for RecommendationService public partial class RecommendationServiceClient : grpc::ClientBase { /// Creates a new client for RecommendationService /// The channel to use to make remote calls. public RecommendationServiceClient(grpc::Channel channel) : base(channel) { } /// Creates a new client for RecommendationService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. public RecommendationServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. protected RecommendationServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. protected RecommendationServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } public virtual global::Hipstershop.ListRecommendationsResponse ListRecommendations(global::Hipstershop.ListRecommendationsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return ListRecommendations(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual global::Hipstershop.ListRecommendationsResponse ListRecommendations(global::Hipstershop.ListRecommendationsRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_ListRecommendations, null, options, request); } public virtual grpc::AsyncUnaryCall ListRecommendationsAsync(global::Hipstershop.ListRecommendationsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return ListRecommendationsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual grpc::AsyncUnaryCall ListRecommendationsAsync(global::Hipstershop.ListRecommendationsRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_ListRecommendations, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. protected override RecommendationServiceClient NewInstance(ClientBaseConfiguration configuration) { return new RecommendationServiceClient(configuration); } } /// Creates service definition that can be registered with a server /// An object implementing the server-side handling logic. public static grpc::ServerServiceDefinition BindService(RecommendationServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_ListRecommendations, serviceImpl.ListRecommendations).Build(); } } public static partial class ProductCatalogService { static readonly string __ServiceName = "hipstershop.ProductCatalogService"; static readonly grpc::Marshaller __Marshaller_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.Empty.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_ListProductsResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.ListProductsResponse.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_GetProductRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.GetProductRequest.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_Product = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.Product.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_SearchProductsRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.SearchProductsRequest.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_SearchProductsResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.SearchProductsResponse.Parser.ParseFrom); static readonly grpc::Method __Method_ListProducts = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "ListProducts", __Marshaller_Empty, __Marshaller_ListProductsResponse); static readonly grpc::Method __Method_GetProduct = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetProduct", __Marshaller_GetProductRequest, __Marshaller_Product); static readonly grpc::Method __Method_SearchProducts = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "SearchProducts", __Marshaller_SearchProductsRequest, __Marshaller_SearchProductsResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Hipstershop.DemoReflection.Descriptor.Services[2]; } } /// Base class for server-side implementations of ProductCatalogService public abstract partial class ProductCatalogServiceBase { public virtual global::System.Threading.Tasks.Task ListProducts(global::Hipstershop.Empty request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } public virtual global::System.Threading.Tasks.Task GetProduct(global::Hipstershop.GetProductRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } public virtual global::System.Threading.Tasks.Task SearchProducts(global::Hipstershop.SearchProductsRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for ProductCatalogService public partial class ProductCatalogServiceClient : grpc::ClientBase { /// Creates a new client for ProductCatalogService /// The channel to use to make remote calls. public ProductCatalogServiceClient(grpc::Channel channel) : base(channel) { } /// Creates a new client for ProductCatalogService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. public ProductCatalogServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. protected ProductCatalogServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. protected ProductCatalogServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } public virtual global::Hipstershop.ListProductsResponse ListProducts(global::Hipstershop.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return ListProducts(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual global::Hipstershop.ListProductsResponse ListProducts(global::Hipstershop.Empty request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_ListProducts, null, options, request); } public virtual grpc::AsyncUnaryCall ListProductsAsync(global::Hipstershop.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return ListProductsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual grpc::AsyncUnaryCall ListProductsAsync(global::Hipstershop.Empty request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_ListProducts, null, options, request); } public virtual global::Hipstershop.Product GetProduct(global::Hipstershop.GetProductRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetProduct(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual global::Hipstershop.Product GetProduct(global::Hipstershop.GetProductRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetProduct, null, options, request); } public virtual grpc::AsyncUnaryCall GetProductAsync(global::Hipstershop.GetProductRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetProductAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual grpc::AsyncUnaryCall GetProductAsync(global::Hipstershop.GetProductRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetProduct, null, options, request); } public virtual global::Hipstershop.SearchProductsResponse SearchProducts(global::Hipstershop.SearchProductsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return SearchProducts(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual global::Hipstershop.SearchProductsResponse SearchProducts(global::Hipstershop.SearchProductsRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_SearchProducts, null, options, request); } public virtual grpc::AsyncUnaryCall SearchProductsAsync(global::Hipstershop.SearchProductsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return SearchProductsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual grpc::AsyncUnaryCall SearchProductsAsync(global::Hipstershop.SearchProductsRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_SearchProducts, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. protected override ProductCatalogServiceClient NewInstance(ClientBaseConfiguration configuration) { return new ProductCatalogServiceClient(configuration); } } /// Creates service definition that can be registered with a server /// An object implementing the server-side handling logic. public static grpc::ServerServiceDefinition BindService(ProductCatalogServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_ListProducts, serviceImpl.ListProducts) .AddMethod(__Method_GetProduct, serviceImpl.GetProduct) .AddMethod(__Method_SearchProducts, serviceImpl.SearchProducts).Build(); } } public static partial class ShippingService { static readonly string __ServiceName = "hipstershop.ShippingService"; static readonly grpc::Marshaller __Marshaller_GetQuoteRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.GetQuoteRequest.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_GetQuoteResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.GetQuoteResponse.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_ShipOrderRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.ShipOrderRequest.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_ShipOrderResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.ShipOrderResponse.Parser.ParseFrom); static readonly grpc::Method __Method_GetQuote = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetQuote", __Marshaller_GetQuoteRequest, __Marshaller_GetQuoteResponse); static readonly grpc::Method __Method_ShipOrder = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "ShipOrder", __Marshaller_ShipOrderRequest, __Marshaller_ShipOrderResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Hipstershop.DemoReflection.Descriptor.Services[3]; } } /// Base class for server-side implementations of ShippingService public abstract partial class ShippingServiceBase { public virtual global::System.Threading.Tasks.Task GetQuote(global::Hipstershop.GetQuoteRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } public virtual global::System.Threading.Tasks.Task ShipOrder(global::Hipstershop.ShipOrderRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for ShippingService public partial class ShippingServiceClient : grpc::ClientBase { /// Creates a new client for ShippingService /// The channel to use to make remote calls. public ShippingServiceClient(grpc::Channel channel) : base(channel) { } /// Creates a new client for ShippingService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. public ShippingServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. protected ShippingServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. protected ShippingServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } public virtual global::Hipstershop.GetQuoteResponse GetQuote(global::Hipstershop.GetQuoteRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetQuote(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual global::Hipstershop.GetQuoteResponse GetQuote(global::Hipstershop.GetQuoteRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetQuote, null, options, request); } public virtual grpc::AsyncUnaryCall GetQuoteAsync(global::Hipstershop.GetQuoteRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetQuoteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual grpc::AsyncUnaryCall GetQuoteAsync(global::Hipstershop.GetQuoteRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetQuote, null, options, request); } public virtual global::Hipstershop.ShipOrderResponse ShipOrder(global::Hipstershop.ShipOrderRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return ShipOrder(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual global::Hipstershop.ShipOrderResponse ShipOrder(global::Hipstershop.ShipOrderRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_ShipOrder, null, options, request); } public virtual grpc::AsyncUnaryCall ShipOrderAsync(global::Hipstershop.ShipOrderRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return ShipOrderAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual grpc::AsyncUnaryCall ShipOrderAsync(global::Hipstershop.ShipOrderRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_ShipOrder, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. protected override ShippingServiceClient NewInstance(ClientBaseConfiguration configuration) { return new ShippingServiceClient(configuration); } } /// Creates service definition that can be registered with a server /// An object implementing the server-side handling logic. public static grpc::ServerServiceDefinition BindService(ShippingServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_GetQuote, serviceImpl.GetQuote) .AddMethod(__Method_ShipOrder, serviceImpl.ShipOrder).Build(); } } public static partial class CurrencyService { static readonly string __ServiceName = "hipstershop.CurrencyService"; static readonly grpc::Marshaller __Marshaller_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.Empty.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_GetSupportedCurrenciesResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.GetSupportedCurrenciesResponse.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_ConversionRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.ConversionRequest.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_ConversionResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.ConversionResponse.Parser.ParseFrom); static readonly grpc::Method __Method_GetSupportedCurrencies = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetSupportedCurrencies", __Marshaller_Empty, __Marshaller_GetSupportedCurrenciesResponse); static readonly grpc::Method __Method_Convert = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "Convert", __Marshaller_ConversionRequest, __Marshaller_ConversionResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Hipstershop.DemoReflection.Descriptor.Services[4]; } } /// Base class for server-side implementations of CurrencyService public abstract partial class CurrencyServiceBase { public virtual global::System.Threading.Tasks.Task GetSupportedCurrencies(global::Hipstershop.Empty request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } public virtual global::System.Threading.Tasks.Task Convert(global::Hipstershop.ConversionRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for CurrencyService public partial class CurrencyServiceClient : grpc::ClientBase { /// Creates a new client for CurrencyService /// The channel to use to make remote calls. public CurrencyServiceClient(grpc::Channel channel) : base(channel) { } /// Creates a new client for CurrencyService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. public CurrencyServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. protected CurrencyServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. protected CurrencyServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } public virtual global::Hipstershop.GetSupportedCurrenciesResponse GetSupportedCurrencies(global::Hipstershop.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetSupportedCurrencies(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual global::Hipstershop.GetSupportedCurrenciesResponse GetSupportedCurrencies(global::Hipstershop.Empty request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetSupportedCurrencies, null, options, request); } public virtual grpc::AsyncUnaryCall GetSupportedCurrenciesAsync(global::Hipstershop.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetSupportedCurrenciesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual grpc::AsyncUnaryCall GetSupportedCurrenciesAsync(global::Hipstershop.Empty request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetSupportedCurrencies, null, options, request); } public virtual global::Hipstershop.ConversionResponse Convert(global::Hipstershop.ConversionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return Convert(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual global::Hipstershop.ConversionResponse Convert(global::Hipstershop.ConversionRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_Convert, null, options, request); } public virtual grpc::AsyncUnaryCall ConvertAsync(global::Hipstershop.ConversionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return ConvertAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual grpc::AsyncUnaryCall ConvertAsync(global::Hipstershop.ConversionRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_Convert, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. protected override CurrencyServiceClient NewInstance(ClientBaseConfiguration configuration) { return new CurrencyServiceClient(configuration); } } /// Creates service definition that can be registered with a server /// An object implementing the server-side handling logic. public static grpc::ServerServiceDefinition BindService(CurrencyServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_GetSupportedCurrencies, serviceImpl.GetSupportedCurrencies) .AddMethod(__Method_Convert, serviceImpl.Convert).Build(); } } public static partial class PaymentService { static readonly string __ServiceName = "hipstershop.PaymentService"; static readonly grpc::Marshaller __Marshaller_ChargeRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.ChargeRequest.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_ChargeResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.ChargeResponse.Parser.ParseFrom); static readonly grpc::Method __Method_Charge = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "Charge", __Marshaller_ChargeRequest, __Marshaller_ChargeResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Hipstershop.DemoReflection.Descriptor.Services[5]; } } /// Base class for server-side implementations of PaymentService public abstract partial class PaymentServiceBase { public virtual global::System.Threading.Tasks.Task Charge(global::Hipstershop.ChargeRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for PaymentService public partial class PaymentServiceClient : grpc::ClientBase { /// Creates a new client for PaymentService /// The channel to use to make remote calls. public PaymentServiceClient(grpc::Channel channel) : base(channel) { } /// Creates a new client for PaymentService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. public PaymentServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. protected PaymentServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. protected PaymentServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } public virtual global::Hipstershop.ChargeResponse Charge(global::Hipstershop.ChargeRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return Charge(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual global::Hipstershop.ChargeResponse Charge(global::Hipstershop.ChargeRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_Charge, null, options, request); } public virtual grpc::AsyncUnaryCall ChargeAsync(global::Hipstershop.ChargeRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return ChargeAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual grpc::AsyncUnaryCall ChargeAsync(global::Hipstershop.ChargeRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_Charge, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. protected override PaymentServiceClient NewInstance(ClientBaseConfiguration configuration) { return new PaymentServiceClient(configuration); } } /// Creates service definition that can be registered with a server /// An object implementing the server-side handling logic. public static grpc::ServerServiceDefinition BindService(PaymentServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_Charge, serviceImpl.Charge).Build(); } } public static partial class EmailService { static readonly string __ServiceName = "hipstershop.EmailService"; static readonly grpc::Marshaller __Marshaller_SendOrderConfirmationRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.SendOrderConfirmationRequest.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.Empty.Parser.ParseFrom); static readonly grpc::Method __Method_SendOrderConfirmation = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "SendOrderConfirmation", __Marshaller_SendOrderConfirmationRequest, __Marshaller_Empty); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Hipstershop.DemoReflection.Descriptor.Services[6]; } } /// Base class for server-side implementations of EmailService public abstract partial class EmailServiceBase { public virtual global::System.Threading.Tasks.Task SendOrderConfirmation(global::Hipstershop.SendOrderConfirmationRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for EmailService public partial class EmailServiceClient : grpc::ClientBase { /// Creates a new client for EmailService /// The channel to use to make remote calls. public EmailServiceClient(grpc::Channel channel) : base(channel) { } /// Creates a new client for EmailService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. public EmailServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. protected EmailServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. protected EmailServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } public virtual global::Hipstershop.Empty SendOrderConfirmation(global::Hipstershop.SendOrderConfirmationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return SendOrderConfirmation(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual global::Hipstershop.Empty SendOrderConfirmation(global::Hipstershop.SendOrderConfirmationRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_SendOrderConfirmation, null, options, request); } public virtual grpc::AsyncUnaryCall SendOrderConfirmationAsync(global::Hipstershop.SendOrderConfirmationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return SendOrderConfirmationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual grpc::AsyncUnaryCall SendOrderConfirmationAsync(global::Hipstershop.SendOrderConfirmationRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_SendOrderConfirmation, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. protected override EmailServiceClient NewInstance(ClientBaseConfiguration configuration) { return new EmailServiceClient(configuration); } } /// Creates service definition that can be registered with a server /// An object implementing the server-side handling logic. public static grpc::ServerServiceDefinition BindService(EmailServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_SendOrderConfirmation, serviceImpl.SendOrderConfirmation).Build(); } } public static partial class CheckoutService { static readonly string __ServiceName = "hipstershop.CheckoutService"; static readonly grpc::Marshaller __Marshaller_CreateOrderRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.CreateOrderRequest.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_CreateOrderResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.CreateOrderResponse.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_PlaceOrderRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.PlaceOrderRequest.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_PlaceOrderResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Hipstershop.PlaceOrderResponse.Parser.ParseFrom); static readonly grpc::Method __Method_CreateOrder = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "CreateOrder", __Marshaller_CreateOrderRequest, __Marshaller_CreateOrderResponse); static readonly grpc::Method __Method_PlaceOrder = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PlaceOrder", __Marshaller_PlaceOrderRequest, __Marshaller_PlaceOrderResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Hipstershop.DemoReflection.Descriptor.Services[7]; } } /// Base class for server-side implementations of CheckoutService public abstract partial class CheckoutServiceBase { public virtual global::System.Threading.Tasks.Task CreateOrder(global::Hipstershop.CreateOrderRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } public virtual global::System.Threading.Tasks.Task PlaceOrder(global::Hipstershop.PlaceOrderRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for CheckoutService public partial class CheckoutServiceClient : grpc::ClientBase { /// Creates a new client for CheckoutService /// The channel to use to make remote calls. public CheckoutServiceClient(grpc::Channel channel) : base(channel) { } /// Creates a new client for CheckoutService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. public CheckoutServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. protected CheckoutServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. protected CheckoutServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } public virtual global::Hipstershop.CreateOrderResponse CreateOrder(global::Hipstershop.CreateOrderRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return CreateOrder(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual global::Hipstershop.CreateOrderResponse CreateOrder(global::Hipstershop.CreateOrderRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_CreateOrder, null, options, request); } public virtual grpc::AsyncUnaryCall CreateOrderAsync(global::Hipstershop.CreateOrderRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return CreateOrderAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual grpc::AsyncUnaryCall CreateOrderAsync(global::Hipstershop.CreateOrderRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_CreateOrder, null, options, request); } public virtual global::Hipstershop.PlaceOrderResponse PlaceOrder(global::Hipstershop.PlaceOrderRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PlaceOrder(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual global::Hipstershop.PlaceOrderResponse PlaceOrder(global::Hipstershop.PlaceOrderRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PlaceOrder, null, options, request); } public virtual grpc::AsyncUnaryCall PlaceOrderAsync(global::Hipstershop.PlaceOrderRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PlaceOrderAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual grpc::AsyncUnaryCall PlaceOrderAsync(global::Hipstershop.PlaceOrderRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PlaceOrder, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. protected override CheckoutServiceClient NewInstance(ClientBaseConfiguration configuration) { return new CheckoutServiceClient(configuration); } } /// Creates service definition that can be registered with a server /// An object implementing the server-side handling logic. public static grpc::ServerServiceDefinition BindService(CheckoutServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_CreateOrder, serviceImpl.CreateOrder) .AddMethod(__Method_PlaceOrder, serviceImpl.PlaceOrder).Build(); } } } #endregion