pulumi/sdk/go/pkg/lumirpc/analyzer.pb.go
joeduffy ae92e68902 Return state as part of Create and Update¬
As part of the bridge bringup, I've discoverd that the property state
returned from Creates does *not* always equal the state that is then
read from calls to Get.  (I suspect this is a bug and that they should
be equivalent, but I doubt it's fruitfal to try and track down all
occurrences of this; I bet it's widespread).  To cope with this, we will
return state from Create and Update, instead of issuing a call to Get.
This was a design we considered to start with and frankly didn't have
a super strong reason to do it the current way, other than that it seemed
elegant to place all of the Get logic in one place.

Note that providers may choose to return nil, in which case we will read
state from the provider in the usual Get style.
2017-07-21 14:00:29 -07:00

234 lines
7.9 KiB
Go

// Code generated by protoc-gen-go.
// source: analyzer.proto
// DO NOT EDIT!
/*
Package lumirpc is a generated protocol buffer package.
It is generated from these files:
analyzer.proto
engine.proto
provider.proto
It has these top-level messages:
AnalyzeRequest
AnalyzeResponse
AnalyzeFailure
LogRequest
ReadLocationRequest
ReadLocationsRequest
ReadLocationsResponse
CheckRequest
CheckResponse
CheckFailure
NameRequest
NameResponse
CreateRequest
CreateResponse
GetRequest
GetResponse
InspectChangeRequest
InspectChangeResponse
UpdateRequest
UpdateResponse
DeleteRequest
*/
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
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type AnalyzeRequest struct {
Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
Properties *google_protobuf.Struct `protobuf:"bytes,2,opt,name=properties" json:"properties,omitempty"`
Unknowns map[string]bool `protobuf:"bytes,3,rep,name=unknowns" json:"unknowns,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
}
func (m *AnalyzeRequest) Reset() { *m = AnalyzeRequest{} }
func (m *AnalyzeRequest) String() string { return proto.CompactTextString(m) }
func (*AnalyzeRequest) ProtoMessage() {}
func (*AnalyzeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *AnalyzeRequest) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *AnalyzeRequest) GetProperties() *google_protobuf.Struct {
if m != nil {
return m.Properties
}
return nil
}
func (m *AnalyzeRequest) GetUnknowns() map[string]bool {
if m != nil {
return m.Unknowns
}
return nil
}
type AnalyzeResponse struct {
Failures []*AnalyzeFailure `protobuf:"bytes,1,rep,name=failures" json:"failures,omitempty"`
}
func (m *AnalyzeResponse) Reset() { *m = AnalyzeResponse{} }
func (m *AnalyzeResponse) String() string { return proto.CompactTextString(m) }
func (*AnalyzeResponse) ProtoMessage() {}
func (*AnalyzeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *AnalyzeResponse) GetFailures() []*AnalyzeFailure {
if m != nil {
return m.Failures
}
return nil
}
type AnalyzeFailure struct {
Property string `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
Reason string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"`
}
func (m *AnalyzeFailure) Reset() { *m = AnalyzeFailure{} }
func (m *AnalyzeFailure) String() string { return proto.CompactTextString(m) }
func (*AnalyzeFailure) ProtoMessage() {}
func (*AnalyzeFailure) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *AnalyzeFailure) GetProperty() string {
if m != nil {
return m.Property
}
return ""
}
func (m *AnalyzeFailure) GetReason() string {
if m != nil {
return m.Reason
}
return ""
}
func init() {
proto.RegisterType((*AnalyzeRequest)(nil), "lumirpc.AnalyzeRequest")
proto.RegisterType((*AnalyzeResponse)(nil), "lumirpc.AnalyzeResponse")
proto.RegisterType((*AnalyzeFailure)(nil), "lumirpc.AnalyzeFailure")
}
// 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 Analyzer service
type AnalyzerClient interface {
// Analyze analyzes a single resource object, and returns any errors that it finds.
Analyze(ctx context.Context, in *AnalyzeRequest, opts ...grpc.CallOption) (*AnalyzeResponse, error)
}
type analyzerClient struct {
cc *grpc.ClientConn
}
func NewAnalyzerClient(cc *grpc.ClientConn) AnalyzerClient {
return &analyzerClient{cc}
}
func (c *analyzerClient) Analyze(ctx context.Context, in *AnalyzeRequest, opts ...grpc.CallOption) (*AnalyzeResponse, error) {
out := new(AnalyzeResponse)
err := grpc.Invoke(ctx, "/lumirpc.Analyzer/Analyze", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Analyzer service
type AnalyzerServer interface {
// Analyze analyzes a single resource object, and returns any errors that it finds.
Analyze(context.Context, *AnalyzeRequest) (*AnalyzeResponse, error)
}
func RegisterAnalyzerServer(s *grpc.Server, srv AnalyzerServer) {
s.RegisterService(&_Analyzer_serviceDesc, srv)
}
func _Analyzer_Analyze_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AnalyzeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AnalyzerServer).Analyze(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/lumirpc.Analyzer/Analyze",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AnalyzerServer).Analyze(ctx, req.(*AnalyzeRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Analyzer_serviceDesc = grpc.ServiceDesc{
ServiceName: "lumirpc.Analyzer",
HandlerType: (*AnalyzerServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Analyze",
Handler: _Analyzer_Analyze_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "analyzer.proto",
}
func init() { proto.RegisterFile("analyzer.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 301 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x90, 0xcf, 0x4a, 0xc3, 0x40,
0x10, 0xc6, 0x4d, 0xab, 0x6d, 0x3a, 0xc5, 0x2a, 0x83, 0xd8, 0x10, 0x3c, 0x94, 0x80, 0xd0, 0xd3,
0x16, 0xda, 0x83, 0xa2, 0x20, 0x14, 0xb4, 0x07, 0x8f, 0x2b, 0x3e, 0x40, 0x5a, 0xa6, 0x25, 0x34,
0xee, 0xc6, 0xfd, 0xa3, 0xc4, 0x77, 0xf5, 0x5d, 0xc4, 0xdd, 0x6d, 0xb0, 0x8a, 0xb7, 0x99, 0xfd,
0xbe, 0xfd, 0xe6, 0x37, 0x03, 0x83, 0x5c, 0xe4, 0x65, 0xfd, 0x41, 0x8a, 0x55, 0x4a, 0x1a, 0x89,
0xdd, 0xd2, 0xbe, 0x14, 0xaa, 0x5a, 0xa5, 0x17, 0x1b, 0x29, 0x37, 0x25, 0x4d, 0xdc, 0xf3, 0xd2,
0xae, 0x27, 0xda, 0x28, 0xbb, 0x32, 0xde, 0x96, 0x7d, 0x46, 0x30, 0x98, 0xfb, 0x9f, 0x9c, 0x5e,
0x2d, 0x69, 0x83, 0x08, 0x87, 0xa6, 0xae, 0x28, 0x89, 0x46, 0xd1, 0xb8, 0xc7, 0x5d, 0x8d, 0x57,
0x00, 0x95, 0x92, 0x15, 0x29, 0x53, 0x90, 0x4e, 0x5a, 0xa3, 0x68, 0xdc, 0x9f, 0x0e, 0x99, 0x4f,
0x66, 0xbb, 0x64, 0xf6, 0xe4, 0x92, 0xf9, 0x0f, 0x2b, 0xce, 0x21, 0xb6, 0x62, 0x2b, 0xe4, 0xbb,
0xd0, 0x49, 0x7b, 0xd4, 0x1e, 0xf7, 0xa7, 0x97, 0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