// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.32.0
// 	protoc        v3.21.12
// source: protos/chown.proto

package proto

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

const (
	ChownResponse_SUCCESS       ChownResponse_ChownResponseCode = 0
	ChownResponse_UNKNOWN_ERROR ChownResponse_ChownResponseCode = 1
)

// Enum value maps for ChownResponse_ChownResponseCode.
var (
	ChownResponse_ChownResponseCode_name = map[int32]string{
		0: "SUCCESS",
		1: "UNKNOWN_ERROR",
	}
	ChownResponse_ChownResponseCode_value = map[string]int32{
		"SUCCESS":       0,
		"UNKNOWN_ERROR": 1,
	}
)

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

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

func (ChownResponse_ChownResponseCode) Descriptor() protoreflect.EnumDescriptor {
	return file_protos_chown_proto_enumTypes[0].Descriptor()
}

func (ChownResponse_ChownResponseCode) Type() protoreflect.EnumType {
	return &file_protos_chown_proto_enumTypes[0]
}

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

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

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

	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
}

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

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

func (*ChownRequest) ProtoMessage() {}

func (x *ChownRequest) ProtoReflect() protoreflect.Message {
	mi := &file_protos_chown_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 ChownRequest.ProtoReflect.Descriptor instead.
func (*ChownRequest) Descriptor() ([]byte, []int) {
	return file_protos_chown_proto_rawDescGZIP(), []int{0}
}

func (x *ChownRequest) GetUsername() string {
	if x != nil {
		return x.Username
	}
	return ""
}

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

	Code ChownResponse_ChownResponseCode `protobuf:"varint,1,opt,name=code,proto3,enum=chown.ChownResponse_ChownResponseCode" json:"code,omitempty"`
}

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

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

func (*ChownResponse) ProtoMessage() {}

func (x *ChownResponse) ProtoReflect() protoreflect.Message {
	mi := &file_protos_chown_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 ChownResponse.ProtoReflect.Descriptor instead.
func (*ChownResponse) Descriptor() ([]byte, []int) {
	return file_protos_chown_proto_rawDescGZIP(), []int{1}
}

func (x *ChownResponse) GetCode() ChownResponse_ChownResponseCode {
	if x != nil {
		return x.Code
	}
	return ChownResponse_SUCCESS
}

var File_protos_chown_proto protoreflect.FileDescriptor

var file_protos_chown_proto_rawDesc = []byte{
	0x0a, 0x12, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x63, 0x68, 0x6f, 0x77, 0x6e, 0x2e, 0x70,
	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x63, 0x68, 0x6f, 0x77, 0x6e, 0x22, 0x2a, 0x0a, 0x0c, 0x43,
	0x68, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75,
	0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75,
	0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x0d, 0x43, 0x68, 0x6f, 0x77,
	0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x04, 0x63, 0x6f, 0x64,
	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x63, 0x68, 0x6f, 0x77, 0x6e, 0x2e,
	0x43, 0x68, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x68,
	0x6f, 0x77, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52,
	0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x33, 0x0a, 0x11, 0x43, 0x68, 0x6f, 0x77, 0x6e, 0x52, 0x65,
	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55,
	0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x55, 0x4e, 0x4b, 0x4e, 0x4f,
	0x57, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x32, 0x4a, 0x0a, 0x0c, 0x43, 0x68,
	0x6f, 0x77, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x0d, 0x43, 0x68,
	0x6f, 0x77, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x13, 0x2e, 0x63, 0x68,
	0x6f, 0x77, 0x6e, 0x2e, 0x43, 0x68, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
	0x1a, 0x14, 0x2e, 0x63, 0x68, 0x6f, 0x77, 0x6e, 0x2e, 0x43, 0x68, 0x6f, 0x77, 0x6e, 0x52, 0x65,
	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
	0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x2f, 0x75,
	0x62, 0x75, 0x6e, 0x74, 0x75, 0x2d, 0x64, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x2d, 0x70, 0x72,
	0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x64, 0x2f, 0x70, 0x72,
	0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_protos_chown_proto_rawDescOnce sync.Once
	file_protos_chown_proto_rawDescData = file_protos_chown_proto_rawDesc
)

func file_protos_chown_proto_rawDescGZIP() []byte {
	file_protos_chown_proto_rawDescOnce.Do(func() {
		file_protos_chown_proto_rawDescData = protoimpl.X.CompressGZIP(file_protos_chown_proto_rawDescData)
	})
	return file_protos_chown_proto_rawDescData
}

var file_protos_chown_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_protos_chown_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_protos_chown_proto_goTypes = []interface{}{
	(ChownResponse_ChownResponseCode)(0), // 0: chown.ChownResponse.ChownResponseCode
	(*ChownRequest)(nil),                 // 1: chown.ChownRequest
	(*ChownResponse)(nil),                // 2: chown.ChownResponse
}
var file_protos_chown_proto_depIdxs = []int32{
	0, // 0: chown.ChownResponse.code:type_name -> chown.ChownResponse.ChownResponseCode
	1, // 1: chown.ChownService.ChownSettings:input_type -> chown.ChownRequest
	2, // 2: chown.ChownService.ChownSettings:output_type -> chown.ChownResponse
	2, // [2:3] is the sub-list for method output_type
	1, // [1:2] 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_protos_chown_proto_init() }
func file_protos_chown_proto_init() {
	if File_protos_chown_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_protos_chown_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*ChownRequest); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_protos_chown_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*ChownResponse); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_protos_chown_proto_rawDesc,
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_protos_chown_proto_goTypes,
		DependencyIndexes: file_protos_chown_proto_depIdxs,
		EnumInfos:         file_protos_chown_proto_enumTypes,
		MessageInfos:      file_protos_chown_proto_msgTypes,
	}.Build()
	File_protos_chown_proto = out.File
	file_protos_chown_proto_rawDesc = nil
	file_protos_chown_proto_goTypes = nil
	file_protos_chown_proto_depIdxs = nil
}
