account

package
v1.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccountService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "streammachine.api.account.v1.AccountService",
	HandlerType: (*AccountServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAccountDetails",
			Handler:    _AccountService_GetAccountDetails_Handler,
		},
		{
			MethodName: "GetLegacyBillingId",
			Handler:    _AccountService_GetLegacyBillingId_Handler,
		},
		{
			MethodName: "CreateAccountHandle",
			Handler:    _AccountService_CreateAccountHandle_Handler,
		},
		{
			MethodName: "InitializeCheckout",
			Handler:    _AccountService_InitializeCheckout_Handler,
		},
		{
			MethodName: "GetCheckoutStatus",
			Handler:    _AccountService_GetCheckoutStatus_Handler,
		},
		{
			MethodName: "InitializeCustomerPortal",
			Handler:    _AccountService_InitializeCustomerPortal_Handler,
		},
		{
			MethodName: "SetCheckoutCancelled",
			Handler:    _AccountService_SetCheckoutCancelled_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "streammachine/api/account/v1/account_v1.proto",
}

AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_streammachine_api_account_v1_account_v1_proto protoreflect.FileDescriptor

Functions

func RegisterAccountServiceServer

func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)

Types

type AccountServiceClient

type AccountServiceClient interface {
	GetAccountDetails(ctx context.Context, in *GetAccountDetailsRequest, opts ...grpc.CallOption) (*GetAccountDetailsResponse, error)
	GetLegacyBillingId(ctx context.Context, in *GetLegacyBillingIdRequest, opts ...grpc.CallOption) (*GetLegacyBillingIdResponse, error)
	CreateAccountHandle(ctx context.Context, in *CreateAccountHandleRequest, opts ...grpc.CallOption) (*CreateAccountHandleResponse, error)
	InitializeCheckout(ctx context.Context, in *InitializeCheckoutRequest, opts ...grpc.CallOption) (*InitializeCheckoutResponse, error)
	GetCheckoutStatus(ctx context.Context, in *GetCheckoutStatusRequest, opts ...grpc.CallOption) (*GetCheckoutStatusResponse, error)
	InitializeCustomerPortal(ctx context.Context, in *InitializeCustomerPortalRequest, opts ...grpc.CallOption) (*InitializeCustomerPortalResponse, error)
	// (-- api-linter: core::0134::synonyms=disabled
	//     aip.dev/not-precedent: We're not updating a Checkout here. --)
	SetCheckoutCancelled(ctx context.Context, in *SetCheckoutCancelledRequest, opts ...grpc.CallOption) (*SetCheckoutCancelledResponse, error)
}

AccountServiceClient is the client API for AccountService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AccountServiceServer

type AccountServiceServer interface {
	GetAccountDetails(context.Context, *GetAccountDetailsRequest) (*GetAccountDetailsResponse, error)
	GetLegacyBillingId(context.Context, *GetLegacyBillingIdRequest) (*GetLegacyBillingIdResponse, error)
	CreateAccountHandle(context.Context, *CreateAccountHandleRequest) (*CreateAccountHandleResponse, error)
	InitializeCheckout(context.Context, *InitializeCheckoutRequest) (*InitializeCheckoutResponse, error)
	GetCheckoutStatus(context.Context, *GetCheckoutStatusRequest) (*GetCheckoutStatusResponse, error)
	InitializeCustomerPortal(context.Context, *InitializeCustomerPortalRequest) (*InitializeCustomerPortalResponse, error)
	// (-- api-linter: core::0134::synonyms=disabled
	//     aip.dev/not-precedent: We're not updating a Checkout here. --)
	SetCheckoutCancelled(context.Context, *SetCheckoutCancelledRequest) (*SetCheckoutCancelledResponse, error)
	// contains filtered or unexported methods
}

AccountServiceServer is the server API for AccountService service. All implementations must embed UnimplementedAccountServiceServer for forward compatibility

type CreateAccountHandleRequest

type CreateAccountHandleRequest struct {
	BillingId string `protobuf:"bytes,1,opt,name=billing_id,json=billingId,proto3" json:"billing_id,omitempty"`
	Handle    string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"`
	// contains filtered or unexported fields
}

(-- api-linter: core::0133::request-resource-field=disabled

aip.dev/not-precedent: Handle is just a string. --)

func (*CreateAccountHandleRequest) Descriptor deprecated

func (*CreateAccountHandleRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAccountHandleRequest.ProtoReflect.Descriptor instead.

func (*CreateAccountHandleRequest) GetBillingId

func (x *CreateAccountHandleRequest) GetBillingId() string

func (*CreateAccountHandleRequest) GetHandle

func (x *CreateAccountHandleRequest) GetHandle() string

func (*CreateAccountHandleRequest) ProtoMessage

func (*CreateAccountHandleRequest) ProtoMessage()

func (*CreateAccountHandleRequest) ProtoReflect

func (*CreateAccountHandleRequest) Reset

func (x *CreateAccountHandleRequest) Reset()

func (*CreateAccountHandleRequest) String

func (x *CreateAccountHandleRequest) String() string

type CreateAccountHandleResponse

type CreateAccountHandleResponse struct {
	Handle string `protobuf:"bytes,1,opt,name=handle,proto3" json:"handle,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAccountHandleResponse) Descriptor deprecated

func (*CreateAccountHandleResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateAccountHandleResponse.ProtoReflect.Descriptor instead.

func (*CreateAccountHandleResponse) GetHandle

func (x *CreateAccountHandleResponse) GetHandle() string

func (*CreateAccountHandleResponse) ProtoMessage

func (*CreateAccountHandleResponse) ProtoMessage()

func (*CreateAccountHandleResponse) ProtoReflect

func (*CreateAccountHandleResponse) Reset

func (x *CreateAccountHandleResponse) Reset()

func (*CreateAccountHandleResponse) String

func (x *CreateAccountHandleResponse) String() string

type GetAccountDetailsRequest

type GetAccountDetailsRequest struct {
	BillingId string `protobuf:"bytes,1,opt,name=billing_id,json=billingId,proto3" json:"billing_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountDetailsRequest) Descriptor deprecated

func (*GetAccountDetailsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAccountDetailsRequest.ProtoReflect.Descriptor instead.

func (*GetAccountDetailsRequest) GetBillingId

func (x *GetAccountDetailsRequest) GetBillingId() string

func (*GetAccountDetailsRequest) ProtoMessage

func (*GetAccountDetailsRequest) ProtoMessage()

func (*GetAccountDetailsRequest) ProtoReflect

func (x *GetAccountDetailsRequest) ProtoReflect() protoreflect.Message

func (*GetAccountDetailsRequest) Reset

func (x *GetAccountDetailsRequest) Reset()

func (*GetAccountDetailsRequest) String

func (x *GetAccountDetailsRequest) String() string

type GetAccountDetailsResponse

type GetAccountDetailsResponse struct {
	BillingId       string `protobuf:"bytes,1,opt,name=billing_id,json=billingId,proto3" json:"billing_id,omitempty"`
	MaxInputStreams int32  `protobuf:"varint,2,opt,name=max_input_streams,json=maxInputStreams,proto3" json:"max_input_streams,omitempty"`
	Handle          string `protobuf:"bytes,3,opt,name=handle,proto3" json:"handle,omitempty"`
	Subscription    string `protobuf:"bytes,4,opt,name=subscription,proto3" json:"subscription,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountDetailsResponse) Descriptor deprecated

func (*GetAccountDetailsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAccountDetailsResponse.ProtoReflect.Descriptor instead.

func (*GetAccountDetailsResponse) GetBillingId

func (x *GetAccountDetailsResponse) GetBillingId() string

func (*GetAccountDetailsResponse) GetHandle

func (x *GetAccountDetailsResponse) GetHandle() string

func (*GetAccountDetailsResponse) GetMaxInputStreams

func (x *GetAccountDetailsResponse) GetMaxInputStreams() int32

func (*GetAccountDetailsResponse) GetSubscription

func (x *GetAccountDetailsResponse) GetSubscription() string

func (*GetAccountDetailsResponse) ProtoMessage

func (*GetAccountDetailsResponse) ProtoMessage()

func (*GetAccountDetailsResponse) ProtoReflect

func (*GetAccountDetailsResponse) Reset

func (x *GetAccountDetailsResponse) Reset()

func (*GetAccountDetailsResponse) String

func (x *GetAccountDetailsResponse) String() string

type GetCheckoutStatusRequest

type GetCheckoutStatusRequest struct {
	UserId            string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CheckoutSessionId string `protobuf:"bytes,2,opt,name=checkout_session_id,json=checkoutSessionId,proto3" json:"checkout_session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCheckoutStatusRequest) Descriptor deprecated

func (*GetCheckoutStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCheckoutStatusRequest.ProtoReflect.Descriptor instead.

func (*GetCheckoutStatusRequest) GetCheckoutSessionId

func (x *GetCheckoutStatusRequest) GetCheckoutSessionId() string

func (*GetCheckoutStatusRequest) GetUserId

func (x *GetCheckoutStatusRequest) GetUserId() string

func (*GetCheckoutStatusRequest) ProtoMessage

func (*GetCheckoutStatusRequest) ProtoMessage()

func (*GetCheckoutStatusRequest) ProtoReflect

func (x *GetCheckoutStatusRequest) ProtoReflect() protoreflect.Message

func (*GetCheckoutStatusRequest) Reset

func (x *GetCheckoutStatusRequest) Reset()

func (*GetCheckoutStatusRequest) String

func (x *GetCheckoutStatusRequest) String() string

type GetCheckoutStatusResponse

type GetCheckoutStatusResponse struct {
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCheckoutStatusResponse) Descriptor deprecated

func (*GetCheckoutStatusResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCheckoutStatusResponse.ProtoReflect.Descriptor instead.

func (*GetCheckoutStatusResponse) GetStatus

func (x *GetCheckoutStatusResponse) GetStatus() string

func (*GetCheckoutStatusResponse) ProtoMessage

func (*GetCheckoutStatusResponse) ProtoMessage()

func (*GetCheckoutStatusResponse) ProtoReflect

func (*GetCheckoutStatusResponse) Reset

func (x *GetCheckoutStatusResponse) Reset()

func (*GetCheckoutStatusResponse) String

func (x *GetCheckoutStatusResponse) String() string

type GetLegacyBillingIdRequest

type GetLegacyBillingIdRequest struct {
	// contains filtered or unexported fields
}

func (*GetLegacyBillingIdRequest) Descriptor deprecated

func (*GetLegacyBillingIdRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetLegacyBillingIdRequest.ProtoReflect.Descriptor instead.

func (*GetLegacyBillingIdRequest) ProtoMessage

func (*GetLegacyBillingIdRequest) ProtoMessage()

func (*GetLegacyBillingIdRequest) ProtoReflect

func (*GetLegacyBillingIdRequest) Reset

func (x *GetLegacyBillingIdRequest) Reset()

func (*GetLegacyBillingIdRequest) String

func (x *GetLegacyBillingIdRequest) String() string

type GetLegacyBillingIdResponse

type GetLegacyBillingIdResponse struct {
	BillingId string `protobuf:"bytes,1,opt,name=billing_id,json=billingId,proto3" json:"billing_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLegacyBillingIdResponse) Descriptor deprecated

func (*GetLegacyBillingIdResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetLegacyBillingIdResponse.ProtoReflect.Descriptor instead.

func (*GetLegacyBillingIdResponse) GetBillingId

func (x *GetLegacyBillingIdResponse) GetBillingId() string

func (*GetLegacyBillingIdResponse) ProtoMessage

func (*GetLegacyBillingIdResponse) ProtoMessage()

func (*GetLegacyBillingIdResponse) ProtoReflect

func (*GetLegacyBillingIdResponse) Reset

func (x *GetLegacyBillingIdResponse) Reset()

func (*GetLegacyBillingIdResponse) String

func (x *GetLegacyBillingIdResponse) String() string

type InitializeCheckoutRequest

type InitializeCheckoutRequest struct {
	PlanId string `protobuf:"bytes,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"`
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*InitializeCheckoutRequest) Descriptor deprecated

func (*InitializeCheckoutRequest) Descriptor() ([]byte, []int)

Deprecated: Use InitializeCheckoutRequest.ProtoReflect.Descriptor instead.

func (*InitializeCheckoutRequest) GetPlanId

func (x *InitializeCheckoutRequest) GetPlanId() string

func (*InitializeCheckoutRequest) GetUserId

func (x *InitializeCheckoutRequest) GetUserId() string

func (*InitializeCheckoutRequest) ProtoMessage

func (*InitializeCheckoutRequest) ProtoMessage()

func (*InitializeCheckoutRequest) ProtoReflect

func (*InitializeCheckoutRequest) Reset

func (x *InitializeCheckoutRequest) Reset()

func (*InitializeCheckoutRequest) String

func (x *InitializeCheckoutRequest) String() string

type InitializeCheckoutResponse

type InitializeCheckoutResponse struct {
	CheckoutUri string `protobuf:"bytes,1,opt,name=checkout_uri,json=checkoutUri,proto3" json:"checkout_uri,omitempty"`
	// contains filtered or unexported fields
}

func (*InitializeCheckoutResponse) Descriptor deprecated

func (*InitializeCheckoutResponse) Descriptor() ([]byte, []int)

Deprecated: Use InitializeCheckoutResponse.ProtoReflect.Descriptor instead.

func (*InitializeCheckoutResponse) GetCheckoutUri

func (x *InitializeCheckoutResponse) GetCheckoutUri() string

func (*InitializeCheckoutResponse) ProtoMessage

func (*InitializeCheckoutResponse) ProtoMessage()

func (*InitializeCheckoutResponse) ProtoReflect

func (*InitializeCheckoutResponse) Reset

func (x *InitializeCheckoutResponse) Reset()

func (*InitializeCheckoutResponse) String

func (x *InitializeCheckoutResponse) String() string

type InitializeCustomerPortalRequest

type InitializeCustomerPortalRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*InitializeCustomerPortalRequest) Descriptor deprecated

func (*InitializeCustomerPortalRequest) Descriptor() ([]byte, []int)

Deprecated: Use InitializeCustomerPortalRequest.ProtoReflect.Descriptor instead.

func (*InitializeCustomerPortalRequest) GetUserId

func (x *InitializeCustomerPortalRequest) GetUserId() string

func (*InitializeCustomerPortalRequest) ProtoMessage

func (*InitializeCustomerPortalRequest) ProtoMessage()

func (*InitializeCustomerPortalRequest) ProtoReflect

func (*InitializeCustomerPortalRequest) Reset

func (*InitializeCustomerPortalRequest) String

type InitializeCustomerPortalResponse

type InitializeCustomerPortalResponse struct {
	CustomerPortalUri string `protobuf:"bytes,1,opt,name=customer_portal_uri,json=customerPortalUri,proto3" json:"customer_portal_uri,omitempty"`
	// contains filtered or unexported fields
}

func (*InitializeCustomerPortalResponse) Descriptor deprecated

func (*InitializeCustomerPortalResponse) Descriptor() ([]byte, []int)

Deprecated: Use InitializeCustomerPortalResponse.ProtoReflect.Descriptor instead.

func (*InitializeCustomerPortalResponse) GetCustomerPortalUri

func (x *InitializeCustomerPortalResponse) GetCustomerPortalUri() string

func (*InitializeCustomerPortalResponse) ProtoMessage

func (*InitializeCustomerPortalResponse) ProtoMessage()

func (*InitializeCustomerPortalResponse) ProtoReflect

func (*InitializeCustomerPortalResponse) Reset

func (*InitializeCustomerPortalResponse) String

type SetCheckoutCancelledRequest

type SetCheckoutCancelledRequest struct {
	UserId            string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CheckoutSessionId string `protobuf:"bytes,2,opt,name=checkout_session_id,json=checkoutSessionId,proto3" json:"checkout_session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SetCheckoutCancelledRequest) Descriptor deprecated

func (*SetCheckoutCancelledRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetCheckoutCancelledRequest.ProtoReflect.Descriptor instead.

func (*SetCheckoutCancelledRequest) GetCheckoutSessionId

func (x *SetCheckoutCancelledRequest) GetCheckoutSessionId() string

func (*SetCheckoutCancelledRequest) GetUserId

func (x *SetCheckoutCancelledRequest) GetUserId() string

func (*SetCheckoutCancelledRequest) ProtoMessage

func (*SetCheckoutCancelledRequest) ProtoMessage()

func (*SetCheckoutCancelledRequest) ProtoReflect

func (*SetCheckoutCancelledRequest) Reset

func (x *SetCheckoutCancelledRequest) Reset()

func (*SetCheckoutCancelledRequest) String

func (x *SetCheckoutCancelledRequest) String() string

type SetCheckoutCancelledResponse

type SetCheckoutCancelledResponse struct {
	// contains filtered or unexported fields
}

func (*SetCheckoutCancelledResponse) Descriptor deprecated

func (*SetCheckoutCancelledResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetCheckoutCancelledResponse.ProtoReflect.Descriptor instead.

func (*SetCheckoutCancelledResponse) ProtoMessage

func (*SetCheckoutCancelledResponse) ProtoMessage()

func (*SetCheckoutCancelledResponse) ProtoReflect

func (*SetCheckoutCancelledResponse) Reset

func (x *SetCheckoutCancelledResponse) Reset()

func (*SetCheckoutCancelledResponse) String

type UnimplementedAccountServiceServer

type UnimplementedAccountServiceServer struct {
}

UnimplementedAccountServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAccountServiceServer) CreateAccountHandle

func (UnimplementedAccountServiceServer) GetAccountDetails

func (UnimplementedAccountServiceServer) GetCheckoutStatus

func (UnimplementedAccountServiceServer) GetLegacyBillingId

func (UnimplementedAccountServiceServer) InitializeCheckout

type UnsafeAccountServiceServer

type UnsafeAccountServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAccountServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL