// Copyright 2016-2018, Pulumi Corporation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.28.1
// 	protoc        v3.20.1
// source: pulumi/alias.proto

package pulumirpc

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type Alias struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Types that are assignable to Alias:
	//	*Alias_Urn
	//	*Alias_Spec_
	Alias isAlias_Alias `protobuf_oneof:"alias"`
}

func (x *Alias) Reset() {
	*x = Alias{}
	if protoimpl.UnsafeEnabled {
		mi := &file_pulumi_alias_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *Alias) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Alias) ProtoMessage() {}

func (x *Alias) ProtoReflect() protoreflect.Message {
	mi := &file_pulumi_alias_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Alias.ProtoReflect.Descriptor instead.
func (*Alias) Descriptor() ([]byte, []int) {
	return file_pulumi_alias_proto_rawDescGZIP(), []int{0}
}

func (m *Alias) GetAlias() isAlias_Alias {
	if m != nil {
		return m.Alias
	}
	return nil
}

func (x *Alias) GetUrn() string {
	if x, ok := x.GetAlias().(*Alias_Urn); ok {
		return x.Urn
	}
	return ""
}

func (x *Alias) GetSpec() *Alias_Spec {
	if x, ok := x.GetAlias().(*Alias_Spec_); ok {
		return x.Spec
	}
	return nil
}

type isAlias_Alias interface {
	isAlias_Alias()
}

type Alias_Urn struct {
	Urn string `protobuf:"bytes,1,opt,name=urn,proto3,oneof"` // The previous urn to alias to.
}

type Alias_Spec_ struct {
	Spec *Alias_Spec `protobuf:"bytes,2,opt,name=spec,proto3,oneof"` // An alias specification.
}

func (*Alias_Urn) isAlias_Alias() {}

func (*Alias_Spec_) isAlias_Alias() {}

type Alias_Spec struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`       // The previous name of the resource.  If none is provided, we will use the current name.
	Type    string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`       // The previous type of the resource. If none is provided, we will use the current resoource type.
	Stack   string `protobuf:"bytes,3,opt,name=stack,proto3" json:"stack,omitempty"`     // The previous stack of the resource. If not set, the current stack of the resource is used.
	Project string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"` // The previous project of the resource. If not set, the current project of the resource is used.
	// The previous parent of the resource. If not set, the current parent of the resource is used.
	//
	// Types that are assignable to Parent:
	//	*Alias_Spec_ParentUrn
	//	*Alias_Spec_NoParent
	Parent isAlias_Spec_Parent `protobuf_oneof:"parent"`
}

func (x *Alias_Spec) Reset() {
	*x = Alias_Spec{}
	if protoimpl.UnsafeEnabled {
		mi := &file_pulumi_alias_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *Alias_Spec) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Alias_Spec) ProtoMessage() {}

func (x *Alias_Spec) ProtoReflect() protoreflect.Message {
	mi := &file_pulumi_alias_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Alias_Spec.ProtoReflect.Descriptor instead.
func (*Alias_Spec) Descriptor() ([]byte, []int) {
	return file_pulumi_alias_proto_rawDescGZIP(), []int{0, 0}
}

func (x *Alias_Spec) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *Alias_Spec) GetType() string {
	if x != nil {
		return x.Type
	}
	return ""
}

func (x *Alias_Spec) GetStack() string {
	if x != nil {
		return x.Stack
	}
	return ""
}

func (x *Alias_Spec) GetProject() string {
	if x != nil {
		return x.Project
	}
	return ""
}

func (m *Alias_Spec) GetParent() isAlias_Spec_Parent {
	if m != nil {
		return m.Parent
	}
	return nil
}

func (x *Alias_Spec) GetParentUrn() string {
	if x, ok := x.GetParent().(*Alias_Spec_ParentUrn); ok {
		return x.ParentUrn
	}
	return ""
}

func (x *Alias_Spec) GetNoParent() bool {
	if x, ok := x.GetParent().(*Alias_Spec_NoParent); ok {
		return x.NoParent
	}
	return false
}

type isAlias_Spec_Parent interface {
	isAlias_Spec_Parent()
}

type Alias_Spec_ParentUrn struct {
	ParentUrn string `protobuf:"bytes,5,opt,name=parentUrn,proto3,oneof"` // The urn of the previous parent.
}

type Alias_Spec_NoParent struct {
	NoParent bool `protobuf:"varint,6,opt,name=noParent,proto3,oneof"` // Used to indicate the resource previously had no parent. If false this property is ignored.
}

func (*Alias_Spec_ParentUrn) isAlias_Spec_Parent() {}

func (*Alias_Spec_NoParent) isAlias_Spec_Parent() {}

var File_pulumi_alias_proto protoreflect.FileDescriptor

var file_pulumi_alias_proto_rawDesc = []byte{
	0x0a, 0x12, 0x70, 0x75, 0x6c, 0x75, 0x6d, 0x69, 0x2f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x2e, 0x70,
	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x70, 0x75, 0x6c, 0x75, 0x6d, 0x69, 0x72, 0x70, 0x63, 0x22,
	0xfa, 0x01, 0x0a, 0x05, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x12, 0x0a, 0x03, 0x75, 0x72, 0x6e,
	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x75, 0x72, 0x6e, 0x12, 0x2b, 0x0a,
	0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x75,
	0x6c, 0x75, 0x6d, 0x69, 0x72, 0x70, 0x63, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x2e, 0x53, 0x70,
	0x65, 0x63, 0x48, 0x00, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x1a, 0xa6, 0x01, 0x0a, 0x04, 0x53,
	0x70, 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
	0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73,
	0x74, 0x61, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x63,
	0x6b, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01,
	0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1e, 0x0a, 0x09, 0x70,
	0x61, 0x72, 0x65, 0x6e, 0x74, 0x55, 0x72, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00,
	0x52, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x55, 0x72, 0x6e, 0x12, 0x1c, 0x0a, 0x08, 0x6e,
	0x6f, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52,
	0x08, 0x6e, 0x6f, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x61, 0x72,
	0x65, 0x6e, 0x74, 0x42, 0x07, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x42, 0x34, 0x5a, 0x32,
	0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x75, 0x6c, 0x75, 0x6d,
	0x69, 0x2f, 0x70, 0x75, 0x6c, 0x75, 0x6d, 0x69, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x33, 0x2f,
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x3b, 0x70, 0x75, 0x6c, 0x75, 0x6d, 0x69, 0x72,
	0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_pulumi_alias_proto_rawDescOnce sync.Once
	file_pulumi_alias_proto_rawDescData = file_pulumi_alias_proto_rawDesc
)

func file_pulumi_alias_proto_rawDescGZIP() []byte {
	file_pulumi_alias_proto_rawDescOnce.Do(func() {
		file_pulumi_alias_proto_rawDescData = protoimpl.X.CompressGZIP(file_pulumi_alias_proto_rawDescData)
	})
	return file_pulumi_alias_proto_rawDescData
}

var file_pulumi_alias_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_pulumi_alias_proto_goTypes = []interface{}{
	(*Alias)(nil),      // 0: pulumirpc.Alias
	(*Alias_Spec)(nil), // 1: pulumirpc.Alias.Spec
}
var file_pulumi_alias_proto_depIdxs = []int32{
	1, // 0: pulumirpc.Alias.spec:type_name -> pulumirpc.Alias.Spec
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_pulumi_alias_proto_init() }
func file_pulumi_alias_proto_init() {
	if File_pulumi_alias_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_pulumi_alias_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*Alias); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_pulumi_alias_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*Alias_Spec); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	file_pulumi_alias_proto_msgTypes[0].OneofWrappers = []interface{}{
		(*Alias_Urn)(nil),
		(*Alias_Spec_)(nil),
	}
	file_pulumi_alias_proto_msgTypes[1].OneofWrappers = []interface{}{
		(*Alias_Spec_ParentUrn)(nil),
		(*Alias_Spec_NoParent)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_pulumi_alias_proto_rawDesc,
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_pulumi_alias_proto_goTypes,
		DependencyIndexes: file_pulumi_alias_proto_depIdxs,
		MessageInfos:      file_pulumi_alias_proto_msgTypes,
	}.Build()
	File_pulumi_alias_proto = out.File
	file_pulumi_alias_proto_rawDesc = nil
	file_pulumi_alias_proto_goTypes = nil
	file_pulumi_alias_proto_depIdxs = nil
}