gitpod/components/usage-api/go/v1/billing.pb.go
Sven Efftinge 9c9369b4e5 [usage-api] add CancelSubscription API
This API is called by Stripe when a customer cancels their subscription
2022-09-16 16:24:17 +02:00

866 lines
30 KiB
Go

// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.20.1
// source: usage/v1/billing.proto
package v1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type System int32
const (
System_SYSTEM_UNKNOWN System = 0
System_SYSTEM_CHARGEBEE System = 1
System_SYSTEM_STRIPE System = 2
)
// Enum value maps for System.
var (
System_name = map[int32]string{
0: "SYSTEM_UNKNOWN",
1: "SYSTEM_CHARGEBEE",
2: "SYSTEM_STRIPE",
}
System_value = map[string]int32{
"SYSTEM_UNKNOWN": 0,
"SYSTEM_CHARGEBEE": 1,
"SYSTEM_STRIPE": 2,
}
)
func (x System) Enum() *System {
p := new(System)
*p = x
return p
}
func (x System) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (System) Descriptor() protoreflect.EnumDescriptor {
return file_usage_v1_billing_proto_enumTypes[0].Descriptor()
}
func (System) Type() protoreflect.EnumType {
return &file_usage_v1_billing_proto_enumTypes[0]
}
func (x System) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use System.Descriptor instead.
func (System) EnumDescriptor() ([]byte, []int) {
return file_usage_v1_billing_proto_rawDescGZIP(), []int{0}
}
type ReconcileInvoicesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *ReconcileInvoicesRequest) Reset() {
*x = ReconcileInvoicesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_usage_v1_billing_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReconcileInvoicesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReconcileInvoicesRequest) ProtoMessage() {}
func (x *ReconcileInvoicesRequest) ProtoReflect() protoreflect.Message {
mi := &file_usage_v1_billing_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ReconcileInvoicesRequest.ProtoReflect.Descriptor instead.
func (*ReconcileInvoicesRequest) Descriptor() ([]byte, []int) {
return file_usage_v1_billing_proto_rawDescGZIP(), []int{0}
}
type ReconcileInvoicesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *ReconcileInvoicesResponse) Reset() {
*x = ReconcileInvoicesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_usage_v1_billing_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReconcileInvoicesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReconcileInvoicesResponse) ProtoMessage() {}
func (x *ReconcileInvoicesResponse) ProtoReflect() protoreflect.Message {
mi := &file_usage_v1_billing_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ReconcileInvoicesResponse.ProtoReflect.Descriptor instead.
func (*ReconcileInvoicesResponse) Descriptor() ([]byte, []int) {
return file_usage_v1_billing_proto_rawDescGZIP(), []int{1}
}
type GetUpcomingInvoiceRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Identifier:
//
// *GetUpcomingInvoiceRequest_TeamId
// *GetUpcomingInvoiceRequest_UserId
Identifier isGetUpcomingInvoiceRequest_Identifier `protobuf_oneof:"identifier"`
}
func (x *GetUpcomingInvoiceRequest) Reset() {
*x = GetUpcomingInvoiceRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_usage_v1_billing_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetUpcomingInvoiceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetUpcomingInvoiceRequest) ProtoMessage() {}
func (x *GetUpcomingInvoiceRequest) ProtoReflect() protoreflect.Message {
mi := &file_usage_v1_billing_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetUpcomingInvoiceRequest.ProtoReflect.Descriptor instead.
func (*GetUpcomingInvoiceRequest) Descriptor() ([]byte, []int) {
return file_usage_v1_billing_proto_rawDescGZIP(), []int{2}
}
func (m *GetUpcomingInvoiceRequest) GetIdentifier() isGetUpcomingInvoiceRequest_Identifier {
if m != nil {
return m.Identifier
}
return nil
}
func (x *GetUpcomingInvoiceRequest) GetTeamId() string {
if x, ok := x.GetIdentifier().(*GetUpcomingInvoiceRequest_TeamId); ok {
return x.TeamId
}
return ""
}
func (x *GetUpcomingInvoiceRequest) GetUserId() string {
if x, ok := x.GetIdentifier().(*GetUpcomingInvoiceRequest_UserId); ok {
return x.UserId
}
return ""
}
type isGetUpcomingInvoiceRequest_Identifier interface {
isGetUpcomingInvoiceRequest_Identifier()
}
type GetUpcomingInvoiceRequest_TeamId struct {
TeamId string `protobuf:"bytes,1,opt,name=team_id,json=teamId,proto3,oneof"`
}
type GetUpcomingInvoiceRequest_UserId struct {
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3,oneof"`
}
func (*GetUpcomingInvoiceRequest_TeamId) isGetUpcomingInvoiceRequest_Identifier() {}
func (*GetUpcomingInvoiceRequest_UserId) isGetUpcomingInvoiceRequest_Identifier() {}
type GetUpcomingInvoiceResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
InvoiceId string `protobuf:"bytes,1,opt,name=invoice_id,json=invoiceId,proto3" json:"invoice_id,omitempty"`
Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"`
Amount float64 `protobuf:"fixed64,3,opt,name=amount,proto3" json:"amount,omitempty"`
Credits int64 `protobuf:"varint,4,opt,name=credits,proto3" json:"credits,omitempty"`
}
func (x *GetUpcomingInvoiceResponse) Reset() {
*x = GetUpcomingInvoiceResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_usage_v1_billing_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetUpcomingInvoiceResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetUpcomingInvoiceResponse) ProtoMessage() {}
func (x *GetUpcomingInvoiceResponse) ProtoReflect() protoreflect.Message {
mi := &file_usage_v1_billing_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetUpcomingInvoiceResponse.ProtoReflect.Descriptor instead.
func (*GetUpcomingInvoiceResponse) Descriptor() ([]byte, []int) {
return file_usage_v1_billing_proto_rawDescGZIP(), []int{3}
}
func (x *GetUpcomingInvoiceResponse) GetInvoiceId() string {
if x != nil {
return x.InvoiceId
}
return ""
}
func (x *GetUpcomingInvoiceResponse) GetCurrency() string {
if x != nil {
return x.Currency
}
return ""
}
func (x *GetUpcomingInvoiceResponse) GetAmount() float64 {
if x != nil {
return x.Amount
}
return 0
}
func (x *GetUpcomingInvoiceResponse) GetCredits() int64 {
if x != nil {
return x.Credits
}
return 0
}
type FinalizeInvoiceRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
InvoiceId string `protobuf:"bytes,1,opt,name=invoice_id,json=invoiceId,proto3" json:"invoice_id,omitempty"`
}
func (x *FinalizeInvoiceRequest) Reset() {
*x = FinalizeInvoiceRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_usage_v1_billing_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FinalizeInvoiceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FinalizeInvoiceRequest) ProtoMessage() {}
func (x *FinalizeInvoiceRequest) ProtoReflect() protoreflect.Message {
mi := &file_usage_v1_billing_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FinalizeInvoiceRequest.ProtoReflect.Descriptor instead.
func (*FinalizeInvoiceRequest) Descriptor() ([]byte, []int) {
return file_usage_v1_billing_proto_rawDescGZIP(), []int{4}
}
func (x *FinalizeInvoiceRequest) GetInvoiceId() string {
if x != nil {
return x.InvoiceId
}
return ""
}
type FinalizeInvoiceResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *FinalizeInvoiceResponse) Reset() {
*x = FinalizeInvoiceResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_usage_v1_billing_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FinalizeInvoiceResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FinalizeInvoiceResponse) ProtoMessage() {}
func (x *FinalizeInvoiceResponse) ProtoReflect() protoreflect.Message {
mi := &file_usage_v1_billing_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FinalizeInvoiceResponse.ProtoReflect.Descriptor instead.
func (*FinalizeInvoiceResponse) Descriptor() ([]byte, []int) {
return file_usage_v1_billing_proto_rawDescGZIP(), []int{5}
}
type CancelSubscriptionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SubscriptionId string `protobuf:"bytes,1,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"`
}
func (x *CancelSubscriptionRequest) Reset() {
*x = CancelSubscriptionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_usage_v1_billing_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CancelSubscriptionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CancelSubscriptionRequest) ProtoMessage() {}
func (x *CancelSubscriptionRequest) ProtoReflect() protoreflect.Message {
mi := &file_usage_v1_billing_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CancelSubscriptionRequest.ProtoReflect.Descriptor instead.
func (*CancelSubscriptionRequest) Descriptor() ([]byte, []int) {
return file_usage_v1_billing_proto_rawDescGZIP(), []int{6}
}
func (x *CancelSubscriptionRequest) GetSubscriptionId() string {
if x != nil {
return x.SubscriptionId
}
return ""
}
type CancelSubscriptionResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *CancelSubscriptionResponse) Reset() {
*x = CancelSubscriptionResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_usage_v1_billing_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CancelSubscriptionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CancelSubscriptionResponse) ProtoMessage() {}
func (x *CancelSubscriptionResponse) ProtoReflect() protoreflect.Message {
mi := &file_usage_v1_billing_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CancelSubscriptionResponse.ProtoReflect.Descriptor instead.
func (*CancelSubscriptionResponse) Descriptor() ([]byte, []int) {
return file_usage_v1_billing_proto_rawDescGZIP(), []int{7}
}
// If there are two billable sessions for this instance ID,
// the second one's "from" will be the first one's "to"
type SetBilledSessionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
From *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
System System `protobuf:"varint,3,opt,name=system,proto3,enum=usage.v1.System" json:"system,omitempty"`
}
func (x *SetBilledSessionRequest) Reset() {
*x = SetBilledSessionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_usage_v1_billing_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetBilledSessionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetBilledSessionRequest) ProtoMessage() {}
func (x *SetBilledSessionRequest) ProtoReflect() protoreflect.Message {
mi := &file_usage_v1_billing_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetBilledSessionRequest.ProtoReflect.Descriptor instead.
func (*SetBilledSessionRequest) Descriptor() ([]byte, []int) {
return file_usage_v1_billing_proto_rawDescGZIP(), []int{8}
}
func (x *SetBilledSessionRequest) GetInstanceId() string {
if x != nil {
return x.InstanceId
}
return ""
}
func (x *SetBilledSessionRequest) GetFrom() *timestamppb.Timestamp {
if x != nil {
return x.From
}
return nil
}
func (x *SetBilledSessionRequest) GetSystem() System {
if x != nil {
return x.System
}
return System_SYSTEM_UNKNOWN
}
type SetBilledSessionResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *SetBilledSessionResponse) Reset() {
*x = SetBilledSessionResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_usage_v1_billing_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetBilledSessionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetBilledSessionResponse) ProtoMessage() {}
func (x *SetBilledSessionResponse) ProtoReflect() protoreflect.Message {
mi := &file_usage_v1_billing_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetBilledSessionResponse.ProtoReflect.Descriptor instead.
func (*SetBilledSessionResponse) Descriptor() ([]byte, []int) {
return file_usage_v1_billing_proto_rawDescGZIP(), []int{9}
}
var File_usage_v1_billing_proto protoreflect.FileDescriptor
var file_usage_v1_billing_proto_rawDesc = []byte{
0x0a, 0x16, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x69,
0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e,
0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0x1a, 0x0a, 0x18, 0x52, 0x65, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x6c, 0x65,
0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22,
0x1b, 0x0a, 0x19, 0x52, 0x65, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x76, 0x6f,
0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5f, 0x0a, 0x19,
0x47, 0x65, 0x74, 0x55, 0x70, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x76, 0x6f, 0x69,
0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x07, 0x74, 0x65, 0x61,
0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x74, 0x65,
0x61, 0x6d, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x42,
0x0c, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x22, 0x89, 0x01,
0x0a, 0x1a, 0x47, 0x65, 0x74, 0x55, 0x70, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x76,
0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a,
0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x09, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63,
0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63,
0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e,
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12,
0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
0x52, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x22, 0x37, 0x0a, 0x16, 0x46, 0x69, 0x6e,
0x61, 0x6c, 0x69, 0x7a, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x5f, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65,
0x49, 0x64, 0x22, 0x19, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x49, 0x6e,
0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44, 0x0a,
0x19, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x75,
0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x49, 0x64, 0x22, 0x1c, 0x0a, 0x1a, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x75, 0x62,
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x22, 0x94, 0x01, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x53,
0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a,
0x0b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x2e,
0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x28,
0x0a, 0x06, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10,
0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d,
0x52, 0x06, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0x1a, 0x0a, 0x18, 0x53, 0x65, 0x74, 0x42,
0x69, 0x6c, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x45, 0x0a, 0x06, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x12,
0x0a, 0x0e, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e,
0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x5f, 0x43, 0x48, 0x41,
0x52, 0x47, 0x45, 0x42, 0x45, 0x45, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x59, 0x53, 0x54,
0x45, 0x4d, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x50, 0x45, 0x10, 0x02, 0x32, 0xed, 0x03, 0x0a, 0x0e,
0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5e,
0x0a, 0x11, 0x52, 0x65, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69,
0x63, 0x65, 0x73, 0x12, 0x22, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52,
0x65, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x76, 0x6f,
0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61,
0x0a, 0x12, 0x47, 0x65, 0x74, 0x55, 0x70, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x76,
0x6f, 0x69, 0x63, 0x65, 0x12, 0x23, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x47, 0x65, 0x74, 0x55, 0x70, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x76, 0x6f, 0x69,
0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x75, 0x73, 0x61, 0x67,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x70, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67,
0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x00, 0x12, 0x58, 0x0a, 0x0f, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x49, 0x6e, 0x76,
0x6f, 0x69, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63,
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x12, 0x43,
0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x12, 0x23, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e,
0x63, 0x65, 0x6c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70,
0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b,
0x0a, 0x10, 0x53, 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65,
0x74, 0x42, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x53, 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2a, 0x5a, 0x28, 0x67,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64,
0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x75, 0x73, 0x61, 0x67, 0x65,
0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_usage_v1_billing_proto_rawDescOnce sync.Once
file_usage_v1_billing_proto_rawDescData = file_usage_v1_billing_proto_rawDesc
)
func file_usage_v1_billing_proto_rawDescGZIP() []byte {
file_usage_v1_billing_proto_rawDescOnce.Do(func() {
file_usage_v1_billing_proto_rawDescData = protoimpl.X.CompressGZIP(file_usage_v1_billing_proto_rawDescData)
})
return file_usage_v1_billing_proto_rawDescData
}
var file_usage_v1_billing_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_usage_v1_billing_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_usage_v1_billing_proto_goTypes = []interface{}{
(System)(0), // 0: usage.v1.System
(*ReconcileInvoicesRequest)(nil), // 1: usage.v1.ReconcileInvoicesRequest
(*ReconcileInvoicesResponse)(nil), // 2: usage.v1.ReconcileInvoicesResponse
(*GetUpcomingInvoiceRequest)(nil), // 3: usage.v1.GetUpcomingInvoiceRequest
(*GetUpcomingInvoiceResponse)(nil), // 4: usage.v1.GetUpcomingInvoiceResponse
(*FinalizeInvoiceRequest)(nil), // 5: usage.v1.FinalizeInvoiceRequest
(*FinalizeInvoiceResponse)(nil), // 6: usage.v1.FinalizeInvoiceResponse
(*CancelSubscriptionRequest)(nil), // 7: usage.v1.CancelSubscriptionRequest
(*CancelSubscriptionResponse)(nil), // 8: usage.v1.CancelSubscriptionResponse
(*SetBilledSessionRequest)(nil), // 9: usage.v1.SetBilledSessionRequest
(*SetBilledSessionResponse)(nil), // 10: usage.v1.SetBilledSessionResponse
(*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp
}
var file_usage_v1_billing_proto_depIdxs = []int32{
11, // 0: usage.v1.SetBilledSessionRequest.from:type_name -> google.protobuf.Timestamp
0, // 1: usage.v1.SetBilledSessionRequest.system:type_name -> usage.v1.System
1, // 2: usage.v1.BillingService.ReconcileInvoices:input_type -> usage.v1.ReconcileInvoicesRequest
3, // 3: usage.v1.BillingService.GetUpcomingInvoice:input_type -> usage.v1.GetUpcomingInvoiceRequest
5, // 4: usage.v1.BillingService.FinalizeInvoice:input_type -> usage.v1.FinalizeInvoiceRequest
7, // 5: usage.v1.BillingService.CancelSubscription:input_type -> usage.v1.CancelSubscriptionRequest
9, // 6: usage.v1.BillingService.SetBilledSession:input_type -> usage.v1.SetBilledSessionRequest
2, // 7: usage.v1.BillingService.ReconcileInvoices:output_type -> usage.v1.ReconcileInvoicesResponse
4, // 8: usage.v1.BillingService.GetUpcomingInvoice:output_type -> usage.v1.GetUpcomingInvoiceResponse
6, // 9: usage.v1.BillingService.FinalizeInvoice:output_type -> usage.v1.FinalizeInvoiceResponse
8, // 10: usage.v1.BillingService.CancelSubscription:output_type -> usage.v1.CancelSubscriptionResponse
10, // 11: usage.v1.BillingService.SetBilledSession:output_type -> usage.v1.SetBilledSessionResponse
7, // [7:12] is the sub-list for method output_type
2, // [2:7] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_usage_v1_billing_proto_init() }
func file_usage_v1_billing_proto_init() {
if File_usage_v1_billing_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_usage_v1_billing_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ReconcileInvoicesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_usage_v1_billing_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ReconcileInvoicesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_usage_v1_billing_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetUpcomingInvoiceRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_usage_v1_billing_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetUpcomingInvoiceResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_usage_v1_billing_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FinalizeInvoiceRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_usage_v1_billing_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FinalizeInvoiceResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_usage_v1_billing_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CancelSubscriptionRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_usage_v1_billing_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CancelSubscriptionResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_usage_v1_billing_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SetBilledSessionRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_usage_v1_billing_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SetBilledSessionResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_usage_v1_billing_proto_msgTypes[2].OneofWrappers = []interface{}{
(*GetUpcomingInvoiceRequest_TeamId)(nil),
(*GetUpcomingInvoiceRequest_UserId)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_usage_v1_billing_proto_rawDesc,
NumEnums: 1,
NumMessages: 10,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_usage_v1_billing_proto_goTypes,
DependencyIndexes: file_usage_v1_billing_proto_depIdxs,
EnumInfos: file_usage_v1_billing_proto_enumTypes,
MessageInfos: file_usage_v1_billing_proto_msgTypes,
}.Build()
File_usage_v1_billing_proto = out.File
file_usage_v1_billing_proto_rawDesc = nil
file_usage_v1_billing_proto_goTypes = nil
file_usage_v1_billing_proto_depIdxs = nil
}