Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterInvoiceServiceServer(s grpc.ServiceRegistrar, srv InvoiceServiceServer)
- func RegisterUsageServiceServer(s grpc.ServiceRegistrar, srv UsageServiceServer)
- func RegisterUsageTypeServiceServer(s grpc.ServiceRegistrar, srv UsageTypeServiceServer)
- type Invoice
- func (*Invoice) Descriptor() ([]byte, []int)deprecated
- func (x *Invoice) GetEndAt() *timestamppb.Timestamp
- func (x *Invoice) GetId() string
- func (x *Invoice) GetInvoiceAdjustments() []*InvoiceAdjustment
- func (x *Invoice) GetIssuedAt() *timestamppb.Timestamp
- func (x *Invoice) GetLineItems() []*LineItem
- func (x *Invoice) GetStartAt() *timestamppb.Timestamp
- func (x *Invoice) GetStatus() MetronomeStatus
- func (x *Invoice) GetSubtotal() *v1alpha1.Money
- func (x *Invoice) GetTotal() *v1alpha1.Money
- func (*Invoice) ProtoMessage()
- func (x *Invoice) ProtoReflect() protoreflect.Message
- func (x *Invoice) Reset()
- func (x *Invoice) String() string
- type InvoiceAdjustment
- func (*InvoiceAdjustment) Descriptor() ([]byte, []int)deprecated
- func (x *InvoiceAdjustment) GetName() string
- func (x *InvoiceAdjustment) GetTotal() *v1alpha1.Money
- func (*InvoiceAdjustment) ProtoMessage()
- func (x *InvoiceAdjustment) ProtoReflect() protoreflect.Message
- func (x *InvoiceAdjustment) Reset()
- func (x *InvoiceAdjustment) String() string
- type InvoiceServiceClient
- type InvoiceServiceServer
- type LineItem
- func (*LineItem) Descriptor() ([]byte, []int)deprecated
- func (x *LineItem) GetEndingBefore() *timestamppb.Timestamp
- func (x *LineItem) GetGroupKey() string
- func (x *LineItem) GetGroupValue() string
- func (x *LineItem) GetName() string
- func (x *LineItem) GetQuantity() int64
- func (x *LineItem) GetStartingAt() *timestamppb.Timestamp
- func (x *LineItem) GetSubLineItems() []*SubLineItem
- func (x *LineItem) GetTotal() *v1alpha1.Money
- func (x *LineItem) GetUnitPrice() *v1alpha1.Money
- func (*LineItem) ProtoMessage()
- func (x *LineItem) ProtoReflect() protoreflect.Message
- func (x *LineItem) Reset()
- func (x *LineItem) String() string
- type ListInvoicesRequest
- func (*ListInvoicesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListInvoicesRequest) GetFilter() *ListInvoicesRequest_Filter
- func (x *ListInvoicesRequest) GetPageSize() int32
- func (x *ListInvoicesRequest) GetPageToken() string
- func (*ListInvoicesRequest) ProtoMessage()
- func (x *ListInvoicesRequest) ProtoReflect() protoreflect.Message
- func (x *ListInvoicesRequest) Reset()
- func (x *ListInvoicesRequest) String() string
- type ListInvoicesRequest_Filter
- func (*ListInvoicesRequest_Filter) Descriptor() ([]byte, []int)deprecated
- func (x *ListInvoicesRequest_Filter) GetEndingBefore() *timestamppb.Timestamp
- func (x *ListInvoicesRequest_Filter) GetStartingOn() *timestamppb.Timestamp
- func (x *ListInvoicesRequest_Filter) GetStatus() MetronomeStatus
- func (*ListInvoicesRequest_Filter) ProtoMessage()
- func (x *ListInvoicesRequest_Filter) ProtoReflect() protoreflect.Message
- func (x *ListInvoicesRequest_Filter) Reset()
- func (x *ListInvoicesRequest_Filter) String() string
- type ListInvoicesResponse
- func (*ListInvoicesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListInvoicesResponse) GetInvoices() []*Invoice
- func (x *ListInvoicesResponse) GetNextPageToken() string
- func (*ListInvoicesResponse) ProtoMessage()
- func (x *ListInvoicesResponse) ProtoReflect() protoreflect.Message
- func (x *ListInvoicesResponse) Reset()
- func (x *ListInvoicesResponse) String() string
- type ListUsageTypesRequest
- func (*ListUsageTypesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsageTypesRequest) GetPageSize() int32
- func (x *ListUsageTypesRequest) GetPageToken() string
- func (*ListUsageTypesRequest) ProtoMessage()
- func (x *ListUsageTypesRequest) ProtoReflect() protoreflect.Message
- func (x *ListUsageTypesRequest) Reset()
- func (x *ListUsageTypesRequest) String() string
- type ListUsageTypesResponse
- func (*ListUsageTypesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsageTypesResponse) GetNextPageToken() string
- func (x *ListUsageTypesResponse) GetUsageTypes() []*UsageType
- func (*ListUsageTypesResponse) ProtoMessage()
- func (x *ListUsageTypesResponse) ProtoReflect() protoreflect.Message
- func (x *ListUsageTypesResponse) Reset()
- func (x *ListUsageTypesResponse) String() string
- type ListUsagesRequest
- func (*ListUsagesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsagesRequest) GetFilter() *ListUsagesRequest_Filter
- func (x *ListUsagesRequest) GetPageSize() int32
- func (x *ListUsagesRequest) GetPageToken() string
- func (*ListUsagesRequest) ProtoMessage()
- func (x *ListUsagesRequest) ProtoReflect() protoreflect.Message
- func (x *ListUsagesRequest) Reset()
- func (x *ListUsagesRequest) String() string
- type ListUsagesRequest_Filter
- func (*ListUsagesRequest_Filter) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsagesRequest_Filter) GetCurrentPeriod() bool
- func (x *ListUsagesRequest_Filter) GetEndingBefore() *timestamppb.Timestamp
- func (x *ListUsagesRequest_Filter) GetResource() *UsageResource
- func (x *ListUsagesRequest_Filter) GetStartingOn() *timestamppb.Timestamp
- func (x *ListUsagesRequest_Filter) GetUsageTypeId() string
- func (x *ListUsagesRequest_Filter) GetWindowSize() ListUsagesRequest_WindowSize
- func (*ListUsagesRequest_Filter) ProtoMessage()
- func (x *ListUsagesRequest_Filter) ProtoReflect() protoreflect.Message
- func (x *ListUsagesRequest_Filter) Reset()
- func (x *ListUsagesRequest_Filter) String() string
- type ListUsagesRequest_WindowSize
- func (ListUsagesRequest_WindowSize) Descriptor() protoreflect.EnumDescriptor
- func (x ListUsagesRequest_WindowSize) Enum() *ListUsagesRequest_WindowSize
- func (ListUsagesRequest_WindowSize) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListUsagesRequest_WindowSize) Number() protoreflect.EnumNumber
- func (x ListUsagesRequest_WindowSize) String() string
- func (ListUsagesRequest_WindowSize) Type() protoreflect.EnumType
- type ListUsagesResponse
- func (*ListUsagesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsagesResponse) GetNextPageToken() string
- func (x *ListUsagesResponse) GetUsages() []*Usage
- func (*ListUsagesResponse) ProtoMessage()
- func (x *ListUsagesResponse) ProtoReflect() protoreflect.Message
- func (x *ListUsagesResponse) Reset()
- func (x *ListUsagesResponse) String() string
- type MetronomeStatus
- func (MetronomeStatus) Descriptor() protoreflect.EnumDescriptor
- func (x MetronomeStatus) Enum() *MetronomeStatus
- func (MetronomeStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x MetronomeStatus) Number() protoreflect.EnumNumber
- func (x MetronomeStatus) String() string
- func (MetronomeStatus) Type() protoreflect.EnumType
- type ProductType
- func (ProductType) Descriptor() protoreflect.EnumDescriptor
- func (x ProductType) Enum() *ProductType
- func (ProductType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProductType) Number() protoreflect.EnumNumber
- func (x ProductType) String() string
- func (ProductType) Type() protoreflect.EnumType
- type SubLineItem
- func (*SubLineItem) Descriptor() ([]byte, []int)deprecated
- func (x *SubLineItem) GetChargeId() string
- func (x *SubLineItem) GetCreditGrantId() string
- func (x *SubLineItem) GetName() string
- func (x *SubLineItem) GetPrice() *v1alpha1.Money
- func (x *SubLineItem) GetQuantity() int64
- func (x *SubLineItem) GetSubtotal() *v1alpha1.Money
- func (*SubLineItem) ProtoMessage()
- func (x *SubLineItem) ProtoReflect() protoreflect.Message
- func (x *SubLineItem) Reset()
- func (x *SubLineItem) String() string
- type UnimplementedInvoiceServiceServer
- type UnimplementedUsageServiceServer
- type UnimplementedUsageTypeServiceServer
- type UnsafeInvoiceServiceServer
- type UnsafeUsageServiceServer
- type UnsafeUsageTypeServiceServer
- type Usage
- func (*Usage) Descriptor() ([]byte, []int)deprecated
- func (x *Usage) GetGroupKey() string
- func (x *Usage) GetGroupValue() string
- func (x *Usage) GetTimeFrom() *timestamppb.Timestamp
- func (x *Usage) GetTimeTo() *timestamppb.Timestamp
- func (x *Usage) GetValue() string
- func (*Usage) ProtoMessage()
- func (x *Usage) ProtoReflect() protoreflect.Message
- func (x *Usage) Reset()
- func (x *Usage) String() string
- type UsageResource
- func (*UsageResource) Descriptor() ([]byte, []int)deprecated
- func (x *UsageResource) GetProductId() string
- func (x *UsageResource) GetProductType() ProductType
- func (*UsageResource) ProtoMessage()
- func (x *UsageResource) ProtoReflect() protoreflect.Message
- func (x *UsageResource) Reset()
- func (x *UsageResource) String() string
- type UsageServiceClient
- type UsageServiceServer
- type UsageType
- func (*UsageType) Descriptor() ([]byte, []int)deprecated
- func (x *UsageType) GetGroup() string
- func (x *UsageType) GetId() string
- func (x *UsageType) GetName() string
- func (x *UsageType) GetProductType() ProductType
- func (*UsageType) ProtoMessage()
- func (x *UsageType) ProtoReflect() protoreflect.Message
- func (x *UsageType) Reset()
- func (x *UsageType) String() string
- type UsageTypeServiceClient
- type UsageTypeServiceServer
Constants ¶
const (
InvoiceService_ListInvoices_FullMethodName = "/redpanda.api.billing.v1alpha1.InvoiceService/ListInvoices"
)
const (
UsageService_ListUsages_FullMethodName = "/redpanda.api.billing.v1alpha1.UsageService/ListUsages"
)
const (
UsageTypeService_ListUsageTypes_FullMethodName = "/redpanda.api.billing.v1alpha1.UsageTypeService/ListUsageTypes"
)
Variables ¶
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.
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.
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.
var File_redpanda_api_billing_v1alpha1_invoice_proto protoreflect.FileDescriptor
var File_redpanda_api_billing_v1alpha1_usage_proto protoreflect.FileDescriptor
var File_redpanda_api_billing_v1alpha1_usage_type_proto protoreflect.FileDescriptor
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)
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)
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) GetEndAt ¶
func (x *Invoice) GetEndAt() *timestamppb.Timestamp
func (*Invoice) GetInvoiceAdjustments ¶
func (x *Invoice) GetInvoiceAdjustments() []*InvoiceAdjustment
func (*Invoice) GetIssuedAt ¶
func (x *Invoice) GetIssuedAt() *timestamppb.Timestamp
func (*Invoice) GetLineItems ¶
func (*Invoice) GetStartAt ¶
func (x *Invoice) GetStartAt() *timestamppb.Timestamp
func (*Invoice) GetStatus ¶
func (x *Invoice) GetStatus() MetronomeStatus
func (*Invoice) GetSubtotal ¶
func (*Invoice) ProtoMessage ¶
func (*Invoice) ProtoMessage()
func (*Invoice) ProtoReflect ¶
func (x *Invoice) ProtoReflect() protoreflect.Message
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.
func NewInvoiceServiceClient ¶
func NewInvoiceServiceClient(cc grpc.ClientConnInterface) InvoiceServiceClient
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) GetEndingBefore ¶
func (x *LineItem) GetEndingBefore() *timestamppb.Timestamp
func (*LineItem) GetGroupKey ¶
func (*LineItem) GetGroupValue ¶
func (*LineItem) GetQuantity ¶
func (*LineItem) GetStartingAt ¶
func (x *LineItem) GetStartingAt() *timestamppb.Timestamp
func (*LineItem) GetSubLineItems ¶
func (x *LineItem) GetSubLineItems() []*SubLineItem
func (*LineItem) GetUnitPrice ¶
func (*LineItem) ProtoMessage ¶
func (*LineItem) ProtoMessage()
func (*LineItem) ProtoReflect ¶
func (x *LineItem) ProtoReflect() protoreflect.Message
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 (x *ListInvoicesRequest) GetFilter() *ListInvoicesRequest_Filter
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 (x *ListInvoicesRequest_Filter) GetStatus() MetronomeStatus
func (*ListInvoicesRequest_Filter) ProtoMessage ¶
func (*ListInvoicesRequest_Filter) ProtoMessage()
func (*ListInvoicesRequest_Filter) ProtoReflect ¶
func (x *ListInvoicesRequest_Filter) ProtoReflect() protoreflect.Message
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 (x *ListUsagesRequest) GetFilter() *ListUsagesRequest_Filter
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 (x *ListUsagesRequest_Filter) GetWindowSize() ListUsagesRequest_WindowSize
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) Descriptor() protoreflect.EnumDescriptor
func (ListUsagesRequest_WindowSize) Enum ¶
func (x ListUsagesRequest_WindowSize) Enum() *ListUsagesRequest_WindowSize
func (ListUsagesRequest_WindowSize) EnumDescriptor
deprecated
func (ListUsagesRequest_WindowSize) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListUsagesRequest_WindowSize.Descriptor instead.
func (ListUsagesRequest_WindowSize) Number ¶
func (x ListUsagesRequest_WindowSize) Number() protoreflect.EnumNumber
func (ListUsagesRequest_WindowSize) String ¶
func (x ListUsagesRequest_WindowSize) String() string
func (ListUsagesRequest_WindowSize) Type ¶
func (ListUsagesRequest_WindowSize) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
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 (x MetronomeStatus) Number() protoreflect.EnumNumber
func (MetronomeStatus) String ¶
func (x MetronomeStatus) String() string
func (MetronomeStatus) Type ¶
func (MetronomeStatus) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
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 ¶
func (ProductType) Type() protoreflect.EnumType
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 ¶
func (UnimplementedInvoiceServiceServer) ListInvoices(context.Context, *ListInvoicesRequest) (*ListInvoicesResponse, error)
type UnimplementedUsageServiceServer ¶
type UnimplementedUsageServiceServer struct { }
UnimplementedUsageServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedUsageServiceServer) ListUsages ¶
func (UnimplementedUsageServiceServer) ListUsages(context.Context, *ListUsagesRequest) (*ListUsagesResponse, error)
type UnimplementedUsageTypeServiceServer ¶
type UnimplementedUsageTypeServiceServer struct { }
UnimplementedUsageTypeServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedUsageTypeServiceServer) ListUsageTypes ¶
func (UnimplementedUsageTypeServiceServer) ListUsageTypes(context.Context, *ListUsageTypesRequest) (*ListUsageTypesResponse, error)
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) GetGroupKey ¶
func (*Usage) GetGroupValue ¶
func (*Usage) GetTimeFrom ¶
func (x *Usage) GetTimeFrom() *timestamppb.Timestamp
func (*Usage) GetTimeTo ¶
func (x *Usage) GetTimeTo() *timestamppb.Timestamp
func (*Usage) ProtoMessage ¶
func (*Usage) ProtoMessage()
func (*Usage) ProtoReflect ¶
func (x *Usage) ProtoReflect() protoreflect.Message
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.
func NewUsageServiceClient ¶
func NewUsageServiceClient(cc grpc.ClientConnInterface) UsageServiceClient
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) GetProductType ¶
func (x *UsageType) GetProductType() ProductType
func (*UsageType) ProtoMessage ¶
func (*UsageType) ProtoMessage()
func (*UsageType) ProtoReflect ¶
func (x *UsageType) ProtoReflect() protoreflect.Message
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.
func NewUsageTypeServiceClient ¶
func NewUsageTypeServiceClient(cc grpc.ClientConnInterface) UsageTypeServiceClient
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