479a2e6ad5
The RPC provider interface needs a way to convey back to the engine that a resource being read no longer exists. To do this, we'll return the ID property that was read back. If it is empty, it means the resource is gone. If it is non-empty, we expect it to match the input.
55 lines
1.8 KiB
Go
55 lines
1.8 KiB
Go
// Code generated by protoc-gen-go.
|
|
// source: errors.proto
|
|
// DO NOT EDIT!
|
|
|
|
package pulumirpc
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
type ErrorCause struct {
|
|
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
|
|
StackTrace string `protobuf:"bytes,2,opt,name=stackTrace" json:"stackTrace,omitempty"`
|
|
}
|
|
|
|
func (m *ErrorCause) Reset() { *m = ErrorCause{} }
|
|
func (m *ErrorCause) String() string { return proto.CompactTextString(m) }
|
|
func (*ErrorCause) ProtoMessage() {}
|
|
func (*ErrorCause) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
|
|
|
|
func (m *ErrorCause) GetMessage() string {
|
|
if m != nil {
|
|
return m.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ErrorCause) GetStackTrace() string {
|
|
if m != nil {
|
|
return m.StackTrace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*ErrorCause)(nil), "pulumirpc.ErrorCause")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("errors.proto", fileDescriptor2) }
|
|
|
|
var fileDescriptor2 = []byte{
|
|
// 106 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x49, 0x2d, 0x2a, 0xca,
|
|
0x2f, 0x2a, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2c, 0x28, 0xcd, 0x29, 0xcd, 0xcd,
|
|
0x2c, 0x2a, 0x48, 0x56, 0x72, 0xe3, 0xe2, 0x72, 0x05, 0x49, 0x39, 0x27, 0x96, 0x16, 0xa7, 0x0a,
|
|
0x49, 0x70, 0xb1, 0xe7, 0xa6, 0x16, 0x17, 0x27, 0xa6, 0xa7, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70,
|
|
0x06, 0xc1, 0xb8, 0x42, 0x72, 0x5c, 0x5c, 0xc5, 0x25, 0x89, 0xc9, 0xd9, 0x21, 0x45, 0x89, 0xc9,
|
|
0xa9, 0x12, 0x4c, 0x60, 0x49, 0x24, 0x91, 0x24, 0x36, 0xb0, 0xc9, 0xc6, 0x80, 0x00, 0x00, 0x00,
|
|
0xff, 0xff, 0xbe, 0x60, 0x19, 0xf9, 0x69, 0x00, 0x00, 0x00,
|
|
}
|