// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/billing/v1/customer.proto

package billing

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	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)
)

// A Customer resource.
type Customer struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the customer.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the [yandex.cloud.billing.v1.BillingAccount] assigned to the customer.
	BillingAccountId string `protobuf:"bytes,2,opt,name=billing_account_id,json=billingAccountId,proto3" json:"billing_account_id,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*Customer) ProtoMessage() {}

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

func (x *Customer) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *Customer) GetBillingAccountId() string {
	if x != nil {
		return x.BillingAccountId
	}
	return ""
}

// Person of the customer. Contains legal information.
type CustomerPerson struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. Name of the person.
	// String length is not limited.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. Long name of the person.
	// String length is not limited.
	Longname string `protobuf:"bytes,2,opt,name=longname,proto3" json:"longname,omitempty"`
	// Optional. Phone of the person.
	// Must be a valid telephone number or a valid [phoneword](https://en.m.wikipedia.org/wiki/Phoneword).
	Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
	// Optional. Email of the person.
	// Must be a valid [email address](https://en.wikipedia.org/wiki/Email_address).
	Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	// Optional. Post code of the person.
	// String length is not limited.
	PostCode string `protobuf:"bytes,5,opt,name=post_code,json=postCode,proto3" json:"post_code,omitempty"`
	// Optional. Post address of the person.
	// String length is not limited.
	PostAddress string `protobuf:"bytes,6,opt,name=post_address,json=postAddress,proto3" json:"post_address,omitempty"`
	// Optional. Legal address of the person.
	// String length is not limited.
	LegalAddress string `protobuf:"bytes,7,opt,name=legal_address,json=legalAddress,proto3" json:"legal_address,omitempty"`
	// Optional. Tax identification number of the person.
	// String length is not limited.
	Tin           string `protobuf:"bytes,8,opt,name=tin,proto3" json:"tin,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CustomerPerson) ProtoMessage() {}

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

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

func (x *CustomerPerson) GetLongname() string {
	if x != nil {
		return x.Longname
	}
	return ""
}

func (x *CustomerPerson) GetPhone() string {
	if x != nil {
		return x.Phone
	}
	return ""
}

func (x *CustomerPerson) GetEmail() string {
	if x != nil {
		return x.Email
	}
	return ""
}

func (x *CustomerPerson) GetPostCode() string {
	if x != nil {
		return x.PostCode
	}
	return ""
}

func (x *CustomerPerson) GetPostAddress() string {
	if x != nil {
		return x.PostAddress
	}
	return ""
}

func (x *CustomerPerson) GetLegalAddress() string {
	if x != nil {
		return x.LegalAddress
	}
	return ""
}

func (x *CustomerPerson) GetTin() string {
	if x != nil {
		return x.Tin
	}
	return ""
}

var File_yandex_cloud_billing_v1_customer_proto protoreflect.FileDescriptor

const file_yandex_cloud_billing_v1_customer_proto_rawDesc = "" +
	"\n" +
	"&yandex/cloud/billing/v1/customer.proto\x12\x17yandex.cloud.billing.v1\"H\n" +
	"\bCustomer\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12,\n" +
	"\x12billing_account_id\x18\x02 \x01(\tR\x10billingAccountId\"\xe3\x01\n" +
	"\x0eCustomerPerson\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12\x1a\n" +
	"\blongname\x18\x02 \x01(\tR\blongname\x12\x14\n" +
	"\x05phone\x18\x03 \x01(\tR\x05phone\x12\x14\n" +
	"\x05email\x18\x04 \x01(\tR\x05email\x12\x1b\n" +
	"\tpost_code\x18\x05 \x01(\tR\bpostCode\x12!\n" +
	"\fpost_address\x18\x06 \x01(\tR\vpostAddress\x12#\n" +
	"\rlegal_address\x18\a \x01(\tR\flegalAddress\x12\x10\n" +
	"\x03tin\x18\b \x01(\tR\x03tinBb\n" +
	"\x1byandex.cloud.api.billing.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/billing/v1;billingb\x06proto3"

var (
	file_yandex_cloud_billing_v1_customer_proto_rawDescOnce sync.Once
	file_yandex_cloud_billing_v1_customer_proto_rawDescData []byte
)

func file_yandex_cloud_billing_v1_customer_proto_rawDescGZIP() []byte {
	file_yandex_cloud_billing_v1_customer_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_billing_v1_customer_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_billing_v1_customer_proto_rawDesc), len(file_yandex_cloud_billing_v1_customer_proto_rawDesc)))
	})
	return file_yandex_cloud_billing_v1_customer_proto_rawDescData
}

var file_yandex_cloud_billing_v1_customer_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_billing_v1_customer_proto_goTypes = []any{
	(*Customer)(nil),       // 0: yandex.cloud.billing.v1.Customer
	(*CustomerPerson)(nil), // 1: yandex.cloud.billing.v1.CustomerPerson
}
var file_yandex_cloud_billing_v1_customer_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_yandex_cloud_billing_v1_customer_proto_init() }
func file_yandex_cloud_billing_v1_customer_proto_init() {
	if File_yandex_cloud_billing_v1_customer_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_billing_v1_customer_proto_rawDesc), len(file_yandex_cloud_billing_v1_customer_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_billing_v1_customer_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_billing_v1_customer_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_billing_v1_customer_proto_msgTypes,
	}.Build()
	File_yandex_cloud_billing_v1_customer_proto = out.File
	file_yandex_cloud_billing_v1_customer_proto_goTypes = nil
	file_yandex_cloud_billing_v1_customer_proto_depIdxs = nil
}
