// 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/budget_service.proto

package billing

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud/api"
	operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	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)
)

type GetBudgetRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the budget to return.
	// To get the budget ID, use [BudgetService.List] request.
	Id            string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetBudgetRequest) ProtoMessage() {}

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

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

type ListBudgetsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the billing account to list budgets corresponding to.
	// To get the billing account ID, use [BillingAccountService.List] request.
	BillingAccountId string `protobuf:"bytes,1,opt,name=billing_account_id,json=billingAccountId,proto3" json:"billing_account_id,omitempty"`
	// The maximum number of results per page to return. If the number of available
	// results is larger than [page_size],
	// the service returns a [ListBudgetsResponse.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. To get the next page of results,
	// set [page_token] to the [ListBudgetsResponse.next_page_token]
	// returned by a previous list request.
	PageToken     string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListBudgetsRequest) ProtoMessage() {}

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

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

func (x *ListBudgetsRequest) GetPageSize() int64 {
	if x != nil {
		return x.PageSize
	}
	return 0
}

func (x *ListBudgetsRequest) GetPageToken() string {
	if x != nil {
		return x.PageToken
	}
	return ""
}

type ListBudgetsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of budgets.
	Budgets []*Budget `protobuf:"bytes,1,rep,name=budgets,proto3" json:"budgets,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number of results
	// is larger than [ListBudgetsRequest.page_size], use
	// [next_page_token] as the value
	// for the [ListBudgetsRequest.page_token] query parameter
	// in the next list request. Each subsequent list request will have its own
	// [next_page_token] to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListBudgetsResponse) ProtoMessage() {}

func (x *ListBudgetsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_billing_v1_budget_service_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 ListBudgetsResponse.ProtoReflect.Descriptor instead.
func (*ListBudgetsResponse) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_billing_v1_budget_service_proto_rawDescGZIP(), []int{2}
}

func (x *ListBudgetsResponse) GetBudgets() []*Budget {
	if x != nil {
		return x.Budgets
	}
	return nil
}

func (x *ListBudgetsResponse) GetNextPageToken() string {
	if x != nil {
		return x.NextPageToken
	}
	return ""
}

type CreateBudgetRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the billing account to list budgets corresponding to.
	// To get the billing account ID, use [yandex.cloud.billing.v1.BillingAccountService.List] request.
	BillingAccountId string `protobuf:"bytes,1,opt,name=billing_account_id,json=billingAccountId,proto3" json:"billing_account_id,omitempty"`
	// Name of the budget.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Specification of the budget.
	//
	// Types that are valid to be assigned to BudgetSpec:
	//
	//	*CreateBudgetRequest_CostBudgetSpec
	//	*CreateBudgetRequest_ExpenseBudgetSpec
	//	*CreateBudgetRequest_BalanceBudgetSpec
	BudgetSpec    isCreateBudgetRequest_BudgetSpec `protobuf_oneof:"budget_spec"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreateBudgetRequest) Reset() {
	*x = CreateBudgetRequest{}
	mi := &file_yandex_cloud_billing_v1_budget_service_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*CreateBudgetRequest) ProtoMessage() {}

func (x *CreateBudgetRequest) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_billing_v1_budget_service_proto_msgTypes[3]
	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 CreateBudgetRequest.ProtoReflect.Descriptor instead.
func (*CreateBudgetRequest) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_billing_v1_budget_service_proto_rawDescGZIP(), []int{3}
}

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

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

func (x *CreateBudgetRequest) GetBudgetSpec() isCreateBudgetRequest_BudgetSpec {
	if x != nil {
		return x.BudgetSpec
	}
	return nil
}

func (x *CreateBudgetRequest) GetCostBudgetSpec() *CostBudgetSpec {
	if x != nil {
		if x, ok := x.BudgetSpec.(*CreateBudgetRequest_CostBudgetSpec); ok {
			return x.CostBudgetSpec
		}
	}
	return nil
}

func (x *CreateBudgetRequest) GetExpenseBudgetSpec() *ExpenseBudgetSpec {
	if x != nil {
		if x, ok := x.BudgetSpec.(*CreateBudgetRequest_ExpenseBudgetSpec); ok {
			return x.ExpenseBudgetSpec
		}
	}
	return nil
}

func (x *CreateBudgetRequest) GetBalanceBudgetSpec() *BalanceBudgetSpec {
	if x != nil {
		if x, ok := x.BudgetSpec.(*CreateBudgetRequest_BalanceBudgetSpec); ok {
			return x.BalanceBudgetSpec
		}
	}
	return nil
}

type isCreateBudgetRequest_BudgetSpec interface {
	isCreateBudgetRequest_BudgetSpec()
}

type CreateBudgetRequest_CostBudgetSpec struct {
	// Cost budget specification.
	CostBudgetSpec *CostBudgetSpec `protobuf:"bytes,3,opt,name=cost_budget_spec,json=costBudgetSpec,proto3,oneof"`
}

type CreateBudgetRequest_ExpenseBudgetSpec struct {
	// Expense budget specification.
	ExpenseBudgetSpec *ExpenseBudgetSpec `protobuf:"bytes,4,opt,name=expense_budget_spec,json=expenseBudgetSpec,proto3,oneof"`
}

type CreateBudgetRequest_BalanceBudgetSpec struct {
	// Balance budget specification.
	BalanceBudgetSpec *BalanceBudgetSpec `protobuf:"bytes,5,opt,name=balance_budget_spec,json=balanceBudgetSpec,proto3,oneof"`
}

func (*CreateBudgetRequest_CostBudgetSpec) isCreateBudgetRequest_BudgetSpec() {}

func (*CreateBudgetRequest_ExpenseBudgetSpec) isCreateBudgetRequest_BudgetSpec() {}

func (*CreateBudgetRequest_BalanceBudgetSpec) isCreateBudgetRequest_BudgetSpec() {}

type CreateBudgetMetadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the budget.
	BudgetId      string `protobuf:"bytes,1,opt,name=budget_id,json=budgetId,proto3" json:"budget_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreateBudgetMetadata) Reset() {
	*x = CreateBudgetMetadata{}
	mi := &file_yandex_cloud_billing_v1_budget_service_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*CreateBudgetMetadata) ProtoMessage() {}

func (x *CreateBudgetMetadata) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_billing_v1_budget_service_proto_msgTypes[4]
	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 CreateBudgetMetadata.ProtoReflect.Descriptor instead.
func (*CreateBudgetMetadata) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_billing_v1_budget_service_proto_rawDescGZIP(), []int{4}
}

func (x *CreateBudgetMetadata) GetBudgetId() string {
	if x != nil {
		return x.BudgetId
	}
	return ""
}

var File_yandex_cloud_billing_v1_budget_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_billing_v1_budget_service_proto_rawDesc = "" +
	"\n" +
	",yandex/cloud/billing/v1/budget_service.proto\x12\x17yandex.cloud.billing.v1\x1a\x1cgoogle/api/annotations.proto\x1a$yandex/cloud/billing/v1/budget.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\"0\n" +
	"\x10GetBudgetRequest\x12\x1c\n" +
	"\x02id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\x02id\"\xa3\x01\n" +
	"\x12ListBudgetsRequest\x12:\n" +
	"\x12billing_account_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\x10billingAccountId\x12'\n" +
	"\tpage_size\x18\x02 \x01(\x03B\n" +
	"\xfa\xc71\x06<=1000R\bpageSize\x12(\n" +
	"\n" +
	"page_token\x18\x03 \x01(\tB\t\x8a\xc81\x05<=100R\tpageToken\"x\n" +
	"\x13ListBudgetsResponse\x129\n" +
	"\abudgets\x18\x01 \x03(\v2\x1f.yandex.cloud.billing.v1.BudgetR\abudgets\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x91\x03\n" +
	"\x13CreateBudgetRequest\x12:\n" +
	"\x12billing_account_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\x10billingAccountId\x12\x18\n" +
	"\x04name\x18\x02 \x01(\tB\x04\xe8\xc71\x01R\x04name\x12S\n" +
	"\x10cost_budget_spec\x18\x03 \x01(\v2'.yandex.cloud.billing.v1.CostBudgetSpecH\x00R\x0ecostBudgetSpec\x12\\\n" +
	"\x13expense_budget_spec\x18\x04 \x01(\v2*.yandex.cloud.billing.v1.ExpenseBudgetSpecH\x00R\x11expenseBudgetSpec\x12\\\n" +
	"\x13balance_budget_spec\x18\x05 \x01(\v2*.yandex.cloud.billing.v1.BalanceBudgetSpecH\x00R\x11balanceBudgetSpecB\x13\n" +
	"\vbudget_spec\x12\x04\xc0\xc11\x01\"3\n" +
	"\x14CreateBudgetMetadata\x12\x1b\n" +
	"\tbudget_id\x18\x01 \x01(\tR\bbudgetId2\xa2\x03\n" +
	"\rBudgetService\x12s\n" +
	"\x03Get\x12).yandex.cloud.billing.v1.GetBudgetRequest\x1a\x1f.yandex.cloud.billing.v1.Budget\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/billing/v1/budgets/{id}\x12~\n" +
	"\x04List\x12+.yandex.cloud.billing.v1.ListBudgetsRequest\x1a,.yandex.cloud.billing.v1.ListBudgetsResponse\"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/billing/v1/budgets\x12\x9b\x01\n" +
	"\x06Create\x12,.yandex.cloud.billing.v1.CreateBudgetRequest\x1a!.yandex.cloud.operation.Operation\"@\xb2\xd2*\x1e\n" +
	"\x14CreateBudgetMetadata\x12\x06Budget\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/billing/v1/budgetsBb\n" +
	"\x1byandex.cloud.api.billing.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/billing/v1;billingb\x06proto3"

var (
	file_yandex_cloud_billing_v1_budget_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_billing_v1_budget_service_proto_rawDescData []byte
)

func file_yandex_cloud_billing_v1_budget_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_billing_v1_budget_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_billing_v1_budget_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_billing_v1_budget_service_proto_rawDesc), len(file_yandex_cloud_billing_v1_budget_service_proto_rawDesc)))
	})
	return file_yandex_cloud_billing_v1_budget_service_proto_rawDescData
}

var file_yandex_cloud_billing_v1_budget_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_billing_v1_budget_service_proto_goTypes = []any{
	(*GetBudgetRequest)(nil),     // 0: yandex.cloud.billing.v1.GetBudgetRequest
	(*ListBudgetsRequest)(nil),   // 1: yandex.cloud.billing.v1.ListBudgetsRequest
	(*ListBudgetsResponse)(nil),  // 2: yandex.cloud.billing.v1.ListBudgetsResponse
	(*CreateBudgetRequest)(nil),  // 3: yandex.cloud.billing.v1.CreateBudgetRequest
	(*CreateBudgetMetadata)(nil), // 4: yandex.cloud.billing.v1.CreateBudgetMetadata
	(*Budget)(nil),               // 5: yandex.cloud.billing.v1.Budget
	(*CostBudgetSpec)(nil),       // 6: yandex.cloud.billing.v1.CostBudgetSpec
	(*ExpenseBudgetSpec)(nil),    // 7: yandex.cloud.billing.v1.ExpenseBudgetSpec
	(*BalanceBudgetSpec)(nil),    // 8: yandex.cloud.billing.v1.BalanceBudgetSpec
	(*operation.Operation)(nil),  // 9: yandex.cloud.operation.Operation
}
var file_yandex_cloud_billing_v1_budget_service_proto_depIdxs = []int32{
	5, // 0: yandex.cloud.billing.v1.ListBudgetsResponse.budgets:type_name -> yandex.cloud.billing.v1.Budget
	6, // 1: yandex.cloud.billing.v1.CreateBudgetRequest.cost_budget_spec:type_name -> yandex.cloud.billing.v1.CostBudgetSpec
	7, // 2: yandex.cloud.billing.v1.CreateBudgetRequest.expense_budget_spec:type_name -> yandex.cloud.billing.v1.ExpenseBudgetSpec
	8, // 3: yandex.cloud.billing.v1.CreateBudgetRequest.balance_budget_spec:type_name -> yandex.cloud.billing.v1.BalanceBudgetSpec
	0, // 4: yandex.cloud.billing.v1.BudgetService.Get:input_type -> yandex.cloud.billing.v1.GetBudgetRequest
	1, // 5: yandex.cloud.billing.v1.BudgetService.List:input_type -> yandex.cloud.billing.v1.ListBudgetsRequest
	3, // 6: yandex.cloud.billing.v1.BudgetService.Create:input_type -> yandex.cloud.billing.v1.CreateBudgetRequest
	5, // 7: yandex.cloud.billing.v1.BudgetService.Get:output_type -> yandex.cloud.billing.v1.Budget
	2, // 8: yandex.cloud.billing.v1.BudgetService.List:output_type -> yandex.cloud.billing.v1.ListBudgetsResponse
	9, // 9: yandex.cloud.billing.v1.BudgetService.Create:output_type -> yandex.cloud.operation.Operation
	7, // [7:10] is the sub-list for method output_type
	4, // [4:7] is the sub-list for method input_type
	4, // [4:4] is the sub-list for extension type_name
	4, // [4:4] is the sub-list for extension extendee
	0, // [0:4] is the sub-list for field type_name
}

func init() { file_yandex_cloud_billing_v1_budget_service_proto_init() }
func file_yandex_cloud_billing_v1_budget_service_proto_init() {
	if File_yandex_cloud_billing_v1_budget_service_proto != nil {
		return
	}
	file_yandex_cloud_billing_v1_budget_proto_init()
	file_yandex_cloud_billing_v1_budget_service_proto_msgTypes[3].OneofWrappers = []any{
		(*CreateBudgetRequest_CostBudgetSpec)(nil),
		(*CreateBudgetRequest_ExpenseBudgetSpec)(nil),
		(*CreateBudgetRequest_BalanceBudgetSpec)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_billing_v1_budget_service_proto_rawDesc), len(file_yandex_cloud_billing_v1_budget_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_billing_v1_budget_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_billing_v1_budget_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_billing_v1_budget_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_billing_v1_budget_service_proto = out.File
	file_yandex_cloud_billing_v1_budget_service_proto_goTypes = nil
	file_yandex_cloud_billing_v1_budget_service_proto_depIdxs = nil
}
