1456 lines
54 KiB
Go
1456 lines
54 KiB
Go
// Package billing is the Billing & Subscription bounded context: plans,
|
|
// Stripe checkout/portal, webhook ingestion, and the per-plan daily
|
|
// message quota. System of record for `subscriptions`, `stripe_events`
|
|
// and `usage_daily` (see services/billing/migrations/0001_init.sql).
|
|
//
|
|
// Mirrors internal/handlers/billing.go + internal/billing/*.go +
|
|
// internal/db/subscriptions.go.
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.34.2
|
|
// protoc v3.21.12
|
|
// source: billing/v1/billing.proto
|
|
|
|
package billingv1
|
|
|
|
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 Plan int32
|
|
|
|
const (
|
|
Plan_PLAN_UNSPECIFIED Plan = 0
|
|
Plan_PLAN_FREE Plan = 1
|
|
Plan_PLAN_BASIC Plan = 2
|
|
Plan_PLAN_PRO Plan = 3
|
|
Plan_PLAN_PREMIUM Plan = 4
|
|
)
|
|
|
|
// Enum value maps for Plan.
|
|
var (
|
|
Plan_name = map[int32]string{
|
|
0: "PLAN_UNSPECIFIED",
|
|
1: "PLAN_FREE",
|
|
2: "PLAN_BASIC",
|
|
3: "PLAN_PRO",
|
|
4: "PLAN_PREMIUM",
|
|
}
|
|
Plan_value = map[string]int32{
|
|
"PLAN_UNSPECIFIED": 0,
|
|
"PLAN_FREE": 1,
|
|
"PLAN_BASIC": 2,
|
|
"PLAN_PRO": 3,
|
|
"PLAN_PREMIUM": 4,
|
|
}
|
|
)
|
|
|
|
func (x Plan) Enum() *Plan {
|
|
p := new(Plan)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Plan) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Plan) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_billing_v1_billing_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (Plan) Type() protoreflect.EnumType {
|
|
return &file_billing_v1_billing_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x Plan) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Plan.Descriptor instead.
|
|
func (Plan) EnumDescriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type PlanInfo struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Plan Plan `protobuf:"varint,1,opt,name=plan,proto3,enum=enkly.billing.v1.Plan" json:"plan,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
PriceEur int32 `protobuf:"varint,3,opt,name=price_eur,json=priceEur,proto3" json:"price_eur,omitempty"`
|
|
DailyMessageLimit int32 `protobuf:"varint,4,opt,name=daily_message_limit,json=dailyMessageLimit,proto3" json:"daily_message_limit,omitempty"` // 0 = unlimited
|
|
Available bool `protobuf:"varint,5,opt,name=available,proto3" json:"available,omitempty"` // Stripe price configured (always true for free)
|
|
}
|
|
|
|
func (x *PlanInfo) Reset() {
|
|
*x = PlanInfo{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *PlanInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PlanInfo) ProtoMessage() {}
|
|
|
|
func (x *PlanInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_billing_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 PlanInfo.ProtoReflect.Descriptor instead.
|
|
func (*PlanInfo) Descriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *PlanInfo) GetPlan() Plan {
|
|
if x != nil {
|
|
return x.Plan
|
|
}
|
|
return Plan_PLAN_UNSPECIFIED
|
|
}
|
|
|
|
func (x *PlanInfo) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PlanInfo) GetPriceEur() int32 {
|
|
if x != nil {
|
|
return x.PriceEur
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PlanInfo) GetDailyMessageLimit() int32 {
|
|
if x != nil {
|
|
return x.DailyMessageLimit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PlanInfo) GetAvailable() bool {
|
|
if x != nil {
|
|
return x.Available
|
|
}
|
|
return false
|
|
}
|
|
|
|
type Subscription struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Plan Plan `protobuf:"varint,2,opt,name=plan,proto3,enum=enkly.billing.v1.Plan" json:"plan,omitempty"`
|
|
Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` // Stripe's subscription status, or "active" for free
|
|
CurrentPeriodEnd *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=current_period_end,json=currentPeriodEnd,proto3" json:"current_period_end,omitempty"`
|
|
CancelAtPeriodEnd bool `protobuf:"varint,5,opt,name=cancel_at_period_end,json=cancelAtPeriodEnd,proto3" json:"cancel_at_period_end,omitempty"`
|
|
// has_billing_account reports whether a Stripe customer exists for
|
|
// this user (so the gateway knows whether to show "Manage billing"),
|
|
// without exposing the actual customer ID. The raw
|
|
// stripe_customer_id / stripe_subscription_id / stripe_price_id are
|
|
// deliberately NOT exposed here, mirroring models.Subscription's
|
|
// json:"-" — they never need to leave billing.
|
|
HasBillingAccount bool `protobuf:"varint,6,opt,name=has_billing_account,json=hasBillingAccount,proto3" json:"has_billing_account,omitempty"`
|
|
}
|
|
|
|
func (x *Subscription) Reset() {
|
|
*x = Subscription{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Subscription) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Subscription) ProtoMessage() {}
|
|
|
|
func (x *Subscription) ProtoReflect() protoreflect.Message {
|
|
mi := &file_billing_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 Subscription.ProtoReflect.Descriptor instead.
|
|
func (*Subscription) Descriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Subscription) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Subscription) GetPlan() Plan {
|
|
if x != nil {
|
|
return x.Plan
|
|
}
|
|
return Plan_PLAN_UNSPECIFIED
|
|
}
|
|
|
|
func (x *Subscription) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Subscription) GetCurrentPeriodEnd() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CurrentPeriodEnd
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Subscription) GetCancelAtPeriodEnd() bool {
|
|
if x != nil {
|
|
return x.CancelAtPeriodEnd
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Subscription) GetHasBillingAccount() bool {
|
|
if x != nil {
|
|
return x.HasBillingAccount
|
|
}
|
|
return false
|
|
}
|
|
|
|
type GetOrCreateSubscriptionRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
}
|
|
|
|
func (x *GetOrCreateSubscriptionRequest) Reset() {
|
|
*x = GetOrCreateSubscriptionRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GetOrCreateSubscriptionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetOrCreateSubscriptionRequest) ProtoMessage() {}
|
|
|
|
func (x *GetOrCreateSubscriptionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_billing_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 GetOrCreateSubscriptionRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetOrCreateSubscriptionRequest) Descriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *GetOrCreateSubscriptionRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetPlanCatalogRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *GetPlanCatalogRequest) Reset() {
|
|
*x = GetPlanCatalogRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GetPlanCatalogRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPlanCatalogRequest) ProtoMessage() {}
|
|
|
|
func (x *GetPlanCatalogRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_billing_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 GetPlanCatalogRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetPlanCatalogRequest) Descriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
type GetPlanCatalogResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Plans []*PlanInfo `protobuf:"bytes,1,rep,name=plans,proto3" json:"plans,omitempty"`
|
|
PublishableKey string `protobuf:"bytes,2,opt,name=publishable_key,json=publishableKey,proto3" json:"publishable_key,omitempty"` // Stripe publishable key, for Checkout.js
|
|
}
|
|
|
|
func (x *GetPlanCatalogResponse) Reset() {
|
|
*x = GetPlanCatalogResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GetPlanCatalogResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPlanCatalogResponse) ProtoMessage() {}
|
|
|
|
func (x *GetPlanCatalogResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_billing_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 GetPlanCatalogResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetPlanCatalogResponse) Descriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *GetPlanCatalogResponse) GetPlans() []*PlanInfo {
|
|
if x != nil {
|
|
return x.Plans
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetPlanCatalogResponse) GetPublishableKey() string {
|
|
if x != nil {
|
|
return x.PublishableKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateCheckoutSessionRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
|
|
Plan Plan `protobuf:"varint,3,opt,name=plan,proto3,enum=enkly.billing.v1.Plan" json:"plan,omitempty"`
|
|
SuccessUrl string `protobuf:"bytes,4,opt,name=success_url,json=successUrl,proto3" json:"success_url,omitempty"`
|
|
CancelUrl string `protobuf:"bytes,5,opt,name=cancel_url,json=cancelUrl,proto3" json:"cancel_url,omitempty"`
|
|
}
|
|
|
|
func (x *CreateCheckoutSessionRequest) Reset() {
|
|
*x = CreateCheckoutSessionRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CreateCheckoutSessionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateCheckoutSessionRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateCheckoutSessionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_billing_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 CreateCheckoutSessionRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateCheckoutSessionRequest) Descriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *CreateCheckoutSessionRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateCheckoutSessionRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateCheckoutSessionRequest) GetPlan() Plan {
|
|
if x != nil {
|
|
return x.Plan
|
|
}
|
|
return Plan_PLAN_UNSPECIFIED
|
|
}
|
|
|
|
func (x *CreateCheckoutSessionRequest) GetSuccessUrl() string {
|
|
if x != nil {
|
|
return x.SuccessUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateCheckoutSessionRequest) GetCancelUrl() string {
|
|
if x != nil {
|
|
return x.CancelUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateCheckoutSessionResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
CheckoutUrl string `protobuf:"bytes,1,opt,name=checkout_url,json=checkoutUrl,proto3" json:"checkout_url,omitempty"`
|
|
}
|
|
|
|
func (x *CreateCheckoutSessionResponse) Reset() {
|
|
*x = CreateCheckoutSessionResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CreateCheckoutSessionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateCheckoutSessionResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateCheckoutSessionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_billing_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 CreateCheckoutSessionResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateCheckoutSessionResponse) Descriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *CreateCheckoutSessionResponse) GetCheckoutUrl() string {
|
|
if x != nil {
|
|
return x.CheckoutUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SyncCheckoutSessionRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
StripeSessionId string `protobuf:"bytes,2,opt,name=stripe_session_id,json=stripeSessionId,proto3" json:"stripe_session_id,omitempty"`
|
|
}
|
|
|
|
func (x *SyncCheckoutSessionRequest) Reset() {
|
|
*x = SyncCheckoutSessionRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *SyncCheckoutSessionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SyncCheckoutSessionRequest) ProtoMessage() {}
|
|
|
|
func (x *SyncCheckoutSessionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_billing_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 SyncCheckoutSessionRequest.ProtoReflect.Descriptor instead.
|
|
func (*SyncCheckoutSessionRequest) Descriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *SyncCheckoutSessionRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SyncCheckoutSessionRequest) GetStripeSessionId() string {
|
|
if x != nil {
|
|
return x.StripeSessionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateBillingPortalSessionRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
ReturnUrl string `protobuf:"bytes,2,opt,name=return_url,json=returnUrl,proto3" json:"return_url,omitempty"`
|
|
}
|
|
|
|
func (x *CreateBillingPortalSessionRequest) Reset() {
|
|
*x = CreateBillingPortalSessionRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CreateBillingPortalSessionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateBillingPortalSessionRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateBillingPortalSessionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_billing_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 CreateBillingPortalSessionRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateBillingPortalSessionRequest) Descriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *CreateBillingPortalSessionRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateBillingPortalSessionRequest) GetReturnUrl() string {
|
|
if x != nil {
|
|
return x.ReturnUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateBillingPortalSessionResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
PortalUrl string `protobuf:"bytes,1,opt,name=portal_url,json=portalUrl,proto3" json:"portal_url,omitempty"`
|
|
}
|
|
|
|
func (x *CreateBillingPortalSessionResponse) Reset() {
|
|
*x = CreateBillingPortalSessionResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CreateBillingPortalSessionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateBillingPortalSessionResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateBillingPortalSessionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_billing_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 CreateBillingPortalSessionResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateBillingPortalSessionResponse) Descriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *CreateBillingPortalSessionResponse) GetPortalUrl() string {
|
|
if x != nil {
|
|
return x.PortalUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type IngestStripeWebhookRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
SignatureHeader string `protobuf:"bytes,2,opt,name=signature_header,json=signatureHeader,proto3" json:"signature_header,omitempty"`
|
|
}
|
|
|
|
func (x *IngestStripeWebhookRequest) Reset() {
|
|
*x = IngestStripeWebhookRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *IngestStripeWebhookRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*IngestStripeWebhookRequest) ProtoMessage() {}
|
|
|
|
func (x *IngestStripeWebhookRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[10]
|
|
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 IngestStripeWebhookRequest.ProtoReflect.Descriptor instead.
|
|
func (*IngestStripeWebhookRequest) Descriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *IngestStripeWebhookRequest) GetPayload() []byte {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *IngestStripeWebhookRequest) GetSignatureHeader() string {
|
|
if x != nil {
|
|
return x.SignatureHeader
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type IngestStripeWebhookResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Accepted bool `protobuf:"varint,1,opt,name=accepted,proto3" json:"accepted,omitempty"`
|
|
}
|
|
|
|
func (x *IngestStripeWebhookResponse) Reset() {
|
|
*x = IngestStripeWebhookResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *IngestStripeWebhookResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*IngestStripeWebhookResponse) ProtoMessage() {}
|
|
|
|
func (x *IngestStripeWebhookResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[11]
|
|
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 IngestStripeWebhookResponse.ProtoReflect.Descriptor instead.
|
|
func (*IngestStripeWebhookResponse) Descriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *IngestStripeWebhookResponse) GetAccepted() bool {
|
|
if x != nil {
|
|
return x.Accepted
|
|
}
|
|
return false
|
|
}
|
|
|
|
type CheckAndIncrementUsageRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
}
|
|
|
|
func (x *CheckAndIncrementUsageRequest) Reset() {
|
|
*x = CheckAndIncrementUsageRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CheckAndIncrementUsageRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CheckAndIncrementUsageRequest) ProtoMessage() {}
|
|
|
|
func (x *CheckAndIncrementUsageRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[12]
|
|
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 CheckAndIncrementUsageRequest.ProtoReflect.Descriptor instead.
|
|
func (*CheckAndIncrementUsageRequest) Descriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *CheckAndIncrementUsageRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CheckAndIncrementUsageResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Allowed bool `protobuf:"varint,1,opt,name=allowed,proto3" json:"allowed,omitempty"`
|
|
Used int32 `protobuf:"varint,2,opt,name=used,proto3" json:"used,omitempty"`
|
|
Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // 0 = unlimited
|
|
PlanName string `protobuf:"bytes,4,opt,name=plan_name,json=planName,proto3" json:"plan_name,omitempty"`
|
|
}
|
|
|
|
func (x *CheckAndIncrementUsageResponse) Reset() {
|
|
*x = CheckAndIncrementUsageResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CheckAndIncrementUsageResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CheckAndIncrementUsageResponse) ProtoMessage() {}
|
|
|
|
func (x *CheckAndIncrementUsageResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[13]
|
|
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 CheckAndIncrementUsageResponse.ProtoReflect.Descriptor instead.
|
|
func (*CheckAndIncrementUsageResponse) Descriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *CheckAndIncrementUsageResponse) GetAllowed() bool {
|
|
if x != nil {
|
|
return x.Allowed
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CheckAndIncrementUsageResponse) GetUsed() int32 {
|
|
if x != nil {
|
|
return x.Used
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CheckAndIncrementUsageResponse) GetLimit() int32 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CheckAndIncrementUsageResponse) GetPlanName() string {
|
|
if x != nil {
|
|
return x.PlanName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetDailyUsageRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
}
|
|
|
|
func (x *GetDailyUsageRequest) Reset() {
|
|
*x = GetDailyUsageRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GetDailyUsageRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetDailyUsageRequest) ProtoMessage() {}
|
|
|
|
func (x *GetDailyUsageRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[14]
|
|
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 GetDailyUsageRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetDailyUsageRequest) Descriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *GetDailyUsageRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetDailyUsageResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Used int32 `protobuf:"varint,1,opt,name=used,proto3" json:"used,omitempty"`
|
|
}
|
|
|
|
func (x *GetDailyUsageResponse) Reset() {
|
|
*x = GetDailyUsageResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GetDailyUsageResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetDailyUsageResponse) ProtoMessage() {}
|
|
|
|
func (x *GetDailyUsageResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_billing_v1_billing_proto_msgTypes[15]
|
|
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 GetDailyUsageResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetDailyUsageResponse) Descriptor() ([]byte, []int) {
|
|
return file_billing_v1_billing_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *GetDailyUsageResponse) GetUsed() int32 {
|
|
if x != nil {
|
|
return x.Used
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_billing_v1_billing_proto protoreflect.FileDescriptor
|
|
|
|
var file_billing_v1_billing_proto_rawDesc = []byte{
|
|
0x0a, 0x18, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x69, 0x6c,
|
|
0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x65, 0x6e, 0x6b, 0x6c,
|
|
0x79, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f,
|
|
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69,
|
|
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb5, 0x01,
|
|
0x0a, 0x08, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2a, 0x0a, 0x04, 0x70, 0x6c,
|
|
0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x65, 0x6e, 0x6b, 0x6c, 0x79,
|
|
0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e,
|
|
0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x72,
|
|
0x69, 0x63, 0x65, 0x5f, 0x65, 0x75, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70,
|
|
0x72, 0x69, 0x63, 0x65, 0x45, 0x75, 0x72, 0x12, 0x2e, 0x0a, 0x13, 0x64, 0x61, 0x69, 0x6c, 0x79,
|
|
0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04,
|
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x64, 0x61, 0x69, 0x6c, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
|
0x67, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c,
|
|
0x61, 0x62, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x76, 0x61, 0x69,
|
|
0x6c, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x96, 0x02, 0x0a, 0x0c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
|
|
0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69,
|
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12,
|
|
0x2a, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e,
|
|
0x65, 0x6e, 0x6b, 0x6c, 0x79, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31,
|
|
0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73,
|
|
0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61,
|
|
0x74, 0x75, 0x73, 0x12, 0x48, 0x0a, 0x12, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x70,
|
|
0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x04, 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, 0x10, 0x63, 0x75, 0x72,
|
|
0x72, 0x65, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x45, 0x6e, 0x64, 0x12, 0x2f, 0x0a,
|
|
0x14, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x61, 0x74, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f,
|
|
0x64, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x61, 0x6e,
|
|
0x63, 0x65, 0x6c, 0x41, 0x74, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x45, 0x6e, 0x64, 0x12, 0x2e,
|
|
0x0a, 0x13, 0x68, 0x61, 0x73, 0x5f, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x63,
|
|
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x68, 0x61, 0x73,
|
|
0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x39,
|
|
0x0a, 0x1e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62,
|
|
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x47, 0x65, 0x74,
|
|
0x50, 0x6c, 0x61, 0x6e, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
0x73, 0x74, 0x22, 0x73, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x61, 0x74,
|
|
0x61, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x05,
|
|
0x70, 0x6c, 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x65, 0x6e,
|
|
0x6b, 0x6c, 0x79, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50,
|
|
0x6c, 0x61, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x27,
|
|
0x0a, 0x0f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6b, 0x65,
|
|
0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68,
|
|
0x61, 0x62, 0x6c, 0x65, 0x4b, 0x65, 0x79, 0x22, 0xb9, 0x01, 0x0a, 0x1c, 0x43, 0x72, 0x65, 0x61,
|
|
0x74, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f,
|
|
0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72,
|
|
0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
|
|
0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x2a, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18,
|
|
0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x65, 0x6e, 0x6b, 0x6c, 0x79, 0x2e, 0x62, 0x69,
|
|
0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x04, 0x70,
|
|
0x6c, 0x61, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x75,
|
|
0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73,
|
|
0x73, 0x55, 0x72, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x75,
|
|
0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c,
|
|
0x55, 0x72, 0x6c, 0x22, 0x42, 0x0a, 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x65,
|
|
0x63, 0x6b, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70,
|
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x6f, 0x75, 0x74,
|
|
0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x68, 0x65, 0x63,
|
|
0x6b, 0x6f, 0x75, 0x74, 0x55, 0x72, 0x6c, 0x22, 0x61, 0x0a, 0x1a, 0x53, 0x79, 0x6e, 0x63, 0x43,
|
|
0x68, 0x65, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65,
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2a,
|
|
0x0a, 0x11, 0x73, 0x74, 0x72, 0x69, 0x70, 0x65, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
|
|
0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x74, 0x72, 0x69, 0x70,
|
|
0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x21, 0x43, 0x72,
|
|
0x65, 0x61, 0x74, 0x65, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x72, 0x74, 0x61,
|
|
0x6c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
|
0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
|
|
0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x74, 0x75,
|
|
0x72, 0x6e, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65,
|
|
0x74, 0x75, 0x72, 0x6e, 0x55, 0x72, 0x6c, 0x22, 0x43, 0x0a, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74,
|
|
0x65, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x53, 0x65,
|
|
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a,
|
|
0x0a, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x09, 0x52, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x22, 0x61, 0x0a, 0x1a,
|
|
0x49, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x53, 0x74, 0x72, 0x69, 0x70, 0x65, 0x57, 0x65, 0x62, 0x68,
|
|
0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61,
|
|
0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79,
|
|
0x6c, 0x6f, 0x61, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72,
|
|
0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f,
|
|
0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22,
|
|
0x39, 0x0a, 0x1b, 0x49, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x53, 0x74, 0x72, 0x69, 0x70, 0x65, 0x57,
|
|
0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a,
|
|
0x0a, 0x08, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
|
|
0x52, 0x08, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x22, 0x38, 0x0a, 0x1d, 0x43, 0x68,
|
|
0x65, 0x63, 0x6b, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x55,
|
|
0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75,
|
|
0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73,
|
|
0x65, 0x72, 0x49, 0x64, 0x22, 0x81, 0x01, 0x0a, 0x1e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x6e,
|
|
0x64, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52,
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x6c, 0x6c, 0x6f, 0x77,
|
|
0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65,
|
|
0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
|
|
0x04, 0x75, 0x73, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03,
|
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70,
|
|
0x6c, 0x61, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
|
0x70, 0x6c, 0x61, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x2f, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x44,
|
|
0x61, 0x69, 0x6c, 0x79, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x2b, 0x0a, 0x15, 0x47, 0x65, 0x74,
|
|
0x44, 0x61, 0x69, 0x6c, 0x79, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
|
|
0x52, 0x04, 0x75, 0x73, 0x65, 0x64, 0x2a, 0x5b, 0x0a, 0x04, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x14,
|
|
0x0a, 0x10, 0x50, 0x4c, 0x41, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
|
|
0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x4c, 0x41, 0x4e, 0x5f, 0x46, 0x52, 0x45,
|
|
0x45, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x4c, 0x41, 0x4e, 0x5f, 0x42, 0x41, 0x53, 0x49,
|
|
0x43, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x4c, 0x41, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x10,
|
|
0x03, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x4c, 0x41, 0x4e, 0x5f, 0x50, 0x52, 0x45, 0x4d, 0x49, 0x55,
|
|
0x4d, 0x10, 0x04, 0x32, 0x9e, 0x07, 0x0a, 0x0e, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x53,
|
|
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43,
|
|
0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
|
|
0x6e, 0x12, 0x30, 0x2e, 0x65, 0x6e, 0x6b, 0x6c, 0x79, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e,
|
|
0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
|
0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75,
|
|
0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x65, 0x6e, 0x6b, 0x6c, 0x79, 0x2e, 0x62, 0x69, 0x6c, 0x6c,
|
|
0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
|
|
0x69, 0x6f, 0x6e, 0x12, 0x63, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x61,
|
|
0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x27, 0x2e, 0x65, 0x6e, 0x6b, 0x6c, 0x79, 0x2e, 0x62, 0x69,
|
|
0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x6e,
|
|
0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28,
|
|
0x2e, 0x65, 0x6e, 0x6b, 0x6c, 0x79, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76,
|
|
0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61,
|
|
0x74, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f,
|
|
0x6e, 0x12, 0x2e, 0x2e, 0x65, 0x6e, 0x6b, 0x6c, 0x79, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e,
|
|
0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b,
|
|
0x6f, 0x75, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
0x74, 0x1a, 0x2f, 0x2e, 0x65, 0x6e, 0x6b, 0x6c, 0x79, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e,
|
|
0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b,
|
|
0x6f, 0x75, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
0x73, 0x65, 0x12, 0x63, 0x0a, 0x13, 0x53, 0x79, 0x6e, 0x63, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x6f,
|
|
0x75, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x2e, 0x65, 0x6e, 0x6b, 0x6c,
|
|
0x79, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e,
|
|
0x63, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x65, 0x6e, 0x6b, 0x6c, 0x79, 0x2e,
|
|
0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63,
|
|
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x87, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61,
|
|
0x74, 0x65, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x53,
|
|
0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x2e, 0x65, 0x6e, 0x6b, 0x6c, 0x79, 0x2e, 0x62,
|
|
0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
|
0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x53, 0x65, 0x73,
|
|
0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x65, 0x6e,
|
|
0x6b, 0x6c, 0x79, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43,
|
|
0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x72, 0x74,
|
|
0x61, 0x6c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
0x65, 0x12, 0x72, 0x0a, 0x13, 0x49, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x53, 0x74, 0x72, 0x69, 0x70,
|
|
0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x2c, 0x2e, 0x65, 0x6e, 0x6b, 0x6c, 0x79,
|
|
0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x67, 0x65,
|
|
0x73, 0x74, 0x53, 0x74, 0x72, 0x69, 0x70, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52,
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x65, 0x6e, 0x6b, 0x6c, 0x79, 0x2e, 0x62,
|
|
0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x67, 0x65, 0x73, 0x74,
|
|
0x53, 0x74, 0x72, 0x69, 0x70, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73,
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x16, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x6e,
|
|
0x64, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x61, 0x67, 0x65, 0x12,
|
|
0x2f, 0x2e, 0x65, 0x6e, 0x6b, 0x6c, 0x79, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e,
|
|
0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x63, 0x72, 0x65,
|
|
0x6d, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
0x1a, 0x30, 0x2e, 0x65, 0x6e, 0x6b, 0x6c, 0x79, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67,
|
|
0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x63, 0x72,
|
|
0x65, 0x6d, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
0x73, 0x65, 0x12, 0x60, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x55, 0x73,
|
|
0x61, 0x67, 0x65, 0x12, 0x26, 0x2e, 0x65, 0x6e, 0x6b, 0x6c, 0x79, 0x2e, 0x62, 0x69, 0x6c, 0x6c,
|
|
0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x55,
|
|
0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x65, 0x6e,
|
|
0x6b, 0x6c, 0x79, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47,
|
|
0x65, 0x74, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70,
|
|
0x6f, 0x6e, 0x73, 0x65, 0x42, 0x20, 0x5a, 0x1e, 0x65, 0x6e, 0x6b, 0x6c, 0x79, 0x2f, 0x67, 0x65,
|
|
0x6e, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x69, 0x6c,
|
|
0x6c, 0x69, 0x6e, 0x67, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_billing_v1_billing_proto_rawDescOnce sync.Once
|
|
file_billing_v1_billing_proto_rawDescData = file_billing_v1_billing_proto_rawDesc
|
|
)
|
|
|
|
func file_billing_v1_billing_proto_rawDescGZIP() []byte {
|
|
file_billing_v1_billing_proto_rawDescOnce.Do(func() {
|
|
file_billing_v1_billing_proto_rawDescData = protoimpl.X.CompressGZIP(file_billing_v1_billing_proto_rawDescData)
|
|
})
|
|
return file_billing_v1_billing_proto_rawDescData
|
|
}
|
|
|
|
var file_billing_v1_billing_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_billing_v1_billing_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
|
var file_billing_v1_billing_proto_goTypes = []any{
|
|
(Plan)(0), // 0: enkly.billing.v1.Plan
|
|
(*PlanInfo)(nil), // 1: enkly.billing.v1.PlanInfo
|
|
(*Subscription)(nil), // 2: enkly.billing.v1.Subscription
|
|
(*GetOrCreateSubscriptionRequest)(nil), // 3: enkly.billing.v1.GetOrCreateSubscriptionRequest
|
|
(*GetPlanCatalogRequest)(nil), // 4: enkly.billing.v1.GetPlanCatalogRequest
|
|
(*GetPlanCatalogResponse)(nil), // 5: enkly.billing.v1.GetPlanCatalogResponse
|
|
(*CreateCheckoutSessionRequest)(nil), // 6: enkly.billing.v1.CreateCheckoutSessionRequest
|
|
(*CreateCheckoutSessionResponse)(nil), // 7: enkly.billing.v1.CreateCheckoutSessionResponse
|
|
(*SyncCheckoutSessionRequest)(nil), // 8: enkly.billing.v1.SyncCheckoutSessionRequest
|
|
(*CreateBillingPortalSessionRequest)(nil), // 9: enkly.billing.v1.CreateBillingPortalSessionRequest
|
|
(*CreateBillingPortalSessionResponse)(nil), // 10: enkly.billing.v1.CreateBillingPortalSessionResponse
|
|
(*IngestStripeWebhookRequest)(nil), // 11: enkly.billing.v1.IngestStripeWebhookRequest
|
|
(*IngestStripeWebhookResponse)(nil), // 12: enkly.billing.v1.IngestStripeWebhookResponse
|
|
(*CheckAndIncrementUsageRequest)(nil), // 13: enkly.billing.v1.CheckAndIncrementUsageRequest
|
|
(*CheckAndIncrementUsageResponse)(nil), // 14: enkly.billing.v1.CheckAndIncrementUsageResponse
|
|
(*GetDailyUsageRequest)(nil), // 15: enkly.billing.v1.GetDailyUsageRequest
|
|
(*GetDailyUsageResponse)(nil), // 16: enkly.billing.v1.GetDailyUsageResponse
|
|
(*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp
|
|
}
|
|
var file_billing_v1_billing_proto_depIdxs = []int32{
|
|
0, // 0: enkly.billing.v1.PlanInfo.plan:type_name -> enkly.billing.v1.Plan
|
|
0, // 1: enkly.billing.v1.Subscription.plan:type_name -> enkly.billing.v1.Plan
|
|
17, // 2: enkly.billing.v1.Subscription.current_period_end:type_name -> google.protobuf.Timestamp
|
|
1, // 3: enkly.billing.v1.GetPlanCatalogResponse.plans:type_name -> enkly.billing.v1.PlanInfo
|
|
0, // 4: enkly.billing.v1.CreateCheckoutSessionRequest.plan:type_name -> enkly.billing.v1.Plan
|
|
3, // 5: enkly.billing.v1.BillingService.GetOrCreateSubscription:input_type -> enkly.billing.v1.GetOrCreateSubscriptionRequest
|
|
4, // 6: enkly.billing.v1.BillingService.GetPlanCatalog:input_type -> enkly.billing.v1.GetPlanCatalogRequest
|
|
6, // 7: enkly.billing.v1.BillingService.CreateCheckoutSession:input_type -> enkly.billing.v1.CreateCheckoutSessionRequest
|
|
8, // 8: enkly.billing.v1.BillingService.SyncCheckoutSession:input_type -> enkly.billing.v1.SyncCheckoutSessionRequest
|
|
9, // 9: enkly.billing.v1.BillingService.CreateBillingPortalSession:input_type -> enkly.billing.v1.CreateBillingPortalSessionRequest
|
|
11, // 10: enkly.billing.v1.BillingService.IngestStripeWebhook:input_type -> enkly.billing.v1.IngestStripeWebhookRequest
|
|
13, // 11: enkly.billing.v1.BillingService.CheckAndIncrementUsage:input_type -> enkly.billing.v1.CheckAndIncrementUsageRequest
|
|
15, // 12: enkly.billing.v1.BillingService.GetDailyUsage:input_type -> enkly.billing.v1.GetDailyUsageRequest
|
|
2, // 13: enkly.billing.v1.BillingService.GetOrCreateSubscription:output_type -> enkly.billing.v1.Subscription
|
|
5, // 14: enkly.billing.v1.BillingService.GetPlanCatalog:output_type -> enkly.billing.v1.GetPlanCatalogResponse
|
|
7, // 15: enkly.billing.v1.BillingService.CreateCheckoutSession:output_type -> enkly.billing.v1.CreateCheckoutSessionResponse
|
|
2, // 16: enkly.billing.v1.BillingService.SyncCheckoutSession:output_type -> enkly.billing.v1.Subscription
|
|
10, // 17: enkly.billing.v1.BillingService.CreateBillingPortalSession:output_type -> enkly.billing.v1.CreateBillingPortalSessionResponse
|
|
12, // 18: enkly.billing.v1.BillingService.IngestStripeWebhook:output_type -> enkly.billing.v1.IngestStripeWebhookResponse
|
|
14, // 19: enkly.billing.v1.BillingService.CheckAndIncrementUsage:output_type -> enkly.billing.v1.CheckAndIncrementUsageResponse
|
|
16, // 20: enkly.billing.v1.BillingService.GetDailyUsage:output_type -> enkly.billing.v1.GetDailyUsageResponse
|
|
13, // [13:21] is the sub-list for method output_type
|
|
5, // [5:13] is the sub-list for method input_type
|
|
5, // [5:5] is the sub-list for extension type_name
|
|
5, // [5:5] is the sub-list for extension extendee
|
|
0, // [0:5] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_billing_v1_billing_proto_init() }
|
|
func file_billing_v1_billing_proto_init() {
|
|
if File_billing_v1_billing_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_billing_v1_billing_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
|
switch v := v.(*PlanInfo); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_billing_v1_billing_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
|
switch v := v.(*Subscription); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_billing_v1_billing_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
|
switch v := v.(*GetOrCreateSubscriptionRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_billing_v1_billing_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
|
switch v := v.(*GetPlanCatalogRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_billing_v1_billing_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
|
switch v := v.(*GetPlanCatalogResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_billing_v1_billing_proto_msgTypes[5].Exporter = func(v any, i int) any {
|
|
switch v := v.(*CreateCheckoutSessionRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_billing_v1_billing_proto_msgTypes[6].Exporter = func(v any, i int) any {
|
|
switch v := v.(*CreateCheckoutSessionResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_billing_v1_billing_proto_msgTypes[7].Exporter = func(v any, i int) any {
|
|
switch v := v.(*SyncCheckoutSessionRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_billing_v1_billing_proto_msgTypes[8].Exporter = func(v any, i int) any {
|
|
switch v := v.(*CreateBillingPortalSessionRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_billing_v1_billing_proto_msgTypes[9].Exporter = func(v any, i int) any {
|
|
switch v := v.(*CreateBillingPortalSessionResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_billing_v1_billing_proto_msgTypes[10].Exporter = func(v any, i int) any {
|
|
switch v := v.(*IngestStripeWebhookRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_billing_v1_billing_proto_msgTypes[11].Exporter = func(v any, i int) any {
|
|
switch v := v.(*IngestStripeWebhookResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_billing_v1_billing_proto_msgTypes[12].Exporter = func(v any, i int) any {
|
|
switch v := v.(*CheckAndIncrementUsageRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_billing_v1_billing_proto_msgTypes[13].Exporter = func(v any, i int) any {
|
|
switch v := v.(*CheckAndIncrementUsageResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_billing_v1_billing_proto_msgTypes[14].Exporter = func(v any, i int) any {
|
|
switch v := v.(*GetDailyUsageRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_billing_v1_billing_proto_msgTypes[15].Exporter = func(v any, i int) any {
|
|
switch v := v.(*GetDailyUsageResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_billing_v1_billing_proto_rawDesc,
|
|
NumEnums: 1,
|
|
NumMessages: 16,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_billing_v1_billing_proto_goTypes,
|
|
DependencyIndexes: file_billing_v1_billing_proto_depIdxs,
|
|
EnumInfos: file_billing_v1_billing_proto_enumTypes,
|
|
MessageInfos: file_billing_v1_billing_proto_msgTypes,
|
|
}.Build()
|
|
File_billing_v1_billing_proto = out.File
|
|
file_billing_v1_billing_proto_rawDesc = nil
|
|
file_billing_v1_billing_proto_goTypes = nil
|
|
file_billing_v1_billing_proto_depIdxs = nil
|
|
}
|