mirror of https://github.com/pulumi/pulumi.git
141 lines
7.1 KiB
C#
141 lines
7.1 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: engine.proto
|
|
// </auto-generated>
|
|
// Original file comments:
|
|
// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
|
|
//
|
|
#pragma warning disable 1591
|
|
#region Designer generated code
|
|
|
|
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using grpc = global::Grpc.Core;
|
|
|
|
namespace Pulumirpc {
|
|
/// <summary>
|
|
/// Engine is an interface into the core engine responsible for orchestrating resource operations.
|
|
/// </summary>
|
|
public static partial class Engine
|
|
{
|
|
static readonly string __ServiceName = "pulumirpc.Engine";
|
|
|
|
static readonly grpc::Marshaller<global::Pulumirpc.LogRequest> __Marshaller_LogRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Pulumirpc.LogRequest.Parser.ParseFrom);
|
|
static readonly grpc::Marshaller<global::Google.Protobuf.WellKnownTypes.Empty> __Marshaller_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.Empty.Parser.ParseFrom);
|
|
|
|
static readonly grpc::Method<global::Pulumirpc.LogRequest, global::Google.Protobuf.WellKnownTypes.Empty> __Method_Log = new grpc::Method<global::Pulumirpc.LogRequest, global::Google.Protobuf.WellKnownTypes.Empty>(
|
|
grpc::MethodType.Unary,
|
|
__ServiceName,
|
|
"Log",
|
|
__Marshaller_LogRequest,
|
|
__Marshaller_Empty);
|
|
|
|
/// <summary>Service descriptor</summary>
|
|
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
|
|
{
|
|
get { return global::Pulumirpc.EngineReflection.Descriptor.Services[0]; }
|
|
}
|
|
|
|
/// <summary>Base class for server-side implementations of Engine</summary>
|
|
public abstract partial class EngineBase
|
|
{
|
|
/// <summary>
|
|
/// Log logs a global message in the engine, including errors and warnings.
|
|
/// </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>
|
|
public virtual global::System.Threading.Tasks.Task<global::Google.Protobuf.WellKnownTypes.Empty> Log(global::Pulumirpc.LogRequest request, grpc::ServerCallContext context)
|
|
{
|
|
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
|
|
}
|
|
|
|
}
|
|
|
|
/// <summary>Client for Engine</summary>
|
|
public partial class EngineClient : grpc::ClientBase<EngineClient>
|
|
{
|
|
/// <summary>Creates a new client for Engine</summary>
|
|
/// <param name="channel">The channel to use to make remote calls.</param>
|
|
public EngineClient(grpc::Channel channel) : base(channel)
|
|
{
|
|
}
|
|
/// <summary>Creates a new client for Engine that uses a custom <c>CallInvoker</c>.</summary>
|
|
/// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
|
|
public EngineClient(grpc::CallInvoker callInvoker) : base(callInvoker)
|
|
{
|
|
}
|
|
/// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
|
|
protected EngineClient() : base()
|
|
{
|
|
}
|
|
/// <summary>Protected constructor to allow creation of configured clients.</summary>
|
|
/// <param name="configuration">The client configuration.</param>
|
|
protected EngineClient(ClientBaseConfiguration configuration) : base(configuration)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Log logs a global message in the engine, including errors and warnings.
|
|
/// </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>
|
|
public virtual global::Google.Protobuf.WellKnownTypes.Empty Log(global::Pulumirpc.LogRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
|
|
{
|
|
return Log(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// Log logs a global message in the engine, including errors and warnings.
|
|
/// </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>
|
|
public virtual global::Google.Protobuf.WellKnownTypes.Empty Log(global::Pulumirpc.LogRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.BlockingUnaryCall(__Method_Log, null, options, request);
|
|
}
|
|
/// <summary>
|
|
/// Log logs a global message in the engine, including errors and warnings.
|
|
/// </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>
|
|
public virtual grpc::AsyncUnaryCall<global::Google.Protobuf.WellKnownTypes.Empty> LogAsync(global::Pulumirpc.LogRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
|
|
{
|
|
return LogAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// Log logs a global message in the engine, including errors and warnings.
|
|
/// </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>
|
|
public virtual grpc::AsyncUnaryCall<global::Google.Protobuf.WellKnownTypes.Empty> LogAsync(global::Pulumirpc.LogRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.AsyncUnaryCall(__Method_Log, null, options, request);
|
|
}
|
|
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
|
|
protected override EngineClient NewInstance(ClientBaseConfiguration configuration)
|
|
{
|
|
return new EngineClient(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>
|
|
public static grpc::ServerServiceDefinition BindService(EngineBase serviceImpl)
|
|
{
|
|
return grpc::ServerServiceDefinition.CreateBuilder()
|
|
.AddMethod(__Method_Log, serviceImpl.Log).Build();
|
|
}
|
|
|
|
}
|
|
}
|
|
#endregion
|