// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.8
// 	protoc        v6.32.0
// source: protos/pro.proto

package proto

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

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 ProMagicAttachResponseType int32

const (
	ProMagicAttachResponseType_USER_CODE                  ProMagicAttachResponseType = 0
	ProMagicAttachResponseType_REFRESHED_USER_CODE        ProMagicAttachResponseType = 1
	ProMagicAttachResponseType_SUCCESS                    ProMagicAttachResponseType = 2
	ProMagicAttachResponseType_NETWORK_ERROR              ProMagicAttachResponseType = 3
	ProMagicAttachResponseType_SUBSCRIPTION_LIMIT_REACHED ProMagicAttachResponseType = 4
	ProMagicAttachResponseType_UNKNOWN_ERROR              ProMagicAttachResponseType = 5
	ProMagicAttachResponseType_ALREADY_ATTACHED           ProMagicAttachResponseType = 6
)

// Enum value maps for ProMagicAttachResponseType.
var (
	ProMagicAttachResponseType_name = map[int32]string{
		0: "USER_CODE",
		1: "REFRESHED_USER_CODE",
		2: "SUCCESS",
		3: "NETWORK_ERROR",
		4: "SUBSCRIPTION_LIMIT_REACHED",
		5: "UNKNOWN_ERROR",
		6: "ALREADY_ATTACHED",
	}
	ProMagicAttachResponseType_value = map[string]int32{
		"USER_CODE":                  0,
		"REFRESHED_USER_CODE":        1,
		"SUCCESS":                    2,
		"NETWORK_ERROR":              3,
		"SUBSCRIPTION_LIMIT_REACHED": 4,
		"UNKNOWN_ERROR":              5,
		"ALREADY_ATTACHED":           6,
	}
)

func (x ProMagicAttachResponseType) Enum() *ProMagicAttachResponseType {
	p := new(ProMagicAttachResponseType)
	*p = x
	return p
}

func (x ProMagicAttachResponseType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (ProMagicAttachResponseType) Descriptor() protoreflect.EnumDescriptor {
	return file_protos_pro_proto_enumTypes[0].Descriptor()
}

func (ProMagicAttachResponseType) Type() protoreflect.EnumType {
	return &file_protos_pro_proto_enumTypes[0]
}

func (x ProMagicAttachResponseType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use ProMagicAttachResponseType.Descriptor instead.
func (ProMagicAttachResponseType) EnumDescriptor() ([]byte, []int) {
	return file_protos_pro_proto_rawDescGZIP(), []int{0}
}

type ProAttachResponse_ProAttachResponseType int32

const (
	ProAttachResponse_SUCCESS          ProAttachResponse_ProAttachResponseType = 0
	ProAttachResponse_NETWORK_ERROR    ProAttachResponse_ProAttachResponseType = 1
	ProAttachResponse_UNKNOWN_ERROR    ProAttachResponse_ProAttachResponseType = 2
	ProAttachResponse_ALREADY_ATTACHED ProAttachResponse_ProAttachResponseType = 3
)

// Enum value maps for ProAttachResponse_ProAttachResponseType.
var (
	ProAttachResponse_ProAttachResponseType_name = map[int32]string{
		0: "SUCCESS",
		1: "NETWORK_ERROR",
		2: "UNKNOWN_ERROR",
		3: "ALREADY_ATTACHED",
	}
	ProAttachResponse_ProAttachResponseType_value = map[string]int32{
		"SUCCESS":          0,
		"NETWORK_ERROR":    1,
		"UNKNOWN_ERROR":    2,
		"ALREADY_ATTACHED": 3,
	}
)

func (x ProAttachResponse_ProAttachResponseType) Enum() *ProAttachResponse_ProAttachResponseType {
	p := new(ProAttachResponse_ProAttachResponseType)
	*p = x
	return p
}

func (x ProAttachResponse_ProAttachResponseType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (ProAttachResponse_ProAttachResponseType) Descriptor() protoreflect.EnumDescriptor {
	return file_protos_pro_proto_enumTypes[1].Descriptor()
}

func (ProAttachResponse_ProAttachResponseType) Type() protoreflect.EnumType {
	return &file_protos_pro_proto_enumTypes[1]
}

func (x ProAttachResponse_ProAttachResponseType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use ProAttachResponse_ProAttachResponseType.Descriptor instead.
func (ProAttachResponse_ProAttachResponseType) EnumDescriptor() ([]byte, []int) {
	return file_protos_pro_proto_rawDescGZIP(), []int{1, 0}
}

type ProAttachRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Token         string                 `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ProAttachRequest) Reset() {
	*x = ProAttachRequest{}
	mi := &file_protos_pro_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ProAttachRequest) ProtoMessage() {}

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

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

func (x *ProAttachRequest) GetToken() string {
	if x != nil {
		return x.Token
	}
	return ""
}

type ProAttachResponse struct {
	state         protoimpl.MessageState                  `protogen:"open.v1"`
	Type          ProAttachResponse_ProAttachResponseType `protobuf:"varint,1,opt,name=type,proto3,enum=pro.ProAttachResponse_ProAttachResponseType" json:"type,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ProAttachResponse) Reset() {
	*x = ProAttachResponse{}
	mi := &file_protos_pro_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ProAttachResponse) ProtoMessage() {}

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

// Deprecated: Use ProAttachResponse.ProtoReflect.Descriptor instead.
func (*ProAttachResponse) Descriptor() ([]byte, []int) {
	return file_protos_pro_proto_rawDescGZIP(), []int{1}
}

func (x *ProAttachResponse) GetType() ProAttachResponse_ProAttachResponseType {
	if x != nil {
		return x.Type
	}
	return ProAttachResponse_SUCCESS
}

type ProMagicAttachResponse struct {
	state         protoimpl.MessageState     `protogen:"open.v1"`
	Type          ProMagicAttachResponseType `protobuf:"varint,1,opt,name=type,proto3,enum=pro.ProMagicAttachResponseType" json:"type,omitempty"`
	UserCode      *string                    `protobuf:"bytes,2,opt,name=userCode,proto3,oneof" json:"userCode,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ProMagicAttachResponse) Reset() {
	*x = ProMagicAttachResponse{}
	mi := &file_protos_pro_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ProMagicAttachResponse) ProtoMessage() {}

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

// Deprecated: Use ProMagicAttachResponse.ProtoReflect.Descriptor instead.
func (*ProMagicAttachResponse) Descriptor() ([]byte, []int) {
	return file_protos_pro_proto_rawDescGZIP(), []int{2}
}

func (x *ProMagicAttachResponse) GetType() ProMagicAttachResponseType {
	if x != nil {
		return x.Type
	}
	return ProMagicAttachResponseType_USER_CODE
}

func (x *ProMagicAttachResponse) GetUserCode() string {
	if x != nil && x.UserCode != nil {
		return *x.UserCode
	}
	return ""
}

var File_protos_pro_proto protoreflect.FileDescriptor

const file_protos_pro_proto_rawDesc = "" +
	"\n" +
	"\x10protos/pro.proto\x12\x03pro\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1egoogle/protobuf/wrappers.proto\"(\n" +
	"\x10ProAttachRequest\x12\x14\n" +
	"\x05token\x18\x01 \x01(\tR\x05token\"\xb7\x01\n" +
	"\x11ProAttachResponse\x12@\n" +
	"\x04type\x18\x01 \x01(\x0e2,.pro.ProAttachResponse.ProAttachResponseTypeR\x04type\"`\n" +
	"\x15ProAttachResponseType\x12\v\n" +
	"\aSUCCESS\x10\x00\x12\x11\n" +
	"\rNETWORK_ERROR\x10\x01\x12\x11\n" +
	"\rUNKNOWN_ERROR\x10\x02\x12\x14\n" +
	"\x10ALREADY_ATTACHED\x10\x03\"{\n" +
	"\x16ProMagicAttachResponse\x123\n" +
	"\x04type\x18\x01 \x01(\x0e2\x1f.pro.ProMagicAttachResponseTypeR\x04type\x12\x1f\n" +
	"\buserCode\x18\x02 \x01(\tH\x00R\buserCode\x88\x01\x01B\v\n" +
	"\t_userCode*\xad\x01\n" +
	"\x1aProMagicAttachResponseType\x12\r\n" +
	"\tUSER_CODE\x10\x00\x12\x17\n" +
	"\x13REFRESHED_USER_CODE\x10\x01\x12\v\n" +
	"\aSUCCESS\x10\x02\x12\x11\n" +
	"\rNETWORK_ERROR\x10\x03\x12\x1e\n" +
	"\x1aSUBSCRIPTION_LIMIT_REACHED\x10\x04\x12\x11\n" +
	"\rUNKNOWN_ERROR\x10\x05\x12\x14\n" +
	"\x10ALREADY_ATTACHED\x10\x062\xd2\x01\n" +
	"\n" +
	"ProService\x12G\n" +
	"\x0eProMagicAttach\x12\x16.google.protobuf.Empty\x1a\x1b.pro.ProMagicAttachResponse0\x01\x12:\n" +
	"\tProAttach\x12\x15.pro.ProAttachRequest\x1a\x16.pro.ProAttachResponse\x12?\n" +
	"\tProStatus\x12\x16.google.protobuf.Empty\x1a\x1a.google.protobuf.BoolValueB;Z9github.com/canonical/ubuntu-desktop-provision/provd/protob\x06proto3"

var (
	file_protos_pro_proto_rawDescOnce sync.Once
	file_protos_pro_proto_rawDescData []byte
)

func file_protos_pro_proto_rawDescGZIP() []byte {
	file_protos_pro_proto_rawDescOnce.Do(func() {
		file_protos_pro_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_protos_pro_proto_rawDesc), len(file_protos_pro_proto_rawDesc)))
	})
	return file_protos_pro_proto_rawDescData
}

var file_protos_pro_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_protos_pro_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_protos_pro_proto_goTypes = []any{
	(ProMagicAttachResponseType)(0),              // 0: pro.ProMagicAttachResponseType
	(ProAttachResponse_ProAttachResponseType)(0), // 1: pro.ProAttachResponse.ProAttachResponseType
	(*ProAttachRequest)(nil),                     // 2: pro.ProAttachRequest
	(*ProAttachResponse)(nil),                    // 3: pro.ProAttachResponse
	(*ProMagicAttachResponse)(nil),               // 4: pro.ProMagicAttachResponse
	(*emptypb.Empty)(nil),                        // 5: google.protobuf.Empty
	(*wrapperspb.BoolValue)(nil),                 // 6: google.protobuf.BoolValue
}
var file_protos_pro_proto_depIdxs = []int32{
	1, // 0: pro.ProAttachResponse.type:type_name -> pro.ProAttachResponse.ProAttachResponseType
	0, // 1: pro.ProMagicAttachResponse.type:type_name -> pro.ProMagicAttachResponseType
	5, // 2: pro.ProService.ProMagicAttach:input_type -> google.protobuf.Empty
	2, // 3: pro.ProService.ProAttach:input_type -> pro.ProAttachRequest
	5, // 4: pro.ProService.ProStatus:input_type -> google.protobuf.Empty
	4, // 5: pro.ProService.ProMagicAttach:output_type -> pro.ProMagicAttachResponse
	3, // 6: pro.ProService.ProAttach:output_type -> pro.ProAttachResponse
	6, // 7: pro.ProService.ProStatus:output_type -> google.protobuf.BoolValue
	5, // [5:8] is the sub-list for method output_type
	2, // [2:5] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_protos_pro_proto_init() }
func file_protos_pro_proto_init() {
	if File_protos_pro_proto != nil {
		return
	}
	file_protos_pro_proto_msgTypes[2].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_protos_pro_proto_rawDesc), len(file_protos_pro_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_protos_pro_proto_goTypes,
		DependencyIndexes: file_protos_pro_proto_depIdxs,
		EnumInfos:         file_protos_pro_proto_enumTypes,
		MessageInfos:      file_protos_pro_proto_msgTypes,
	}.Build()
	File_protos_pro_proto = out.File
	file_protos_pro_proto_goTypes = nil
	file_protos_pro_proto_depIdxs = nil
}
