pulumi/sdk/proto/go/languages.pb.go
joeduffy f2d53459eb Add the notion of stable states
If a resource's planning operation is to do nothing, we can safely
assume that all of its properties are stable.  This can be used during
planning to avoid cascading updates that we know will never happen.
2017-09-05 10:01:00 -07:00

335 lines
11 KiB
Go

// Code generated by protoc-gen-go.
// source: languages.proto
// DO NOT EDIT!
package lumirpc
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/golang/protobuf/ptypes/struct"
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
// RunRequest asks the interpreter to execute a program.
type RunRequest struct {
Pwd string `protobuf:"bytes,1,opt,name=pwd" json:"pwd,omitempty"`
Program string `protobuf:"bytes,2,opt,name=program" json:"program,omitempty"`
Args []string `protobuf:"bytes,3,rep,name=args" json:"args,omitempty"`
Config map[string]string `protobuf:"bytes,4,rep,name=config" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
DryRun bool `protobuf:"varint,5,opt,name=dryRun" json:"dryRun,omitempty"`
}
func (m *RunRequest) Reset() { *m = RunRequest{} }
func (m *RunRequest) String() string { return proto.CompactTextString(m) }
func (*RunRequest) ProtoMessage() {}
func (*RunRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
func (m *RunRequest) GetPwd() string {
if m != nil {
return m.Pwd
}
return ""
}
func (m *RunRequest) GetProgram() string {
if m != nil {
return m.Program
}
return ""
}
func (m *RunRequest) GetArgs() []string {
if m != nil {
return m.Args
}
return nil
}
func (m *RunRequest) GetConfig() map[string]string {
if m != nil {
return m.Config
}
return nil
}
func (m *RunRequest) GetDryRun() bool {
if m != nil {
return m.DryRun
}
return false
}
// RunResponse is the response back from the interpreter/source back to the monitor.
type RunResponse struct {
Error string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
}
func (m *RunResponse) Reset() { *m = RunResponse{} }
func (m *RunResponse) String() string { return proto.CompactTextString(m) }
func (*RunResponse) ProtoMessage() {}
func (*RunResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
func (m *RunResponse) GetError() string {
if m != nil {
return m.Error
}
return ""
}
// NewResourceRequest contains information about a resource object that was newly allocated.
type NewResourceRequest struct {
Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Object *google_protobuf.Struct `protobuf:"bytes,3,opt,name=object" json:"object,omitempty"`
}
func (m *NewResourceRequest) Reset() { *m = NewResourceRequest{} }
func (m *NewResourceRequest) String() string { return proto.CompactTextString(m) }
func (*NewResourceRequest) ProtoMessage() {}
func (*NewResourceRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
func (m *NewResourceRequest) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *NewResourceRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *NewResourceRequest) GetObject() *google_protobuf.Struct {
if m != nil {
return m.Object
}
return nil
}
// NewResourceResponse reflects back the properties initialized during creation, if applicable.
type NewResourceResponse struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
Urn string `protobuf:"bytes,2,opt,name=urn" json:"urn,omitempty"`
Object *google_protobuf.Struct `protobuf:"bytes,3,opt,name=object" json:"object,omitempty"`
Stable bool `protobuf:"varint,4,opt,name=stable" json:"stable,omitempty"`
}
func (m *NewResourceResponse) Reset() { *m = NewResourceResponse{} }
func (m *NewResourceResponse) String() string { return proto.CompactTextString(m) }
func (*NewResourceResponse) ProtoMessage() {}
func (*NewResourceResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
func (m *NewResourceResponse) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *NewResourceResponse) GetUrn() string {
if m != nil {
return m.Urn
}
return ""
}
func (m *NewResourceResponse) GetObject() *google_protobuf.Struct {
if m != nil {
return m.Object
}
return nil
}
func (m *NewResourceResponse) GetStable() bool {
if m != nil {
return m.Stable
}
return false
}
func init() {
proto.RegisterType((*RunRequest)(nil), "lumirpc.RunRequest")
proto.RegisterType((*RunResponse)(nil), "lumirpc.RunResponse")
proto.RegisterType((*NewResourceRequest)(nil), "lumirpc.NewResourceRequest")
proto.RegisterType((*NewResourceResponse)(nil), "lumirpc.NewResourceResponse")
}
// 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 LanguageRuntime service
type LanguageRuntimeClient interface {
Run(ctx context.Context, in *RunRequest, opts ...grpc.CallOption) (*RunResponse, error)
}
type languageRuntimeClient struct {
cc *grpc.ClientConn
}
func NewLanguageRuntimeClient(cc *grpc.ClientConn) LanguageRuntimeClient {
return &languageRuntimeClient{cc}
}
func (c *languageRuntimeClient) Run(ctx context.Context, in *RunRequest, opts ...grpc.CallOption) (*RunResponse, error) {
out := new(RunResponse)
err := grpc.Invoke(ctx, "/lumirpc.LanguageRuntime/Run", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for LanguageRuntime service
type LanguageRuntimeServer interface {
Run(context.Context, *RunRequest) (*RunResponse, error)
}
func RegisterLanguageRuntimeServer(s *grpc.Server, srv LanguageRuntimeServer) {
s.RegisterService(&_LanguageRuntime_serviceDesc, srv)
}
func _LanguageRuntime_Run_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RunRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LanguageRuntimeServer).Run(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/lumirpc.LanguageRuntime/Run",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LanguageRuntimeServer).Run(ctx, req.(*RunRequest))
}
return interceptor(ctx, in, info, handler)
}
var _LanguageRuntime_serviceDesc = grpc.ServiceDesc{
ServiceName: "lumirpc.LanguageRuntime",
HandlerType: (*LanguageRuntimeServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Run",
Handler: _LanguageRuntime_Run_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "languages.proto",
}
// Client API for ResourceMonitor service
type ResourceMonitorClient interface {
NewResource(ctx context.Context, in *NewResourceRequest, opts ...grpc.CallOption) (*NewResourceResponse, error)
}
type resourceMonitorClient struct {
cc *grpc.ClientConn
}
func NewResourceMonitorClient(cc *grpc.ClientConn) ResourceMonitorClient {
return &resourceMonitorClient{cc}
}
func (c *resourceMonitorClient) NewResource(ctx context.Context, in *NewResourceRequest, opts ...grpc.CallOption) (*NewResourceResponse, error) {
out := new(NewResourceResponse)
err := grpc.Invoke(ctx, "/lumirpc.ResourceMonitor/NewResource", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for ResourceMonitor service
type ResourceMonitorServer interface {
NewResource(context.Context, *NewResourceRequest) (*NewResourceResponse, error)
}
func RegisterResourceMonitorServer(s *grpc.Server, srv ResourceMonitorServer) {
s.RegisterService(&_ResourceMonitor_serviceDesc, srv)
}
func _ResourceMonitor_NewResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(NewResourceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ResourceMonitorServer).NewResource(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/lumirpc.ResourceMonitor/NewResource",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ResourceMonitorServer).NewResource(ctx, req.(*NewResourceRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ResourceMonitor_serviceDesc = grpc.ServiceDesc{
ServiceName: "lumirpc.ResourceMonitor",
HandlerType: (*ResourceMonitorServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "NewResource",
Handler: _ResourceMonitor_NewResource_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "languages.proto",
}
func init() { proto.RegisterFile("languages.proto", fileDescriptor2) }
var fileDescriptor2 = []byte{
// 397 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x52, 0x4d, 0x6f, 0x95, 0x40,
0x14, 0x95, 0x8f, 0x52, 0x7b, 0x49, 0x7c, 0x66, 0xda, 0xe8, 0x04, 0x9b, 0x48, 0x70, 0xc3, 0x8a,
0x97, 0xe0, 0xc2, 0x8f, 0xad, 0xe9, 0xc6, 0xa8, 0x8b, 0x71, 0xed, 0x02, 0x78, 0xb7, 0x04, 0x0b,
0x33, 0x38, 0x1f, 0x36, 0xec, 0xfc, 0x99, 0xfe, 0x1c, 0xc3, 0x30, 0xa3, 0x6d, 0x7c, 0x9b, 0xee,
0xce, 0xb9, 0x9c, 0xcb, 0x39, 0xf7, 0x00, 0xec, 0xc6, 0x86, 0xf7, 0xa6, 0xe9, 0x51, 0x55, 0xb3,
0x14, 0x5a, 0x90, 0xd3, 0xd1, 0x4c, 0x83, 0x9c, 0xbb, 0xec, 0xb2, 0x17, 0xa2, 0x1f, 0x71, 0x6f,
0xc7, 0xad, 0xb9, 0xde, 0x2b, 0x2d, 0x4d, 0xa7, 0x37, 0x59, 0xf1, 0x3b, 0x00, 0x60, 0x86, 0x33,
0xfc, 0x61, 0x50, 0x69, 0xf2, 0x14, 0xa2, 0xf9, 0xf6, 0x40, 0x83, 0x3c, 0x28, 0xcf, 0xd8, 0x0a,
0x09, 0x85, 0xd3, 0x59, 0x8a, 0x5e, 0x36, 0x13, 0x0d, 0xed, 0xd4, 0x53, 0x42, 0x20, 0x6e, 0x64,
0xaf, 0x68, 0x94, 0x47, 0xe5, 0x19, 0xb3, 0x98, 0xbc, 0x81, 0xa4, 0x13, 0xfc, 0x7a, 0xe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