mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-05-07 03:18:25 +00:00
485 lines
34 KiB
C#
Vendored
485 lines
34 KiB
C#
Vendored
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: api/device_profile_template.proto
|
|
// </auto-generated>
|
|
#pragma warning disable 0414, 1591, 8981
|
|
#region Designer generated code
|
|
|
|
using grpc = global::Grpc.Core;
|
|
|
|
namespace Chirpstack.Api {
|
|
/// <summary>
|
|
/// DeviceProfileTemplateService is the service providing API methods for managing device-profile templates.
|
|
/// </summary>
|
|
public static partial class DeviceProfileTemplateService
|
|
{
|
|
static readonly string __ServiceName = "api.DeviceProfileTemplateService";
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context)
|
|
{
|
|
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
|
|
if (message is global::Google.Protobuf.IBufferMessage)
|
|
{
|
|
context.SetPayloadLength(message.CalculateSize());
|
|
global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter());
|
|
context.Complete();
|
|
return;
|
|
}
|
|
#endif
|
|
context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message));
|
|
}
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
static class __Helper_MessageCache<T>
|
|
{
|
|
public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T));
|
|
}
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser<T> parser) where T : global::Google.Protobuf.IMessage<T>
|
|
{
|
|
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
|
|
if (__Helper_MessageCache<T>.IsBufferMessage)
|
|
{
|
|
return parser.ParseFrom(context.PayloadAsReadOnlySequence());
|
|
}
|
|
#endif
|
|
return parser.ParseFrom(context.PayloadAsNewBuffer());
|
|
}
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
static readonly grpc::Marshaller<global::Chirpstack.Api.CreateDeviceProfileTemplateRequest> __Marshaller_api_CreateDeviceProfileTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateDeviceProfileTemplateRequest.Parser));
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
static readonly grpc::Marshaller<global::Google.Protobuf.WellKnownTypes.Empty> __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser));
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
static readonly grpc::Marshaller<global::Chirpstack.Api.GetDeviceProfileTemplateRequest> __Marshaller_api_GetDeviceProfileTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceProfileTemplateRequest.Parser));
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
static readonly grpc::Marshaller<global::Chirpstack.Api.GetDeviceProfileTemplateResponse> __Marshaller_api_GetDeviceProfileTemplateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceProfileTemplateResponse.Parser));
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
static readonly grpc::Marshaller<global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest> __Marshaller_api_UpdateDeviceProfileTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest.Parser));
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
static readonly grpc::Marshaller<global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest> __Marshaller_api_DeleteDeviceProfileTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest.Parser));
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
static readonly grpc::Marshaller<global::Chirpstack.Api.ListDeviceProfileTemplatesRequest> __Marshaller_api_ListDeviceProfileTemplatesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListDeviceProfileTemplatesRequest.Parser));
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
static readonly grpc::Marshaller<global::Chirpstack.Api.ListDeviceProfileTemplatesResponse> __Marshaller_api_ListDeviceProfileTemplatesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListDeviceProfileTemplatesResponse.Parser));
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
static readonly grpc::Method<global::Chirpstack.Api.CreateDeviceProfileTemplateRequest, global::Google.Protobuf.WellKnownTypes.Empty> __Method_Create = new grpc::Method<global::Chirpstack.Api.CreateDeviceProfileTemplateRequest, global::Google.Protobuf.WellKnownTypes.Empty>(
|
|
grpc::MethodType.Unary,
|
|
__ServiceName,
|
|
"Create",
|
|
__Marshaller_api_CreateDeviceProfileTemplateRequest,
|
|
__Marshaller_google_protobuf_Empty);
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
static readonly grpc::Method<global::Chirpstack.Api.GetDeviceProfileTemplateRequest, global::Chirpstack.Api.GetDeviceProfileTemplateResponse> __Method_Get = new grpc::Method<global::Chirpstack.Api.GetDeviceProfileTemplateRequest, global::Chirpstack.Api.GetDeviceProfileTemplateResponse>(
|
|
grpc::MethodType.Unary,
|
|
__ServiceName,
|
|
"Get",
|
|
__Marshaller_api_GetDeviceProfileTemplateRequest,
|
|
__Marshaller_api_GetDeviceProfileTemplateResponse);
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
static readonly grpc::Method<global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest, global::Google.Protobuf.WellKnownTypes.Empty> __Method_Update = new grpc::Method<global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest, global::Google.Protobuf.WellKnownTypes.Empty>(
|
|
grpc::MethodType.Unary,
|
|
__ServiceName,
|
|
"Update",
|
|
__Marshaller_api_UpdateDeviceProfileTemplateRequest,
|
|
__Marshaller_google_protobuf_Empty);
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
static readonly grpc::Method<global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest, global::Google.Protobuf.WellKnownTypes.Empty> __Method_Delete = new grpc::Method<global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest, global::Google.Protobuf.WellKnownTypes.Empty>(
|
|
grpc::MethodType.Unary,
|
|
__ServiceName,
|
|
"Delete",
|
|
__Marshaller_api_DeleteDeviceProfileTemplateRequest,
|
|
__Marshaller_google_protobuf_Empty);
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
static readonly grpc::Method<global::Chirpstack.Api.ListDeviceProfileTemplatesRequest, global::Chirpstack.Api.ListDeviceProfileTemplatesResponse> __Method_List = new grpc::Method<global::Chirpstack.Api.ListDeviceProfileTemplatesRequest, global::Chirpstack.Api.ListDeviceProfileTemplatesResponse>(
|
|
grpc::MethodType.Unary,
|
|
__ServiceName,
|
|
"List",
|
|
__Marshaller_api_ListDeviceProfileTemplatesRequest,
|
|
__Marshaller_api_ListDeviceProfileTemplatesResponse);
|
|
|
|
/// <summary>Service descriptor</summary>
|
|
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
|
|
{
|
|
get { return global::Chirpstack.Api.DeviceProfileTemplateReflection.Descriptor.Services[0]; }
|
|
}
|
|
|
|
/// <summary>Base class for server-side implementations of DeviceProfileTemplateService</summary>
|
|
[grpc::BindServiceMethod(typeof(DeviceProfileTemplateService), "BindService")]
|
|
public abstract partial class DeviceProfileTemplateServiceBase
|
|
{
|
|
/// <summary>
|
|
/// Create the given device-profile template.
|
|
/// </summary>
|
|
/// <param name="request">The request received from the client.</param>
|
|
/// <param name="context">The context of the server-side call handler being invoked.</param>
|
|
/// <returns>The response to send back to the client (wrapped by a task).</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual global::System.Threading.Tasks.Task<global::Google.Protobuf.WellKnownTypes.Empty> Create(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest request, grpc::ServerCallContext context)
|
|
{
|
|
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get the device-profile template for the given ID.
|
|
/// </summary>
|
|
/// <param name="request">The request received from the client.</param>
|
|
/// <param name="context">The context of the server-side call handler being invoked.</param>
|
|
/// <returns>The response to send back to the client (wrapped by a task).</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual global::System.Threading.Tasks.Task<global::Chirpstack.Api.GetDeviceProfileTemplateResponse> Get(global::Chirpstack.Api.GetDeviceProfileTemplateRequest request, grpc::ServerCallContext context)
|
|
{
|
|
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
|
|
}
|
|
|
|
/// <summary>
|
|
/// Update the given device-profile template.
|
|
/// </summary>
|
|
/// <param name="request">The request received from the client.</param>
|
|
/// <param name="context">The context of the server-side call handler being invoked.</param>
|
|
/// <returns>The response to send back to the client (wrapped by a task).</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual global::System.Threading.Tasks.Task<global::Google.Protobuf.WellKnownTypes.Empty> Update(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest request, grpc::ServerCallContext context)
|
|
{
|
|
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
|
|
}
|
|
|
|
/// <summary>
|
|
/// Delete the device-profile template with the given ID.
|
|
/// </summary>
|
|
/// <param name="request">The request received from the client.</param>
|
|
/// <param name="context">The context of the server-side call handler being invoked.</param>
|
|
/// <returns>The response to send back to the client (wrapped by a task).</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual global::System.Threading.Tasks.Task<global::Google.Protobuf.WellKnownTypes.Empty> Delete(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest request, grpc::ServerCallContext context)
|
|
{
|
|
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
|
|
}
|
|
|
|
/// <summary>
|
|
/// List the available device-profile templates.
|
|
/// </summary>
|
|
/// <param name="request">The request received from the client.</param>
|
|
/// <param name="context">The context of the server-side call handler being invoked.</param>
|
|
/// <returns>The response to send back to the client (wrapped by a task).</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual global::System.Threading.Tasks.Task<global::Chirpstack.Api.ListDeviceProfileTemplatesResponse> List(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest request, grpc::ServerCallContext context)
|
|
{
|
|
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
|
|
}
|
|
|
|
}
|
|
|
|
/// <summary>Client for DeviceProfileTemplateService</summary>
|
|
public partial class DeviceProfileTemplateServiceClient : grpc::ClientBase<DeviceProfileTemplateServiceClient>
|
|
{
|
|
/// <summary>Creates a new client for DeviceProfileTemplateService</summary>
|
|
/// <param name="channel">The channel to use to make remote calls.</param>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public DeviceProfileTemplateServiceClient(grpc::ChannelBase channel) : base(channel)
|
|
{
|
|
}
|
|
/// <summary>Creates a new client for DeviceProfileTemplateService that uses a custom <c>CallInvoker</c>.</summary>
|
|
/// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public DeviceProfileTemplateServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
|
|
{
|
|
}
|
|
/// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
protected DeviceProfileTemplateServiceClient() : base()
|
|
{
|
|
}
|
|
/// <summary>Protected constructor to allow creation of configured clients.</summary>
|
|
/// <param name="configuration">The client configuration.</param>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
protected DeviceProfileTemplateServiceClient(ClientBaseConfiguration configuration) : base(configuration)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Create the given device-profile template.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
|
|
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
|
|
/// <param name="cancellationToken">An optional token for canceling the call.</param>
|
|
/// <returns>The response received from the server.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual global::Google.Protobuf.WellKnownTypes.Empty Create(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
|
|
{
|
|
return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// Create the given device-profile template.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="options">The options for the call.</param>
|
|
/// <returns>The response received from the server.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual global::Google.Protobuf.WellKnownTypes.Empty Create(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request);
|
|
}
|
|
/// <summary>
|
|
/// Create the given device-profile template.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
|
|
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
|
|
/// <param name="cancellationToken">An optional token for canceling the call.</param>
|
|
/// <returns>The call object.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual grpc::AsyncUnaryCall<global::Google.Protobuf.WellKnownTypes.Empty> CreateAsync(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
|
|
{
|
|
return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// Create the given device-profile template.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="options">The options for the call.</param>
|
|
/// <returns>The call object.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual grpc::AsyncUnaryCall<global::Google.Protobuf.WellKnownTypes.Empty> CreateAsync(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request);
|
|
}
|
|
/// <summary>
|
|
/// Get the device-profile template for the given ID.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
|
|
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
|
|
/// <param name="cancellationToken">An optional token for canceling the call.</param>
|
|
/// <returns>The response received from the server.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual global::Chirpstack.Api.GetDeviceProfileTemplateResponse Get(global::Chirpstack.Api.GetDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
|
|
{
|
|
return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// Get the device-profile template for the given ID.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="options">The options for the call.</param>
|
|
/// <returns>The response received from the server.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual global::Chirpstack.Api.GetDeviceProfileTemplateResponse Get(global::Chirpstack.Api.GetDeviceProfileTemplateRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request);
|
|
}
|
|
/// <summary>
|
|
/// Get the device-profile template for the given ID.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
|
|
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
|
|
/// <param name="cancellationToken">An optional token for canceling the call.</param>
|
|
/// <returns>The call object.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual grpc::AsyncUnaryCall<global::Chirpstack.Api.GetDeviceProfileTemplateResponse> GetAsync(global::Chirpstack.Api.GetDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
|
|
{
|
|
return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// Get the device-profile template for the given ID.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="options">The options for the call.</param>
|
|
/// <returns>The call object.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual grpc::AsyncUnaryCall<global::Chirpstack.Api.GetDeviceProfileTemplateResponse> GetAsync(global::Chirpstack.Api.GetDeviceProfileTemplateRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request);
|
|
}
|
|
/// <summary>
|
|
/// Update the given device-profile template.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
|
|
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
|
|
/// <param name="cancellationToken">An optional token for canceling the call.</param>
|
|
/// <returns>The response received from the server.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
|
|
{
|
|
return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// Update the given device-profile template.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="options">The options for the call.</param>
|
|
/// <returns>The response received from the server.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request);
|
|
}
|
|
/// <summary>
|
|
/// Update the given device-profile template.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
|
|
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
|
|
/// <param name="cancellationToken">An optional token for canceling the call.</param>
|
|
/// <returns>The call object.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual grpc::AsyncUnaryCall<global::Google.Protobuf.WellKnownTypes.Empty> UpdateAsync(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
|
|
{
|
|
return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// Update the given device-profile template.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="options">The options for the call.</param>
|
|
/// <returns>The call object.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual grpc::AsyncUnaryCall<global::Google.Protobuf.WellKnownTypes.Empty> UpdateAsync(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request);
|
|
}
|
|
/// <summary>
|
|
/// Delete the device-profile template with the given ID.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
|
|
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
|
|
/// <param name="cancellationToken">An optional token for canceling the call.</param>
|
|
/// <returns>The response received from the server.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
|
|
{
|
|
return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// Delete the device-profile template with the given ID.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="options">The options for the call.</param>
|
|
/// <returns>The response received from the server.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request);
|
|
}
|
|
/// <summary>
|
|
/// Delete the device-profile template with the given ID.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
|
|
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
|
|
/// <param name="cancellationToken">An optional token for canceling the call.</param>
|
|
/// <returns>The call object.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual grpc::AsyncUnaryCall<global::Google.Protobuf.WellKnownTypes.Empty> DeleteAsync(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
|
|
{
|
|
return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// Delete the device-profile template with the given ID.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="options">The options for the call.</param>
|
|
/// <returns>The call object.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual grpc::AsyncUnaryCall<global::Google.Protobuf.WellKnownTypes.Empty> DeleteAsync(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request);
|
|
}
|
|
/// <summary>
|
|
/// List the available device-profile templates.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
|
|
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
|
|
/// <param name="cancellationToken">An optional token for canceling the call.</param>
|
|
/// <returns>The response received from the server.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual global::Chirpstack.Api.ListDeviceProfileTemplatesResponse List(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
|
|
{
|
|
return List(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// List the available device-profile templates.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="options">The options for the call.</param>
|
|
/// <returns>The response received from the server.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual global::Chirpstack.Api.ListDeviceProfileTemplatesResponse List(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request);
|
|
}
|
|
/// <summary>
|
|
/// List the available device-profile templates.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
|
|
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
|
|
/// <param name="cancellationToken">An optional token for canceling the call.</param>
|
|
/// <returns>The call object.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual grpc::AsyncUnaryCall<global::Chirpstack.Api.ListDeviceProfileTemplatesResponse> ListAsync(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
|
|
{
|
|
return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// List the available device-profile templates.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="options">The options for the call.</param>
|
|
/// <returns>The call object.</returns>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public virtual grpc::AsyncUnaryCall<global::Chirpstack.Api.ListDeviceProfileTemplatesResponse> ListAsync(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request);
|
|
}
|
|
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
protected override DeviceProfileTemplateServiceClient NewInstance(ClientBaseConfiguration configuration)
|
|
{
|
|
return new DeviceProfileTemplateServiceClient(configuration);
|
|
}
|
|
}
|
|
|
|
/// <summary>Creates service definition that can be registered with a server</summary>
|
|
/// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public static grpc::ServerServiceDefinition BindService(DeviceProfileTemplateServiceBase serviceImpl)
|
|
{
|
|
return grpc::ServerServiceDefinition.CreateBuilder()
|
|
.AddMethod(__Method_Create, serviceImpl.Create)
|
|
.AddMethod(__Method_Get, serviceImpl.Get)
|
|
.AddMethod(__Method_Update, serviceImpl.Update)
|
|
.AddMethod(__Method_Delete, serviceImpl.Delete)
|
|
.AddMethod(__Method_List, serviceImpl.List).Build();
|
|
}
|
|
|
|
/// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
|
|
/// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
|
|
/// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
|
|
/// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
|
|
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
|
|
public static void BindService(grpc::ServiceBinderBase serviceBinder, DeviceProfileTemplateServiceBase serviceImpl)
|
|
{
|
|
serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Chirpstack.Api.CreateDeviceProfileTemplateRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.Create));
|
|
serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Chirpstack.Api.GetDeviceProfileTemplateRequest, global::Chirpstack.Api.GetDeviceProfileTemplateResponse>(serviceImpl.Get));
|
|
serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.Update));
|
|
serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.Delete));
|
|
serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Chirpstack.Api.ListDeviceProfileTemplatesRequest, global::Chirpstack.Api.ListDeviceProfileTemplatesResponse>(serviceImpl.List));
|
|
}
|
|
|
|
}
|
|
}
|
|
#endregion
|