| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.9
- // protoc v6.32.1
- // source: customcost/messages.proto
- package pb
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- durationpb "google.golang.org/protobuf/types/known/durationpb"
- timestamppb "google.golang.org/protobuf/types/known/timestamppb"
- 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 CustomCostRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // the window of the returned objects
- Start *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
- End *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
- // resolution of steps to return
- Resolution *durationpb.Duration `protobuf:"bytes,3,opt,name=resolution,proto3" json:"resolution,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *CustomCostRequest) Reset() {
- *x = CustomCostRequest{}
- mi := &file_customcost_messages_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *CustomCostRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CustomCostRequest) ProtoMessage() {}
- func (x *CustomCostRequest) ProtoReflect() protoreflect.Message {
- mi := &file_customcost_messages_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 CustomCostRequest.ProtoReflect.Descriptor instead.
- func (*CustomCostRequest) Descriptor() ([]byte, []int) {
- return file_customcost_messages_proto_rawDescGZIP(), []int{0}
- }
- func (x *CustomCostRequest) GetStart() *timestamppb.Timestamp {
- if x != nil {
- return x.Start
- }
- return nil
- }
- func (x *CustomCostRequest) GetEnd() *timestamppb.Timestamp {
- if x != nil {
- return x.End
- }
- return nil
- }
- func (x *CustomCostRequest) GetResolution() *durationpb.Duration {
- if x != nil {
- return x.Resolution
- }
- return nil
- }
- type CustomCostResponseSet struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Resps []*CustomCostResponse `protobuf:"bytes,1,rep,name=resps,proto3" json:"resps,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *CustomCostResponseSet) Reset() {
- *x = CustomCostResponseSet{}
- mi := &file_customcost_messages_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *CustomCostResponseSet) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CustomCostResponseSet) ProtoMessage() {}
- func (x *CustomCostResponseSet) ProtoReflect() protoreflect.Message {
- mi := &file_customcost_messages_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 CustomCostResponseSet.ProtoReflect.Descriptor instead.
- func (*CustomCostResponseSet) Descriptor() ([]byte, []int) {
- return file_customcost_messages_proto_rawDescGZIP(), []int{1}
- }
- func (x *CustomCostResponseSet) GetResps() []*CustomCostResponse {
- if x != nil {
- return x.Resps
- }
- return nil
- }
- type CustomCostResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // provides metadata on the Custom CostResponse
- // deliberately left unstructured
- Metadata map[string]string `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- // declared by plugin
- // eg snowflake == "data management",
- // datadog == "observability" etc
- // intended for top level agg
- CostSource string `protobuf:"bytes,2,opt,name=cost_source,json=costSource,proto3" json:"cost_source,omitempty"`
- // the name of the custom cost source
- // e.g., "datadog"
- Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`
- // the version of the Custom Cost response
- // is set by the plugin, will vary between
- // different plugins
- Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
- // FOCUS billing currency
- Currency string `protobuf:"bytes,5,opt,name=currency,proto3" json:"currency,omitempty"`
- // the window of the returned objects
- Start *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=start,proto3" json:"start,omitempty"`
- End *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=end,proto3" json:"end,omitempty"`
- // array of CustomCosts
- Costs []*CustomCost `protobuf:"bytes,8,rep,name=costs,proto3" json:"costs,omitempty"`
- // any errors in processing
- Errors []string `protobuf:"bytes,9,rep,name=errors,proto3" json:"errors,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *CustomCostResponse) Reset() {
- *x = CustomCostResponse{}
- mi := &file_customcost_messages_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *CustomCostResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CustomCostResponse) ProtoMessage() {}
- func (x *CustomCostResponse) ProtoReflect() protoreflect.Message {
- mi := &file_customcost_messages_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 CustomCostResponse.ProtoReflect.Descriptor instead.
- func (*CustomCostResponse) Descriptor() ([]byte, []int) {
- return file_customcost_messages_proto_rawDescGZIP(), []int{2}
- }
- func (x *CustomCostResponse) GetMetadata() map[string]string {
- if x != nil {
- return x.Metadata
- }
- return nil
- }
- func (x *CustomCostResponse) GetCostSource() string {
- if x != nil {
- return x.CostSource
- }
- return ""
- }
- func (x *CustomCostResponse) GetDomain() string {
- if x != nil {
- return x.Domain
- }
- return ""
- }
- func (x *CustomCostResponse) GetVersion() string {
- if x != nil {
- return x.Version
- }
- return ""
- }
- func (x *CustomCostResponse) GetCurrency() string {
- if x != nil {
- return x.Currency
- }
- return ""
- }
- func (x *CustomCostResponse) GetStart() *timestamppb.Timestamp {
- if x != nil {
- return x.Start
- }
- return nil
- }
- func (x *CustomCostResponse) GetEnd() *timestamppb.Timestamp {
- if x != nil {
- return x.End
- }
- return nil
- }
- func (x *CustomCostResponse) GetCosts() []*CustomCost {
- if x != nil {
- return x.Costs
- }
- return nil
- }
- func (x *CustomCostResponse) GetErrors() []string {
- if x != nil {
- return x.Errors
- }
- return nil
- }
- type CustomCost struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // provides metadata on the Custom CostResponse
- // deliberately left unstructured
- Metadata map[string]string `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- // the region that the resource was incurred
- // corresponds to 'availability zone' of FOCUS
- Zone string `protobuf:"bytes,2,opt,name=zone,proto3" json:"zone,omitempty"`
- // FOCUS billing account name
- AccountName string `protobuf:"bytes,3,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
- // FOCUS charge category
- ChargeCategory string `protobuf:"bytes,4,opt,name=charge_category,json=chargeCategory,proto3" json:"charge_category,omitempty"`
- // FOCUS charge description
- Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
- // FOCUS Resource Name
- ResourceName string `protobuf:"bytes,6,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
- // FOCUS Resource type
- // if not set, assumed to be domain
- ResourceType string `protobuf:"bytes,7,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
- // ID of the individual cost. should be globally
- // unique. Assigned by plugin on read
- Id string `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"`
- // the provider's ID for the cost, if
- // available
- // FOCUS resource ID
- ProviderId string `protobuf:"bytes,9,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"`
- // FOCUS billed Cost
- BilledCost float32 `protobuf:"fixed32,10,opt,name=billed_cost,json=billedCost,proto3" json:"billed_cost,omitempty"`
- // FOCUS List Cost
- ListCost float32 `protobuf:"fixed32,11,opt,name=list_cost,json=listCost,proto3" json:"list_cost,omitempty"`
- // FOCUS List Unit Price
- ListUnitPrice float32 `protobuf:"fixed32,12,opt,name=list_unit_price,json=listUnitPrice,proto3" json:"list_unit_price,omitempty"`
- // FOCUS usage quantity
- UsageQuantity float32 `protobuf:"fixed32,13,opt,name=usage_quantity,json=usageQuantity,proto3" json:"usage_quantity,omitempty"`
- // FOCUS usage Unit
- UsageUnit string `protobuf:"bytes,14,opt,name=usage_unit,json=usageUnit,proto3" json:"usage_unit,omitempty"`
- // Returns key/value sets of labels
- // equivalent to Tags in focus spec
- Labels map[string]string `protobuf:"bytes,15,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- // Optional struct to implement other focus
- // spec attributes
- ExtendedAttributes *CustomCostExtendedAttributes `protobuf:"bytes,16,opt,name=extended_attributes,json=extendedAttributes,proto3,oneof" json:"extended_attributes,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *CustomCost) Reset() {
- *x = CustomCost{}
- mi := &file_customcost_messages_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *CustomCost) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CustomCost) ProtoMessage() {}
- func (x *CustomCost) ProtoReflect() protoreflect.Message {
- mi := &file_customcost_messages_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 CustomCost.ProtoReflect.Descriptor instead.
- func (*CustomCost) Descriptor() ([]byte, []int) {
- return file_customcost_messages_proto_rawDescGZIP(), []int{3}
- }
- func (x *CustomCost) GetMetadata() map[string]string {
- if x != nil {
- return x.Metadata
- }
- return nil
- }
- func (x *CustomCost) GetZone() string {
- if x != nil {
- return x.Zone
- }
- return ""
- }
- func (x *CustomCost) GetAccountName() string {
- if x != nil {
- return x.AccountName
- }
- return ""
- }
- func (x *CustomCost) GetChargeCategory() string {
- if x != nil {
- return x.ChargeCategory
- }
- return ""
- }
- func (x *CustomCost) GetDescription() string {
- if x != nil {
- return x.Description
- }
- return ""
- }
- func (x *CustomCost) GetResourceName() string {
- if x != nil {
- return x.ResourceName
- }
- return ""
- }
- func (x *CustomCost) GetResourceType() string {
- if x != nil {
- return x.ResourceType
- }
- return ""
- }
- func (x *CustomCost) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
- }
- func (x *CustomCost) GetProviderId() string {
- if x != nil {
- return x.ProviderId
- }
- return ""
- }
- func (x *CustomCost) GetBilledCost() float32 {
- if x != nil {
- return x.BilledCost
- }
- return 0
- }
- func (x *CustomCost) GetListCost() float32 {
- if x != nil {
- return x.ListCost
- }
- return 0
- }
- func (x *CustomCost) GetListUnitPrice() float32 {
- if x != nil {
- return x.ListUnitPrice
- }
- return 0
- }
- func (x *CustomCost) GetUsageQuantity() float32 {
- if x != nil {
- return x.UsageQuantity
- }
- return 0
- }
- func (x *CustomCost) GetUsageUnit() string {
- if x != nil {
- return x.UsageUnit
- }
- return ""
- }
- func (x *CustomCost) GetLabels() map[string]string {
- if x != nil {
- return x.Labels
- }
- return nil
- }
- func (x *CustomCost) GetExtendedAttributes() *CustomCostExtendedAttributes {
- if x != nil {
- return x.ExtendedAttributes
- }
- return nil
- }
- type CustomCostExtendedAttributes struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // FOCUS billing period start
- BillingPeriodStart *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=billing_period_start,json=billingPeriodStart,proto3,oneof" json:"billing_period_start,omitempty"`
- // FOCUS billing period end
- BillingPeriodEnd *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=billing_period_end,json=billingPeriodEnd,proto3,oneof" json:"billing_period_end,omitempty"`
- // FOCUS Billing Account ID
- AccountId *string `protobuf:"bytes,3,opt,name=account_id,json=accountId,proto3,oneof" json:"account_id,omitempty"`
- // FOCUS Charge Frequency
- ChargeFrequency *string `protobuf:"bytes,4,opt,name=charge_frequency,json=chargeFrequency,proto3,oneof" json:"charge_frequency,omitempty"`
- // FOCUS Charge Subcategory
- Subcategory *string `protobuf:"bytes,5,opt,name=subcategory,proto3,oneof" json:"subcategory,omitempty"`
- // FOCUS Commitment Discount Category
- CommitmentDiscountCategory *string `protobuf:"bytes,6,opt,name=commitment_discount_category,json=commitmentDiscountCategory,proto3,oneof" json:"commitment_discount_category,omitempty"`
- // FOCUS Commitment Discount ID
- CommitmentDiscountId *string `protobuf:"bytes,7,opt,name=commitment_discount_id,json=commitmentDiscountId,proto3,oneof" json:"commitment_discount_id,omitempty"`
- // FOCUS Commitment Discount Name
- CommitmentDiscountName *string `protobuf:"bytes,8,opt,name=commitment_discount_name,json=commitmentDiscountName,proto3,oneof" json:"commitment_discount_name,omitempty"`
- // FOCUS Commitment Discount Type
- CommitmentDiscountType *string `protobuf:"bytes,9,opt,name=commitment_discount_type,json=commitmentDiscountType,proto3,oneof" json:"commitment_discount_type,omitempty"`
- // FOCUS Effective Cost
- EffectiveCost *float32 `protobuf:"fixed32,10,opt,name=effective_cost,json=effectiveCost,proto3,oneof" json:"effective_cost,omitempty"`
- // FOCUS Invoice Issuer
- InvoiceIssuer *string `protobuf:"bytes,11,opt,name=invoice_issuer,json=invoiceIssuer,proto3,oneof" json:"invoice_issuer,omitempty"`
- // FOCUS Provider
- // if unset, assumed to be domain
- Provider *string `protobuf:"bytes,12,opt,name=provider,proto3,oneof" json:"provider,omitempty"`
- // FOCUS Publisher
- // if unset, assumed to be domain
- Publisher *string `protobuf:"bytes,13,opt,name=publisher,proto3,oneof" json:"publisher,omitempty"`
- // FOCUS Service Category
- // if unset, assumed to be cost source
- ServiceCategory *string `protobuf:"bytes,14,opt,name=service_category,json=serviceCategory,proto3,oneof" json:"service_category,omitempty"`
- // FOCUS Service Name
- // if unset, assumed to be cost source
- ServiceName *string `protobuf:"bytes,15,opt,name=service_name,json=serviceName,proto3,oneof" json:"service_name,omitempty"`
- // FOCUS SKU ID
- SkuId *string `protobuf:"bytes,16,opt,name=sku_id,json=skuId,proto3,oneof" json:"sku_id,omitempty"`
- // FOCUS SKU Price ID
- SkuPriceId *string `protobuf:"bytes,17,opt,name=sku_price_id,json=skuPriceId,proto3,oneof" json:"sku_price_id,omitempty"`
- // FOCUS Sub Account ID
- SubAccountId *string `protobuf:"bytes,18,opt,name=sub_account_id,json=subAccountId,proto3,oneof" json:"sub_account_id,omitempty"`
- // FOCUS Sub Account Name
- SubAccountName *string `protobuf:"bytes,19,opt,name=sub_account_name,json=subAccountName,proto3,oneof" json:"sub_account_name,omitempty"`
- // FOCUS Pricing Quantity
- PricingQuantity *float32 `protobuf:"fixed32,20,opt,name=pricing_quantity,json=pricingQuantity,proto3,oneof" json:"pricing_quantity,omitempty"`
- // FOCUS Pricing Unit
- PricingUnit *string `protobuf:"bytes,21,opt,name=pricing_unit,json=pricingUnit,proto3,oneof" json:"pricing_unit,omitempty"`
- // FOCUS Pricing Category
- PricingCategory *string `protobuf:"bytes,22,opt,name=pricing_category,json=pricingCategory,proto3,oneof" json:"pricing_category,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *CustomCostExtendedAttributes) Reset() {
- *x = CustomCostExtendedAttributes{}
- mi := &file_customcost_messages_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *CustomCostExtendedAttributes) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CustomCostExtendedAttributes) ProtoMessage() {}
- func (x *CustomCostExtendedAttributes) ProtoReflect() protoreflect.Message {
- mi := &file_customcost_messages_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 CustomCostExtendedAttributes.ProtoReflect.Descriptor instead.
- func (*CustomCostExtendedAttributes) Descriptor() ([]byte, []int) {
- return file_customcost_messages_proto_rawDescGZIP(), []int{4}
- }
- func (x *CustomCostExtendedAttributes) GetBillingPeriodStart() *timestamppb.Timestamp {
- if x != nil {
- return x.BillingPeriodStart
- }
- return nil
- }
- func (x *CustomCostExtendedAttributes) GetBillingPeriodEnd() *timestamppb.Timestamp {
- if x != nil {
- return x.BillingPeriodEnd
- }
- return nil
- }
- func (x *CustomCostExtendedAttributes) GetAccountId() string {
- if x != nil && x.AccountId != nil {
- return *x.AccountId
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetChargeFrequency() string {
- if x != nil && x.ChargeFrequency != nil {
- return *x.ChargeFrequency
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetSubcategory() string {
- if x != nil && x.Subcategory != nil {
- return *x.Subcategory
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetCommitmentDiscountCategory() string {
- if x != nil && x.CommitmentDiscountCategory != nil {
- return *x.CommitmentDiscountCategory
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetCommitmentDiscountId() string {
- if x != nil && x.CommitmentDiscountId != nil {
- return *x.CommitmentDiscountId
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetCommitmentDiscountName() string {
- if x != nil && x.CommitmentDiscountName != nil {
- return *x.CommitmentDiscountName
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetCommitmentDiscountType() string {
- if x != nil && x.CommitmentDiscountType != nil {
- return *x.CommitmentDiscountType
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetEffectiveCost() float32 {
- if x != nil && x.EffectiveCost != nil {
- return *x.EffectiveCost
- }
- return 0
- }
- func (x *CustomCostExtendedAttributes) GetInvoiceIssuer() string {
- if x != nil && x.InvoiceIssuer != nil {
- return *x.InvoiceIssuer
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetProvider() string {
- if x != nil && x.Provider != nil {
- return *x.Provider
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetPublisher() string {
- if x != nil && x.Publisher != nil {
- return *x.Publisher
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetServiceCategory() string {
- if x != nil && x.ServiceCategory != nil {
- return *x.ServiceCategory
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetServiceName() string {
- if x != nil && x.ServiceName != nil {
- return *x.ServiceName
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetSkuId() string {
- if x != nil && x.SkuId != nil {
- return *x.SkuId
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetSkuPriceId() string {
- if x != nil && x.SkuPriceId != nil {
- return *x.SkuPriceId
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetSubAccountId() string {
- if x != nil && x.SubAccountId != nil {
- return *x.SubAccountId
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetSubAccountName() string {
- if x != nil && x.SubAccountName != nil {
- return *x.SubAccountName
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetPricingQuantity() float32 {
- if x != nil && x.PricingQuantity != nil {
- return *x.PricingQuantity
- }
- return 0
- }
- func (x *CustomCostExtendedAttributes) GetPricingUnit() string {
- if x != nil && x.PricingUnit != nil {
- return *x.PricingUnit
- }
- return ""
- }
- func (x *CustomCostExtendedAttributes) GetPricingCategory() string {
- if x != nil && x.PricingCategory != nil {
- return *x.PricingCategory
- }
- return ""
- }
- var File_customcost_messages_proto protoreflect.FileDescriptor
- const file_customcost_messages_proto_rawDesc = "" +
- "\n" +
- "\x19customcost/messages.proto\x12\x13customcost.messages\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\"\xae\x01\n" +
- "\x11CustomCostRequest\x120\n" +
- "\x05start\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x05start\x12,\n" +
- "\x03end\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x03end\x129\n" +
- "\n" +
- "resolution\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\n" +
- "resolution\"V\n" +
- "\x15CustomCostResponseSet\x12=\n" +
- "\x05resps\x18\x01 \x03(\v2'.customcost.messages.CustomCostResponseR\x05resps\"\xc2\x03\n" +
- "\x12CustomCostResponse\x12Q\n" +
- "\bmetadata\x18\x01 \x03(\v25.customcost.messages.CustomCostResponse.MetadataEntryR\bmetadata\x12\x1f\n" +
- "\vcost_source\x18\x02 \x01(\tR\n" +
- "costSource\x12\x16\n" +
- "\x06domain\x18\x03 \x01(\tR\x06domain\x12\x18\n" +
- "\aversion\x18\x04 \x01(\tR\aversion\x12\x1a\n" +
- "\bcurrency\x18\x05 \x01(\tR\bcurrency\x120\n" +
- "\x05start\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\x05start\x12,\n" +
- "\x03end\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\x03end\x125\n" +
- "\x05costs\x18\b \x03(\v2\x1f.customcost.messages.CustomCostR\x05costs\x12\x16\n" +
- "\x06errors\x18\t \x03(\tR\x06errors\x1a;\n" +
- "\rMetadataEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xbe\x06\n" +
- "\n" +
- "CustomCost\x12I\n" +
- "\bmetadata\x18\x01 \x03(\v2-.customcost.messages.CustomCost.MetadataEntryR\bmetadata\x12\x12\n" +
- "\x04zone\x18\x02 \x01(\tR\x04zone\x12!\n" +
- "\faccount_name\x18\x03 \x01(\tR\vaccountName\x12'\n" +
- "\x0fcharge_category\x18\x04 \x01(\tR\x0echargeCategory\x12 \n" +
- "\vdescription\x18\x05 \x01(\tR\vdescription\x12#\n" +
- "\rresource_name\x18\x06 \x01(\tR\fresourceName\x12#\n" +
- "\rresource_type\x18\a \x01(\tR\fresourceType\x12\x0e\n" +
- "\x02id\x18\b \x01(\tR\x02id\x12\x1f\n" +
- "\vprovider_id\x18\t \x01(\tR\n" +
- "providerId\x12\x1f\n" +
- "\vbilled_cost\x18\n" +
- " \x01(\x02R\n" +
- "billedCost\x12\x1b\n" +
- "\tlist_cost\x18\v \x01(\x02R\blistCost\x12&\n" +
- "\x0flist_unit_price\x18\f \x01(\x02R\rlistUnitPrice\x12%\n" +
- "\x0eusage_quantity\x18\r \x01(\x02R\rusageQuantity\x12\x1d\n" +
- "\n" +
- "usage_unit\x18\x0e \x01(\tR\tusageUnit\x12C\n" +
- "\x06labels\x18\x0f \x03(\v2+.customcost.messages.CustomCost.LabelsEntryR\x06labels\x12g\n" +
- "\x13extended_attributes\x18\x10 \x01(\v21.customcost.messages.CustomCostExtendedAttributesH\x00R\x12extendedAttributes\x88\x01\x01\x1a;\n" +
- "\rMetadataEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a9\n" +
- "\vLabelsEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\x16\n" +
- "\x14_extended_attributes\"\x94\f\n" +
- "\x1cCustomCostExtendedAttributes\x12Q\n" +
- "\x14billing_period_start\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampH\x00R\x12billingPeriodStart\x88\x01\x01\x12M\n" +
- "\x12billing_period_end\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampH\x01R\x10billingPeriodEnd\x88\x01\x01\x12\"\n" +
- "\n" +
- "account_id\x18\x03 \x01(\tH\x02R\taccountId\x88\x01\x01\x12.\n" +
- "\x10charge_frequency\x18\x04 \x01(\tH\x03R\x0fchargeFrequency\x88\x01\x01\x12%\n" +
- "\vsubcategory\x18\x05 \x01(\tH\x04R\vsubcategory\x88\x01\x01\x12E\n" +
- "\x1ccommitment_discount_category\x18\x06 \x01(\tH\x05R\x1acommitmentDiscountCategory\x88\x01\x01\x129\n" +
- "\x16commitment_discount_id\x18\a \x01(\tH\x06R\x14commitmentDiscountId\x88\x01\x01\x12=\n" +
- "\x18commitment_discount_name\x18\b \x01(\tH\aR\x16commitmentDiscountName\x88\x01\x01\x12=\n" +
- "\x18commitment_discount_type\x18\t \x01(\tH\bR\x16commitmentDiscountType\x88\x01\x01\x12*\n" +
- "\x0eeffective_cost\x18\n" +
- " \x01(\x02H\tR\reffectiveCost\x88\x01\x01\x12*\n" +
- "\x0einvoice_issuer\x18\v \x01(\tH\n" +
- "R\rinvoiceIssuer\x88\x01\x01\x12\x1f\n" +
- "\bprovider\x18\f \x01(\tH\vR\bprovider\x88\x01\x01\x12!\n" +
- "\tpublisher\x18\r \x01(\tH\fR\tpublisher\x88\x01\x01\x12.\n" +
- "\x10service_category\x18\x0e \x01(\tH\rR\x0fserviceCategory\x88\x01\x01\x12&\n" +
- "\fservice_name\x18\x0f \x01(\tH\x0eR\vserviceName\x88\x01\x01\x12\x1a\n" +
- "\x06sku_id\x18\x10 \x01(\tH\x0fR\x05skuId\x88\x01\x01\x12%\n" +
- "\fsku_price_id\x18\x11 \x01(\tH\x10R\n" +
- "skuPriceId\x88\x01\x01\x12)\n" +
- "\x0esub_account_id\x18\x12 \x01(\tH\x11R\fsubAccountId\x88\x01\x01\x12-\n" +
- "\x10sub_account_name\x18\x13 \x01(\tH\x12R\x0esubAccountName\x88\x01\x01\x12.\n" +
- "\x10pricing_quantity\x18\x14 \x01(\x02H\x13R\x0fpricingQuantity\x88\x01\x01\x12&\n" +
- "\fpricing_unit\x18\x15 \x01(\tH\x14R\vpricingUnit\x88\x01\x01\x12.\n" +
- "\x10pricing_category\x18\x16 \x01(\tH\x15R\x0fpricingCategory\x88\x01\x01B\x17\n" +
- "\x15_billing_period_startB\x15\n" +
- "\x13_billing_period_endB\r\n" +
- "\v_account_idB\x13\n" +
- "\x11_charge_frequencyB\x0e\n" +
- "\f_subcategoryB\x1f\n" +
- "\x1d_commitment_discount_categoryB\x19\n" +
- "\x17_commitment_discount_idB\x1b\n" +
- "\x19_commitment_discount_nameB\x1b\n" +
- "\x19_commitment_discount_typeB\x11\n" +
- "\x0f_effective_costB\x11\n" +
- "\x0f_invoice_issuerB\v\n" +
- "\t_providerB\f\n" +
- "\n" +
- "_publisherB\x13\n" +
- "\x11_service_categoryB\x0f\n" +
- "\r_service_nameB\t\n" +
- "\a_sku_idB\x0f\n" +
- "\r_sku_price_idB\x11\n" +
- "\x0f_sub_account_idB\x13\n" +
- "\x11_sub_account_nameB\x13\n" +
- "\x11_pricing_quantityB\x0f\n" +
- "\r_pricing_unitB\x13\n" +
- "\x11_pricing_category2y\n" +
- "\x11CustomCostsSource\x12d\n" +
- "\x0eGetCustomCosts\x12&.customcost.messages.CustomCostRequest\x1a*.customcost.messages.CustomCostResponseSetB0Z.github.com/opencost/opencost/core/pkg/model/pbb\x06proto3"
- var (
- file_customcost_messages_proto_rawDescOnce sync.Once
- file_customcost_messages_proto_rawDescData []byte
- )
- func file_customcost_messages_proto_rawDescGZIP() []byte {
- file_customcost_messages_proto_rawDescOnce.Do(func() {
- file_customcost_messages_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_customcost_messages_proto_rawDesc), len(file_customcost_messages_proto_rawDesc)))
- })
- return file_customcost_messages_proto_rawDescData
- }
- var file_customcost_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
- var file_customcost_messages_proto_goTypes = []any{
- (*CustomCostRequest)(nil), // 0: customcost.messages.CustomCostRequest
- (*CustomCostResponseSet)(nil), // 1: customcost.messages.CustomCostResponseSet
- (*CustomCostResponse)(nil), // 2: customcost.messages.CustomCostResponse
- (*CustomCost)(nil), // 3: customcost.messages.CustomCost
- (*CustomCostExtendedAttributes)(nil), // 4: customcost.messages.CustomCostExtendedAttributes
- nil, // 5: customcost.messages.CustomCostResponse.MetadataEntry
- nil, // 6: customcost.messages.CustomCost.MetadataEntry
- nil, // 7: customcost.messages.CustomCost.LabelsEntry
- (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp
- (*durationpb.Duration)(nil), // 9: google.protobuf.Duration
- }
- var file_customcost_messages_proto_depIdxs = []int32{
- 8, // 0: customcost.messages.CustomCostRequest.start:type_name -> google.protobuf.Timestamp
- 8, // 1: customcost.messages.CustomCostRequest.end:type_name -> google.protobuf.Timestamp
- 9, // 2: customcost.messages.CustomCostRequest.resolution:type_name -> google.protobuf.Duration
- 2, // 3: customcost.messages.CustomCostResponseSet.resps:type_name -> customcost.messages.CustomCostResponse
- 5, // 4: customcost.messages.CustomCostResponse.metadata:type_name -> customcost.messages.CustomCostResponse.MetadataEntry
- 8, // 5: customcost.messages.CustomCostResponse.start:type_name -> google.protobuf.Timestamp
- 8, // 6: customcost.messages.CustomCostResponse.end:type_name -> google.protobuf.Timestamp
- 3, // 7: customcost.messages.CustomCostResponse.costs:type_name -> customcost.messages.CustomCost
- 6, // 8: customcost.messages.CustomCost.metadata:type_name -> customcost.messages.CustomCost.MetadataEntry
- 7, // 9: customcost.messages.CustomCost.labels:type_name -> customcost.messages.CustomCost.LabelsEntry
- 4, // 10: customcost.messages.CustomCost.extended_attributes:type_name -> customcost.messages.CustomCostExtendedAttributes
- 8, // 11: customcost.messages.CustomCostExtendedAttributes.billing_period_start:type_name -> google.protobuf.Timestamp
- 8, // 12: customcost.messages.CustomCostExtendedAttributes.billing_period_end:type_name -> google.protobuf.Timestamp
- 0, // 13: customcost.messages.CustomCostsSource.GetCustomCosts:input_type -> customcost.messages.CustomCostRequest
- 1, // 14: customcost.messages.CustomCostsSource.GetCustomCosts:output_type -> customcost.messages.CustomCostResponseSet
- 14, // [14:15] is the sub-list for method output_type
- 13, // [13:14] is the sub-list for method input_type
- 13, // [13:13] is the sub-list for extension type_name
- 13, // [13:13] is the sub-list for extension extendee
- 0, // [0:13] is the sub-list for field type_name
- }
- func init() { file_customcost_messages_proto_init() }
- func file_customcost_messages_proto_init() {
- if File_customcost_messages_proto != nil {
- return
- }
- file_customcost_messages_proto_msgTypes[3].OneofWrappers = []any{}
- file_customcost_messages_proto_msgTypes[4].OneofWrappers = []any{}
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_customcost_messages_proto_rawDesc), len(file_customcost_messages_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 8,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_customcost_messages_proto_goTypes,
- DependencyIndexes: file_customcost_messages_proto_depIdxs,
- MessageInfos: file_customcost_messages_proto_msgTypes,
- }.Build()
- File_customcost_messages_proto = out.File
- file_customcost_messages_proto_goTypes = nil
- file_customcost_messages_proto_depIdxs = nil
- }
|