// Code generated by protoc-gen-go. DO NOT EDIT. // source: engine.proto package status import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import google_protobuf "github.com/golang/protobuf/ptypes/empty" import ( context "golang.org/x/net/context" grpc "google.golang.org/grpc" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // LogSeverity is the severity level of a log message. Errors are fatal; all others are informational. type LogSeverity int32 const ( LogSeverity_DEBUG LogSeverity = 0 LogSeverity_INFO LogSeverity = 1 LogSeverity_WARNING LogSeverity = 2 LogSeverity_ERROR LogSeverity = 3 ) var LogSeverity_name = map[int32]string{ 0: "DEBUG", 1: "INFO", 2: "WARNING", 3: "ERROR", } var LogSeverity_value = map[string]int32{ "DEBUG": 0, "INFO": 1, "WARNING": 2, "ERROR": 3, } func (x LogSeverity) String() string { return proto.EnumName(LogSeverity_name, int32(x)) } func (LogSeverity) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } type LogRequest struct { Severity LogSeverity `protobuf:"varint,1,opt,name=severity,enum=pulumirpc.LogSeverity" json:"severity,omitempty"` Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` Urn string `protobuf:"bytes,3,opt,name=urn" json:"urn,omitempty"` } func (m *LogRequest) Reset() { *m = LogRequest{} } func (m *LogRequest) String() string { return proto.CompactTextString(m) } func (*LogRequest) ProtoMessage() {} func (*LogRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } func (m *LogRequest) GetSeverity() LogSeverity { if m != nil { return m.Severity } return LogSeverity_DEBUG } func (m *LogRequest) GetMessage() string { if m != nil { return m.Message } return "" } func (m *LogRequest) GetUrn() string { if m != nil { return m.Urn } return "" } func init() { proto.RegisterType((*LogRequest)(nil), "pulumirpc.LogRequest") proto.RegisterEnum("pulumirpc.LogSeverity", LogSeverity_name, LogSeverity_value) } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 // Client API for Engine service type EngineClient interface { // Log logs a global message in the engine, including errors and warnings. Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) } type engineClient struct { cc *grpc.ClientConn } func NewEngineClient(cc *grpc.ClientConn) EngineClient { return &engineClient{cc} } func (c *engineClient) Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) { out := new(google_protobuf.Empty) err := grpc.Invoke(ctx, "/pulumirpc.Engine/Log", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } // Server API for Engine service type EngineServer interface { // Log logs a global message in the engine, including errors and warnings. Log(context.Context, *LogRequest) (*google_protobuf.Empty, error) } func RegisterEngineServer(s *grpc.Server, srv EngineServer) { s.RegisterService(&_Engine_serviceDesc, srv) } func _Engine_Log_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(LogRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EngineServer).Log(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pulumirpc.Engine/Log", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EngineServer).Log(ctx, req.(*LogRequest)) } return interceptor(ctx, in, info, handler) } var _Engine_serviceDesc = grpc.ServiceDesc{ ServiceName: "pulumirpc.Engine", HandlerType: (*EngineServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Log", Handler: _Engine_Log_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "engine.proto", } func init() { proto.RegisterFile("engine.proto", fileDescriptor1) } var fileDescriptor1 = []byte{ // 239 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0x4b, 0x4b, 0xc3, 0x40, 0x14, 0x85, 0x9b, 0x46, 0xdb, 0xe6, 0x56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