mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-09 09:35:03 +09:00
1695 lines
42 KiB
Go
1695 lines
42 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: paymentservice/paymentserviceproto/protos/paymentservice_tiers.proto
|
|
|
|
package paymentserviceproto
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
io "io"
|
|
math "math"
|
|
math_bits "math/bits"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type PeriodType int32
|
|
|
|
const (
|
|
PeriodType_PeriodTypeUnknown PeriodType = 0
|
|
PeriodType_PeriodTypeUnlimited PeriodType = 1
|
|
PeriodType_PeriodTypeDays PeriodType = 2
|
|
PeriodType_PeriodTypeWeeks PeriodType = 3
|
|
PeriodType_PeriodTypeMonths PeriodType = 4
|
|
PeriodType_PeriodTypeYears PeriodType = 5
|
|
)
|
|
|
|
var PeriodType_name = map[int32]string{
|
|
0: "PeriodTypeUnknown",
|
|
1: "PeriodTypeUnlimited",
|
|
2: "PeriodTypeDays",
|
|
3: "PeriodTypeWeeks",
|
|
4: "PeriodTypeMonths",
|
|
5: "PeriodTypeYears",
|
|
}
|
|
|
|
var PeriodType_value = map[string]int32{
|
|
"PeriodTypeUnknown": 0,
|
|
"PeriodTypeUnlimited": 1,
|
|
"PeriodTypeDays": 2,
|
|
"PeriodTypeWeeks": 3,
|
|
"PeriodTypeMonths": 4,
|
|
"PeriodTypeYears": 5,
|
|
}
|
|
|
|
func (x PeriodType) String() string {
|
|
return proto.EnumName(PeriodType_name, int32(x))
|
|
}
|
|
|
|
func (PeriodType) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_597ac3048c641f44, []int{0}
|
|
}
|
|
|
|
type Feature struct {
|
|
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
|
|
}
|
|
|
|
func (m *Feature) Reset() { *m = Feature{} }
|
|
func (m *Feature) String() string { return proto.CompactTextString(m) }
|
|
func (*Feature) ProtoMessage() {}
|
|
func (*Feature) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_597ac3048c641f44, []int{0}
|
|
}
|
|
func (m *Feature) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Feature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Feature.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *Feature) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Feature.Merge(m, src)
|
|
}
|
|
func (m *Feature) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Feature) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Feature.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Feature proto.InternalMessageInfo
|
|
|
|
func (m *Feature) GetDescription() string {
|
|
if m != nil {
|
|
return m.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetTiersRequest struct {
|
|
// in the following format: "A5k2d9sFZw84yisTxRnz2bPRd1YPfVfhxqymZ6yESprFTG65"
|
|
// you can get it with Account().SignKey.GetPublic().Account()
|
|
OwnerAnyId string `protobuf:"bytes,1,opt,name=ownerAnyId,proto3" json:"ownerAnyId,omitempty"`
|
|
Locale string `protobuf:"bytes,2,opt,name=locale,proto3" json:"locale,omitempty"`
|
|
}
|
|
|
|
func (m *GetTiersRequest) Reset() { *m = GetTiersRequest{} }
|
|
func (m *GetTiersRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*GetTiersRequest) ProtoMessage() {}
|
|
func (*GetTiersRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_597ac3048c641f44, []int{1}
|
|
}
|
|
func (m *GetTiersRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *GetTiersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_GetTiersRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *GetTiersRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetTiersRequest.Merge(m, src)
|
|
}
|
|
func (m *GetTiersRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *GetTiersRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetTiersRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetTiersRequest proto.InternalMessageInfo
|
|
|
|
func (m *GetTiersRequest) GetOwnerAnyId() string {
|
|
if m != nil {
|
|
return m.OwnerAnyId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *GetTiersRequest) GetLocale() string {
|
|
if m != nil {
|
|
return m.Locale
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetTiersRequestSigned struct {
|
|
// GetTiersRequest struct
|
|
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
// this is payload signed with payload.ownerAnyID
|
|
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
|
|
}
|
|
|
|
func (m *GetTiersRequestSigned) Reset() { *m = GetTiersRequestSigned{} }
|
|
func (m *GetTiersRequestSigned) String() string { return proto.CompactTextString(m) }
|
|
func (*GetTiersRequestSigned) ProtoMessage() {}
|
|
func (*GetTiersRequestSigned) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_597ac3048c641f44, []int{2}
|
|
}
|
|
func (m *GetTiersRequestSigned) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *GetTiersRequestSigned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_GetTiersRequestSigned.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *GetTiersRequestSigned) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetTiersRequestSigned.Merge(m, src)
|
|
}
|
|
func (m *GetTiersRequestSigned) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *GetTiersRequestSigned) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetTiersRequestSigned.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetTiersRequestSigned proto.InternalMessageInfo
|
|
|
|
func (m *GetTiersRequestSigned) GetPayload() []byte {
|
|
if m != nil {
|
|
return m.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *GetTiersRequestSigned) GetSignature() []byte {
|
|
if m != nil {
|
|
return m.Signature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TierData struct {
|
|
// this is a unique ID of the tier
|
|
// you should hardcode this in your app and provide icon, graphics, etc for each tier
|
|
// (even for old/historical/inactive/hidden tiers)
|
|
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
// localazied name of the tier
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
// just a short technical description
|
|
// you don't have to use it, you can use your own UI-friendly texts
|
|
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
|
// can you buy it (ON ALL PLATFORMS, without clarification)?
|
|
IsActive bool `protobuf:"varint,4,opt,name=isActive,proto3" json:"isActive,omitempty"`
|
|
// is this tier for debugging only?
|
|
IsTest bool `protobuf:"varint,5,opt,name=isTest,proto3" json:"isTest,omitempty"`
|
|
// hidden tiers are only visible once user got them
|
|
IsHiddenTier bool `protobuf:"varint,6,opt,name=isHiddenTier,proto3" json:"isHiddenTier,omitempty"`
|
|
// how long is the period of the subscription
|
|
PeriodType PeriodType `protobuf:"varint,7,opt,name=periodType,proto3,enum=PeriodType" json:"periodType,omitempty"`
|
|
// i.e. "5 days" or "3 years"
|
|
PeriodValue uint32 `protobuf:"varint,8,opt,name=periodValue,proto3" json:"periodValue,omitempty"`
|
|
// this one is a price we use ONLY on Stripe platform
|
|
PriceStripeUsdCents uint32 `protobuf:"varint,9,opt,name=priceStripeUsdCents,proto3" json:"priceStripeUsdCents,omitempty"`
|
|
// number of ANY NS names that this tier includes
|
|
// (not counted as a "feature" and not in the features list)
|
|
AnyNamesCountIncluded uint32 `protobuf:"varint,10,opt,name=anyNamesCountIncluded,proto3" json:"anyNamesCountIncluded,omitempty"`
|
|
// somename.any - len of 8
|
|
AnyNameMinLength uint32 `protobuf:"varint,11,opt,name=anyNameMinLength,proto3" json:"anyNameMinLength,omitempty"`
|
|
// each tier has a set of features
|
|
Features []*Feature `protobuf:"bytes,12,rep,name=features,proto3" json:"features,omitempty"`
|
|
// green, blue, red, purple or custom color in string format #ff00ff
|
|
ColorStr string `protobuf:"bytes,13,opt,name=colorStr,proto3" json:"colorStr,omitempty"`
|
|
}
|
|
|
|
func (m *TierData) Reset() { *m = TierData{} }
|
|
func (m *TierData) String() string { return proto.CompactTextString(m) }
|
|
func (*TierData) ProtoMessage() {}
|
|
func (*TierData) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_597ac3048c641f44, []int{3}
|
|
}
|
|
func (m *TierData) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TierData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TierData.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *TierData) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TierData.Merge(m, src)
|
|
}
|
|
func (m *TierData) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TierData) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TierData.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TierData proto.InternalMessageInfo
|
|
|
|
func (m *TierData) GetId() uint32 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TierData) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TierData) GetDescription() string {
|
|
if m != nil {
|
|
return m.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TierData) GetIsActive() bool {
|
|
if m != nil {
|
|
return m.IsActive
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *TierData) GetIsTest() bool {
|
|
if m != nil {
|
|
return m.IsTest
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *TierData) GetIsHiddenTier() bool {
|
|
if m != nil {
|
|
return m.IsHiddenTier
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *TierData) GetPeriodType() PeriodType {
|
|
if m != nil {
|
|
return m.PeriodType
|
|
}
|
|
return PeriodType_PeriodTypeUnknown
|
|
}
|
|
|
|
func (m *TierData) GetPeriodValue() uint32 {
|
|
if m != nil {
|
|
return m.PeriodValue
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TierData) GetPriceStripeUsdCents() uint32 {
|
|
if m != nil {
|
|
return m.PriceStripeUsdCents
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TierData) GetAnyNamesCountIncluded() uint32 {
|
|
if m != nil {
|
|
return m.AnyNamesCountIncluded
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TierData) GetAnyNameMinLength() uint32 {
|
|
if m != nil {
|
|
return m.AnyNameMinLength
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TierData) GetFeatures() []*Feature {
|
|
if m != nil {
|
|
return m.Features
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TierData) GetColorStr() string {
|
|
if m != nil {
|
|
return m.ColorStr
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetTiersResponse struct {
|
|
// list of all available tiers
|
|
Tiers []*TierData `protobuf:"bytes,1,rep,name=tiers,proto3" json:"tiers,omitempty"`
|
|
}
|
|
|
|
func (m *GetTiersResponse) Reset() { *m = GetTiersResponse{} }
|
|
func (m *GetTiersResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*GetTiersResponse) ProtoMessage() {}
|
|
func (*GetTiersResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_597ac3048c641f44, []int{4}
|
|
}
|
|
func (m *GetTiersResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *GetTiersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_GetTiersResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *GetTiersResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetTiersResponse.Merge(m, src)
|
|
}
|
|
func (m *GetTiersResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *GetTiersResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetTiersResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetTiersResponse proto.InternalMessageInfo
|
|
|
|
func (m *GetTiersResponse) GetTiers() []*TierData {
|
|
if m != nil {
|
|
return m.Tiers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("PeriodType", PeriodType_name, PeriodType_value)
|
|
proto.RegisterType((*Feature)(nil), "Feature")
|
|
proto.RegisterType((*GetTiersRequest)(nil), "GetTiersRequest")
|
|
proto.RegisterType((*GetTiersRequestSigned)(nil), "GetTiersRequestSigned")
|
|
proto.RegisterType((*TierData)(nil), "TierData")
|
|
proto.RegisterType((*GetTiersResponse)(nil), "GetTiersResponse")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("paymentservice/paymentserviceproto/protos/paymentservice_tiers.proto", fileDescriptor_597ac3048c641f44)
|
|
}
|
|
|
|
var fileDescriptor_597ac3048c641f44 = []byte{
|
|
// 549 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0x4d, 0x6f, 0xd3, 0x4c,
|
|
0x10, 0xc7, 0xe3, 0xa4, 0x2f, 0xce, 0x24, 0x6d, 0xfd, 0x6c, 0x9f, 0xc2, 0x0a, 0x21, 0x13, 0x59,
|
|
0x1c, 0xa2, 0x56, 0x4a, 0x51, 0xcb, 0x91, 0x4b, 0x69, 0x04, 0x44, 0xa2, 0x80, 0x9c, 0x14, 0x04,
|
|
0x17, 0xb4, 0xd8, 0x43, 0xba, 0xaa, 0xb3, 0x6b, 0x76, 0x37, 0xad, 0xfc, 0x2d, 0xfa, 0xb1, 0xb8,
|
|
0x20, 0xf5, 0xc8, 0x11, 0x25, 0x5f, 0x04, 0x79, 0xf3, 0xe2, 0x24, 0xad, 0xc4, 0xc5, 0xf6, 0xff,
|
|
0xff, 0xdb, 0x19, 0xcd, 0xcc, 0x8e, 0xa1, 0x9d, 0xb2, 0x6c, 0x80, 0xc2, 0x68, 0x54, 0x57, 0x3c,
|
|
0xc2, 0xc3, 0x65, 0x99, 0x2a, 0x69, 0xe4, 0xa1, 0x7d, 0xea, 0x15, 0xf4, 0xd5, 0x70, 0x54, 0xba,
|
|
0x65, 0x59, 0x70, 0x00, 0x9b, 0xaf, 0x90, 0x99, 0xa1, 0x42, 0xd2, 0x80, 0x5a, 0x8c, 0x3a, 0x52,
|
|
0x3c, 0x35, 0x5c, 0x0a, 0xea, 0x34, 0x9c, 0x66, 0x35, 0x5c, 0xb4, 0x82, 0x0e, 0xec, 0xbc, 0x46,
|
|
0xd3, 0xcb, 0xc3, 0x43, 0xfc, 0x31, 0x44, 0x6d, 0x88, 0x0f, 0x20, 0xaf, 0x05, 0xaa, 0x13, 0x91,
|
|
0x75, 0xe2, 0x69, 0xcc, 0x82, 0x43, 0x1e, 0xc0, 0x46, 0x22, 0x23, 0x96, 0x20, 0x2d, 0x5b, 0x36,
|
|
0x55, 0xc1, 0x7b, 0xd8, 0x5b, 0x49, 0xd5, 0xe5, 0x7d, 0x81, 0x31, 0xa1, 0xb0, 0x99, 0xb2, 0x2c,
|
|
0x91, 0x6c, 0x92, 0xad, 0x1e, 0xce, 0x24, 0x79, 0x0c, 0x55, 0xcd, 0xfb, 0xc2, 0x16, 0x6b, 0xb3,
|
|
0xd5, 0xc3, 0xc2, 0x08, 0x7e, 0x55, 0xc0, 0xcd, 0xd3, 0xb5, 0x99, 0x61, 0x64, 0x1b, 0xca, 0x7c,
|
|
0x12, 0xbf, 0x15, 0x96, 0x79, 0x4c, 0x08, 0xac, 0x09, 0x36, 0x98, 0xd5, 0x60, 0xbf, 0x57, 0xdb,
|
|
0xad, 0xdc, 0x69, 0x97, 0x3c, 0x02, 0x97, 0xeb, 0x93, 0xc8, 0xf0, 0x2b, 0xa4, 0x6b, 0x0d, 0xa7,
|
|
0xe9, 0x86, 0x73, 0x9d, 0xf7, 0xc5, 0x75, 0x0f, 0xb5, 0xa1, 0xeb, 0x96, 0x4c, 0x15, 0x09, 0xa0,
|
|
0xce, 0xf5, 0x1b, 0x1e, 0xc7, 0x28, 0xf2, 0x6a, 0xe8, 0x86, 0xa5, 0x4b, 0x1e, 0x39, 0x00, 0x48,
|
|
0x51, 0x71, 0x19, 0xf7, 0xb2, 0x14, 0xe9, 0x66, 0xc3, 0x69, 0x6e, 0x1f, 0xd5, 0x5a, 0x1f, 0xe6,
|
|
0x56, 0xb8, 0x80, 0xf3, 0x32, 0x27, 0xea, 0x23, 0x4b, 0x86, 0x48, 0x5d, 0xdb, 0xd3, 0xa2, 0x45,
|
|
0x9e, 0xc1, 0x6e, 0xaa, 0x78, 0x84, 0x5d, 0xa3, 0x78, 0x8a, 0xe7, 0x3a, 0x3e, 0xcd, 0xef, 0x9a,
|
|
0x56, 0xed, 0xc9, 0xfb, 0x10, 0x79, 0x0e, 0x7b, 0x4c, 0x64, 0xef, 0xd8, 0x00, 0xf5, 0xa9, 0x1c,
|
|
0x0a, 0xd3, 0x11, 0x51, 0x32, 0x8c, 0x31, 0xa6, 0x60, 0x63, 0xee, 0x87, 0x64, 0x1f, 0xbc, 0x29,
|
|
0x38, 0xe3, 0xe2, 0x2d, 0x8a, 0xbe, 0xb9, 0xa0, 0x35, 0x1b, 0x70, 0xc7, 0x27, 0x4f, 0xc1, 0xfd,
|
|
0x3e, 0x59, 0x2b, 0x4d, 0xeb, 0x8d, 0x4a, 0xb3, 0x76, 0xe4, 0xb6, 0xa6, 0x7b, 0x16, 0xce, 0x49,
|
|
0x3e, 0xe0, 0x48, 0x26, 0x52, 0x75, 0x8d, 0xa2, 0x5b, 0x76, 0xfe, 0x73, 0x1d, 0x1c, 0x83, 0x57,
|
|
0x2c, 0x88, 0x4e, 0xa5, 0xd0, 0x48, 0x9e, 0xc0, 0xba, 0xdd, 0x5d, 0xea, 0xd8, 0x94, 0xd5, 0xd6,
|
|
0xec, 0xc2, 0xc3, 0x89, 0xbf, 0x7f, 0xe3, 0x00, 0x14, 0x73, 0x24, 0x7b, 0xf0, 0x5f, 0xa1, 0xce,
|
|
0xc5, 0xa5, 0x90, 0xd7, 0xc2, 0x2b, 0x91, 0x87, 0xb0, 0xbb, 0x68, 0x27, 0x7c, 0xc0, 0x0d, 0xc6,
|
|
0x9e, 0x43, 0x08, 0x6c, 0x17, 0xa0, 0xcd, 0x32, 0xed, 0x95, 0xc9, 0x2e, 0xec, 0x14, 0xde, 0x27,
|
|
0xc4, 0x4b, 0xed, 0x55, 0xc8, 0xff, 0xe0, 0x15, 0xe6, 0x99, 0x14, 0xe6, 0x42, 0x7b, 0x6b, 0xcb,
|
|
0x47, 0x3f, 0x23, 0x53, 0xda, 0x5b, 0x7f, 0xf9, 0xe2, 0xe7, 0xc8, 0x77, 0x6e, 0x47, 0xbe, 0xf3,
|
|
0x67, 0xe4, 0x3b, 0x37, 0x63, 0xbf, 0x74, 0x3b, 0xf6, 0x4b, 0xbf, 0xc7, 0x7e, 0xe9, 0x4b, 0xf0,
|
|
0xef, 0x1f, 0xf8, 0xdb, 0x86, 0x7d, 0x1d, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xfe, 0xc4, 0x11,
|
|
0x59, 0xed, 0x03, 0x00, 0x00,
|
|
}
|
|
|
|
func (m *Feature) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *Feature) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Feature) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Description) > 0 {
|
|
i -= len(m.Description)
|
|
copy(dAtA[i:], m.Description)
|
|
i = encodeVarintPaymentserviceTiers(dAtA, i, uint64(len(m.Description)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *GetTiersRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *GetTiersRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *GetTiersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Locale) > 0 {
|
|
i -= len(m.Locale)
|
|
copy(dAtA[i:], m.Locale)
|
|
i = encodeVarintPaymentserviceTiers(dAtA, i, uint64(len(m.Locale)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.OwnerAnyId) > 0 {
|
|
i -= len(m.OwnerAnyId)
|
|
copy(dAtA[i:], m.OwnerAnyId)
|
|
i = encodeVarintPaymentserviceTiers(dAtA, i, uint64(len(m.OwnerAnyId)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *GetTiersRequestSigned) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *GetTiersRequestSigned) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *GetTiersRequestSigned) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Signature) > 0 {
|
|
i -= len(m.Signature)
|
|
copy(dAtA[i:], m.Signature)
|
|
i = encodeVarintPaymentserviceTiers(dAtA, i, uint64(len(m.Signature)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Payload) > 0 {
|
|
i -= len(m.Payload)
|
|
copy(dAtA[i:], m.Payload)
|
|
i = encodeVarintPaymentserviceTiers(dAtA, i, uint64(len(m.Payload)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TierData) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *TierData) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TierData) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.ColorStr) > 0 {
|
|
i -= len(m.ColorStr)
|
|
copy(dAtA[i:], m.ColorStr)
|
|
i = encodeVarintPaymentserviceTiers(dAtA, i, uint64(len(m.ColorStr)))
|
|
i--
|
|
dAtA[i] = 0x6a
|
|
}
|
|
if len(m.Features) > 0 {
|
|
for iNdEx := len(m.Features) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Features[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintPaymentserviceTiers(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x62
|
|
}
|
|
}
|
|
if m.AnyNameMinLength != 0 {
|
|
i = encodeVarintPaymentserviceTiers(dAtA, i, uint64(m.AnyNameMinLength))
|
|
i--
|
|
dAtA[i] = 0x58
|
|
}
|
|
if m.AnyNamesCountIncluded != 0 {
|
|
i = encodeVarintPaymentserviceTiers(dAtA, i, uint64(m.AnyNamesCountIncluded))
|
|
i--
|
|
dAtA[i] = 0x50
|
|
}
|
|
if m.PriceStripeUsdCents != 0 {
|
|
i = encodeVarintPaymentserviceTiers(dAtA, i, uint64(m.PriceStripeUsdCents))
|
|
i--
|
|
dAtA[i] = 0x48
|
|
}
|
|
if m.PeriodValue != 0 {
|
|
i = encodeVarintPaymentserviceTiers(dAtA, i, uint64(m.PeriodValue))
|
|
i--
|
|
dAtA[i] = 0x40
|
|
}
|
|
if m.PeriodType != 0 {
|
|
i = encodeVarintPaymentserviceTiers(dAtA, i, uint64(m.PeriodType))
|
|
i--
|
|
dAtA[i] = 0x38
|
|
}
|
|
if m.IsHiddenTier {
|
|
i--
|
|
if m.IsHiddenTier {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x30
|
|
}
|
|
if m.IsTest {
|
|
i--
|
|
if m.IsTest {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x28
|
|
}
|
|
if m.IsActive {
|
|
i--
|
|
if m.IsActive {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x20
|
|
}
|
|
if len(m.Description) > 0 {
|
|
i -= len(m.Description)
|
|
copy(dAtA[i:], m.Description)
|
|
i = encodeVarintPaymentserviceTiers(dAtA, i, uint64(len(m.Description)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintPaymentserviceTiers(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Id != 0 {
|
|
i = encodeVarintPaymentserviceTiers(dAtA, i, uint64(m.Id))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *GetTiersResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *GetTiersResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *GetTiersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Tiers) > 0 {
|
|
for iNdEx := len(m.Tiers) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Tiers[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintPaymentserviceTiers(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func encodeVarintPaymentserviceTiers(dAtA []byte, offset int, v uint64) int {
|
|
offset -= sovPaymentserviceTiers(v)
|
|
base := offset
|
|
for v >= 1<<7 {
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
v >>= 7
|
|
offset++
|
|
}
|
|
dAtA[offset] = uint8(v)
|
|
return base
|
|
}
|
|
func (m *Feature) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Description)
|
|
if l > 0 {
|
|
n += 1 + l + sovPaymentserviceTiers(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *GetTiersRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.OwnerAnyId)
|
|
if l > 0 {
|
|
n += 1 + l + sovPaymentserviceTiers(uint64(l))
|
|
}
|
|
l = len(m.Locale)
|
|
if l > 0 {
|
|
n += 1 + l + sovPaymentserviceTiers(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *GetTiersRequestSigned) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Payload)
|
|
if l > 0 {
|
|
n += 1 + l + sovPaymentserviceTiers(uint64(l))
|
|
}
|
|
l = len(m.Signature)
|
|
if l > 0 {
|
|
n += 1 + l + sovPaymentserviceTiers(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TierData) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Id != 0 {
|
|
n += 1 + sovPaymentserviceTiers(uint64(m.Id))
|
|
}
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovPaymentserviceTiers(uint64(l))
|
|
}
|
|
l = len(m.Description)
|
|
if l > 0 {
|
|
n += 1 + l + sovPaymentserviceTiers(uint64(l))
|
|
}
|
|
if m.IsActive {
|
|
n += 2
|
|
}
|
|
if m.IsTest {
|
|
n += 2
|
|
}
|
|
if m.IsHiddenTier {
|
|
n += 2
|
|
}
|
|
if m.PeriodType != 0 {
|
|
n += 1 + sovPaymentserviceTiers(uint64(m.PeriodType))
|
|
}
|
|
if m.PeriodValue != 0 {
|
|
n += 1 + sovPaymentserviceTiers(uint64(m.PeriodValue))
|
|
}
|
|
if m.PriceStripeUsdCents != 0 {
|
|
n += 1 + sovPaymentserviceTiers(uint64(m.PriceStripeUsdCents))
|
|
}
|
|
if m.AnyNamesCountIncluded != 0 {
|
|
n += 1 + sovPaymentserviceTiers(uint64(m.AnyNamesCountIncluded))
|
|
}
|
|
if m.AnyNameMinLength != 0 {
|
|
n += 1 + sovPaymentserviceTiers(uint64(m.AnyNameMinLength))
|
|
}
|
|
if len(m.Features) > 0 {
|
|
for _, e := range m.Features {
|
|
l = e.Size()
|
|
n += 1 + l + sovPaymentserviceTiers(uint64(l))
|
|
}
|
|
}
|
|
l = len(m.ColorStr)
|
|
if l > 0 {
|
|
n += 1 + l + sovPaymentserviceTiers(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *GetTiersResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Tiers) > 0 {
|
|
for _, e := range m.Tiers {
|
|
l = e.Size()
|
|
n += 1 + l + sovPaymentserviceTiers(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func sovPaymentserviceTiers(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozPaymentserviceTiers(x uint64) (n int) {
|
|
return sovPaymentserviceTiers(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|
|
func (m *Feature) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: Feature: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Feature: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Description = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipPaymentserviceTiers(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *GetTiersRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: GetTiersRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: GetTiersRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field OwnerAnyId", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.OwnerAnyId = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Locale", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Locale = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipPaymentserviceTiers(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *GetTiersRequestSigned) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: GetTiersRequestSigned: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: GetTiersRequestSigned: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.Payload == nil {
|
|
m.Payload = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.Signature == nil {
|
|
m.Signature = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipPaymentserviceTiers(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TierData) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: TierData: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: TierData: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
m.Id = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Id |= uint32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Description = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field IsActive", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.IsActive = bool(v != 0)
|
|
case 5:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field IsTest", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.IsTest = bool(v != 0)
|
|
case 6:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field IsHiddenTier", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.IsHiddenTier = bool(v != 0)
|
|
case 7:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PeriodType", wireType)
|
|
}
|
|
m.PeriodType = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.PeriodType |= PeriodType(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 8:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PeriodValue", wireType)
|
|
}
|
|
m.PeriodValue = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.PeriodValue |= uint32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 9:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PriceStripeUsdCents", wireType)
|
|
}
|
|
m.PriceStripeUsdCents = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.PriceStripeUsdCents |= uint32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 10:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AnyNamesCountIncluded", wireType)
|
|
}
|
|
m.AnyNamesCountIncluded = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.AnyNamesCountIncluded |= uint32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 11:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AnyNameMinLength", wireType)
|
|
}
|
|
m.AnyNameMinLength = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.AnyNameMinLength |= uint32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 12:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Features", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Features = append(m.Features, &Feature{})
|
|
if err := m.Features[len(m.Features)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 13:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ColorStr", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.ColorStr = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipPaymentserviceTiers(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *GetTiersResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: GetTiersResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: GetTiersResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Tiers", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Tiers = append(m.Tiers, &TierData{})
|
|
if err := m.Tiers[len(m.Tiers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipPaymentserviceTiers(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func skipPaymentserviceTiers(dAtA []byte) (n int, err error) {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
depth := 0
|
|
for iNdEx < l {
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
wireType := int(wire & 0x7)
|
|
switch wireType {
|
|
case 0:
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx++
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 1:
|
|
iNdEx += 8
|
|
case 2:
|
|
var length int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowPaymentserviceTiers
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
length |= (int(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if length < 0 {
|
|
return 0, ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
iNdEx += length
|
|
case 3:
|
|
depth++
|
|
case 4:
|
|
if depth == 0 {
|
|
return 0, ErrUnexpectedEndOfGroupPaymentserviceTiers
|
|
}
|
|
depth--
|
|
case 5:
|
|
iNdEx += 4
|
|
default:
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
}
|
|
if iNdEx < 0 {
|
|
return 0, ErrInvalidLengthPaymentserviceTiers
|
|
}
|
|
if depth == 0 {
|
|
return iNdEx, nil
|
|
}
|
|
}
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
|
|
var (
|
|
ErrInvalidLengthPaymentserviceTiers = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
ErrIntOverflowPaymentserviceTiers = fmt.Errorf("proto: integer overflow")
|
|
ErrUnexpectedEndOfGroupPaymentserviceTiers = fmt.Errorf("proto: unexpected end of group")
|
|
)
|