terraform/plans/internal/planproto/planfile.pb.go

881 lines
32 KiB
Go
Raw Normal View History

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: planfile.proto
package planproto // import "github.com/hashicorp/terraform/plans/internal/planproto"
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
// 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
// Action describes the type of action planned for an object.
// Not all action values are valid for all object types.
type Action int32
const (
Action_NOOP Action = 0
Action_CREATE Action = 1
Action_READ Action = 2
Action_UPDATE Action = 3
Action_REPLACE Action = 4
Action_DELETE Action = 5
)
var Action_name = map[int32]string{
0: "NOOP",
1: "CREATE",
2: "READ",
3: "UPDATE",
4: "REPLACE",
5: "DELETE",
}
var Action_value = map[string]int32{
"NOOP": 0,
"CREATE": 1,
"READ": 2,
"UPDATE": 3,
"REPLACE": 4,
"DELETE": 5,
}
func (x Action) String() string {
return proto.EnumName(Action_name, int32(x))
}
func (Action) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_planfile_8d966014b6720da2, []int{0}
}
type ResourceInstanceChange_ResourceMode int32
const (
ResourceInstanceChange_managed ResourceInstanceChange_ResourceMode = 0
ResourceInstanceChange_data ResourceInstanceChange_ResourceMode = 1
)
var ResourceInstanceChange_ResourceMode_name = map[int32]string{
0: "managed",
1: "data",
}
var ResourceInstanceChange_ResourceMode_value = map[string]int32{
"managed": 0,
"data": 1,
}
func (x ResourceInstanceChange_ResourceMode) String() string {
return proto.EnumName(ResourceInstanceChange_ResourceMode_name, int32(x))
}
func (ResourceInstanceChange_ResourceMode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_planfile_8d966014b6720da2, []int{2, 0}
}
// Plan is the root message type for the tfplan file
type Plan struct {
// Version is incremented whenever there is a breaking change to
// the serialization format. Programs reading serialized plans should
// verify that version is set to the expected value and abort processing
// if not. A breaking change is any change that may cause an older
// consumer to interpret the structure incorrectly. This number will
// not be incremented if an existing consumer can either safely ignore
// changes to the format or if an existing consumer would fail to process
// the file for another message- or field-specific reason.
Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
// The variables that were set when creating the plan. Each value is
// a msgpack serialization of an HCL value.
Variables map[string]*DynamicValue `protobuf:"bytes,2,rep,name=variables,proto3" json:"variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// An unordered set of proposed changes to resources throughout the
// configuration, including any nested modules. Use the address of
// each resource to determine which module it belongs to.
ResourceChanges []*ResourceInstanceChange `protobuf:"bytes,3,rep,name=resource_changes,json=resourceChanges,proto3" json:"resource_changes,omitempty"`
// An unordered set of proposed changes to outputs in the root module
// of the configuration. This set also includes "no action" changes for
// outputs that are not changing, as context for detecting inconsistencies
// at apply time.
OutputChanges []*OutputChange `protobuf:"bytes,4,rep,name=output_changes,json=outputChanges,proto3" json:"output_changes,omitempty"`
// The version string for the Terraform binary that created this plan.
TerraformVersion string `protobuf:"bytes,14,opt,name=terraform_version,json=terraformVersion,proto3" json:"terraform_version,omitempty"`
// SHA256 digests of all of the provider plugin binaries that were used
// in the creation of this plan.
ProviderHashes map[string]*Hash `protobuf:"bytes,15,rep,name=provider_hashes,json=providerHashes,proto3" json:"provider_hashes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Plan) Reset() { *m = Plan{} }
func (m *Plan) String() string { return proto.CompactTextString(m) }
func (*Plan) ProtoMessage() {}
func (*Plan) Descriptor() ([]byte, []int) {
return fileDescriptor_planfile_8d966014b6720da2, []int{0}
}
func (m *Plan) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Plan.Unmarshal(m, b)
}
func (m *Plan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Plan.Marshal(b, m, deterministic)
}
func (dst *Plan) XXX_Merge(src proto.Message) {
xxx_messageInfo_Plan.Merge(dst, src)
}
func (m *Plan) XXX_Size() int {
return xxx_messageInfo_Plan.Size(m)
}
func (m *Plan) XXX_DiscardUnknown() {
xxx_messageInfo_Plan.DiscardUnknown(m)
}
var xxx_messageInfo_Plan proto.InternalMessageInfo
func (m *Plan) GetVersion() uint64 {
if m != nil {
return m.Version
}
return 0
}
func (m *Plan) GetVariables() map[string]*DynamicValue {
if m != nil {
return m.Variables
}
return nil
}
func (m *Plan) GetResourceChanges() []*ResourceInstanceChange {
if m != nil {
return m.ResourceChanges
}
return nil
}
func (m *Plan) GetOutputChanges() []*OutputChange {
if m != nil {
return m.OutputChanges
}
return nil
}
func (m *Plan) GetTerraformVersion() string {
if m != nil {
return m.TerraformVersion
}
return ""
}
func (m *Plan) GetProviderHashes() map[string]*Hash {
if m != nil {
return m.ProviderHashes
}
return nil
}
// Change represents a change made to some object, transforming it from an old
// state to a new state.
type Change struct {
// Not all action values are valid for all object types. Consult
// the documentation for any message that embeds Change.
Action Action `protobuf:"varint,1,opt,name=action,proto3,enum=tfplan.Action" json:"action,omitempty"`
// msgpack-encoded HCL values involved in the change.
// - For update and replace, two values are provided that give the old and new values,
// respectively.
// - For create, one value is provided that gives the new value to be created
// - For delete, one value is provided that describes the value being deleted
// - For read, two values are provided that give the prior value for this object
// (or null, if no prior value exists) and the value that was or will be read,
// respectively.
// - For no-op, one value is provided that is left unmodified by this non-change.
Values []*DynamicValue `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Change) Reset() { *m = Change{} }
func (m *Change) String() string { return proto.CompactTextString(m) }
func (*Change) ProtoMessage() {}
func (*Change) Descriptor() ([]byte, []int) {
return fileDescriptor_planfile_8d966014b6720da2, []int{1}
}
func (m *Change) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Change.Unmarshal(m, b)
}
func (m *Change) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Change.Marshal(b, m, deterministic)
}
func (dst *Change) XXX_Merge(src proto.Message) {
xxx_messageInfo_Change.Merge(dst, src)
}
func (m *Change) XXX_Size() int {
return xxx_messageInfo_Change.Size(m)
}
func (m *Change) XXX_DiscardUnknown() {
xxx_messageInfo_Change.DiscardUnknown(m)
}
var xxx_messageInfo_Change proto.InternalMessageInfo
func (m *Change) GetAction() Action {
if m != nil {
return m.Action
}
return Action_NOOP
}
func (m *Change) GetValues() []*DynamicValue {
if m != nil {
return m.Values
}
return nil
}
type ResourceInstanceChange struct {
// module_path is an address to the module that defined this resource.
// module_path is omitted for resources in the root module. For descendent modules
// it is a string like module.foo.module.bar as would be seen at the beginning of a
// resource address. The format of this string is not yet frozen and so external
// callers should treat it as an opaque key for filtering purposes.
ModulePath string `protobuf:"bytes,1,opt,name=module_path,json=modulePath,proto3" json:"module_path,omitempty"`
// mode is the resource mode.
Mode ResourceInstanceChange_ResourceMode `protobuf:"varint,2,opt,name=mode,proto3,enum=tfplan.ResourceInstanceChange_ResourceMode" json:"mode,omitempty"`
// type is the resource type name, like "aws_instance".
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
// name is the logical name of the resource as defined in configuration.
// For example, in aws_instance.foo this would be "foo".
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// instance_key is either an integer index or a string key, depending on which iteration
// attributes ("count" or "for_each") are being used for this resource. If none
// are in use, this field is omitted.
//
// Types that are valid to be assigned to InstanceKey:
// *ResourceInstanceChange_Str
// *ResourceInstanceChange_Int
InstanceKey isResourceInstanceChange_InstanceKey `protobuf_oneof:"instance_key"`
// deposed_key, if set, indicates that this change applies to a deposed
// object for the indicated instance with the given deposed key. If not
// set, the change applies to the instance's current object.
DeposedKey string `protobuf:"bytes,7,opt,name=deposed_key,json=deposedKey,proto3" json:"deposed_key,omitempty"`
// provider is the address of the provider configuration that this change
// was planned with, and thus the configuration that must be used to
// apply it.
Provider string `protobuf:"bytes,8,opt,name=provider,proto3" json:"provider,omitempty"`
// Description of the proposed change. May use "create", "read", "update",
// "replace" and "delete" actions. "no-op" changes are not currently used here
// but consumers must accept and discard them to allow for future expansion.
Change *Change `protobuf:"bytes,9,opt,name=change,proto3" json:"change,omitempty"`
// msgpack representation of an arbitrary object value provided by
// the resource provider as additional context for the change. Must
// be considered an opaque value for any consumer other than the
// provider that generated it.
Private *DynamicValue `protobuf:"bytes,10,opt,name=private,proto3" json:"private,omitempty"`
// An unordered set of paths that prompted the change action to be
// "replace" rather than "update". Empty for any action other than
// "replace".
RequiredReplace []*Path `protobuf:"bytes,11,rep,name=required_replace,json=requiredReplace,proto3" json:"required_replace,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResourceInstanceChange) Reset() { *m = ResourceInstanceChange{} }
func (m *ResourceInstanceChange) String() string { return proto.CompactTextString(m) }
func (*ResourceInstanceChange) ProtoMessage() {}
func (*ResourceInstanceChange) Descriptor() ([]byte, []int) {
return fileDescriptor_planfile_8d966014b6720da2, []int{2}
}
func (m *ResourceInstanceChange) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ResourceInstanceChange.Unmarshal(m, b)
}
func (m *ResourceInstanceChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ResourceInstanceChange.Marshal(b, m, deterministic)
}
func (dst *ResourceInstanceChange) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResourceInstanceChange.Merge(dst, src)
}
func (m *ResourceInstanceChange) XXX_Size() int {
return xxx_messageInfo_ResourceInstanceChange.Size(m)
}
func (m *ResourceInstanceChange) XXX_DiscardUnknown() {
xxx_messageInfo_ResourceInstanceChange.DiscardUnknown(m)
}
var xxx_messageInfo_ResourceInstanceChange proto.InternalMessageInfo
type isResourceInstanceChange_InstanceKey interface {
isResourceInstanceChange_InstanceKey()
}
type ResourceInstanceChange_Str struct {
Str string `protobuf:"bytes,5,opt,name=str,proto3,oneof"`
}
type ResourceInstanceChange_Int struct {
Int int64 `protobuf:"varint,6,opt,name=int,proto3,oneof"`
}
func (*ResourceInstanceChange_Str) isResourceInstanceChange_InstanceKey() {}
func (*ResourceInstanceChange_Int) isResourceInstanceChange_InstanceKey() {}
func (m *ResourceInstanceChange) GetInstanceKey() isResourceInstanceChange_InstanceKey {
if m != nil {
return m.InstanceKey
}
return nil
}
func (m *ResourceInstanceChange) GetModulePath() string {
if m != nil {
return m.ModulePath
}
return ""
}
func (m *ResourceInstanceChange) GetMode() ResourceInstanceChange_ResourceMode {
if m != nil {
return m.Mode
}
return ResourceInstanceChange_managed
}
func (m *ResourceInstanceChange) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *ResourceInstanceChange) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ResourceInstanceChange) GetStr() string {
if x, ok := m.GetInstanceKey().(*ResourceInstanceChange_Str); ok {
return x.Str
}
return ""
}
func (m *ResourceInstanceChange) GetInt() int64 {
if x, ok := m.GetInstanceKey().(*ResourceInstanceChange_Int); ok {
return x.Int
}
return 0
}
func (m *ResourceInstanceChange) GetDeposedKey() string {
if m != nil {
return m.DeposedKey
}
return ""
}
func (m *ResourceInstanceChange) GetProvider() string {
if m != nil {
return m.Provider
}
return ""
}
func (m *ResourceInstanceChange) GetChange() *Change {
if m != nil {
return m.Change
}
return nil
}
func (m *ResourceInstanceChange) GetPrivate() *DynamicValue {
if m != nil {
return m.Private
}
return nil
}
func (m *ResourceInstanceChange) GetRequiredReplace() []*Path {
if m != nil {
return m.RequiredReplace
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*ResourceInstanceChange) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _ResourceInstanceChange_OneofMarshaler, _ResourceInstanceChange_OneofUnmarshaler, _ResourceInstanceChange_OneofSizer, []interface{}{
(*ResourceInstanceChange_Str)(nil),
(*ResourceInstanceChange_Int)(nil),
}
}
func _ResourceInstanceChange_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*ResourceInstanceChange)
// instance_key
switch x := m.InstanceKey.(type) {
case *ResourceInstanceChange_Str:
b.EncodeVarint(5<<3 | proto.WireBytes)
b.EncodeStringBytes(x.Str)
case *ResourceInstanceChange_Int:
b.EncodeVarint(6<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.Int))
case nil:
default:
return fmt.Errorf("ResourceInstanceChange.InstanceKey has unexpected type %T", x)
}
return nil
}
func _ResourceInstanceChange_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*ResourceInstanceChange)
switch tag {
case 5: // instance_key.str
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.InstanceKey = &ResourceInstanceChange_Str{x}
return true, err
case 6: // instance_key.int
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.InstanceKey = &ResourceInstanceChange_Int{int64(x)}
return true, err
default:
return false, nil
}
}
func _ResourceInstanceChange_OneofSizer(msg proto.Message) (n int) {
m := msg.(*ResourceInstanceChange)
// instance_key
switch x := m.InstanceKey.(type) {
case *ResourceInstanceChange_Str:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Str)))
n += len(x.Str)
case *ResourceInstanceChange_Int:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(x.Int))
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type OutputChange struct {
// Name of the output as defined in the root module.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Description of the proposed change. May use "no-op", "create",
// "update" and "delete" actions.
Change *Change `protobuf:"bytes,2,opt,name=change,proto3" json:"change,omitempty"`
// Sensitive, if true, indicates that one or more of the values given
// in "change" is sensitive and should not be shown directly in any
// rendered plan.
Sensitive bool `protobuf:"varint,3,opt,name=sensitive,proto3" json:"sensitive,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OutputChange) Reset() { *m = OutputChange{} }
func (m *OutputChange) String() string { return proto.CompactTextString(m) }
func (*OutputChange) ProtoMessage() {}
func (*OutputChange) Descriptor() ([]byte, []int) {
return fileDescriptor_planfile_8d966014b6720da2, []int{3}
}
func (m *OutputChange) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OutputChange.Unmarshal(m, b)
}
func (m *OutputChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OutputChange.Marshal(b, m, deterministic)
}
func (dst *OutputChange) XXX_Merge(src proto.Message) {
xxx_messageInfo_OutputChange.Merge(dst, src)
}
func (m *OutputChange) XXX_Size() int {
return xxx_messageInfo_OutputChange.Size(m)
}
func (m *OutputChange) XXX_DiscardUnknown() {
xxx_messageInfo_OutputChange.DiscardUnknown(m)
}
var xxx_messageInfo_OutputChange proto.InternalMessageInfo
func (m *OutputChange) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *OutputChange) GetChange() *Change {
if m != nil {
return m.Change
}
return nil
}
func (m *OutputChange) GetSensitive() bool {
if m != nil {
return m.Sensitive
}
return false
}
// DynamicValue represents a value whose type is not decided until runtime,
// often based on schema information obtained from a plugin.
//
// At present dynamic values are always encoded as msgpack, with extension
// id 0 used to represent the special "unknown" value indicating results
// that won't be known until after apply.
//
// In future other serialization formats may be used, possibly with a
// transitional period of including both as separate attributes of this type.
// Consumers must ignore attributes they don't support and fail if no supported
// attribute is present. The top-level format version will not be incremented
// for changes to the set of dynamic serialization formats.
type DynamicValue struct {
Msgpack []byte `protobuf:"bytes,1,opt,name=msgpack,proto3" json:"msgpack,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DynamicValue) Reset() { *m = DynamicValue{} }
func (m *DynamicValue) String() string { return proto.CompactTextString(m) }
func (*DynamicValue) ProtoMessage() {}
func (*DynamicValue) Descriptor() ([]byte, []int) {
return fileDescriptor_planfile_8d966014b6720da2, []int{4}
}
func (m *DynamicValue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DynamicValue.Unmarshal(m, b)
}
func (m *DynamicValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DynamicValue.Marshal(b, m, deterministic)
}
func (dst *DynamicValue) XXX_Merge(src proto.Message) {
xxx_messageInfo_DynamicValue.Merge(dst, src)
}
func (m *DynamicValue) XXX_Size() int {
return xxx_messageInfo_DynamicValue.Size(m)
}
func (m *DynamicValue) XXX_DiscardUnknown() {
xxx_messageInfo_DynamicValue.DiscardUnknown(m)
}
var xxx_messageInfo_DynamicValue proto.InternalMessageInfo
func (m *DynamicValue) GetMsgpack() []byte {
if m != nil {
return m.Msgpack
}
return nil
}
// Hash represents a hash value.
//
// At present hashes always use the SHA256 algorithm. In future other hash
// algorithms may be used, possibly with a transitional period of including
// both as separate attributes of this type. Consumers must ignore attributes
// they don't support and fail if no supported attribute is present. The
// top-level format version will not be incremented for changes to the set of
// hash algorithms.
type Hash struct {
Sha256 []byte `protobuf:"bytes,1,opt,name=sha256,proto3" json:"sha256,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Hash) Reset() { *m = Hash{} }
func (m *Hash) String() string { return proto.CompactTextString(m) }
func (*Hash) ProtoMessage() {}
func (*Hash) Descriptor() ([]byte, []int) {
return fileDescriptor_planfile_8d966014b6720da2, []int{5}
}
func (m *Hash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Hash.Unmarshal(m, b)
}
func (m *Hash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Hash.Marshal(b, m, deterministic)
}
func (dst *Hash) XXX_Merge(src proto.Message) {
xxx_messageInfo_Hash.Merge(dst, src)
}
func (m *Hash) XXX_Size() int {
return xxx_messageInfo_Hash.Size(m)
}
func (m *Hash) XXX_DiscardUnknown() {
xxx_messageInfo_Hash.DiscardUnknown(m)
}
var xxx_messageInfo_Hash proto.InternalMessageInfo
func (m *Hash) GetSha256() []byte {
if m != nil {
return m.Sha256
}
return nil
}
// Path represents a set of steps to traverse into a data structure. It is
// used to refer to a sub-structure within a dynamic data structure presented
// separately.
type Path struct {
Steps []*Path_Step `protobuf:"bytes,1,rep,name=steps,proto3" json:"steps,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Path) Reset() { *m = Path{} }
func (m *Path) String() string { return proto.CompactTextString(m) }
func (*Path) ProtoMessage() {}
func (*Path) Descriptor() ([]byte, []int) {
return fileDescriptor_planfile_8d966014b6720da2, []int{6}
}
func (m *Path) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Path.Unmarshal(m, b)
}
func (m *Path) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Path.Marshal(b, m, deterministic)
}
func (dst *Path) XXX_Merge(src proto.Message) {
xxx_messageInfo_Path.Merge(dst, src)
}
func (m *Path) XXX_Size() int {
return xxx_messageInfo_Path.Size(m)
}
func (m *Path) XXX_DiscardUnknown() {
xxx_messageInfo_Path.DiscardUnknown(m)
}
var xxx_messageInfo_Path proto.InternalMessageInfo
func (m *Path) GetSteps() []*Path_Step {
if m != nil {
return m.Steps
}
return nil
}
type Path_Step struct {
// Types that are valid to be assigned to Selector:
// *Path_Step_AttributeName
// *Path_Step_ElementKey
Selector isPath_Step_Selector `protobuf_oneof:"selector"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Path_Step) Reset() { *m = Path_Step{} }
func (m *Path_Step) String() string { return proto.CompactTextString(m) }
func (*Path_Step) ProtoMessage() {}
func (*Path_Step) Descriptor() ([]byte, []int) {
return fileDescriptor_planfile_8d966014b6720da2, []int{6, 0}
}
func (m *Path_Step) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Path_Step.Unmarshal(m, b)
}
func (m *Path_Step) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Path_Step.Marshal(b, m, deterministic)
}
func (dst *Path_Step) XXX_Merge(src proto.Message) {
xxx_messageInfo_Path_Step.Merge(dst, src)
}
func (m *Path_Step) XXX_Size() int {
return xxx_messageInfo_Path_Step.Size(m)
}
func (m *Path_Step) XXX_DiscardUnknown() {
xxx_messageInfo_Path_Step.DiscardUnknown(m)
}
var xxx_messageInfo_Path_Step proto.InternalMessageInfo
type isPath_Step_Selector interface {
isPath_Step_Selector()
}
type Path_Step_AttributeName struct {
AttributeName string `protobuf:"bytes,1,opt,name=attribute_name,json=attributeName,proto3,oneof"`
}
type Path_Step_ElementKey struct {
ElementKey *DynamicValue `protobuf:"bytes,2,opt,name=element_key,json=elementKey,proto3,oneof"`
}
func (*Path_Step_AttributeName) isPath_Step_Selector() {}
func (*Path_Step_ElementKey) isPath_Step_Selector() {}
func (m *Path_Step) GetSelector() isPath_Step_Selector {
if m != nil {
return m.Selector
}
return nil
}
func (m *Path_Step) GetAttributeName() string {
if x, ok := m.GetSelector().(*Path_Step_AttributeName); ok {
return x.AttributeName
}
return ""
}
func (m *Path_Step) GetElementKey() *DynamicValue {
if x, ok := m.GetSelector().(*Path_Step_ElementKey); ok {
return x.ElementKey
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Path_Step) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Path_Step_OneofMarshaler, _Path_Step_OneofUnmarshaler, _Path_Step_OneofSizer, []interface{}{
(*Path_Step_AttributeName)(nil),
(*Path_Step_ElementKey)(nil),
}
}
func _Path_Step_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Path_Step)
// selector
switch x := m.Selector.(type) {
case *Path_Step_AttributeName:
b.EncodeVarint(1<<3 | proto.WireBytes)
b.EncodeStringBytes(x.AttributeName)
case *Path_Step_ElementKey:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ElementKey); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Path_Step.Selector has unexpected type %T", x)
}
return nil
}
func _Path_Step_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Path_Step)
switch tag {
case 1: // selector.attribute_name
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Selector = &Path_Step_AttributeName{x}
return true, err
case 2: // selector.element_key
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(DynamicValue)
err := b.DecodeMessage(msg)
m.Selector = &Path_Step_ElementKey{msg}
return true, err
default:
return false, nil
}
}
func _Path_Step_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Path_Step)
// selector
switch x := m.Selector.(type) {
case *Path_Step_AttributeName:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.AttributeName)))
n += len(x.AttributeName)
case *Path_Step_ElementKey:
s := proto.Size(x.ElementKey)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
func init() {
proto.RegisterType((*Plan)(nil), "tfplan.Plan")
proto.RegisterMapType((map[string]*Hash)(nil), "tfplan.Plan.ProviderHashesEntry")
proto.RegisterMapType((map[string]*DynamicValue)(nil), "tfplan.Plan.VariablesEntry")
proto.RegisterType((*Change)(nil), "tfplan.Change")
proto.RegisterType((*ResourceInstanceChange)(nil), "tfplan.ResourceInstanceChange")
proto.RegisterType((*OutputChange)(nil), "tfplan.OutputChange")
proto.RegisterType((*DynamicValue)(nil), "tfplan.DynamicValue")
proto.RegisterType((*Hash)(nil), "tfplan.Hash")
proto.RegisterType((*Path)(nil), "tfplan.Path")
proto.RegisterType((*Path_Step)(nil), "tfplan.Path.Step")
proto.RegisterEnum("tfplan.Action", Action_name, Action_value)
proto.RegisterEnum("tfplan.ResourceInstanceChange_ResourceMode", ResourceInstanceChange_ResourceMode_name, ResourceInstanceChange_ResourceMode_value)
}
func init() { proto.RegisterFile("planfile.proto", fileDescriptor_planfile_8d966014b6720da2) }
var fileDescriptor_planfile_8d966014b6720da2 = []byte{
// 804 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x55, 0xdb, 0x6e, 0xe3, 0x36,
0x10, 0xb5, 0x6c, 0x45, 0xb1, 0xc7, 0x5e, 0x45, 0xcb, 0x16, 0x0b, 0x21, 0x2d, 0xb6, 0x86, 0x80,
0x76, 0x8d, 0xdd, 0xc2, 0x01, 0x52, 0xb4, 0xe9, 0xb6, 0x0f, 0x45, 0x2e, 0x02, 0x12, 0xec, 0x25,
0x06, 0xbb, 0xcd, 0x43, 0x1f, 0x6a, 0x30, 0xd2, 0x24, 0x26, 0x56, 0xa2, 0x54, 0x92, 0x36, 0xe0,
0xb7, 0xfe, 0x4c, 0xbf, 0xa7, 0xbf, 0x54, 0x90, 0xba, 0x44, 0x01, 0x02, 0x3f, 0x59, 0x73, 0xe6,
0xcc, 0x88, 0xe7, 0xcc, 0x50, 0x06, 0xbf, 0xcc, 0x98, 0xb8, 0xe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