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

package billing

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

// Represents a link to an object in other service.
// This object is being billed in the scope of a billing account.
type BillableObject struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// ID of the object in other service.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Billable object type. Can be one of the following:
	// * `cloud`
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
}

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

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

func (*BillableObject) ProtoMessage() {}

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

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

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

// Represents a binding of the BillableObject to a BillingAccount.
type BillableObjectBinding struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Timestamp when binding was created.
	EffectiveTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=effective_time,json=effectiveTime,proto3" json:"effective_time,omitempty"`
	// Object that is bound to billing account.
	BillableObject *BillableObject `protobuf:"bytes,2,opt,name=billable_object,json=billableObject,proto3" json:"billable_object,omitempty"`
}

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

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

func (*BillableObjectBinding) ProtoMessage() {}

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

func (x *BillableObjectBinding) GetEffectiveTime() *timestamppb.Timestamp {
	if x != nil {
		return x.EffectiveTime
	}
	return nil
}

func (x *BillableObjectBinding) GetBillableObject() *BillableObject {
	if x != nil {
		return x.BillableObject
	}
	return nil
}

var File_yandex_cloud_billing_v1_billable_object_proto protoreflect.FileDescriptor

var file_yandex_cloud_billing_v1_billable_object_proto_rawDesc = []byte{
	0x0a, 0x2d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62,
	0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x61, 0x62,
	0x6c, 0x65, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
	0x17, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69,
	0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
	0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x34, 0x0a, 0x0e, 0x42, 0x69, 0x6c,
	0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69,
	0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74,
	0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22,
	0xac, 0x01, 0x0a, 0x15, 0x42, 0x69, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x62, 0x6a, 0x65,
	0x63, 0x74, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x41, 0x0a, 0x0e, 0x65, 0x66, 0x66,
	0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
	0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
	0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x65,
	0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x0f,
	0x62, 0x69, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18,
	0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63,
	0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e,
	0x42, 0x69, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x0e,
	0x62, 0x69, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x62,
	0x0a, 0x1b, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61,
	0x70, 0x69, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x5a, 0x43, 0x67,
	0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
	0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f,
	0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
	0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x69, 0x6c, 0x6c, 0x69,
	0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_yandex_cloud_billing_v1_billable_object_proto_rawDescOnce sync.Once
	file_yandex_cloud_billing_v1_billable_object_proto_rawDescData = file_yandex_cloud_billing_v1_billable_object_proto_rawDesc
)

func file_yandex_cloud_billing_v1_billable_object_proto_rawDescGZIP() []byte {
	file_yandex_cloud_billing_v1_billable_object_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_billing_v1_billable_object_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_billing_v1_billable_object_proto_rawDescData)
	})
	return file_yandex_cloud_billing_v1_billable_object_proto_rawDescData
}

var file_yandex_cloud_billing_v1_billable_object_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_billing_v1_billable_object_proto_goTypes = []any{
	(*BillableObject)(nil),        // 0: yandex.cloud.billing.v1.BillableObject
	(*BillableObjectBinding)(nil), // 1: yandex.cloud.billing.v1.BillableObjectBinding
	(*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
}
var file_yandex_cloud_billing_v1_billable_object_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.billing.v1.BillableObjectBinding.effective_time:type_name -> google.protobuf.Timestamp
	0, // 1: yandex.cloud.billing.v1.BillableObjectBinding.billable_object:type_name -> yandex.cloud.billing.v1.BillableObject
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] 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_yandex_cloud_billing_v1_billable_object_proto_init() }
func file_yandex_cloud_billing_v1_billable_object_proto_init() {
	if File_yandex_cloud_billing_v1_billable_object_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_yandex_cloud_billing_v1_billable_object_proto_msgTypes[0].Exporter = func(v any, i int) any {
			switch v := v.(*BillableObject); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_yandex_cloud_billing_v1_billable_object_proto_msgTypes[1].Exporter = func(v any, i int) any {
			switch v := v.(*BillableObjectBinding); 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_yandex_cloud_billing_v1_billable_object_proto_rawDesc,
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_billing_v1_billable_object_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_billing_v1_billable_object_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_billing_v1_billable_object_proto_msgTypes,
	}.Build()
	File_yandex_cloud_billing_v1_billable_object_proto = out.File
	file_yandex_cloud_billing_v1_billable_object_proto_rawDesc = nil
	file_yandex_cloud_billing_v1_billable_object_proto_goTypes = nil
	file_yandex_cloud_billing_v1_billable_object_proto_depIdxs = nil
}
