billingv1alpha1

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvoiceService_ListInvoices_FullMethodName = "/redpanda.api.billing.v1alpha1.InvoiceService/ListInvoices"
)
View Source
const (
	UsageService_ListUsages_FullMethodName = "/redpanda.api.billing.v1alpha1.UsageService/ListUsages"
)
View Source
const (
	UsageTypeService_ListUsageTypes_FullMethodName = "/redpanda.api.billing.v1alpha1.UsageTypeService/ListUsageTypes"
)

Variables

View Source
var (
	MetronomeStatus_name = map[int32]string{
		0: "METRONOME_STATUS_UNSPECIFIED",
		1: "METRONOME_STATUS_DRAFT",
		2: "METRONOME_STATUS_FINALIZED",
		3: "METRONOME_STATUS_VOID",
	}
	MetronomeStatus_value = map[string]int32{
		"METRONOME_STATUS_UNSPECIFIED": 0,
		"METRONOME_STATUS_DRAFT":       1,
		"METRONOME_STATUS_FINALIZED":   2,
		"METRONOME_STATUS_VOID":        3,
	}
)

Enum value maps for MetronomeStatus.

View Source
var (
	ListUsagesRequest_WindowSize_name = map[int32]string{
		0: "WINDOW_SIZE_UNSPECIFIED",
		1: "WINDOW_SIZE_HOUR",
		2: "WINDOW_SIZE_DAY",
	}
	ListUsagesRequest_WindowSize_value = map[string]int32{
		"WINDOW_SIZE_UNSPECIFIED": 0,
		"WINDOW_SIZE_HOUR":        1,
		"WINDOW_SIZE_DAY":         2,
	}
)

Enum value maps for ListUsagesRequest_WindowSize.

View Source
var (
	ProductType_name = map[int32]string{
		0: "PRODUCT_TYPE_UNSPECIFIED",
		1: "PRODUCT_TYPE_DEDICATED",
		2: "PRODUCT_TYPE_BYOC",
		3: "PRODUCT_TYPE_SERVERLESS",
	}
	ProductType_value = map[string]int32{
		"PRODUCT_TYPE_UNSPECIFIED": 0,
		"PRODUCT_TYPE_DEDICATED":   1,
		"PRODUCT_TYPE_BYOC":        2,
		"PRODUCT_TYPE_SERVERLESS":  3,
	}
)

Enum value maps for ProductType.

View Source
var File_redpanda_api_billing_v1alpha1_invoice_proto protoreflect.FileDescriptor
View Source
var File_redpanda_api_billing_v1alpha1_usage_proto protoreflect.FileDescriptor
View Source
var File_redpanda_api_billing_v1alpha1_usage_type_proto protoreflect.FileDescriptor
View Source
var InvoiceService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "redpanda.api.billing.v1alpha1.InvoiceService",
	HandlerType: (*InvoiceServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListInvoices",
			Handler:    _InvoiceService_ListInvoices_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "redpanda/api/billing/v1alpha1/invoice.proto",
}

InvoiceService_ServiceDesc is the grpc.ServiceDesc for InvoiceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var UsageService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "redpanda.api.billing.v1alpha1.UsageService",
	HandlerType: (*UsageServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListUsages",
			Handler:    _UsageService_ListUsages_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "redpanda/api/billing/v1alpha1/usage.proto",
}

UsageService_ServiceDesc is the grpc.ServiceDesc for UsageService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var UsageTypeService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "redpanda.api.billing.v1alpha1.UsageTypeService",
	HandlerType: (*UsageTypeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListUsageTypes",
			Handler:    _UsageTypeService_ListUsageTypes_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "redpanda/api/billing/v1alpha1/usage_type.proto",
}

UsageTypeService_ServiceDesc is the grpc.ServiceDesc for UsageTypeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterInvoiceServiceServer

func RegisterInvoiceServiceServer(s grpc.ServiceRegistrar, srv InvoiceServiceServer)

func RegisterUsageServiceServer

func RegisterUsageServiceServer(s grpc.ServiceRegistrar, srv UsageServiceServer)

func RegisterUsageTypeServiceServer

func RegisterUsageTypeServiceServer(s grpc.ServiceRegistrar, srv UsageTypeServiceServer)

Types

type Invoice

type Invoice struct {
	Id                 string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	InvoiceAdjustments []*InvoiceAdjustment   `protobuf:"bytes,2,rep,name=invoice_adjustments,json=invoiceAdjustments,proto3" json:"invoice_adjustments,omitempty"`
	LineItems          []*LineItem            `protobuf:"bytes,3,rep,name=line_items,json=lineItems,proto3" json:"line_items,omitempty"`
	StartAt            *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"`
	EndAt              *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_at,json=endAt,proto3" json:"end_at,omitempty"`
	IssuedAt           *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
	Status             MetronomeStatus        `protobuf:"varint,7,opt,name=status,proto3,enum=redpanda.api.billing.v1alpha1.MetronomeStatus" json:"status,omitempty"`
	Subtotal           *v1alpha1.Money        `protobuf:"bytes,8,opt,name=subtotal,proto3" json:"subtotal,omitempty"`
	Total              *v1alpha1.Money        `protobuf:"bytes,9,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*Invoice) Descriptor deprecated

func (*Invoice) Descriptor() ([]byte, []int)

Deprecated: Use Invoice.ProtoReflect.Descriptor instead.

func (*Invoice) GetEndAt

func (x *Invoice) GetEndAt() *timestamppb.Timestamp

func (*Invoice) GetId

func (x *Invoice) GetId() string

func (*Invoice) GetInvoiceAdjustments

func (x *Invoice) GetInvoiceAdjustments() []*InvoiceAdjustment

func (*Invoice) GetIssuedAt

func (x *Invoice) GetIssuedAt() *timestamppb.Timestamp

func (*Invoice) GetLineItems

func (x *Invoice) GetLineItems() []*LineItem

func (*Invoice) GetStartAt

func (x *Invoice) GetStartAt() *timestamppb.Timestamp

func (*Invoice) GetStatus

func (x *Invoice) GetStatus() MetronomeStatus

func (*Invoice) GetSubtotal

func (x *Invoice) GetSubtotal() *v1alpha1.Money

func (*Invoice) GetTotal

func (x *Invoice) GetTotal() *v1alpha1.Money

func (*Invoice) ProtoMessage

func (*Invoice) ProtoMessage()

func (*Invoice) ProtoReflect

func (x *Invoice) ProtoReflect() protoreflect.Message

func (*Invoice) Reset

func (x *Invoice) Reset()

func (*Invoice) String

func (x *Invoice) String() string

type InvoiceAdjustment

type InvoiceAdjustment struct {
	Name  string          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Total *v1alpha1.Money `protobuf:"bytes,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*InvoiceAdjustment) Descriptor deprecated

func (*InvoiceAdjustment) Descriptor() ([]byte, []int)

Deprecated: Use InvoiceAdjustment.ProtoReflect.Descriptor instead.

func (*InvoiceAdjustment) GetName

func (x *InvoiceAdjustment) GetName() string

func (*InvoiceAdjustment) GetTotal

func (x *InvoiceAdjustment) GetTotal() *v1alpha1.Money

func (*InvoiceAdjustment) ProtoMessage

func (*InvoiceAdjustment) ProtoMessage()

func (*InvoiceAdjustment) ProtoReflect

func (x *InvoiceAdjustment) ProtoReflect() protoreflect.Message

func (*InvoiceAdjustment) Reset

func (x *InvoiceAdjustment) Reset()

func (*InvoiceAdjustment) String

func (x *InvoiceAdjustment) String() string

type InvoiceServiceClient

type InvoiceServiceClient interface {
	ListInvoices(ctx context.Context, in *ListInvoicesRequest, opts ...grpc.CallOption) (*ListInvoicesResponse, error)
}

InvoiceServiceClient is the client API for InvoiceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type InvoiceServiceServer

type InvoiceServiceServer interface {
	ListInvoices(context.Context, *ListInvoicesRequest) (*ListInvoicesResponse, error)
}

InvoiceServiceServer is the server API for InvoiceService service. All implementations should embed UnimplementedInvoiceServiceServer for forward compatibility

type LineItem

type LineItem struct {
	Name         string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	GroupKey     string                 `protobuf:"bytes,2,opt,name=group_key,json=groupKey,proto3" json:"group_key,omitempty"`
	GroupValue   string                 `protobuf:"bytes,3,opt,name=group_value,json=groupValue,proto3" json:"group_value,omitempty"`
	Quantity     int64                  `protobuf:"varint,4,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Total        *v1alpha1.Money        `protobuf:"bytes,5,opt,name=total,proto3" json:"total,omitempty"`
	UnitPrice    *v1alpha1.Money        `protobuf:"bytes,6,opt,name=unit_price,json=unitPrice,proto3" json:"unit_price,omitempty"`
	StartingAt   *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=starting_at,json=startingAt,proto3" json:"starting_at,omitempty"`
	EndingBefore *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=ending_before,json=endingBefore,proto3" json:"ending_before,omitempty"`
	SubLineItems []*SubLineItem         `protobuf:"bytes,9,rep,name=sub_line_items,json=subLineItems,proto3" json:"sub_line_items,omitempty"`
	// contains filtered or unexported fields
}

func (*LineItem) Descriptor deprecated

func (*LineItem) Descriptor() ([]byte, []int)

Deprecated: Use LineItem.ProtoReflect.Descriptor instead.

func (*LineItem) GetEndingBefore

func (x *LineItem) GetEndingBefore() *timestamppb.Timestamp

func (*LineItem) GetGroupKey

func (x *LineItem) GetGroupKey() string

func (*LineItem) GetGroupValue

func (x *LineItem) GetGroupValue() string

func (*LineItem) GetName

func (x *LineItem) GetName() string

func (*LineItem) GetQuantity

func (x *LineItem) GetQuantity() int64

func (*LineItem) GetStartingAt

func (x *LineItem) GetStartingAt() *timestamppb.Timestamp

func (*LineItem) GetSubLineItems

func (x *LineItem) GetSubLineItems() []*SubLineItem

func (*LineItem) GetTotal

func (x *LineItem) GetTotal() *v1alpha1.Money

func (*LineItem) GetUnitPrice

func (x *LineItem) GetUnitPrice() *v1alpha1.Money

func (*LineItem) ProtoMessage

func (*LineItem) ProtoMessage()

func (*LineItem) ProtoReflect

func (x *LineItem) ProtoReflect() protoreflect.Message

func (*LineItem) Reset

func (x *LineItem) Reset()

func (*LineItem) String

func (x *LineItem) String() string

type ListInvoicesRequest

type ListInvoicesRequest struct {
	Filter    *ListInvoicesRequest_Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	PageSize  int32                       `protobuf:"varint,2,opt,name=page_size,proto3" json:"page_size,omitempty"`
	PageToken string                      `protobuf:"bytes,3,opt,name=page_token,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

ListInvoiceRequest is the request for ListInvoice

func (*ListInvoicesRequest) Descriptor deprecated

func (*ListInvoicesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListInvoicesRequest.ProtoReflect.Descriptor instead.

func (*ListInvoicesRequest) GetFilter

func (*ListInvoicesRequest) GetPageSize

func (x *ListInvoicesRequest) GetPageSize() int32

func (*ListInvoicesRequest) GetPageToken

func (x *ListInvoicesRequest) GetPageToken() string

func (*ListInvoicesRequest) ProtoMessage

func (*ListInvoicesRequest) ProtoMessage()

func (*ListInvoicesRequest) ProtoReflect

func (x *ListInvoicesRequest) ProtoReflect() protoreflect.Message

func (*ListInvoicesRequest) Reset

func (x *ListInvoicesRequest) Reset()

func (*ListInvoicesRequest) String

func (x *ListInvoicesRequest) String() string

type ListInvoicesRequest_Filter

type ListInvoicesRequest_Filter struct {
	Status       MetronomeStatus        `protobuf:"varint,1,opt,name=status,proto3,enum=redpanda.api.billing.v1alpha1.MetronomeStatus" json:"status,omitempty"`
	StartingOn   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=starting_on,json=startingOn,proto3" json:"starting_on,omitempty"`
	EndingBefore *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=ending_before,json=endingBefore,proto3" json:"ending_before,omitempty"`
	// contains filtered or unexported fields
}

func (*ListInvoicesRequest_Filter) Descriptor deprecated

func (*ListInvoicesRequest_Filter) Descriptor() ([]byte, []int)

Deprecated: Use ListInvoicesRequest_Filter.ProtoReflect.Descriptor instead.

func (*ListInvoicesRequest_Filter) GetEndingBefore

func (x *ListInvoicesRequest_Filter) GetEndingBefore() *timestamppb.Timestamp

func (*ListInvoicesRequest_Filter) GetStartingOn

func (x *ListInvoicesRequest_Filter) GetStartingOn() *timestamppb.Timestamp

func (*ListInvoicesRequest_Filter) GetStatus

func (*ListInvoicesRequest_Filter) ProtoMessage

func (*ListInvoicesRequest_Filter) ProtoMessage()

func (*ListInvoicesRequest_Filter) ProtoReflect

func (*ListInvoicesRequest_Filter) Reset

func (x *ListInvoicesRequest_Filter) Reset()

func (*ListInvoicesRequest_Filter) String

func (x *ListInvoicesRequest_Filter) String() string

type ListInvoicesResponse

type ListInvoicesResponse struct {
	Invoices []*Invoice `protobuf:"bytes,1,rep,name=invoices,proto3" json:"invoices,omitempty"`
	// Page Token to fetch the next page. The value can be used as next_page_token in the next call to this endpoint. If the response respresents the final page, this field is not set.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

InvoiceStatementResponse is ther response for ListInvoice

func (*ListInvoicesResponse) Descriptor deprecated

func (*ListInvoicesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListInvoicesResponse.ProtoReflect.Descriptor instead.

func (*ListInvoicesResponse) GetInvoices

func (x *ListInvoicesResponse) GetInvoices() []*Invoice

func (*ListInvoicesResponse) GetNextPageToken

func (x *ListInvoicesResponse) GetNextPageToken() string

func (*ListInvoicesResponse) ProtoMessage

func (*ListInvoicesResponse) ProtoMessage()

func (*ListInvoicesResponse) ProtoReflect

func (x *ListInvoicesResponse) ProtoReflect() protoreflect.Message

func (*ListInvoicesResponse) Reset

func (x *ListInvoicesResponse) Reset()

func (*ListInvoicesResponse) String

func (x *ListInvoicesResponse) String() string

type ListUsageTypesRequest

type ListUsageTypesRequest struct {
	PageSize  int32  `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsageTypesRequest) Descriptor deprecated

func (*ListUsageTypesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListUsageTypesRequest.ProtoReflect.Descriptor instead.

func (*ListUsageTypesRequest) GetPageSize

func (x *ListUsageTypesRequest) GetPageSize() int32

func (*ListUsageTypesRequest) GetPageToken

func (x *ListUsageTypesRequest) GetPageToken() string

func (*ListUsageTypesRequest) ProtoMessage

func (*ListUsageTypesRequest) ProtoMessage()

func (*ListUsageTypesRequest) ProtoReflect

func (x *ListUsageTypesRequest) ProtoReflect() protoreflect.Message

func (*ListUsageTypesRequest) Reset

func (x *ListUsageTypesRequest) Reset()

func (*ListUsageTypesRequest) String

func (x *ListUsageTypesRequest) String() string

type ListUsageTypesResponse

type ListUsageTypesResponse struct {
	UsageTypes    []*UsageType `protobuf:"bytes,1,rep,name=usage_types,json=usageTypes,proto3" json:"usage_types,omitempty"`
	NextPageToken string       `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsageTypesResponse) Descriptor deprecated

func (*ListUsageTypesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListUsageTypesResponse.ProtoReflect.Descriptor instead.

func (*ListUsageTypesResponse) GetNextPageToken

func (x *ListUsageTypesResponse) GetNextPageToken() string

func (*ListUsageTypesResponse) GetUsageTypes

func (x *ListUsageTypesResponse) GetUsageTypes() []*UsageType

func (*ListUsageTypesResponse) ProtoMessage

func (*ListUsageTypesResponse) ProtoMessage()

func (*ListUsageTypesResponse) ProtoReflect

func (x *ListUsageTypesResponse) ProtoReflect() protoreflect.Message

func (*ListUsageTypesResponse) Reset

func (x *ListUsageTypesResponse) Reset()

func (*ListUsageTypesResponse) String

func (x *ListUsageTypesResponse) String() string

type ListUsagesRequest

type ListUsagesRequest struct {
	Filter    *ListUsagesRequest_Filter `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	PageSize  int32                     `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string                    `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsagesRequest) Descriptor deprecated

func (*ListUsagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListUsagesRequest.ProtoReflect.Descriptor instead.

func (*ListUsagesRequest) GetFilter

func (*ListUsagesRequest) GetPageSize

func (x *ListUsagesRequest) GetPageSize() int32

func (*ListUsagesRequest) GetPageToken

func (x *ListUsagesRequest) GetPageToken() string

func (*ListUsagesRequest) ProtoMessage

func (*ListUsagesRequest) ProtoMessage()

func (*ListUsagesRequest) ProtoReflect

func (x *ListUsagesRequest) ProtoReflect() protoreflect.Message

func (*ListUsagesRequest) Reset

func (x *ListUsagesRequest) Reset()

func (*ListUsagesRequest) String

func (x *ListUsagesRequest) String() string

type ListUsagesRequest_Filter

type ListUsagesRequest_Filter struct {
	StartingOn   *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=starting_on,json=startingOn,proto3" json:"starting_on,omitempty"`
	EndingBefore *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=ending_before,json=endingBefore,proto3" json:"ending_before,omitempty"`
	Resource     *UsageResource         `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
	UsageTypeId  string                 `protobuf:"bytes,4,opt,name=usage_type_id,json=usageTypeId,proto3" json:"usage_type_id,omitempty"`
	// WindowSize If is true, will return the usage for the current billing period and ignore starting_on and ending_before
	WindowSize    ListUsagesRequest_WindowSize `` /* 156-byte string literal not displayed */
	CurrentPeriod bool                         `protobuf:"varint,6,opt,name=current_period,json=currentPeriod,proto3" json:"current_period,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsagesRequest_Filter) Descriptor deprecated

func (*ListUsagesRequest_Filter) Descriptor() ([]byte, []int)

Deprecated: Use ListUsagesRequest_Filter.ProtoReflect.Descriptor instead.

func (*ListUsagesRequest_Filter) GetCurrentPeriod

func (x *ListUsagesRequest_Filter) GetCurrentPeriod() bool

func (*ListUsagesRequest_Filter) GetEndingBefore

func (x *ListUsagesRequest_Filter) GetEndingBefore() *timestamppb.Timestamp

func (*ListUsagesRequest_Filter) GetResource

func (x *ListUsagesRequest_Filter) GetResource() *UsageResource

func (*ListUsagesRequest_Filter) GetStartingOn

func (x *ListUsagesRequest_Filter) GetStartingOn() *timestamppb.Timestamp

func (*ListUsagesRequest_Filter) GetUsageTypeId

func (x *ListUsagesRequest_Filter) GetUsageTypeId() string

func (*ListUsagesRequest_Filter) GetWindowSize

func (*ListUsagesRequest_Filter) ProtoMessage

func (*ListUsagesRequest_Filter) ProtoMessage()

func (*ListUsagesRequest_Filter) ProtoReflect

func (x *ListUsagesRequest_Filter) ProtoReflect() protoreflect.Message

func (*ListUsagesRequest_Filter) Reset

func (x *ListUsagesRequest_Filter) Reset()

func (*ListUsagesRequest_Filter) String

func (x *ListUsagesRequest_Filter) String() string

type ListUsagesRequest_WindowSize

type ListUsagesRequest_WindowSize int32
const (
	// WINDOW_SIZE_UNSPECIFIED will return one single item containing all usage on the time frame
	ListUsagesRequest_WINDOW_SIZE_UNSPECIFIED ListUsagesRequest_WindowSize = 0
	// WINDOW_SIZE_HOUR will return usage on hourly aggregates
	ListUsagesRequest_WINDOW_SIZE_HOUR ListUsagesRequest_WindowSize = 1
	// WINDOW_SIZE_DAY will return usage on dayly aggregates
	ListUsagesRequest_WINDOW_SIZE_DAY ListUsagesRequest_WindowSize = 2
)

func (ListUsagesRequest_WindowSize) Descriptor

func (ListUsagesRequest_WindowSize) Enum

func (ListUsagesRequest_WindowSize) EnumDescriptor deprecated

func (ListUsagesRequest_WindowSize) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListUsagesRequest_WindowSize.Descriptor instead.

func (ListUsagesRequest_WindowSize) Number

func (ListUsagesRequest_WindowSize) String

func (ListUsagesRequest_WindowSize) Type

type ListUsagesResponse

type ListUsagesResponse struct {
	Usages        []*Usage `protobuf:"bytes,1,rep,name=usages,proto3" json:"usages,omitempty"`
	NextPageToken string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsagesResponse) Descriptor deprecated

func (*ListUsagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListUsagesResponse.ProtoReflect.Descriptor instead.

func (*ListUsagesResponse) GetNextPageToken

func (x *ListUsagesResponse) GetNextPageToken() string

func (*ListUsagesResponse) GetUsages

func (x *ListUsagesResponse) GetUsages() []*Usage

func (*ListUsagesResponse) ProtoMessage

func (*ListUsagesResponse) ProtoMessage()

func (*ListUsagesResponse) ProtoReflect

func (x *ListUsagesResponse) ProtoReflect() protoreflect.Message

func (*ListUsagesResponse) Reset

func (x *ListUsagesResponse) Reset()

func (*ListUsagesResponse) String

func (x *ListUsagesResponse) String() string

type MetronomeStatus

type MetronomeStatus int32
const (
	MetronomeStatus_METRONOME_STATUS_UNSPECIFIED MetronomeStatus = 0
	MetronomeStatus_METRONOME_STATUS_DRAFT       MetronomeStatus = 1
	MetronomeStatus_METRONOME_STATUS_FINALIZED   MetronomeStatus = 2
	MetronomeStatus_METRONOME_STATUS_VOID        MetronomeStatus = 3
)

func (MetronomeStatus) Descriptor

func (MetronomeStatus) Enum

func (x MetronomeStatus) Enum() *MetronomeStatus

func (MetronomeStatus) EnumDescriptor deprecated

func (MetronomeStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use MetronomeStatus.Descriptor instead.

func (MetronomeStatus) Number

func (MetronomeStatus) String

func (x MetronomeStatus) String() string

func (MetronomeStatus) Type

type ProductType

type ProductType int32
const (
	ProductType_PRODUCT_TYPE_UNSPECIFIED ProductType = 0
	ProductType_PRODUCT_TYPE_DEDICATED   ProductType = 1
	ProductType_PRODUCT_TYPE_BYOC        ProductType = 2
	ProductType_PRODUCT_TYPE_SERVERLESS  ProductType = 3
)

func (ProductType) Descriptor

func (ProductType) Enum

func (x ProductType) Enum() *ProductType

func (ProductType) EnumDescriptor deprecated

func (ProductType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProductType.Descriptor instead.

func (ProductType) Number

func (x ProductType) Number() protoreflect.EnumNumber

func (ProductType) String

func (x ProductType) String() string

func (ProductType) Type

type SubLineItem

type SubLineItem struct {
	Name          string          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Price         *v1alpha1.Money `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"`
	Quantity      int64           `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Subtotal      *v1alpha1.Money `protobuf:"bytes,4,opt,name=subtotal,proto3" json:"subtotal,omitempty"`
	ChargeId      string          `protobuf:"bytes,5,opt,name=charge_id,json=chargeId,proto3" json:"charge_id,omitempty"`
	CreditGrantId string          `protobuf:"bytes,6,opt,name=credit_grant_id,json=creditGrantId,proto3" json:"credit_grant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SubLineItem) Descriptor deprecated

func (*SubLineItem) Descriptor() ([]byte, []int)

Deprecated: Use SubLineItem.ProtoReflect.Descriptor instead.

func (*SubLineItem) GetChargeId

func (x *SubLineItem) GetChargeId() string

func (*SubLineItem) GetCreditGrantId

func (x *SubLineItem) GetCreditGrantId() string

func (*SubLineItem) GetName

func (x *SubLineItem) GetName() string

func (*SubLineItem) GetPrice

func (x *SubLineItem) GetPrice() *v1alpha1.Money

func (*SubLineItem) GetQuantity

func (x *SubLineItem) GetQuantity() int64

func (*SubLineItem) GetSubtotal

func (x *SubLineItem) GetSubtotal() *v1alpha1.Money

func (*SubLineItem) ProtoMessage

func (*SubLineItem) ProtoMessage()

func (*SubLineItem) ProtoReflect

func (x *SubLineItem) ProtoReflect() protoreflect.Message

func (*SubLineItem) Reset

func (x *SubLineItem) Reset()

func (*SubLineItem) String

func (x *SubLineItem) String() string

type UnimplementedInvoiceServiceServer

type UnimplementedInvoiceServiceServer struct {
}

UnimplementedInvoiceServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedInvoiceServiceServer) ListInvoices

type UnimplementedUsageServiceServer

type UnimplementedUsageServiceServer struct {
}

UnimplementedUsageServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedUsageServiceServer) ListUsages

type UnimplementedUsageTypeServiceServer

type UnimplementedUsageTypeServiceServer struct {
}

UnimplementedUsageTypeServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedUsageTypeServiceServer) ListUsageTypes

type UnsafeInvoiceServiceServer

type UnsafeInvoiceServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeInvoiceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InvoiceServiceServer will result in compilation errors.

type UnsafeUsageServiceServer

type UnsafeUsageServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUsageServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UsageServiceServer will result in compilation errors.

type UnsafeUsageTypeServiceServer

type UnsafeUsageTypeServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUsageTypeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UsageTypeServiceServer will result in compilation errors.

type Usage

type Usage struct {
	TimeFrom   *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time_from,json=timeFrom,proto3" json:"time_from,omitempty"`
	TimeTo     *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time_to,json=timeTo,proto3" json:"time_to,omitempty"`
	GroupKey   string                 `protobuf:"bytes,3,opt,name=group_key,json=groupKey,proto3" json:"group_key,omitempty"`
	GroupValue string                 `protobuf:"bytes,4,opt,name=group_value,json=groupValue,proto3" json:"group_value,omitempty"`
	Value      string                 `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Usage) Descriptor deprecated

func (*Usage) Descriptor() ([]byte, []int)

Deprecated: Use Usage.ProtoReflect.Descriptor instead.

func (*Usage) GetGroupKey

func (x *Usage) GetGroupKey() string

func (*Usage) GetGroupValue

func (x *Usage) GetGroupValue() string

func (*Usage) GetTimeFrom

func (x *Usage) GetTimeFrom() *timestamppb.Timestamp

func (*Usage) GetTimeTo

func (x *Usage) GetTimeTo() *timestamppb.Timestamp

func (*Usage) GetValue

func (x *Usage) GetValue() string

func (*Usage) ProtoMessage

func (*Usage) ProtoMessage()

func (*Usage) ProtoReflect

func (x *Usage) ProtoReflect() protoreflect.Message

func (*Usage) Reset

func (x *Usage) Reset()

func (*Usage) String

func (x *Usage) String() string

type UsageResource

type UsageResource struct {
	ProductId   string      `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	ProductType ProductType `` /* 142-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UsageResource) Descriptor deprecated

func (*UsageResource) Descriptor() ([]byte, []int)

Deprecated: Use UsageResource.ProtoReflect.Descriptor instead.

func (*UsageResource) GetProductId

func (x *UsageResource) GetProductId() string

func (*UsageResource) GetProductType

func (x *UsageResource) GetProductType() ProductType

func (*UsageResource) ProtoMessage

func (*UsageResource) ProtoMessage()

func (*UsageResource) ProtoReflect

func (x *UsageResource) ProtoReflect() protoreflect.Message

func (*UsageResource) Reset

func (x *UsageResource) Reset()

func (*UsageResource) String

func (x *UsageResource) String() string

type UsageServiceClient

type UsageServiceClient interface {
	ListUsages(ctx context.Context, in *ListUsagesRequest, opts ...grpc.CallOption) (*ListUsagesResponse, error)
}

UsageServiceClient is the client API for UsageService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type UsageServiceServer

type UsageServiceServer interface {
	ListUsages(context.Context, *ListUsagesRequest) (*ListUsagesResponse, error)
}

UsageServiceServer is the server API for UsageService service. All implementations should embed UnimplementedUsageServiceServer for forward compatibility

type UsageType

type UsageType struct {
	Id          string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string      `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Group       string      `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
	ProductType ProductType `` /* 142-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UsageType) Descriptor deprecated

func (*UsageType) Descriptor() ([]byte, []int)

Deprecated: Use UsageType.ProtoReflect.Descriptor instead.

func (*UsageType) GetGroup

func (x *UsageType) GetGroup() string

func (*UsageType) GetId

func (x *UsageType) GetId() string

func (*UsageType) GetName

func (x *UsageType) GetName() string

func (*UsageType) GetProductType

func (x *UsageType) GetProductType() ProductType

func (*UsageType) ProtoMessage

func (*UsageType) ProtoMessage()

func (*UsageType) ProtoReflect

func (x *UsageType) ProtoReflect() protoreflect.Message

func (*UsageType) Reset

func (x *UsageType) Reset()

func (*UsageType) String

func (x *UsageType) String() string

type UsageTypeServiceClient

type UsageTypeServiceClient interface {
	ListUsageTypes(ctx context.Context, in *ListUsageTypesRequest, opts ...grpc.CallOption) (*ListUsageTypesResponse, error)
}

UsageTypeServiceClient is the client API for UsageTypeService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type UsageTypeServiceServer

type UsageTypeServiceServer interface {
	ListUsageTypes(context.Context, *ListUsageTypesRequest) (*ListUsageTypesResponse, error)
}

UsageTypeServiceServer is the server API for UsageTypeService service. All implementations should embed UnimplementedUsageTypeServiceServer for forward compatibility

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL