Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.12
// protoc (unknown)
// source: v1/subscription_service.proto
package v1
import (
_ "google.golang.org/genproto/googleapis/api/annotations"
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"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type BillingInterval int32
const (
BillingInterval_BILLING_INTERVAL_UNSPECIFIED BillingInterval = 0
BillingInterval_MONTH BillingInterval = 1
BillingInterval_YEAR BillingInterval = 2
)
// Enum value maps for BillingInterval.
var (
BillingInterval_name = map[int32]string{
0: "BILLING_INTERVAL_UNSPECIFIED",
1: "MONTH",
2: "YEAR",
}
BillingInterval_value = map[string]int32{
"BILLING_INTERVAL_UNSPECIFIED": 0,
"MONTH": 1,
"YEAR": 2,
}
)
func (x BillingInterval) Enum() *BillingInterval {
p := new(BillingInterval)
*p = x
return p
}
func (x BillingInterval) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BillingInterval) Descriptor() protoreflect.EnumDescriptor {
return file_v1_subscription_service_proto_enumTypes[0].Descriptor()
}
func (BillingInterval) Type() protoreflect.EnumType {
return &file_v1_subscription_service_proto_enumTypes[0]
}
func (x BillingInterval) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BillingInterval.Descriptor instead.
func (BillingInterval) EnumDescriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{0}
}
type PlanType int32
const (
// Unspecified plan type.
PlanType_PLAN_TYPE_UNSPECIFIED PlanType = 0
// Free plan with basic features and no cost.
PlanType_FREE PlanType = 1
// Team plan with collaboration features for small to medium teams.
PlanType_TEAM PlanType = 2
// Enterprise plan with advanced features and dedicated support.
PlanType_ENTERPRISE PlanType = 3
)
// Enum value maps for PlanType.
var (
PlanType_name = map[int32]string{
0: "PLAN_TYPE_UNSPECIFIED",
1: "FREE",
2: "TEAM",
3: "ENTERPRISE",
}
PlanType_value = map[string]int32{
"PLAN_TYPE_UNSPECIFIED": 0,
"FREE": 1,
"TEAM": 2,
"ENTERPRISE": 3,
}
)
func (x PlanType) Enum() *PlanType {
p := new(PlanType)
*p = x
return p
}
func (x PlanType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PlanType) Descriptor() protoreflect.EnumDescriptor {
return file_v1_subscription_service_proto_enumTypes[1].Descriptor()
}
func (PlanType) Type() protoreflect.EnumType {
return &file_v1_subscription_service_proto_enumTypes[1]
}
func (x PlanType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PlanType.Descriptor instead.
func (PlanType) EnumDescriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{1}
}
// PlanFeature represents the available features in Bytebase
type PlanFeature int32
const (
PlanFeature_FEATURE_UNSPECIFIED PlanFeature = 0
// Database Change Management
PlanFeature_FEATURE_DATABASE_CHANGE PlanFeature = 1
PlanFeature_FEATURE_GIT_BASED_SCHEMA_VERSION_CONTROL PlanFeature = 2
PlanFeature_FEATURE_DECLARATIVE_SCHEMA_MIGRATION PlanFeature = 3
PlanFeature_FEATURE_COMPARE_AND_SYNC_SCHEMA PlanFeature = 4
PlanFeature_FEATURE_ONLINE_SCHEMA_CHANGE PlanFeature = 5
PlanFeature_FEATURE_PRE_DEPLOYMENT_SQL_REVIEW PlanFeature = 6
PlanFeature_FEATURE_AUTOMATIC_BACKUP_BEFORE_DATA_CHANGES PlanFeature = 7
PlanFeature_FEATURE_ONE_CLICK_DATA_ROLLBACK PlanFeature = 8
PlanFeature_FEATURE_MULTI_DATABASE_BATCH_CHANGES PlanFeature = 9
PlanFeature_FEATURE_PROGRESSIVE_ENVIRONMENT_DEPLOYMENT PlanFeature = 10
PlanFeature_FEATURE_SCHEDULED_ROLLOUT_TIME PlanFeature = 11
PlanFeature_FEATURE_DATABASE_CHANGELOG PlanFeature = 12
// Deprecated: Marked as deprecated in v1/subscription_service.proto.
PlanFeature_FEATURE_SCHEMA_DRIFT_DETECTION PlanFeature = 13
PlanFeature_FEATURE_ROLLOUT_POLICY PlanFeature = 14
// SQL Editor & Development
PlanFeature_FEATURE_WEB_BASED_SQL_EDITOR PlanFeature = 15
PlanFeature_FEATURE_SQL_EDITOR_ADMIN_MODE PlanFeature = 16
PlanFeature_FEATURE_NATURAL_LANGUAGE_TO_SQL PlanFeature = 17
PlanFeature_FEATURE_AI_QUERY_EXPLANATION PlanFeature = 18
PlanFeature_FEATURE_AI_QUERY_SUGGESTIONS PlanFeature = 19
PlanFeature_FEATURE_AUTO_COMPLETE PlanFeature = 20
PlanFeature_FEATURE_SCHEMA_DIAGRAM PlanFeature = 21
PlanFeature_FEATURE_SCHEMA_EDITOR PlanFeature = 22
PlanFeature_FEATURE_DATA_EXPORT PlanFeature = 23
PlanFeature_FEATURE_DATA_OFFLINE_EXPORT PlanFeature = 24
PlanFeature_FEATURE_QUERY_HISTORY PlanFeature = 25
PlanFeature_FEATURE_SAVED_AND_SHARED_SQL_SCRIPTS PlanFeature = 26
PlanFeature_FEATURE_BATCH_QUERY PlanFeature = 27
PlanFeature_FEATURE_INSTANCE_READ_ONLY_CONNECTION PlanFeature = 28
PlanFeature_FEATURE_QUERY_POLICY PlanFeature = 29
PlanFeature_FEATURE_RESTRICT_COPYING_DATA PlanFeature = 30
// Security & Compliance
PlanFeature_FEATURE_IAM PlanFeature = 31
PlanFeature_FEATURE_INSTANCE_SSL_CONNECTION PlanFeature = 32
PlanFeature_FEATURE_INSTANCE_CONNECTION_OVER_SSH_TUNNEL PlanFeature = 33
PlanFeature_FEATURE_INSTANCE_CONNECTION_IAM_AUTHENTICATION PlanFeature = 34
PlanFeature_FEATURE_GOOGLE_AND_GITHUB_SSO PlanFeature = 35
PlanFeature_FEATURE_USER_GROUPS PlanFeature = 36
PlanFeature_FEATURE_DISALLOW_SELF_SERVICE_SIGNUP PlanFeature = 37
PlanFeature_FEATURE_CUSTOM_INSTANCE_SYNC_TIME PlanFeature = 38
PlanFeature_FEATURE_CUSTOM_INSTANCE_CONNECTION_LIMIT PlanFeature = 39
PlanFeature_FEATURE_RISK_ASSESSMENT PlanFeature = 40
PlanFeature_FEATURE_APPROVAL_WORKFLOW PlanFeature = 41
PlanFeature_FEATURE_AUDIT_LOG PlanFeature = 42
PlanFeature_FEATURE_ENTERPRISE_SSO PlanFeature = 43
PlanFeature_FEATURE_TWO_FA PlanFeature = 44
PlanFeature_FEATURE_PASSWORD_RESTRICTIONS PlanFeature = 45
PlanFeature_FEATURE_DISALLOW_PASSWORD_SIGNIN PlanFeature = 46
PlanFeature_FEATURE_CUSTOM_ROLES PlanFeature = 47
PlanFeature_FEATURE_REQUEST_ROLE_WORKFLOW PlanFeature = 48
PlanFeature_FEATURE_JIT PlanFeature = 49
PlanFeature_FEATURE_DATA_MASKING PlanFeature = 50
PlanFeature_FEATURE_DATA_CLASSIFICATION PlanFeature = 51
PlanFeature_FEATURE_SCIM PlanFeature = 52
PlanFeature_FEATURE_DIRECTORY_SYNC PlanFeature = 53
PlanFeature_FEATURE_TOKEN_DURATION_CONTROL PlanFeature = 54
PlanFeature_FEATURE_EXTERNAL_SECRET_MANAGER PlanFeature = 55
PlanFeature_FEATURE_USER_EMAIL_DOMAIN_RESTRICTION PlanFeature = 56
// Administration & Support
PlanFeature_FEATURE_PROJECT_MANAGEMENT PlanFeature = 57
PlanFeature_FEATURE_ENVIRONMENT_MANAGEMENT PlanFeature = 58
PlanFeature_FEATURE_IM_NOTIFICATIONS PlanFeature = 59
PlanFeature_FEATURE_TERRAFORM_PROVIDER PlanFeature = 60
PlanFeature_FEATURE_DATABASE_GROUPS PlanFeature = 61
PlanFeature_FEATURE_ENVIRONMENT_TIERS PlanFeature = 62
PlanFeature_FEATURE_DASHBOARD_ANNOUNCEMENT PlanFeature = 63
PlanFeature_FEATURE_API_INTEGRATION_GUIDANCE PlanFeature = 64
PlanFeature_FEATURE_CUSTOM_LOGO PlanFeature = 65
PlanFeature_FEATURE_WATERMARK PlanFeature = 66
PlanFeature_FEATURE_ROADMAP_PRIORITIZATION PlanFeature = 67
PlanFeature_FEATURE_CUSTOM_MSA PlanFeature = 68
PlanFeature_FEATURE_COMMUNITY_SUPPORT PlanFeature = 69
PlanFeature_FEATURE_EMAIL_SUPPORT PlanFeature = 70
PlanFeature_FEATURE_DEDICATED_SUPPORT_WITH_SLA PlanFeature = 71
// Upload exports to SharePoint.
PlanFeature_FEATURE_SHAREPOINT_EXPORT PlanFeature = 72
)
// Enum value maps for PlanFeature.
var (
PlanFeature_name = map[int32]string{
0: "FEATURE_UNSPECIFIED",
1: "FEATURE_DATABASE_CHANGE",
2: "FEATURE_GIT_BASED_SCHEMA_VERSION_CONTROL",
3: "FEATURE_DECLARATIVE_SCHEMA_MIGRATION",
4: "FEATURE_COMPARE_AND_SYNC_SCHEMA",
5: "FEATURE_ONLINE_SCHEMA_CHANGE",
6: "FEATURE_PRE_DEPLOYMENT_SQL_REVIEW",
7: "FEATURE_AUTOMATIC_BACKUP_BEFORE_DATA_CHANGES",
8: "FEATURE_ONE_CLICK_DATA_ROLLBACK",
9: "FEATURE_MULTI_DATABASE_BATCH_CHANGES",
10: "FEATURE_PROGRESSIVE_ENVIRONMENT_DEPLOYMENT",
11: "FEATURE_SCHEDULED_ROLLOUT_TIME",
12: "FEATURE_DATABASE_CHANGELOG",
13: "FEATURE_SCHEMA_DRIFT_DETECTION",
14: "FEATURE_ROLLOUT_POLICY",
15: "FEATURE_WEB_BASED_SQL_EDITOR",
16: "FEATURE_SQL_EDITOR_ADMIN_MODE",
17: "FEATURE_NATURAL_LANGUAGE_TO_SQL",
18: "FEATURE_AI_QUERY_EXPLANATION",
19: "FEATURE_AI_QUERY_SUGGESTIONS",
20: "FEATURE_AUTO_COMPLETE",
21: "FEATURE_SCHEMA_DIAGRAM",
22: "FEATURE_SCHEMA_EDITOR",
23: "FEATURE_DATA_EXPORT",
24: "FEATURE_DATA_OFFLINE_EXPORT",
25: "FEATURE_QUERY_HISTORY",
26: "FEATURE_SAVED_AND_SHARED_SQL_SCRIPTS",
27: "FEATURE_BATCH_QUERY",
28: "FEATURE_INSTANCE_READ_ONLY_CONNECTION",
29: "FEATURE_QUERY_POLICY",
30: "FEATURE_RESTRICT_COPYING_DATA",
31: "FEATURE_IAM",
32: "FEATURE_INSTANCE_SSL_CONNECTION",
33: "FEATURE_INSTANCE_CONNECTION_OVER_SSH_TUNNEL",
34: "FEATURE_INSTANCE_CONNECTION_IAM_AUTHENTICATION",
35: "FEATURE_GOOGLE_AND_GITHUB_SSO",
36: "FEATURE_USER_GROUPS",
37: "FEATURE_DISALLOW_SELF_SERVICE_SIGNUP",
38: "FEATURE_CUSTOM_INSTANCE_SYNC_TIME",
39: "FEATURE_CUSTOM_INSTANCE_CONNECTION_LIMIT",
40: "FEATURE_RISK_ASSESSMENT",
41: "FEATURE_APPROVAL_WORKFLOW",
42: "FEATURE_AUDIT_LOG",
43: "FEATURE_ENTERPRISE_SSO",
44: "FEATURE_TWO_FA",
45: "FEATURE_PASSWORD_RESTRICTIONS",
46: "FEATURE_DISALLOW_PASSWORD_SIGNIN",
47: "FEATURE_CUSTOM_ROLES",
48: "FEATURE_REQUEST_ROLE_WORKFLOW",
49: "FEATURE_JIT",
50: "FEATURE_DATA_MASKING",
51: "FEATURE_DATA_CLASSIFICATION",
52: "FEATURE_SCIM",
53: "FEATURE_DIRECTORY_SYNC",
54: "FEATURE_TOKEN_DURATION_CONTROL",
55: "FEATURE_EXTERNAL_SECRET_MANAGER",
56: "FEATURE_USER_EMAIL_DOMAIN_RESTRICTION",
57: "FEATURE_PROJECT_MANAGEMENT",
58: "FEATURE_ENVIRONMENT_MANAGEMENT",
59: "FEATURE_IM_NOTIFICATIONS",
60: "FEATURE_TERRAFORM_PROVIDER",
61: "FEATURE_DATABASE_GROUPS",
62: "FEATURE_ENVIRONMENT_TIERS",
63: "FEATURE_DASHBOARD_ANNOUNCEMENT",
64: "FEATURE_API_INTEGRATION_GUIDANCE",
65: "FEATURE_CUSTOM_LOGO",
66: "FEATURE_WATERMARK",
67: "FEATURE_ROADMAP_PRIORITIZATION",
68: "FEATURE_CUSTOM_MSA",
69: "FEATURE_COMMUNITY_SUPPORT",
70: "FEATURE_EMAIL_SUPPORT",
71: "FEATURE_DEDICATED_SUPPORT_WITH_SLA",
72: "FEATURE_SHAREPOINT_EXPORT",
}
PlanFeature_value = map[string]int32{
"FEATURE_UNSPECIFIED": 0,
"FEATURE_DATABASE_CHANGE": 1,
"FEATURE_GIT_BASED_SCHEMA_VERSION_CONTROL": 2,
"FEATURE_DECLARATIVE_SCHEMA_MIGRATION": 3,
"FEATURE_COMPARE_AND_SYNC_SCHEMA": 4,
"FEATURE_ONLINE_SCHEMA_CHANGE": 5,
"FEATURE_PRE_DEPLOYMENT_SQL_REVIEW": 6,
"FEATURE_AUTOMATIC_BACKUP_BEFORE_DATA_CHANGES": 7,
"FEATURE_ONE_CLICK_DATA_ROLLBACK": 8,
"FEATURE_MULTI_DATABASE_BATCH_CHANGES": 9,
"FEATURE_PROGRESSIVE_ENVIRONMENT_DEPLOYMENT": 10,
"FEATURE_SCHEDULED_ROLLOUT_TIME": 11,
"FEATURE_DATABASE_CHANGELOG": 12,
"FEATURE_SCHEMA_DRIFT_DETECTION": 13,
"FEATURE_ROLLOUT_POLICY": 14,
"FEATURE_WEB_BASED_SQL_EDITOR": 15,
"FEATURE_SQL_EDITOR_ADMIN_MODE": 16,
"FEATURE_NATURAL_LANGUAGE_TO_SQL": 17,
"FEATURE_AI_QUERY_EXPLANATION": 18,
"FEATURE_AI_QUERY_SUGGESTIONS": 19,
"FEATURE_AUTO_COMPLETE": 20,
"FEATURE_SCHEMA_DIAGRAM": 21,
"FEATURE_SCHEMA_EDITOR": 22,
"FEATURE_DATA_EXPORT": 23,
"FEATURE_DATA_OFFLINE_EXPORT": 24,
"FEATURE_QUERY_HISTORY": 25,
"FEATURE_SAVED_AND_SHARED_SQL_SCRIPTS": 26,
"FEATURE_BATCH_QUERY": 27,
"FEATURE_INSTANCE_READ_ONLY_CONNECTION": 28,
"FEATURE_QUERY_POLICY": 29,
"FEATURE_RESTRICT_COPYING_DATA": 30,
"FEATURE_IAM": 31,
"FEATURE_INSTANCE_SSL_CONNECTION": 32,
"FEATURE_INSTANCE_CONNECTION_OVER_SSH_TUNNEL": 33,
"FEATURE_INSTANCE_CONNECTION_IAM_AUTHENTICATION": 34,
"FEATURE_GOOGLE_AND_GITHUB_SSO": 35,
"FEATURE_USER_GROUPS": 36,
"FEATURE_DISALLOW_SELF_SERVICE_SIGNUP": 37,
"FEATURE_CUSTOM_INSTANCE_SYNC_TIME": 38,
"FEATURE_CUSTOM_INSTANCE_CONNECTION_LIMIT": 39,
"FEATURE_RISK_ASSESSMENT": 40,
"FEATURE_APPROVAL_WORKFLOW": 41,
"FEATURE_AUDIT_LOG": 42,
"FEATURE_ENTERPRISE_SSO": 43,
"FEATURE_TWO_FA": 44,
"FEATURE_PASSWORD_RESTRICTIONS": 45,
"FEATURE_DISALLOW_PASSWORD_SIGNIN": 46,
"FEATURE_CUSTOM_ROLES": 47,
"FEATURE_REQUEST_ROLE_WORKFLOW": 48,
"FEATURE_JIT": 49,
"FEATURE_DATA_MASKING": 50,
"FEATURE_DATA_CLASSIFICATION": 51,
"FEATURE_SCIM": 52,
"FEATURE_DIRECTORY_SYNC": 53,
"FEATURE_TOKEN_DURATION_CONTROL": 54,
"FEATURE_EXTERNAL_SECRET_MANAGER": 55,
"FEATURE_USER_EMAIL_DOMAIN_RESTRICTION": 56,
"FEATURE_PROJECT_MANAGEMENT": 57,
"FEATURE_ENVIRONMENT_MANAGEMENT": 58,
"FEATURE_IM_NOTIFICATIONS": 59,
"FEATURE_TERRAFORM_PROVIDER": 60,
"FEATURE_DATABASE_GROUPS": 61,
"FEATURE_ENVIRONMENT_TIERS": 62,
"FEATURE_DASHBOARD_ANNOUNCEMENT": 63,
"FEATURE_API_INTEGRATION_GUIDANCE": 64,
"FEATURE_CUSTOM_LOGO": 65,
"FEATURE_WATERMARK": 66,
"FEATURE_ROADMAP_PRIORITIZATION": 67,
"FEATURE_CUSTOM_MSA": 68,
"FEATURE_COMMUNITY_SUPPORT": 69,
"FEATURE_EMAIL_SUPPORT": 70,
"FEATURE_DEDICATED_SUPPORT_WITH_SLA": 71,
"FEATURE_SHAREPOINT_EXPORT": 72,
}
)
func (x PlanFeature) Enum() *PlanFeature {
p := new(PlanFeature)
*p = x
return p
}
func (x PlanFeature) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PlanFeature) Descriptor() protoreflect.EnumDescriptor {
return file_v1_subscription_service_proto_enumTypes[2].Descriptor()
}
func (PlanFeature) Type() protoreflect.EnumType {
return &file_v1_subscription_service_proto_enumTypes[2]
}
func (x PlanFeature) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PlanFeature.Descriptor instead.
func (PlanFeature) EnumDescriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{2}
}
type PurchasePlanAdditional_Type int32
const (
PurchasePlanAdditional_TYPE_UNSPECIFIED PurchasePlanAdditional_Type = 0
PurchasePlanAdditional_USER PurchasePlanAdditional_Type = 1
)
// Enum value maps for PurchasePlanAdditional_Type.
var (
PurchasePlanAdditional_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "USER",
}
PurchasePlanAdditional_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"USER": 1,
}
)
func (x PurchasePlanAdditional_Type) Enum() *PurchasePlanAdditional_Type {
p := new(PurchasePlanAdditional_Type)
*p = x
return p
}
func (x PurchasePlanAdditional_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PurchasePlanAdditional_Type) Descriptor() protoreflect.EnumDescriptor {
return file_v1_subscription_service_proto_enumTypes[3].Descriptor()
}
func (PurchasePlanAdditional_Type) Type() protoreflect.EnumType {
return &file_v1_subscription_service_proto_enumTypes[3]
}
func (x PurchasePlanAdditional_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PurchasePlanAdditional_Type.Descriptor instead.
func (PurchasePlanAdditional_Type) EnumDescriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{13, 0}
}
type PurchaseDiscount_Type int32
const (
PurchaseDiscount_TYPE_UNSPECIFIED PurchaseDiscount_Type = 0
PurchaseDiscount_PERCENTAGE_OFF PurchaseDiscount_Type = 1
PurchaseDiscount_FIXED_MONTH_OFF PurchaseDiscount_Type = 2
PurchaseDiscount_FIXED_PRICE_OFF PurchaseDiscount_Type = 3
)
// Enum value maps for PurchaseDiscount_Type.
var (
PurchaseDiscount_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "PERCENTAGE_OFF",
2: "FIXED_MONTH_OFF",
3: "FIXED_PRICE_OFF",
}
PurchaseDiscount_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"PERCENTAGE_OFF": 1,
"FIXED_MONTH_OFF": 2,
"FIXED_PRICE_OFF": 3,
}
)
func (x PurchaseDiscount_Type) Enum() *PurchaseDiscount_Type {
p := new(PurchaseDiscount_Type)
*p = x
return p
}
func (x PurchaseDiscount_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PurchaseDiscount_Type) Descriptor() protoreflect.EnumDescriptor {
return file_v1_subscription_service_proto_enumTypes[4].Descriptor()
}
func (PurchaseDiscount_Type) Type() protoreflect.EnumType {
return &file_v1_subscription_service_proto_enumTypes[4]
}
func (x PurchaseDiscount_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PurchaseDiscount_Type.Descriptor instead.
func (PurchaseDiscount_Type) EnumDescriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{15, 0}
}
type GetSubscriptionRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetSubscriptionRequest) Reset() {
*x = GetSubscriptionRequest{}
mi := &file_v1_subscription_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetSubscriptionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetSubscriptionRequest) ProtoMessage() {}
func (x *GetSubscriptionRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetSubscriptionRequest.ProtoReflect.Descriptor instead.
func (*GetSubscriptionRequest) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{0}
}
type ExportVCSProviderUsersRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExportVCSProviderUsersRequest) Reset() {
*x = ExportVCSProviderUsersRequest{}
mi := &file_v1_subscription_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExportVCSProviderUsersRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExportVCSProviderUsersRequest) ProtoMessage() {}
func (x *ExportVCSProviderUsersRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExportVCSProviderUsersRequest.ProtoReflect.Descriptor instead.
func (*ExportVCSProviderUsersRequest) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{1}
}
type ExportVCSProviderUsersResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExportVCSProviderUsersResponse) Reset() {
*x = ExportVCSProviderUsersResponse{}
mi := &file_v1_subscription_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExportVCSProviderUsersResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExportVCSProviderUsersResponse) ProtoMessage() {}
func (x *ExportVCSProviderUsersResponse) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExportVCSProviderUsersResponse.ProtoReflect.Descriptor instead.
func (*ExportVCSProviderUsersResponse) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{2}
}
func (x *ExportVCSProviderUsersResponse) GetContent() []byte {
if x != nil {
return x.Content
}
return nil
}
type UploadLicenseRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
License string `protobuf:"bytes,1,opt,name=license,proto3" json:"license,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UploadLicenseRequest) Reset() {
*x = UploadLicenseRequest{}
mi := &file_v1_subscription_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UploadLicenseRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UploadLicenseRequest) ProtoMessage() {}
func (x *UploadLicenseRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UploadLicenseRequest.ProtoReflect.Descriptor instead.
func (*UploadLicenseRequest) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{3}
}
func (x *UploadLicenseRequest) GetLicense() string {
if x != nil {
return x.License
}
return ""
}
type CreatePurchaseRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Plan PlanType `protobuf:"varint,1,opt,name=plan,proto3,enum=bytebase.v1.PlanType" json:"plan,omitempty"`
Interval BillingInterval `protobuf:"varint,2,opt,name=interval,proto3,enum=bytebase.v1.BillingInterval" json:"interval,omitempty"`
Seats int32 `protobuf:"varint,3,opt,name=seats,proto3" json:"seats,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreatePurchaseRequest) Reset() {
*x = CreatePurchaseRequest{}
mi := &file_v1_subscription_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreatePurchaseRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreatePurchaseRequest) ProtoMessage() {}
func (x *CreatePurchaseRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreatePurchaseRequest.ProtoReflect.Descriptor instead.
func (*CreatePurchaseRequest) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{4}
}
func (x *CreatePurchaseRequest) GetPlan() PlanType {
if x != nil {
return x.Plan
}
return PlanType_PLAN_TYPE_UNSPECIFIED
}
func (x *CreatePurchaseRequest) GetInterval() BillingInterval {
if x != nil {
return x.Interval
}
return BillingInterval_BILLING_INTERVAL_UNSPECIFIED
}
func (x *CreatePurchaseRequest) GetSeats() int32 {
if x != nil {
return x.Seats
}
return 0
}
type PurchaseResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// If set, redirect to this Stripe Checkout URL.
// If empty, the update was applied directly using the existing payment method.
PaymentUrl string `protobuf:"bytes,1,opt,name=payment_url,json=paymentUrl,proto3" json:"payment_url,omitempty"`
// Stripe Checkout Session ID. Used to verify the session after redirect.
SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PurchaseResponse) Reset() {
*x = PurchaseResponse{}
mi := &file_v1_subscription_service_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PurchaseResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PurchaseResponse) ProtoMessage() {}
func (x *PurchaseResponse) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PurchaseResponse.ProtoReflect.Descriptor instead.
func (*PurchaseResponse) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{5}
}
func (x *PurchaseResponse) GetPaymentUrl() string {
if x != nil {
return x.PaymentUrl
}
return ""
}
func (x *PurchaseResponse) GetSessionId() string {
if x != nil {
return x.SessionId
}
return ""
}
type VerifyCheckoutSessionRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The same Stripe Checkout Session ID PurchaseResponse mints, arriving back
// the other way, so it carries the same classification. VerifyCheckoutSession
// is EXCLUDED, and a refusal of it streams its request to the stdout audit
// log, so leaving this unannotated would write the id into that line while
// the response that produced it was redacted.
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *VerifyCheckoutSessionRequest) Reset() {
*x = VerifyCheckoutSessionRequest{}
mi := &file_v1_subscription_service_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *VerifyCheckoutSessionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VerifyCheckoutSessionRequest) ProtoMessage() {}
func (x *VerifyCheckoutSessionRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VerifyCheckoutSessionRequest.ProtoReflect.Descriptor instead.
func (*VerifyCheckoutSessionRequest) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{6}
}
func (x *VerifyCheckoutSessionRequest) GetSessionId() string {
if x != nil {
return x.SessionId
}
return ""
}
type VerifyCheckoutSessionResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Stripe Checkout Session status: "complete", "expired", or "open".
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *VerifyCheckoutSessionResponse) Reset() {
*x = VerifyCheckoutSessionResponse{}
mi := &file_v1_subscription_service_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *VerifyCheckoutSessionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VerifyCheckoutSessionResponse) ProtoMessage() {}
func (x *VerifyCheckoutSessionResponse) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VerifyCheckoutSessionResponse.ProtoReflect.Descriptor instead.
func (*VerifyCheckoutSessionResponse) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{7}
}
func (x *VerifyCheckoutSessionResponse) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
type UpdatePurchaseRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Plan PlanType `protobuf:"varint,1,opt,name=plan,proto3,enum=bytebase.v1.PlanType" json:"plan,omitempty"`
Interval BillingInterval `protobuf:"varint,2,opt,name=interval,proto3,enum=bytebase.v1.BillingInterval" json:"interval,omitempty"`
Seats int32 `protobuf:"varint,3,opt,name=seats,proto3" json:"seats,omitempty"`
Etag string `protobuf:"bytes,4,opt,name=etag,proto3" json:"etag,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdatePurchaseRequest) Reset() {
*x = UpdatePurchaseRequest{}
mi := &file_v1_subscription_service_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdatePurchaseRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdatePurchaseRequest) ProtoMessage() {}
func (x *UpdatePurchaseRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdatePurchaseRequest.ProtoReflect.Descriptor instead.
func (*UpdatePurchaseRequest) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{8}
}
func (x *UpdatePurchaseRequest) GetPlan() PlanType {
if x != nil {
return x.Plan
}
return PlanType_PLAN_TYPE_UNSPECIFIED
}
func (x *UpdatePurchaseRequest) GetInterval() BillingInterval {
if x != nil {
return x.Interval
}
return BillingInterval_BILLING_INTERVAL_UNSPECIFIED
}
func (x *UpdatePurchaseRequest) GetSeats() int32 {
if x != nil {
return x.Seats
}
return 0
}
func (x *UpdatePurchaseRequest) GetEtag() string {
if x != nil {
return x.Etag
}
return ""
}
type CancelPurchaseRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Reason the customer is canceling. Maps to Stripe's cancellation_details.feedback.
// Valid Stripe values: "customer_service", "low_quality", "missing_features",
// "switched_service", "too_complex", "too_expensive", "unused", "other".
// Required.
Feedback string `protobuf:"bytes,1,opt,name=feedback,proto3" json:"feedback,omitempty"`
// Optional free-form comment. Max 500 chars (Stripe limit).
Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CancelPurchaseRequest) Reset() {
*x = CancelPurchaseRequest{}
mi := &file_v1_subscription_service_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CancelPurchaseRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CancelPurchaseRequest) ProtoMessage() {}
func (x *CancelPurchaseRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CancelPurchaseRequest.ProtoReflect.Descriptor instead.
func (*CancelPurchaseRequest) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{9}
}
func (x *CancelPurchaseRequest) GetFeedback() string {
if x != nil {
return x.Feedback
}
return ""
}
func (x *CancelPurchaseRequest) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
type GetPaymentInfoRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetPaymentInfoRequest) Reset() {
*x = GetPaymentInfoRequest{}
mi := &file_v1_subscription_service_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetPaymentInfoRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPaymentInfoRequest) ProtoMessage() {}
func (x *GetPaymentInfoRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetPaymentInfoRequest.ProtoReflect.Descriptor instead.
func (*GetPaymentInfoRequest) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{10}
}
type PaymentInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Total amount paid for the current billing period, in the smallest currency unit (e.g. cents).
TotalPrice string `protobuf:"bytes,1,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"`
Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"`
PeriodStart string `protobuf:"bytes,3,opt,name=period_start,json=periodStart,proto3" json:"period_start,omitempty"`
PeriodEnd string `protobuf:"bytes,4,opt,name=period_end,json=periodEnd,proto3" json:"period_end,omitempty"`
// Stripe Billing Portal URL for invoice management.
InvoiceUrl string `protobuf:"bytes,5,opt,name=invoice_url,json=invoiceUrl,proto3" json:"invoice_url,omitempty"`
// Whether the subscription is scheduled to cancel at the end of the current billing period.
CancelAtPeriodEnd bool `protobuf:"varint,6,opt,name=cancel_at_period_end,json=cancelAtPeriodEnd,proto3" json:"cancel_at_period_end,omitempty"`
// Amount that will be charged at the next renewal, in the smallest currency unit (e.g. cents).
// Empty when the subscription will not renew (e.g. scheduled to cancel at period end).
NextPeriodPrice string `protobuf:"bytes,7,opt,name=next_period_price,json=nextPeriodPrice,proto3" json:"next_period_price,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PaymentInfo) Reset() {
*x = PaymentInfo{}
mi := &file_v1_subscription_service_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PaymentInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PaymentInfo) ProtoMessage() {}
func (x *PaymentInfo) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PaymentInfo.ProtoReflect.Descriptor instead.
func (*PaymentInfo) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{11}
}
func (x *PaymentInfo) GetTotalPrice() string {
if x != nil {
return x.TotalPrice
}
return ""
}
func (x *PaymentInfo) GetCurrency() string {
if x != nil {
return x.Currency
}
return ""
}
func (x *PaymentInfo) GetPeriodStart() string {
if x != nil {
return x.PeriodStart
}
return ""
}
func (x *PaymentInfo) GetPeriodEnd() string {
if x != nil {
return x.PeriodEnd
}
return ""
}
func (x *PaymentInfo) GetInvoiceUrl() string {
if x != nil {
return x.InvoiceUrl
}
return ""
}
func (x *PaymentInfo) GetCancelAtPeriodEnd() bool {
if x != nil {
return x.CancelAtPeriodEnd
}
return false
}
func (x *PaymentInfo) GetNextPeriodPrice() string {
if x != nil {
return x.NextPeriodPrice
}
return ""
}
type PurchasePlan struct {
state protoimpl.MessageState `protogen:"open.v1"`
Type PlanType `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.v1.PlanType" json:"type,omitempty"`
SelfServicePurchase bool `protobuf:"varint,2,opt,name=self_service_purchase,json=selfServicePurchase,proto3" json:"self_service_purchase,omitempty"`
Additionals []*PurchasePlanAdditional `protobuf:"bytes,3,rep,name=additionals,proto3" json:"additionals,omitempty"`
BillingMethods []*PurchaseBillingMethod `protobuf:"bytes,4,rep,name=billing_methods,json=billingMethods,proto3" json:"billing_methods,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PurchasePlan) Reset() {
*x = PurchasePlan{}
mi := &file_v1_subscription_service_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PurchasePlan) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PurchasePlan) ProtoMessage() {}
func (x *PurchasePlan) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PurchasePlan.ProtoReflect.Descriptor instead.
func (*PurchasePlan) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{12}
}
func (x *PurchasePlan) GetType() PlanType {
if x != nil {
return x.Type
}
return PlanType_PLAN_TYPE_UNSPECIFIED
}
func (x *PurchasePlan) GetSelfServicePurchase() bool {
if x != nil {
return x.SelfServicePurchase
}
return false
}
func (x *PurchasePlan) GetAdditionals() []*PurchasePlanAdditional {
if x != nil {
return x.Additionals
}
return nil
}
func (x *PurchasePlan) GetBillingMethods() []*PurchaseBillingMethod {
if x != nil {
return x.BillingMethods
}
return nil
}
type PurchasePlanAdditional struct {
state protoimpl.MessageState `protogen:"open.v1"`
Type PurchasePlanAdditional_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.v1.PurchasePlanAdditional_Type" json:"type,omitempty"`
// Price in USD cents per month.
UnitPrice int32 `protobuf:"varint,2,opt,name=unit_price,json=unitPrice,proto3" json:"unit_price,omitempty"`
FreeCount int32 `protobuf:"varint,3,opt,name=free_count,json=freeCount,proto3" json:"free_count,omitempty"`
MinimumCount int32 `protobuf:"varint,4,opt,name=minimum_count,json=minimumCount,proto3" json:"minimum_count,omitempty"`
// -1 means unlimited.
MaximumCount int32 `protobuf:"varint,5,opt,name=maximum_count,json=maximumCount,proto3" json:"maximum_count,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PurchasePlanAdditional) Reset() {
*x = PurchasePlanAdditional{}
mi := &file_v1_subscription_service_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PurchasePlanAdditional) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PurchasePlanAdditional) ProtoMessage() {}
func (x *PurchasePlanAdditional) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PurchasePlanAdditional.ProtoReflect.Descriptor instead.
func (*PurchasePlanAdditional) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{13}
}
func (x *PurchasePlanAdditional) GetType() PurchasePlanAdditional_Type {
if x != nil {
return x.Type
}
return PurchasePlanAdditional_TYPE_UNSPECIFIED
}
func (x *PurchasePlanAdditional) GetUnitPrice() int32 {
if x != nil {
return x.UnitPrice
}
return 0
}
func (x *PurchasePlanAdditional) GetFreeCount() int32 {
if x != nil {
return x.FreeCount
}
return 0
}
func (x *PurchasePlanAdditional) GetMinimumCount() int32 {
if x != nil {
return x.MinimumCount
}
return 0
}
func (x *PurchasePlanAdditional) GetMaximumCount() int32 {
if x != nil {
return x.MaximumCount
}
return 0
}
type PurchaseBillingMethod struct {
state protoimpl.MessageState `protogen:"open.v1"`
Interval BillingInterval `protobuf:"varint,1,opt,name=interval,proto3,enum=bytebase.v1.BillingInterval" json:"interval,omitempty"`
Discount *PurchaseDiscount `protobuf:"bytes,2,opt,name=discount,proto3" json:"discount,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PurchaseBillingMethod) Reset() {
*x = PurchaseBillingMethod{}
mi := &file_v1_subscription_service_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PurchaseBillingMethod) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PurchaseBillingMethod) ProtoMessage() {}
func (x *PurchaseBillingMethod) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PurchaseBillingMethod.ProtoReflect.Descriptor instead.
func (*PurchaseBillingMethod) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{14}
}
func (x *PurchaseBillingMethod) GetInterval() BillingInterval {
if x != nil {
return x.Interval
}
return BillingInterval_BILLING_INTERVAL_UNSPECIFIED
}
func (x *PurchaseBillingMethod) GetDiscount() *PurchaseDiscount {
if x != nil {
return x.Discount
}
return nil
}
type PurchaseDiscount struct {
state protoimpl.MessageState `protogen:"open.v1"`
Type PurchaseDiscount_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.v1.PurchaseDiscount_Type" json:"type,omitempty"`
Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PurchaseDiscount) Reset() {
*x = PurchaseDiscount{}
mi := &file_v1_subscription_service_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PurchaseDiscount) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PurchaseDiscount) ProtoMessage() {}
func (x *PurchaseDiscount) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PurchaseDiscount.ProtoReflect.Descriptor instead.
func (*PurchaseDiscount) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{15}
}
func (x *PurchaseDiscount) GetType() PurchaseDiscount_Type {
if x != nil {
return x.Type
}
return PurchaseDiscount_TYPE_UNSPECIFIED
}
func (x *PurchaseDiscount) GetValue() int32 {
if x != nil {
return x.Value
}
return 0
}
type ListPurchasePlansRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListPurchasePlansRequest) Reset() {
*x = ListPurchasePlansRequest{}
mi := &file_v1_subscription_service_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListPurchasePlansRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListPurchasePlansRequest) ProtoMessage() {}
func (x *ListPurchasePlansRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListPurchasePlansRequest.ProtoReflect.Descriptor instead.
func (*ListPurchasePlansRequest) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{16}
}
type ListPurchasePlansResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Plans []*PurchasePlan `protobuf:"bytes,1,rep,name=plans,proto3" json:"plans,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListPurchasePlansResponse) Reset() {
*x = ListPurchasePlansResponse{}
mi := &file_v1_subscription_service_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListPurchasePlansResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListPurchasePlansResponse) ProtoMessage() {}
func (x *ListPurchasePlansResponse) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[17]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListPurchasePlansResponse.ProtoReflect.Descriptor instead.
func (*ListPurchasePlansResponse) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{17}
}
func (x *ListPurchasePlansResponse) GetPlans() []*PurchasePlan {
if x != nil {
return x.Plans
}
return nil
}
type Subscription struct {
state protoimpl.MessageState `protogen:"open.v1"`
Plan PlanType `protobuf:"varint,1,opt,name=plan,proto3,enum=bytebase.v1.PlanType" json:"plan,omitempty"`
Seats int32 `protobuf:"varint,2,opt,name=seats,proto3" json:"seats,omitempty"`
Instances int32 `protobuf:"varint,3,opt,name=instances,proto3" json:"instances,omitempty"`
ActiveInstances int32 `protobuf:"varint,4,opt,name=active_instances,json=activeInstances,proto3" json:"active_instances,omitempty"`
ExpiresTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expires_time,json=expiresTime,proto3" json:"expires_time,omitempty"`
Trialing bool `protobuf:"varint,6,opt,name=trialing,proto3" json:"trialing,omitempty"`
OrgName string `protobuf:"bytes,7,opt,name=org_name,json=orgName,proto3" json:"org_name,omitempty"`
// Whether high availability (multiple replicas) is enabled.
Ha bool `protobuf:"varint,8,opt,name=ha,proto3" json:"ha,omitempty"`
// Etag for optimistic concurrency on purchase updates. Only set in SaaS mode.
Etag string `protobuf:"bytes,9,opt,name=etag,proto3" json:"etag,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Subscription) Reset() {
*x = Subscription{}
mi := &file_v1_subscription_service_proto_msgTypes[18]
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_v1_subscription_service_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Subscription.ProtoReflect.Descriptor instead.
func (*Subscription) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{18}
}
func (x *Subscription) GetPlan() PlanType {
if x != nil {
return x.Plan
}
return PlanType_PLAN_TYPE_UNSPECIFIED
}
func (x *Subscription) GetSeats() int32 {
if x != nil {
return x.Seats
}
return 0
}
func (x *Subscription) GetInstances() int32 {
if x != nil {
return x.Instances
}
return 0
}
func (x *Subscription) GetActiveInstances() int32 {
if x != nil {
return x.ActiveInstances
}
return 0
}
func (x *Subscription) GetExpiresTime() *timestamppb.Timestamp {
if x != nil {
return x.ExpiresTime
}
return nil
}
func (x *Subscription) GetTrialing() bool {
if x != nil {
return x.Trialing
}
return false
}
func (x *Subscription) GetOrgName() string {
if x != nil {
return x.OrgName
}
return ""
}
func (x *Subscription) GetHa() bool {
if x != nil {
return x.Ha
}
return false
}
func (x *Subscription) GetEtag() string {
if x != nil {
return x.Etag
}
return ""
}
// PlanConfig represents the configuration for all plans loaded from plan.yaml
type PlanConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
Plans []*PlanLimitConfig `protobuf:"bytes,1,rep,name=plans,proto3" json:"plans,omitempty"`
InstanceFeatures []PlanFeature `protobuf:"varint,2,rep,packed,name=instance_features,json=instanceFeatures,proto3,enum=bytebase.v1.PlanFeature" json:"instance_features,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PlanConfig) Reset() {
*x = PlanConfig{}
mi := &file_v1_subscription_service_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PlanConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PlanConfig) ProtoMessage() {}
func (x *PlanConfig) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[19]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PlanConfig.ProtoReflect.Descriptor instead.
func (*PlanConfig) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{19}
}
func (x *PlanConfig) GetPlans() []*PlanLimitConfig {
if x != nil {
return x.Plans
}
return nil
}
func (x *PlanConfig) GetInstanceFeatures() []PlanFeature {
if x != nil {
return x.InstanceFeatures
}
return nil
}
// PlanLimitConfig represents a single plan's configuration
type PlanLimitConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
Type PlanType `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.v1.PlanType" json:"type,omitempty"`
MaximumInstanceCount int32 `protobuf:"varint,2,opt,name=maximum_instance_count,json=maximumInstanceCount,proto3" json:"maximum_instance_count,omitempty"`
MaximumSeatCount int32 `protobuf:"varint,3,opt,name=maximum_seat_count,json=maximumSeatCount,proto3" json:"maximum_seat_count,omitempty"`
Features []PlanFeature `protobuf:"varint,4,rep,packed,name=features,proto3,enum=bytebase.v1.PlanFeature" json:"features,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PlanLimitConfig) Reset() {
*x = PlanLimitConfig{}
mi := &file_v1_subscription_service_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PlanLimitConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PlanLimitConfig) ProtoMessage() {}
func (x *PlanLimitConfig) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[20]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PlanLimitConfig.ProtoReflect.Descriptor instead.
func (*PlanLimitConfig) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{20}
}
func (x *PlanLimitConfig) GetType() PlanType {
if x != nil {
return x.Type
}
return PlanType_PLAN_TYPE_UNSPECIFIED
}
func (x *PlanLimitConfig) GetMaximumInstanceCount() int32 {
if x != nil {
return x.MaximumInstanceCount
}
return 0
}
func (x *PlanLimitConfig) GetMaximumSeatCount() int32 {
if x != nil {
return x.MaximumSeatCount
}
return 0
}
func (x *PlanLimitConfig) GetFeatures() []PlanFeature {
if x != nil {
return x.Features
}
return nil
}
type StartTrialRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StartTrialRequest) Reset() {
*x = StartTrialRequest{}
mi := &file_v1_subscription_service_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StartTrialRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StartTrialRequest) ProtoMessage() {}
func (x *StartTrialRequest) ProtoReflect() protoreflect.Message {
mi := &file_v1_subscription_service_proto_msgTypes[21]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StartTrialRequest.ProtoReflect.Descriptor instead.
func (*StartTrialRequest) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{21}
}
var File_v1_subscription_service_proto protoreflect.FileDescriptor
const file_v1_subscription_service_proto_rawDesc = "" +
"\n" +
"\x1dv1/subscription_service.proto\x12\vbytebase.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x13v1/annotation.proto\"\x18\n" +
"\x16GetSubscriptionRequest\"\x1f\n" +
"\x1dExportVCSProviderUsersRequest\"@\n" +
"\x1eExportVCSProviderUsersResponse\x12\x1e\n" +
"\acontent\x18\x01 \x01(\fB\x04\xd0\xea0\x02R\acontent\"6\n" +
"\x14UploadLicenseRequest\x12\x1e\n" +
"\alicense\x18\x01 \x01(\tB\x04\xd0\xea0\x01R\alicense\"\x92\x01\n" +
"\x15CreatePurchaseRequest\x12)\n" +
"\x04plan\x18\x01 \x01(\x0e2\x15.bytebase.v1.PlanTypeR\x04plan\x128\n" +
"\binterval\x18\x02 \x01(\x0e2\x1c.bytebase.v1.BillingIntervalR\binterval\x12\x14\n" +
"\x05seats\x18\x03 \x01(\x05R\x05seats\"^\n" +
"\x10PurchaseResponse\x12%\n" +
"\vpayment_url\x18\x01 \x01(\tB\x04\xd0\xea0\x01R\n" +
"paymentUrl\x12#\n" +
"\n" +
"session_id\x18\x02 \x01(\tB\x04\xd0\xea0\x01R\tsessionId\"C\n" +
"\x1cVerifyCheckoutSessionRequest\x12#\n" +
"\n" +
"session_id\x18\x01 \x01(\tB\x04\xd0\xea0\x01R\tsessionId\"7\n" +
"\x1dVerifyCheckoutSessionResponse\x12\x16\n" +
"\x06status\x18\x01 \x01(\tR\x06status\"\xa6\x01\n" +
"\x15UpdatePurchaseRequest\x12)\n" +
"\x04plan\x18\x01 \x01(\x0e2\x15.bytebase.v1.PlanTypeR\x04plan\x128\n" +
"\binterval\x18\x02 \x01(\x0e2\x1c.bytebase.v1.BillingIntervalR\binterval\x12\x14\n" +
"\x05seats\x18\x03 \x01(\x05R\x05seats\x12\x12\n" +
"\x04etag\x18\x04 \x01(\tR\x04etag\"M\n" +
"\x15CancelPurchaseRequest\x12\x1a\n" +
"\bfeedback\x18\x01 \x01(\tR\bfeedback\x12\x18\n" +
"\acomment\x18\x02 \x01(\tR\acomment\"\x17\n" +
"\x15GetPaymentInfoRequest\"\x8a\x02\n" +
"\vPaymentInfo\x12\x1f\n" +
"\vtotal_price\x18\x01 \x01(\tR\n" +
"totalPrice\x12\x1a\n" +
"\bcurrency\x18\x02 \x01(\tR\bcurrency\x12!\n" +
"\fperiod_start\x18\x03 \x01(\tR\vperiodStart\x12\x1d\n" +
"\n" +
"period_end\x18\x04 \x01(\tR\tperiodEnd\x12\x1f\n" +
"\vinvoice_url\x18\x05 \x01(\tR\n" +
"invoiceUrl\x12/\n" +
"\x14cancel_at_period_end\x18\x06 \x01(\bR\x11cancelAtPeriodEnd\x12*\n" +
"\x11next_period_price\x18\a \x01(\tR\x0fnextPeriodPrice\"\x81\x02\n" +
"\fPurchasePlan\x12)\n" +
"\x04type\x18\x01 \x01(\x0e2\x15.bytebase.v1.PlanTypeR\x04type\x122\n" +
"\x15self_service_purchase\x18\x02 \x01(\bR\x13selfServicePurchase\x12E\n" +
"\vadditionals\x18\x03 \x03(\v2#.bytebase.v1.PurchasePlanAdditionalR\vadditionals\x12K\n" +
"\x0fbilling_methods\x18\x04 \x03(\v2\".bytebase.v1.PurchaseBillingMethodR\x0ebillingMethods\"\x86\x02\n" +
"\x16PurchasePlanAdditional\x12<\n" +
"\x04type\x18\x01 \x01(\x0e2(.bytebase.v1.PurchasePlanAdditional.TypeR\x04type\x12\x1d\n" +
"\n" +
"unit_price\x18\x02 \x01(\x05R\tunitPrice\x12\x1d\n" +
"\n" +
"free_count\x18\x03 \x01(\x05R\tfreeCount\x12#\n" +
"\rminimum_count\x18\x04 \x01(\x05R\fminimumCount\x12#\n" +
"\rmaximum_count\x18\x05 \x01(\x05R\fmaximumCount\"&\n" +
"\x04Type\x12\x14\n" +
"\x10TYPE_UNSPECIFIED\x10\x00\x12\b\n" +
"\x04USER\x10\x01\"\x8c\x01\n" +
"\x15PurchaseBillingMethod\x128\n" +
"\binterval\x18\x01 \x01(\x0e2\x1c.bytebase.v1.BillingIntervalR\binterval\x129\n" +
"\bdiscount\x18\x02 \x01(\v2\x1d.bytebase.v1.PurchaseDiscountR\bdiscount\"\xbc\x01\n" +
"\x10PurchaseDiscount\x126\n" +
"\x04type\x18\x01 \x01(\x0e2\".bytebase.v1.PurchaseDiscount.TypeR\x04type\x12\x14\n" +
"\x05value\x18\x02 \x01(\x05R\x05value\"Z\n" +
"\x04Type\x12\x14\n" +
"\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n" +
"\x0ePERCENTAGE_OFF\x10\x01\x12\x13\n" +
"\x0fFIXED_MONTH_OFF\x10\x02\x12\x13\n" +
"\x0fFIXED_PRICE_OFF\x10\x03\"\x1a\n" +
"\x18ListPurchasePlansRequest\"L\n" +
"\x19ListPurchasePlansResponse\x12/\n" +
"\x05plans\x18\x01 \x03(\v2\x19.bytebase.v1.PurchasePlanR\x05plans\"\xdf\x02\n" +
"\fSubscription\x12.\n" +
"\x04plan\x18\x01 \x01(\x0e2\x15.bytebase.v1.PlanTypeB\x03\xe0A\x03R\x04plan\x12\x19\n" +
"\x05seats\x18\x02 \x01(\x05B\x03\xe0A\x03R\x05seats\x12!\n" +
"\tinstances\x18\x03 \x01(\x05B\x03\xe0A\x03R\tinstances\x12.\n" +
"\x10active_instances\x18\x04 \x01(\x05B\x03\xe0A\x03R\x0factiveInstances\x12B\n" +
"\fexpires_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\vexpiresTime\x12\x1f\n" +
"\btrialing\x18\x06 \x01(\bB\x03\xe0A\x03R\btrialing\x12\x1e\n" +
"\borg_name\x18\a \x01(\tB\x03\xe0A\x03R\aorgName\x12\x13\n" +
"\x02ha\x18\b \x01(\bB\x03\xe0A\x03R\x02ha\x12\x17\n" +
"\x04etag\x18\t \x01(\tB\x03\xe0A\x03R\x04etag\"\x87\x01\n" +
"\n" +
"PlanConfig\x122\n" +
"\x05plans\x18\x01 \x03(\v2\x1c.bytebase.v1.PlanLimitConfigR\x05plans\x12E\n" +
"\x11instance_features\x18\x02 \x03(\x0e2\x18.bytebase.v1.PlanFeatureR\x10instanceFeatures\"\xd6\x01\n" +
"\x0fPlanLimitConfig\x12)\n" +
"\x04type\x18\x01 \x01(\x0e2\x15.bytebase.v1.PlanTypeR\x04type\x124\n" +
"\x16maximum_instance_count\x18\x02 \x01(\x05R\x14maximumInstanceCount\x12,\n" +
"\x12maximum_seat_count\x18\x03 \x01(\x05R\x10maximumSeatCount\x124\n" +
"\bfeatures\x18\x04 \x03(\x0e2\x18.bytebase.v1.PlanFeatureR\bfeatures\"\x13\n" +
"\x11StartTrialRequest*H\n" +
"\x0fBillingInterval\x12 \n" +
"\x1cBILLING_INTERVAL_UNSPECIFIED\x10\x00\x12\t\n" +
"\x05MONTH\x10\x01\x12\b\n" +
"\x04YEAR\x10\x02*I\n" +
"\bPlanType\x12\x19\n" +
"\x15PLAN_TYPE_UNSPECIFIED\x10\x00\x12\b\n" +
"\x04FREE\x10\x01\x12\b\n" +
"\x04TEAM\x10\x02\x12\x0e\n" +
"\n" +
"ENTERPRISE\x10\x03*\x84\x13\n" +
"\vPlanFeature\x12\x17\n" +
"\x13FEATURE_UNSPECIFIED\x10\x00\x12\x1b\n" +
"\x17FEATURE_DATABASE_CHANGE\x10\x01\x12,\n" +
"(FEATURE_GIT_BASED_SCHEMA_VERSION_CONTROL\x10\x02\x12(\n" +
"$FEATURE_DECLARATIVE_SCHEMA_MIGRATION\x10\x03\x12#\n" +
"\x1fFEATURE_COMPARE_AND_SYNC_SCHEMA\x10\x04\x12 \n" +
"\x1cFEATURE_ONLINE_SCHEMA_CHANGE\x10\x05\x12%\n" +
"!FEATURE_PRE_DEPLOYMENT_SQL_REVIEW\x10\x06\x120\n" +
",FEATURE_AUTOMATIC_BACKUP_BEFORE_DATA_CHANGES\x10\a\x12#\n" +
"\x1fFEATURE_ONE_CLICK_DATA_ROLLBACK\x10\b\x12(\n" +
"$FEATURE_MULTI_DATABASE_BATCH_CHANGES\x10\t\x12.\n" +
"*FEATURE_PROGRESSIVE_ENVIRONMENT_DEPLOYMENT\x10\n" +
"\x12\"\n" +
"\x1eFEATURE_SCHEDULED_ROLLOUT_TIME\x10\v\x12\x1e\n" +
"\x1aFEATURE_DATABASE_CHANGELOG\x10\f\x12&\n" +
"\x1eFEATURE_SCHEMA_DRIFT_DETECTION\x10\r\x1a\x02\b\x01\x12\x1a\n" +
"\x16FEATURE_ROLLOUT_POLICY\x10\x0e\x12 \n" +
"\x1cFEATURE_WEB_BASED_SQL_EDITOR\x10\x0f\x12!\n" +
"\x1dFEATURE_SQL_EDITOR_ADMIN_MODE\x10\x10\x12#\n" +
"\x1fFEATURE_NATURAL_LANGUAGE_TO_SQL\x10\x11\x12 \n" +
"\x1cFEATURE_AI_QUERY_EXPLANATION\x10\x12\x12 \n" +
"\x1cFEATURE_AI_QUERY_SUGGESTIONS\x10\x13\x12\x19\n" +
"\x15FEATURE_AUTO_COMPLETE\x10\x14\x12\x1a\n" +
"\x16FEATURE_SCHEMA_DIAGRAM\x10\x15\x12\x19\n" +
"\x15FEATURE_SCHEMA_EDITOR\x10\x16\x12\x17\n" +
"\x13FEATURE_DATA_EXPORT\x10\x17\x12\x1f\n" +
"\x1bFEATURE_DATA_OFFLINE_EXPORT\x10\x18\x12\x19\n" +
"\x15FEATURE_QUERY_HISTORY\x10\x19\x12(\n" +
"$FEATURE_SAVED_AND_SHARED_SQL_SCRIPTS\x10\x1a\x12\x17\n" +
"\x13FEATURE_BATCH_QUERY\x10\x1b\x12)\n" +
"%FEATURE_INSTANCE_READ_ONLY_CONNECTION\x10\x1c\x12\x18\n" +
"\x14FEATURE_QUERY_POLICY\x10\x1d\x12!\n" +
"\x1dFEATURE_RESTRICT_COPYING_DATA\x10\x1e\x12\x0f\n" +
"\vFEATURE_IAM\x10\x1f\x12#\n" +
"\x1fFEATURE_INSTANCE_SSL_CONNECTION\x10 \x12/\n" +
"+FEATURE_INSTANCE_CONNECTION_OVER_SSH_TUNNEL\x10!\x122\n" +
".FEATURE_INSTANCE_CONNECTION_IAM_AUTHENTICATION\x10\"\x12!\n" +
"\x1dFEATURE_GOOGLE_AND_GITHUB_SSO\x10#\x12\x17\n" +
"\x13FEATURE_USER_GROUPS\x10$\x12(\n" +
"$FEATURE_DISALLOW_SELF_SERVICE_SIGNUP\x10%\x12%\n" +
"!FEATURE_CUSTOM_INSTANCE_SYNC_TIME\x10&\x12,\n" +
"(FEATURE_CUSTOM_INSTANCE_CONNECTION_LIMIT\x10'\x12\x1b\n" +
"\x17FEATURE_RISK_ASSESSMENT\x10(\x12\x1d\n" +
"\x19FEATURE_APPROVAL_WORKFLOW\x10)\x12\x15\n" +
"\x11FEATURE_AUDIT_LOG\x10*\x12\x1a\n" +
"\x16FEATURE_ENTERPRISE_SSO\x10+\x12\x12\n" +
"\x0eFEATURE_TWO_FA\x10,\x12!\n" +
"\x1dFEATURE_PASSWORD_RESTRICTIONS\x10-\x12$\n" +
" FEATURE_DISALLOW_PASSWORD_SIGNIN\x10.\x12\x18\n" +
"\x14FEATURE_CUSTOM_ROLES\x10/\x12!\n" +
"\x1dFEATURE_REQUEST_ROLE_WORKFLOW\x100\x12\x0f\n" +
"\vFEATURE_JIT\x101\x12\x18\n" +
"\x14FEATURE_DATA_MASKING\x102\x12\x1f\n" +
"\x1bFEATURE_DATA_CLASSIFICATION\x103\x12\x10\n" +
"\fFEATURE_SCIM\x104\x12\x1a\n" +
"\x16FEATURE_DIRECTORY_SYNC\x105\x12\"\n" +
"\x1eFEATURE_TOKEN_DURATION_CONTROL\x106\x12#\n" +
"\x1fFEATURE_EXTERNAL_SECRET_MANAGER\x107\x12)\n" +
"%FEATURE_USER_EMAIL_DOMAIN_RESTRICTION\x108\x12\x1e\n" +
"\x1aFEATURE_PROJECT_MANAGEMENT\x109\x12\"\n" +
"\x1eFEATURE_ENVIRONMENT_MANAGEMENT\x10:\x12\x1c\n" +
"\x18FEATURE_IM_NOTIFICATIONS\x10;\x12\x1e\n" +
"\x1aFEATURE_TERRAFORM_PROVIDER\x10<\x12\x1b\n" +
"\x17FEATURE_DATABASE_GROUPS\x10=\x12\x1d\n" +
"\x19FEATURE_ENVIRONMENT_TIERS\x10>\x12\"\n" +
"\x1eFEATURE_DASHBOARD_ANNOUNCEMENT\x10?\x12$\n" +
" FEATURE_API_INTEGRATION_GUIDANCE\x10@\x12\x17\n" +
"\x13FEATURE_CUSTOM_LOGO\x10A\x12\x15\n" +
"\x11FEATURE_WATERMARK\x10B\x12\"\n" +
"\x1eFEATURE_ROADMAP_PRIORITIZATION\x10C\x12\x16\n" +
"\x12FEATURE_CUSTOM_MSA\x10D\x12\x1d\n" +
"\x19FEATURE_COMMUNITY_SUPPORT\x10E\x12\x19\n" +
"\x15FEATURE_EMAIL_SUPPORT\x10F\x12&\n" +
"\"FEATURE_DEDICATED_SUPPORT_WITH_SLA\x10G\x12\x1d\n" +
"\x19FEATURE_SHAREPOINT_EXPORT\x10H2\x8d\r\n" +
"\x13SubscriptionService\x12v\n" +
"\x0fGetSubscription\x12#.bytebase.v1.GetSubscriptionRequest\x1a\x19.bytebase.v1.Subscription\"#\xdaA\x00\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02\x12\x12\x10/v1/subscription\x12\xcc\x01\n" +
"\x16ExportVCSProviderUsers\x12*.bytebase.v1.ExportVCSProviderUsersRequest\x1a+.bytebase.v1.ExportVCSProviderUsersResponse\"Y\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02)\x12'/v1/subscription:vcsProviderUsersExport\x12\x9c\x01\n" +
"\rUploadLicense\x12!.bytebase.v1.UploadLicenseRequest\x1a\x19.bytebase.v1.Subscription\"M\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02\x1d:\x01*2\x18/v1/subscription/license\x12\x99\x01\n" +
"\n" +
"StartTrial\x12\x1e.bytebase.v1.StartTrialRequest\x1a\x19.bytebase.v1.Subscription\"P\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/v1/subscription:startTrial\x12\xa3\x01\n" +
"\x0eCreatePurchase\x12\".bytebase.v1.CreatePurchaseRequest\x1a\x1d.bytebase.v1.PurchaseResponse\"N\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/v1/subscription:purchase\x12\xa9\x01\n" +
"\x0eUpdatePurchase\x12\".bytebase.v1.UpdatePurchaseRequest\x1a\x1d.bytebase.v1.PurchaseResponse\"T\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/v1/subscription:updatePurchase\x12\xa9\x01\n" +
"\x0eCancelPurchase\x12\".bytebase.v1.CancelPurchaseRequest\x1a\x1d.bytebase.v1.PurchaseResponse\"T\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/v1/subscription:cancelPurchase\x12\x9a\x01\n" +
"\x0eGetPaymentInfo\x12\".bytebase.v1.GetPaymentInfoRequest\x1a\x18.bytebase.v1.PaymentInfo\"J\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/subscription/paymentInfo\x12\xcb\x01\n" +
"\x15VerifyCheckoutSession\x12).bytebase.v1.VerifyCheckoutSessionRequest\x1a*.bytebase.v1.VerifyCheckoutSessionResponse\"[\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02/\x12-/v1/subscription/checkoutSession/{session_id}\x12\x8a\x01\n" +
"\x11ListPurchasePlans\x12%.bytebase.v1.ListPurchasePlansRequest\x1a&.bytebase.v1.ListPurchasePlansResponse\"&\xa0\xea0\x04\xa8\xea0\t\x82\xd3\xe4\x93\x02\x18\x12\x16/v1/subscription/plansB\xae\x01\n" +
"\x0fcom.bytebase.v1B\x18SubscriptionServiceProtoP\x01Z4github.com/bytebase/bytebase/backend/generated-go/v1\xa2\x02\x03BXX\xaa\x02\vBytebase.V1\xca\x02\vBytebase\\V1\xe2\x02\x17Bytebase\\V1\\GPBMetadata\xea\x02\fBytebase::V1b\x06proto3"
var (
file_v1_subscription_service_proto_rawDescOnce sync.Once
file_v1_subscription_service_proto_rawDescData []byte
)
func file_v1_subscription_service_proto_rawDescGZIP() []byte {
file_v1_subscription_service_proto_rawDescOnce.Do(func() {
file_v1_subscription_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_v1_subscription_service_proto_rawDesc), len(file_v1_subscription_service_proto_rawDesc)))
})
return file_v1_subscription_service_proto_rawDescData
}
var file_v1_subscription_service_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
var file_v1_subscription_service_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
var file_v1_subscription_service_proto_goTypes = []any{
(BillingInterval)(0), // 0: bytebase.v1.BillingInterval
(PlanType)(0), // 1: bytebase.v1.PlanType
(PlanFeature)(0), // 2: bytebase.v1.PlanFeature
(PurchasePlanAdditional_Type)(0), // 3: bytebase.v1.PurchasePlanAdditional.Type
(PurchaseDiscount_Type)(0), // 4: bytebase.v1.PurchaseDiscount.Type
(*GetSubscriptionRequest)(nil), // 5: bytebase.v1.GetSubscriptionRequest
(*ExportVCSProviderUsersRequest)(nil), // 6: bytebase.v1.ExportVCSProviderUsersRequest
(*ExportVCSProviderUsersResponse)(nil), // 7: bytebase.v1.ExportVCSProviderUsersResponse
(*UploadLicenseRequest)(nil), // 8: bytebase.v1.UploadLicenseRequest
(*CreatePurchaseRequest)(nil), // 9: bytebase.v1.CreatePurchaseRequest
(*PurchaseResponse)(nil), // 10: bytebase.v1.PurchaseResponse
(*VerifyCheckoutSessionRequest)(nil), // 11: bytebase.v1.VerifyCheckoutSessionRequest
(*VerifyCheckoutSessionResponse)(nil), // 12: bytebase.v1.VerifyCheckoutSessionResponse
(*UpdatePurchaseRequest)(nil), // 13: bytebase.v1.UpdatePurchaseRequest
(*CancelPurchaseRequest)(nil), // 14: bytebase.v1.CancelPurchaseRequest
(*GetPaymentInfoRequest)(nil), // 15: bytebase.v1.GetPaymentInfoRequest
(*PaymentInfo)(nil), // 16: bytebase.v1.PaymentInfo
(*PurchasePlan)(nil), // 17: bytebase.v1.PurchasePlan
(*PurchasePlanAdditional)(nil), // 18: bytebase.v1.PurchasePlanAdditional
(*PurchaseBillingMethod)(nil), // 19: bytebase.v1.PurchaseBillingMethod
(*PurchaseDiscount)(nil), // 20: bytebase.v1.PurchaseDiscount
(*ListPurchasePlansRequest)(nil), // 21: bytebase.v1.ListPurchasePlansRequest
(*ListPurchasePlansResponse)(nil), // 22: bytebase.v1.ListPurchasePlansResponse
(*Subscription)(nil), // 23: bytebase.v1.Subscription
(*PlanConfig)(nil), // 24: bytebase.v1.PlanConfig
(*PlanLimitConfig)(nil), // 25: bytebase.v1.PlanLimitConfig
(*StartTrialRequest)(nil), // 26: bytebase.v1.StartTrialRequest
(*timestamppb.Timestamp)(nil), // 27: google.protobuf.Timestamp
}
var file_v1_subscription_service_proto_depIdxs = []int32{
1, // 0: bytebase.v1.CreatePurchaseRequest.plan:type_name -> bytebase.v1.PlanType
0, // 1: bytebase.v1.CreatePurchaseRequest.interval:type_name -> bytebase.v1.BillingInterval
1, // 2: bytebase.v1.UpdatePurchaseRequest.plan:type_name -> bytebase.v1.PlanType
0, // 3: bytebase.v1.UpdatePurchaseRequest.interval:type_name -> bytebase.v1.BillingInterval
1, // 4: bytebase.v1.PurchasePlan.type:type_name -> bytebase.v1.PlanType
18, // 5: bytebase.v1.PurchasePlan.additionals:type_name -> bytebase.v1.PurchasePlanAdditional
19, // 6: bytebase.v1.PurchasePlan.billing_methods:type_name -> bytebase.v1.PurchaseBillingMethod
3, // 7: bytebase.v1.PurchasePlanAdditional.type:type_name -> bytebase.v1.PurchasePlanAdditional.Type
0, // 8: bytebase.v1.PurchaseBillingMethod.interval:type_name -> bytebase.v1.BillingInterval
20, // 9: bytebase.v1.PurchaseBillingMethod.discount:type_name -> bytebase.v1.PurchaseDiscount
4, // 10: bytebase.v1.PurchaseDiscount.type:type_name -> bytebase.v1.PurchaseDiscount.Type
17, // 11: bytebase.v1.ListPurchasePlansResponse.plans:type_name -> bytebase.v1.PurchasePlan
1, // 12: bytebase.v1.Subscription.plan:type_name -> bytebase.v1.PlanType
27, // 13: bytebase.v1.Subscription.expires_time:type_name -> google.protobuf.Timestamp
25, // 14: bytebase.v1.PlanConfig.plans:type_name -> bytebase.v1.PlanLimitConfig
2, // 15: bytebase.v1.PlanConfig.instance_features:type_name -> bytebase.v1.PlanFeature
1, // 16: bytebase.v1.PlanLimitConfig.type:type_name -> bytebase.v1.PlanType
2, // 17: bytebase.v1.PlanLimitConfig.features:type_name -> bytebase.v1.PlanFeature
5, // 18: bytebase.v1.SubscriptionService.GetSubscription:input_type -> bytebase.v1.GetSubscriptionRequest
6, // 19: bytebase.v1.SubscriptionService.ExportVCSProviderUsers:input_type -> bytebase.v1.ExportVCSProviderUsersRequest
8, // 20: bytebase.v1.SubscriptionService.UploadLicense:input_type -> bytebase.v1.UploadLicenseRequest
26, // 21: bytebase.v1.SubscriptionService.StartTrial:input_type -> bytebase.v1.StartTrialRequest
9, // 22: bytebase.v1.SubscriptionService.CreatePurchase:input_type -> bytebase.v1.CreatePurchaseRequest
13, // 23: bytebase.v1.SubscriptionService.UpdatePurchase:input_type -> bytebase.v1.UpdatePurchaseRequest
14, // 24: bytebase.v1.SubscriptionService.CancelPurchase:input_type -> bytebase.v1.CancelPurchaseRequest
15, // 25: bytebase.v1.SubscriptionService.GetPaymentInfo:input_type -> bytebase.v1.GetPaymentInfoRequest
11, // 26: bytebase.v1.SubscriptionService.VerifyCheckoutSession:input_type -> bytebase.v1.VerifyCheckoutSessionRequest
21, // 27: bytebase.v1.SubscriptionService.ListPurchasePlans:input_type -> bytebase.v1.ListPurchasePlansRequest
23, // 28: bytebase.v1.SubscriptionService.GetSubscription:output_type -> bytebase.v1.Subscription
7, // 29: bytebase.v1.SubscriptionService.ExportVCSProviderUsers:output_type -> bytebase.v1.ExportVCSProviderUsersResponse
23, // 30: bytebase.v1.SubscriptionService.UploadLicense:output_type -> bytebase.v1.Subscription
23, // 31: bytebase.v1.SubscriptionService.StartTrial:output_type -> bytebase.v1.Subscription
10, // 32: bytebase.v1.SubscriptionService.CreatePurchase:output_type -> bytebase.v1.PurchaseResponse
10, // 33: bytebase.v1.SubscriptionService.UpdatePurchase:output_type -> bytebase.v1.PurchaseResponse
10, // 34: bytebase.v1.SubscriptionService.CancelPurchase:output_type -> bytebase.v1.PurchaseResponse
16, // 35: bytebase.v1.SubscriptionService.GetPaymentInfo:output_type -> bytebase.v1.PaymentInfo
12, // 36: bytebase.v1.SubscriptionService.VerifyCheckoutSession:output_type -> bytebase.v1.VerifyCheckoutSessionResponse
22, // 37: bytebase.v1.SubscriptionService.ListPurchasePlans:output_type -> bytebase.v1.ListPurchasePlansResponse
28, // [28:38] is the sub-list for method output_type
18, // [18:28] is the sub-list for method input_type
18, // [18:18] is the sub-list for extension type_name
18, // [18:18] is the sub-list for extension extendee
0, // [0:18] is the sub-list for field type_name
}
func init() { file_v1_subscription_service_proto_init() }
func file_v1_subscription_service_proto_init() {
if File_v1_subscription_service_proto != nil {
return
}
file_v1_annotation_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_subscription_service_proto_rawDesc), len(file_v1_subscription_service_proto_rawDesc)),
NumEnums: 5,
NumMessages: 22,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_v1_subscription_service_proto_goTypes,
DependencyIndexes: file_v1_subscription_service_proto_depIdxs,
EnumInfos: file_v1_subscription_service_proto_enumTypes,
MessageInfos: file_v1_subscription_service_proto_msgTypes,
}.Build()
File_v1_subscription_service_proto = out.File
file_v1_subscription_service_proto_goTypes = nil
file_v1_subscription_service_proto_depIdxs = nil
}