oteldemo

package
v0.0.0-...-a331d65 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CartService_AddItem_FullMethodName   = "/oteldemo.CartService/AddItem"
	CartService_GetCart_FullMethodName   = "/oteldemo.CartService/GetCart"
	CartService_EmptyCart_FullMethodName = "/oteldemo.CartService/EmptyCart"
)
View Source
const (
	ProductCatalogService_ListProducts_FullMethodName   = "/oteldemo.ProductCatalogService/ListProducts"
	ProductCatalogService_GetProduct_FullMethodName     = "/oteldemo.ProductCatalogService/GetProduct"
	ProductCatalogService_SearchProducts_FullMethodName = "/oteldemo.ProductCatalogService/SearchProducts"
)
View Source
const (
	ShippingService_GetQuote_FullMethodName  = "/oteldemo.ShippingService/GetQuote"
	ShippingService_ShipOrder_FullMethodName = "/oteldemo.ShippingService/ShipOrder"
)
View Source
const (
	CurrencyService_GetSupportedCurrencies_FullMethodName = "/oteldemo.CurrencyService/GetSupportedCurrencies"
	CurrencyService_Convert_FullMethodName                = "/oteldemo.CurrencyService/Convert"
)
View Source
const (
	FeatureFlagService_GetFlag_FullMethodName    = "/oteldemo.FeatureFlagService/GetFlag"
	FeatureFlagService_CreateFlag_FullMethodName = "/oteldemo.FeatureFlagService/CreateFlag"
	FeatureFlagService_UpdateFlag_FullMethodName = "/oteldemo.FeatureFlagService/UpdateFlag"
	FeatureFlagService_ListFlags_FullMethodName  = "/oteldemo.FeatureFlagService/ListFlags"
	FeatureFlagService_DeleteFlag_FullMethodName = "/oteldemo.FeatureFlagService/DeleteFlag"
)
View Source
const (
	AdService_GetAds_FullMethodName = "/oteldemo.AdService/GetAds"
)
View Source
const (
	CheckoutService_PlaceOrder_FullMethodName = "/oteldemo.CheckoutService/PlaceOrder"
)
View Source
const (
	EmailService_SendOrderConfirmation_FullMethodName = "/oteldemo.EmailService/SendOrderConfirmation"
)
View Source
const (
	PaymentService_Charge_FullMethodName = "/oteldemo.PaymentService/Charge"
)
View Source
const (
	RecommendationService_ListRecommendations_FullMethodName = "/oteldemo.RecommendationService/ListRecommendations"
)

Variables

View Source
var AdService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "oteldemo.AdService",
	HandlerType: (*AdServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAds",
			Handler:    _AdService_GetAds_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "demo.proto",
}

AdService_ServiceDesc is the grpc.ServiceDesc for AdService 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 CartService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "oteldemo.CartService",
	HandlerType: (*CartServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddItem",
			Handler:    _CartService_AddItem_Handler,
		},
		{
			MethodName: "GetCart",
			Handler:    _CartService_GetCart_Handler,
		},
		{
			MethodName: "EmptyCart",
			Handler:    _CartService_EmptyCart_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "demo.proto",
}

CartService_ServiceDesc is the grpc.ServiceDesc for CartService 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 CheckoutService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "oteldemo.CheckoutService",
	HandlerType: (*CheckoutServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PlaceOrder",
			Handler:    _CheckoutService_PlaceOrder_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "demo.proto",
}

CheckoutService_ServiceDesc is the grpc.ServiceDesc for CheckoutService 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 CurrencyService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "oteldemo.CurrencyService",
	HandlerType: (*CurrencyServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSupportedCurrencies",
			Handler:    _CurrencyService_GetSupportedCurrencies_Handler,
		},
		{
			MethodName: "Convert",
			Handler:    _CurrencyService_Convert_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "demo.proto",
}

CurrencyService_ServiceDesc is the grpc.ServiceDesc for CurrencyService 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 EmailService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "oteldemo.EmailService",
	HandlerType: (*EmailServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendOrderConfirmation",
			Handler:    _EmailService_SendOrderConfirmation_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "demo.proto",
}

EmailService_ServiceDesc is the grpc.ServiceDesc for EmailService 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 FeatureFlagService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "oteldemo.FeatureFlagService",
	HandlerType: (*FeatureFlagServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetFlag",
			Handler:    _FeatureFlagService_GetFlag_Handler,
		},
		{
			MethodName: "CreateFlag",
			Handler:    _FeatureFlagService_CreateFlag_Handler,
		},
		{
			MethodName: "UpdateFlag",
			Handler:    _FeatureFlagService_UpdateFlag_Handler,
		},
		{
			MethodName: "ListFlags",
			Handler:    _FeatureFlagService_ListFlags_Handler,
		},
		{
			MethodName: "DeleteFlag",
			Handler:    _FeatureFlagService_DeleteFlag_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "demo.proto",
}

FeatureFlagService_ServiceDesc is the grpc.ServiceDesc for FeatureFlagService 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 PaymentService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "oteldemo.PaymentService",
	HandlerType: (*PaymentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Charge",
			Handler:    _PaymentService_Charge_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "demo.proto",
}

PaymentService_ServiceDesc is the grpc.ServiceDesc for PaymentService 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 ProductCatalogService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "oteldemo.ProductCatalogService",
	HandlerType: (*ProductCatalogServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListProducts",
			Handler:    _ProductCatalogService_ListProducts_Handler,
		},
		{
			MethodName: "GetProduct",
			Handler:    _ProductCatalogService_GetProduct_Handler,
		},
		{
			MethodName: "SearchProducts",
			Handler:    _ProductCatalogService_SearchProducts_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "demo.proto",
}

ProductCatalogService_ServiceDesc is the grpc.ServiceDesc for ProductCatalogService 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 RecommendationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "oteldemo.RecommendationService",
	HandlerType: (*RecommendationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListRecommendations",
			Handler:    _RecommendationService_ListRecommendations_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "demo.proto",
}

RecommendationService_ServiceDesc is the grpc.ServiceDesc for RecommendationService 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 ShippingService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "oteldemo.ShippingService",
	HandlerType: (*ShippingServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetQuote",
			Handler:    _ShippingService_GetQuote_Handler,
		},
		{
			MethodName: "ShipOrder",
			Handler:    _ShippingService_ShipOrder_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "demo.proto",
}

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

Functions

func RegisterAdServiceServer

func RegisterAdServiceServer(s grpc.ServiceRegistrar, srv AdServiceServer)

func RegisterCartServiceServer

func RegisterCartServiceServer(s grpc.ServiceRegistrar, srv CartServiceServer)

func RegisterCheckoutServiceServer

func RegisterCheckoutServiceServer(s grpc.ServiceRegistrar, srv CheckoutServiceServer)

func RegisterCurrencyServiceServer

func RegisterCurrencyServiceServer(s grpc.ServiceRegistrar, srv CurrencyServiceServer)

func RegisterEmailServiceServer

func RegisterEmailServiceServer(s grpc.ServiceRegistrar, srv EmailServiceServer)

func RegisterFeatureFlagServiceServer

func RegisterFeatureFlagServiceServer(s grpc.ServiceRegistrar, srv FeatureFlagServiceServer)

func RegisterPaymentServiceServer

func RegisterPaymentServiceServer(s grpc.ServiceRegistrar, srv PaymentServiceServer)

func RegisterProductCatalogServiceServer

func RegisterProductCatalogServiceServer(s grpc.ServiceRegistrar, srv ProductCatalogServiceServer)

func RegisterRecommendationServiceServer

func RegisterRecommendationServiceServer(s grpc.ServiceRegistrar, srv RecommendationServiceServer)

func RegisterShippingServiceServer

func RegisterShippingServiceServer(s grpc.ServiceRegistrar, srv ShippingServiceServer)

Types

type Ad struct {

	// url to redirect to when an ad is clicked.
	RedirectUrl string `protobuf:"bytes,1,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"`
	// short advertisement text to display.
	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*Ad) Descriptor deprecated

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

Deprecated: Use Ad.ProtoReflect.Descriptor instead.

func (*Ad) GetRedirectUrl

func (x *Ad) GetRedirectUrl() string

func (*Ad) GetText

func (x *Ad) GetText() string

func (*Ad) ProtoMessage

func (*Ad) ProtoMessage()

func (*Ad) ProtoReflect

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

func (*Ad) Reset

func (x *Ad) Reset()

func (*Ad) String

func (x *Ad) String() string

type AdRequest

type AdRequest struct {

	// List of important key words from the current page describing the context.
	ContextKeys []string `protobuf:"bytes,1,rep,name=context_keys,json=contextKeys,proto3" json:"context_keys,omitempty"`
	// contains filtered or unexported fields
}

func (*AdRequest) Descriptor deprecated

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

Deprecated: Use AdRequest.ProtoReflect.Descriptor instead.

func (*AdRequest) GetContextKeys

func (x *AdRequest) GetContextKeys() []string

func (*AdRequest) ProtoMessage

func (*AdRequest) ProtoMessage()

func (*AdRequest) ProtoReflect

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

func (*AdRequest) Reset

func (x *AdRequest) Reset()

func (*AdRequest) String

func (x *AdRequest) String() string

type AdResponse

type AdResponse struct {
	Ads []*Ad `protobuf:"bytes,1,rep,name=ads,proto3" json:"ads,omitempty"`
	// contains filtered or unexported fields
}

func (*AdResponse) Descriptor deprecated

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

Deprecated: Use AdResponse.ProtoReflect.Descriptor instead.

func (*AdResponse) GetAds

func (x *AdResponse) GetAds() []*Ad

func (*AdResponse) ProtoMessage

func (*AdResponse) ProtoMessage()

func (*AdResponse) ProtoReflect

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

func (*AdResponse) Reset

func (x *AdResponse) Reset()

func (*AdResponse) String

func (x *AdResponse) String() string

type AdServiceClient

type AdServiceClient interface {
	GetAds(ctx context.Context, in *AdRequest, opts ...grpc.CallOption) (*AdResponse, error)
}

AdServiceClient is the client API for AdService 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.

func NewAdServiceClient

func NewAdServiceClient(cc grpc.ClientConnInterface) AdServiceClient

type AdServiceServer

type AdServiceServer interface {
	GetAds(context.Context, *AdRequest) (*AdResponse, error)
	// contains filtered or unexported methods
}

AdServiceServer is the server API for AdService service. All implementations must embed UnimplementedAdServiceServer for forward compatibility

type AddItemRequest

type AddItemRequest struct {
	UserId string    `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Item   *CartItem `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"`
	// contains filtered or unexported fields
}

func (*AddItemRequest) Descriptor deprecated

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

Deprecated: Use AddItemRequest.ProtoReflect.Descriptor instead.

func (*AddItemRequest) GetItem

func (x *AddItemRequest) GetItem() *CartItem

func (*AddItemRequest) GetUserId

func (x *AddItemRequest) GetUserId() string

func (*AddItemRequest) ProtoMessage

func (*AddItemRequest) ProtoMessage()

func (*AddItemRequest) ProtoReflect

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

func (*AddItemRequest) Reset

func (x *AddItemRequest) Reset()

func (*AddItemRequest) String

func (x *AddItemRequest) String() string

type Address

type Address struct {
	StreetAddress string `protobuf:"bytes,1,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"`
	City          string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"`
	State         string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	Country       string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
	ZipCode       string `protobuf:"bytes,5,opt,name=zip_code,json=zipCode,proto3" json:"zip_code,omitempty"`
	// contains filtered or unexported fields
}

func (*Address) Descriptor deprecated

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

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetCity

func (x *Address) GetCity() string

func (*Address) GetCountry

func (x *Address) GetCountry() string

func (*Address) GetState

func (x *Address) GetState() string

func (*Address) GetStreetAddress

func (x *Address) GetStreetAddress() string

func (*Address) GetZipCode

func (x *Address) GetZipCode() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

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

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

type Cart

type Cart struct {
	UserId string      `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Items  []*CartItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*Cart) Descriptor deprecated

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

Deprecated: Use Cart.ProtoReflect.Descriptor instead.

func (*Cart) GetItems

func (x *Cart) GetItems() []*CartItem

func (*Cart) GetUserId

func (x *Cart) GetUserId() string

func (*Cart) ProtoMessage

func (*Cart) ProtoMessage()

func (*Cart) ProtoReflect

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

func (*Cart) Reset

func (x *Cart) Reset()

func (*Cart) String

func (x *Cart) String() string

type CartItem

type CartItem struct {
	ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	Quantity  int32  `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// contains filtered or unexported fields
}

func (*CartItem) Descriptor deprecated

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

Deprecated: Use CartItem.ProtoReflect.Descriptor instead.

func (*CartItem) GetProductId

func (x *CartItem) GetProductId() string

func (*CartItem) GetQuantity

func (x *CartItem) GetQuantity() int32

func (*CartItem) ProtoMessage

func (*CartItem) ProtoMessage()

func (*CartItem) ProtoReflect

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

func (*CartItem) Reset

func (x *CartItem) Reset()

func (*CartItem) String

func (x *CartItem) String() string

type CartServiceClient

type CartServiceClient interface {
	AddItem(ctx context.Context, in *AddItemRequest, opts ...grpc.CallOption) (*Empty, error)
	GetCart(ctx context.Context, in *GetCartRequest, opts ...grpc.CallOption) (*Cart, error)
	EmptyCart(ctx context.Context, in *EmptyCartRequest, opts ...grpc.CallOption) (*Empty, error)
}

CartServiceClient is the client API for CartService 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 CartServiceServer

type CartServiceServer interface {
	AddItem(context.Context, *AddItemRequest) (*Empty, error)
	GetCart(context.Context, *GetCartRequest) (*Cart, error)
	EmptyCart(context.Context, *EmptyCartRequest) (*Empty, error)
	// contains filtered or unexported methods
}

CartServiceServer is the server API for CartService service. All implementations must embed UnimplementedCartServiceServer for forward compatibility

type ChargeRequest

type ChargeRequest struct {
	Amount     *Money          `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	CreditCard *CreditCardInfo `protobuf:"bytes,2,opt,name=credit_card,json=creditCard,proto3" json:"credit_card,omitempty"`
	// contains filtered or unexported fields
}

func (*ChargeRequest) Descriptor deprecated

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

Deprecated: Use ChargeRequest.ProtoReflect.Descriptor instead.

func (*ChargeRequest) GetAmount

func (x *ChargeRequest) GetAmount() *Money

func (*ChargeRequest) GetCreditCard

func (x *ChargeRequest) GetCreditCard() *CreditCardInfo

func (*ChargeRequest) ProtoMessage

func (*ChargeRequest) ProtoMessage()

func (*ChargeRequest) ProtoReflect

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

func (*ChargeRequest) Reset

func (x *ChargeRequest) Reset()

func (*ChargeRequest) String

func (x *ChargeRequest) String() string

type ChargeResponse

type ChargeResponse struct {
	TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ChargeResponse) Descriptor deprecated

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

Deprecated: Use ChargeResponse.ProtoReflect.Descriptor instead.

func (*ChargeResponse) GetTransactionId

func (x *ChargeResponse) GetTransactionId() string

func (*ChargeResponse) ProtoMessage

func (*ChargeResponse) ProtoMessage()

func (*ChargeResponse) ProtoReflect

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

func (*ChargeResponse) Reset

func (x *ChargeResponse) Reset()

func (*ChargeResponse) String

func (x *ChargeResponse) String() string

type CheckoutServiceClient

type CheckoutServiceClient interface {
	PlaceOrder(ctx context.Context, in *PlaceOrderRequest, opts ...grpc.CallOption) (*PlaceOrderResponse, error)
}

CheckoutServiceClient is the client API for CheckoutService 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 CheckoutServiceServer

type CheckoutServiceServer interface {
	PlaceOrder(context.Context, *PlaceOrderRequest) (*PlaceOrderResponse, error)
	// contains filtered or unexported methods
}

CheckoutServiceServer is the server API for CheckoutService service. All implementations must embed UnimplementedCheckoutServiceServer for forward compatibility

type CreateFlagRequest

type CreateFlagRequest struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Enabled     bool   `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateFlagRequest) Descriptor deprecated

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

Deprecated: Use CreateFlagRequest.ProtoReflect.Descriptor instead.

func (*CreateFlagRequest) GetDescription

func (x *CreateFlagRequest) GetDescription() string

func (*CreateFlagRequest) GetEnabled

func (x *CreateFlagRequest) GetEnabled() bool

func (*CreateFlagRequest) GetName

func (x *CreateFlagRequest) GetName() string

func (*CreateFlagRequest) ProtoMessage

func (*CreateFlagRequest) ProtoMessage()

func (*CreateFlagRequest) ProtoReflect

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

func (*CreateFlagRequest) Reset

func (x *CreateFlagRequest) Reset()

func (*CreateFlagRequest) String

func (x *CreateFlagRequest) String() string

type CreateFlagResponse

type CreateFlagResponse struct {
	Flag *Flag `protobuf:"bytes,1,opt,name=flag,proto3" json:"flag,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateFlagResponse) Descriptor deprecated

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

Deprecated: Use CreateFlagResponse.ProtoReflect.Descriptor instead.

func (*CreateFlagResponse) GetFlag

func (x *CreateFlagResponse) GetFlag() *Flag

func (*CreateFlagResponse) ProtoMessage

func (*CreateFlagResponse) ProtoMessage()

func (*CreateFlagResponse) ProtoReflect

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

func (*CreateFlagResponse) Reset

func (x *CreateFlagResponse) Reset()

func (*CreateFlagResponse) String

func (x *CreateFlagResponse) String() string

type CreditCardInfo

type CreditCardInfo struct {
	CreditCardNumber          string `protobuf:"bytes,1,opt,name=credit_card_number,json=creditCardNumber,proto3" json:"credit_card_number,omitempty"`
	CreditCardCvv             int32  `protobuf:"varint,2,opt,name=credit_card_cvv,json=creditCardCvv,proto3" json:"credit_card_cvv,omitempty"`
	CreditCardExpirationYear  int32  `` /* 138-byte string literal not displayed */
	CreditCardExpirationMonth int32  `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreditCardInfo) Descriptor deprecated

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

Deprecated: Use CreditCardInfo.ProtoReflect.Descriptor instead.

func (*CreditCardInfo) GetCreditCardCvv

func (x *CreditCardInfo) GetCreditCardCvv() int32

func (*CreditCardInfo) GetCreditCardExpirationMonth

func (x *CreditCardInfo) GetCreditCardExpirationMonth() int32

func (*CreditCardInfo) GetCreditCardExpirationYear

func (x *CreditCardInfo) GetCreditCardExpirationYear() int32

func (*CreditCardInfo) GetCreditCardNumber

func (x *CreditCardInfo) GetCreditCardNumber() string

func (*CreditCardInfo) ProtoMessage

func (*CreditCardInfo) ProtoMessage()

func (*CreditCardInfo) ProtoReflect

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

func (*CreditCardInfo) Reset

func (x *CreditCardInfo) Reset()

func (*CreditCardInfo) String

func (x *CreditCardInfo) String() string

type CurrencyConversionRequest

type CurrencyConversionRequest struct {
	From *Money `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	// The 3-letter currency code defined in ISO 4217.
	ToCode string `protobuf:"bytes,2,opt,name=to_code,json=toCode,proto3" json:"to_code,omitempty"`
	// contains filtered or unexported fields
}

func (*CurrencyConversionRequest) Descriptor deprecated

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

Deprecated: Use CurrencyConversionRequest.ProtoReflect.Descriptor instead.

func (*CurrencyConversionRequest) GetFrom

func (x *CurrencyConversionRequest) GetFrom() *Money

func (*CurrencyConversionRequest) GetToCode

func (x *CurrencyConversionRequest) GetToCode() string

func (*CurrencyConversionRequest) ProtoMessage

func (*CurrencyConversionRequest) ProtoMessage()

func (*CurrencyConversionRequest) ProtoReflect

func (*CurrencyConversionRequest) Reset

func (x *CurrencyConversionRequest) Reset()

func (*CurrencyConversionRequest) String

func (x *CurrencyConversionRequest) String() string

type CurrencyServiceClient

type CurrencyServiceClient interface {
	GetSupportedCurrencies(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetSupportedCurrenciesResponse, error)
	Convert(ctx context.Context, in *CurrencyConversionRequest, opts ...grpc.CallOption) (*Money, error)
}

CurrencyServiceClient is the client API for CurrencyService 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 CurrencyServiceServer

type CurrencyServiceServer interface {
	GetSupportedCurrencies(context.Context, *Empty) (*GetSupportedCurrenciesResponse, error)
	Convert(context.Context, *CurrencyConversionRequest) (*Money, error)
	// contains filtered or unexported methods
}

CurrencyServiceServer is the server API for CurrencyService service. All implementations must embed UnimplementedCurrencyServiceServer for forward compatibility

type DeleteFlagRequest

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

func (*DeleteFlagRequest) Descriptor deprecated

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

Deprecated: Use DeleteFlagRequest.ProtoReflect.Descriptor instead.

func (*DeleteFlagRequest) GetName

func (x *DeleteFlagRequest) GetName() string

func (*DeleteFlagRequest) ProtoMessage

func (*DeleteFlagRequest) ProtoMessage()

func (*DeleteFlagRequest) ProtoReflect

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

func (*DeleteFlagRequest) Reset

func (x *DeleteFlagRequest) Reset()

func (*DeleteFlagRequest) String

func (x *DeleteFlagRequest) String() string

type DeleteFlagResponse

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

func (*DeleteFlagResponse) Descriptor deprecated

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

Deprecated: Use DeleteFlagResponse.ProtoReflect.Descriptor instead.

func (*DeleteFlagResponse) ProtoMessage

func (*DeleteFlagResponse) ProtoMessage()

func (*DeleteFlagResponse) ProtoReflect

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

func (*DeleteFlagResponse) Reset

func (x *DeleteFlagResponse) Reset()

func (*DeleteFlagResponse) String

func (x *DeleteFlagResponse) String() string

type EmailServiceClient

type EmailServiceClient interface {
	SendOrderConfirmation(ctx context.Context, in *SendOrderConfirmationRequest, opts ...grpc.CallOption) (*Empty, error)
}

EmailServiceClient is the client API for EmailService 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 EmailServiceServer

type EmailServiceServer interface {
	SendOrderConfirmation(context.Context, *SendOrderConfirmationRequest) (*Empty, error)
	// contains filtered or unexported methods
}

EmailServiceServer is the server API for EmailService service. All implementations must embed UnimplementedEmailServiceServer for forward compatibility

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type EmptyCartRequest

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

func (*EmptyCartRequest) Descriptor deprecated

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

Deprecated: Use EmptyCartRequest.ProtoReflect.Descriptor instead.

func (*EmptyCartRequest) GetUserId

func (x *EmptyCartRequest) GetUserId() string

func (*EmptyCartRequest) ProtoMessage

func (*EmptyCartRequest) ProtoMessage()

func (*EmptyCartRequest) ProtoReflect

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

func (*EmptyCartRequest) Reset

func (x *EmptyCartRequest) Reset()

func (*EmptyCartRequest) String

func (x *EmptyCartRequest) String() string

type FeatureFlagServiceClient

type FeatureFlagServiceClient interface {
	GetFlag(ctx context.Context, in *GetFlagRequest, opts ...grpc.CallOption) (*GetFlagResponse, error)
	CreateFlag(ctx context.Context, in *CreateFlagRequest, opts ...grpc.CallOption) (*CreateFlagResponse, error)
	UpdateFlag(ctx context.Context, in *UpdateFlagRequest, opts ...grpc.CallOption) (*UpdateFlagResponse, error)
	ListFlags(ctx context.Context, in *ListFlagsRequest, opts ...grpc.CallOption) (*ListFlagsResponse, error)
	DeleteFlag(ctx context.Context, in *DeleteFlagRequest, opts ...grpc.CallOption) (*DeleteFlagResponse, error)
}

FeatureFlagServiceClient is the client API for FeatureFlagService 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 FeatureFlagServiceServer

type FeatureFlagServiceServer interface {
	GetFlag(context.Context, *GetFlagRequest) (*GetFlagResponse, error)
	CreateFlag(context.Context, *CreateFlagRequest) (*CreateFlagResponse, error)
	UpdateFlag(context.Context, *UpdateFlagRequest) (*UpdateFlagResponse, error)
	ListFlags(context.Context, *ListFlagsRequest) (*ListFlagsResponse, error)
	DeleteFlag(context.Context, *DeleteFlagRequest) (*DeleteFlagResponse, error)
	// contains filtered or unexported methods
}

FeatureFlagServiceServer is the server API for FeatureFlagService service. All implementations must embed UnimplementedFeatureFlagServiceServer for forward compatibility

type Flag

type Flag struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Enabled     bool   `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*Flag) Descriptor deprecated

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

Deprecated: Use Flag.ProtoReflect.Descriptor instead.

func (*Flag) GetDescription

func (x *Flag) GetDescription() string

func (*Flag) GetEnabled

func (x *Flag) GetEnabled() bool

func (*Flag) GetName

func (x *Flag) GetName() string

func (*Flag) ProtoMessage

func (*Flag) ProtoMessage()

func (*Flag) ProtoReflect

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

func (*Flag) Reset

func (x *Flag) Reset()

func (*Flag) String

func (x *Flag) String() string

type GetCartRequest

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

func (*GetCartRequest) Descriptor deprecated

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

Deprecated: Use GetCartRequest.ProtoReflect.Descriptor instead.

func (*GetCartRequest) GetUserId

func (x *GetCartRequest) GetUserId() string

func (*GetCartRequest) ProtoMessage

func (*GetCartRequest) ProtoMessage()

func (*GetCartRequest) ProtoReflect

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

func (*GetCartRequest) Reset

func (x *GetCartRequest) Reset()

func (*GetCartRequest) String

func (x *GetCartRequest) String() string

type GetFlagRequest

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

func (*GetFlagRequest) Descriptor deprecated

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

Deprecated: Use GetFlagRequest.ProtoReflect.Descriptor instead.

func (*GetFlagRequest) GetName

func (x *GetFlagRequest) GetName() string

func (*GetFlagRequest) ProtoMessage

func (*GetFlagRequest) ProtoMessage()

func (*GetFlagRequest) ProtoReflect

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

func (*GetFlagRequest) Reset

func (x *GetFlagRequest) Reset()

func (*GetFlagRequest) String

func (x *GetFlagRequest) String() string

type GetFlagResponse

type GetFlagResponse struct {
	Flag *Flag `protobuf:"bytes,1,opt,name=flag,proto3" json:"flag,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFlagResponse) Descriptor deprecated

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

Deprecated: Use GetFlagResponse.ProtoReflect.Descriptor instead.

func (*GetFlagResponse) GetFlag

func (x *GetFlagResponse) GetFlag() *Flag

func (*GetFlagResponse) ProtoMessage

func (*GetFlagResponse) ProtoMessage()

func (*GetFlagResponse) ProtoReflect

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

func (*GetFlagResponse) Reset

func (x *GetFlagResponse) Reset()

func (*GetFlagResponse) String

func (x *GetFlagResponse) String() string

type GetProductRequest

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

func (*GetProductRequest) Descriptor deprecated

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

Deprecated: Use GetProductRequest.ProtoReflect.Descriptor instead.

func (*GetProductRequest) GetId

func (x *GetProductRequest) GetId() string

func (*GetProductRequest) ProtoMessage

func (*GetProductRequest) ProtoMessage()

func (*GetProductRequest) ProtoReflect

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

func (*GetProductRequest) Reset

func (x *GetProductRequest) Reset()

func (*GetProductRequest) String

func (x *GetProductRequest) String() string

type GetQuoteRequest

type GetQuoteRequest struct {
	Address *Address    `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Items   []*CartItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*GetQuoteRequest) Descriptor deprecated

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

Deprecated: Use GetQuoteRequest.ProtoReflect.Descriptor instead.

func (*GetQuoteRequest) GetAddress

func (x *GetQuoteRequest) GetAddress() *Address

func (*GetQuoteRequest) GetItems

func (x *GetQuoteRequest) GetItems() []*CartItem

func (*GetQuoteRequest) ProtoMessage

func (*GetQuoteRequest) ProtoMessage()

func (*GetQuoteRequest) ProtoReflect

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

func (*GetQuoteRequest) Reset

func (x *GetQuoteRequest) Reset()

func (*GetQuoteRequest) String

func (x *GetQuoteRequest) String() string

type GetQuoteResponse

type GetQuoteResponse struct {
	CostUsd *Money `protobuf:"bytes,1,opt,name=cost_usd,json=costUsd,proto3" json:"cost_usd,omitempty"`
	// contains filtered or unexported fields
}

func (*GetQuoteResponse) Descriptor deprecated

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

Deprecated: Use GetQuoteResponse.ProtoReflect.Descriptor instead.

func (*GetQuoteResponse) GetCostUsd

func (x *GetQuoteResponse) GetCostUsd() *Money

func (*GetQuoteResponse) ProtoMessage

func (*GetQuoteResponse) ProtoMessage()

func (*GetQuoteResponse) ProtoReflect

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

func (*GetQuoteResponse) Reset

func (x *GetQuoteResponse) Reset()

func (*GetQuoteResponse) String

func (x *GetQuoteResponse) String() string

type GetSupportedCurrenciesResponse

type GetSupportedCurrenciesResponse struct {

	// The 3-letter currency code defined in ISO 4217.
	CurrencyCodes []string `protobuf:"bytes,1,rep,name=currency_codes,json=currencyCodes,proto3" json:"currency_codes,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSupportedCurrenciesResponse) Descriptor deprecated

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

Deprecated: Use GetSupportedCurrenciesResponse.ProtoReflect.Descriptor instead.

func (*GetSupportedCurrenciesResponse) GetCurrencyCodes

func (x *GetSupportedCurrenciesResponse) GetCurrencyCodes() []string

func (*GetSupportedCurrenciesResponse) ProtoMessage

func (*GetSupportedCurrenciesResponse) ProtoMessage()

func (*GetSupportedCurrenciesResponse) ProtoReflect

func (*GetSupportedCurrenciesResponse) Reset

func (x *GetSupportedCurrenciesResponse) Reset()

func (*GetSupportedCurrenciesResponse) String

type ListFlagsRequest

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

func (*ListFlagsRequest) Descriptor deprecated

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

Deprecated: Use ListFlagsRequest.ProtoReflect.Descriptor instead.

func (*ListFlagsRequest) ProtoMessage

func (*ListFlagsRequest) ProtoMessage()

func (*ListFlagsRequest) ProtoReflect

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

func (*ListFlagsRequest) Reset

func (x *ListFlagsRequest) Reset()

func (*ListFlagsRequest) String

func (x *ListFlagsRequest) String() string

type ListFlagsResponse

type ListFlagsResponse struct {
	Flag []*Flag `protobuf:"bytes,1,rep,name=flag,proto3" json:"flag,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFlagsResponse) Descriptor deprecated

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

Deprecated: Use ListFlagsResponse.ProtoReflect.Descriptor instead.

func (*ListFlagsResponse) GetFlag

func (x *ListFlagsResponse) GetFlag() []*Flag

func (*ListFlagsResponse) ProtoMessage

func (*ListFlagsResponse) ProtoMessage()

func (*ListFlagsResponse) ProtoReflect

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

func (*ListFlagsResponse) Reset

func (x *ListFlagsResponse) Reset()

func (*ListFlagsResponse) String

func (x *ListFlagsResponse) String() string

type ListProductsResponse

type ListProductsResponse struct {
	Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProductsResponse) Descriptor deprecated

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

Deprecated: Use ListProductsResponse.ProtoReflect.Descriptor instead.

func (*ListProductsResponse) GetProducts

func (x *ListProductsResponse) GetProducts() []*Product

func (*ListProductsResponse) ProtoMessage

func (*ListProductsResponse) ProtoMessage()

func (*ListProductsResponse) ProtoReflect

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

func (*ListProductsResponse) Reset

func (x *ListProductsResponse) Reset()

func (*ListProductsResponse) String

func (x *ListProductsResponse) String() string

type ListRecommendationsRequest

type ListRecommendationsRequest struct {
	UserId     string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ProductIds []string `protobuf:"bytes,2,rep,name=product_ids,json=productIds,proto3" json:"product_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRecommendationsRequest) Descriptor deprecated

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

Deprecated: Use ListRecommendationsRequest.ProtoReflect.Descriptor instead.

func (*ListRecommendationsRequest) GetProductIds

func (x *ListRecommendationsRequest) GetProductIds() []string

func (*ListRecommendationsRequest) GetUserId

func (x *ListRecommendationsRequest) GetUserId() string

func (*ListRecommendationsRequest) ProtoMessage

func (*ListRecommendationsRequest) ProtoMessage()

func (*ListRecommendationsRequest) ProtoReflect

func (*ListRecommendationsRequest) Reset

func (x *ListRecommendationsRequest) Reset()

func (*ListRecommendationsRequest) String

func (x *ListRecommendationsRequest) String() string

type ListRecommendationsResponse

type ListRecommendationsResponse struct {
	ProductIds []string `protobuf:"bytes,1,rep,name=product_ids,json=productIds,proto3" json:"product_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRecommendationsResponse) Descriptor deprecated

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

Deprecated: Use ListRecommendationsResponse.ProtoReflect.Descriptor instead.

func (*ListRecommendationsResponse) GetProductIds

func (x *ListRecommendationsResponse) GetProductIds() []string

func (*ListRecommendationsResponse) ProtoMessage

func (*ListRecommendationsResponse) ProtoMessage()

func (*ListRecommendationsResponse) ProtoReflect

func (*ListRecommendationsResponse) Reset

func (x *ListRecommendationsResponse) Reset()

func (*ListRecommendationsResponse) String

func (x *ListRecommendationsResponse) String() string

type Money

type Money struct {

	// The 3-letter currency code defined in ISO 4217.
	CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
	// The whole units of the amount.
	// For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
	Units int64 `protobuf:"varint,2,opt,name=units,proto3" json:"units,omitempty"`
	// Number of nano (10^-9) units of the amount.
	// The value must be between -999,999,999 and +999,999,999 inclusive.
	// If `units` is positive, `nanos` must be positive or zero.
	// If `units` is zero, `nanos` can be positive, zero, or negative.
	// If `units` is negative, `nanos` must be negative or zero.
	// For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
	Nanos int32 `protobuf:"varint,3,opt,name=nanos,proto3" json:"nanos,omitempty"`
	// contains filtered or unexported fields
}

Represents an amount of money with its currency type.

func (*Money) Descriptor deprecated

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

Deprecated: Use Money.ProtoReflect.Descriptor instead.

func (*Money) GetCurrencyCode

func (x *Money) GetCurrencyCode() string

func (*Money) GetNanos

func (x *Money) GetNanos() int32

func (*Money) GetUnits

func (x *Money) GetUnits() int64

func (*Money) ProtoMessage

func (*Money) ProtoMessage()

func (*Money) ProtoReflect

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

func (*Money) Reset

func (x *Money) Reset()

func (*Money) String

func (x *Money) String() string

type OrderItem

type OrderItem struct {
	Item *CartItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
	Cost *Money    `protobuf:"bytes,2,opt,name=cost,proto3" json:"cost,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderItem) Descriptor deprecated

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

Deprecated: Use OrderItem.ProtoReflect.Descriptor instead.

func (*OrderItem) GetCost

func (x *OrderItem) GetCost() *Money

func (*OrderItem) GetItem

func (x *OrderItem) GetItem() *CartItem

func (*OrderItem) ProtoMessage

func (*OrderItem) ProtoMessage()

func (*OrderItem) ProtoReflect

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

func (*OrderItem) Reset

func (x *OrderItem) Reset()

func (*OrderItem) String

func (x *OrderItem) String() string

type OrderResult

type OrderResult struct {
	OrderId            string       `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	ShippingTrackingId string       `protobuf:"bytes,2,opt,name=shipping_tracking_id,json=shippingTrackingId,proto3" json:"shipping_tracking_id,omitempty"`
	ShippingCost       *Money       `protobuf:"bytes,3,opt,name=shipping_cost,json=shippingCost,proto3" json:"shipping_cost,omitempty"`
	ShippingAddress    *Address     `protobuf:"bytes,4,opt,name=shipping_address,json=shippingAddress,proto3" json:"shipping_address,omitempty"`
	Items              []*OrderItem `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderResult) Descriptor deprecated

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

Deprecated: Use OrderResult.ProtoReflect.Descriptor instead.

func (*OrderResult) GetItems

func (x *OrderResult) GetItems() []*OrderItem

func (*OrderResult) GetOrderId

func (x *OrderResult) GetOrderId() string

func (*OrderResult) GetShippingAddress

func (x *OrderResult) GetShippingAddress() *Address

func (*OrderResult) GetShippingCost

func (x *OrderResult) GetShippingCost() *Money

func (*OrderResult) GetShippingTrackingId

func (x *OrderResult) GetShippingTrackingId() string

func (*OrderResult) ProtoMessage

func (*OrderResult) ProtoMessage()

func (*OrderResult) ProtoReflect

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

func (*OrderResult) Reset

func (x *OrderResult) Reset()

func (*OrderResult) String

func (x *OrderResult) String() string

type PaymentServiceClient

type PaymentServiceClient interface {
	Charge(ctx context.Context, in *ChargeRequest, opts ...grpc.CallOption) (*ChargeResponse, error)
}

PaymentServiceClient is the client API for PaymentService 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 PaymentServiceServer

type PaymentServiceServer interface {
	Charge(context.Context, *ChargeRequest) (*ChargeResponse, error)
	// contains filtered or unexported methods
}

PaymentServiceServer is the server API for PaymentService service. All implementations must embed UnimplementedPaymentServiceServer for forward compatibility

type PlaceOrderRequest

type PlaceOrderRequest struct {
	UserId       string          `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	UserCurrency string          `protobuf:"bytes,2,opt,name=user_currency,json=userCurrency,proto3" json:"user_currency,omitempty"`
	Address      *Address        `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Email        string          `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	CreditCard   *CreditCardInfo `protobuf:"bytes,6,opt,name=credit_card,json=creditCard,proto3" json:"credit_card,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaceOrderRequest) Descriptor deprecated

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

Deprecated: Use PlaceOrderRequest.ProtoReflect.Descriptor instead.

func (*PlaceOrderRequest) GetAddress

func (x *PlaceOrderRequest) GetAddress() *Address

func (*PlaceOrderRequest) GetCreditCard

func (x *PlaceOrderRequest) GetCreditCard() *CreditCardInfo

func (*PlaceOrderRequest) GetEmail

func (x *PlaceOrderRequest) GetEmail() string

func (*PlaceOrderRequest) GetUserCurrency

func (x *PlaceOrderRequest) GetUserCurrency() string

func (*PlaceOrderRequest) GetUserId

func (x *PlaceOrderRequest) GetUserId() string

func (*PlaceOrderRequest) ProtoMessage

func (*PlaceOrderRequest) ProtoMessage()

func (*PlaceOrderRequest) ProtoReflect

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

func (*PlaceOrderRequest) Reset

func (x *PlaceOrderRequest) Reset()

func (*PlaceOrderRequest) String

func (x *PlaceOrderRequest) String() string

type PlaceOrderResponse

type PlaceOrderResponse struct {
	Order *OrderResult `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaceOrderResponse) Descriptor deprecated

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

Deprecated: Use PlaceOrderResponse.ProtoReflect.Descriptor instead.

func (*PlaceOrderResponse) GetOrder

func (x *PlaceOrderResponse) GetOrder() *OrderResult

func (*PlaceOrderResponse) ProtoMessage

func (*PlaceOrderResponse) ProtoMessage()

func (*PlaceOrderResponse) ProtoReflect

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

func (*PlaceOrderResponse) Reset

func (x *PlaceOrderResponse) Reset()

func (*PlaceOrderResponse) String

func (x *PlaceOrderResponse) String() string

type Product

type Product struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Picture     string `protobuf:"bytes,4,opt,name=picture,proto3" json:"picture,omitempty"`
	PriceUsd    *Money `protobuf:"bytes,5,opt,name=price_usd,json=priceUsd,proto3" json:"price_usd,omitempty"`
	// Categories such as "clothing" or "kitchen" that can be used to look up
	// other related products.
	Categories []string `protobuf:"bytes,6,rep,name=categories,proto3" json:"categories,omitempty"`
	// contains filtered or unexported fields
}

func (*Product) Descriptor deprecated

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

Deprecated: Use Product.ProtoReflect.Descriptor instead.

func (*Product) GetCategories

func (x *Product) GetCategories() []string

func (*Product) GetDescription

func (x *Product) GetDescription() string

func (*Product) GetId

func (x *Product) GetId() string

func (*Product) GetName

func (x *Product) GetName() string

func (*Product) GetPicture

func (x *Product) GetPicture() string

func (*Product) GetPriceUsd

func (x *Product) GetPriceUsd() *Money

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) ProtoReflect

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

func (*Product) Reset

func (x *Product) Reset()

func (*Product) String

func (x *Product) String() string

type ProductCatalogServiceClient

type ProductCatalogServiceClient interface {
	ListProducts(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListProductsResponse, error)
	GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*Product, error)
	SearchProducts(ctx context.Context, in *SearchProductsRequest, opts ...grpc.CallOption) (*SearchProductsResponse, error)
}

ProductCatalogServiceClient is the client API for ProductCatalogService 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 ProductCatalogServiceServer

type ProductCatalogServiceServer interface {
	ListProducts(context.Context, *Empty) (*ListProductsResponse, error)
	GetProduct(context.Context, *GetProductRequest) (*Product, error)
	SearchProducts(context.Context, *SearchProductsRequest) (*SearchProductsResponse, error)
	// contains filtered or unexported methods
}

ProductCatalogServiceServer is the server API for ProductCatalogService service. All implementations must embed UnimplementedProductCatalogServiceServer for forward compatibility

type RecommendationServiceClient

type RecommendationServiceClient interface {
	ListRecommendations(ctx context.Context, in *ListRecommendationsRequest, opts ...grpc.CallOption) (*ListRecommendationsResponse, error)
}

RecommendationServiceClient is the client API for RecommendationService 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 RecommendationServiceServer

type RecommendationServiceServer interface {
	ListRecommendations(context.Context, *ListRecommendationsRequest) (*ListRecommendationsResponse, error)
	// contains filtered or unexported methods
}

RecommendationServiceServer is the server API for RecommendationService service. All implementations must embed UnimplementedRecommendationServiceServer for forward compatibility

type SearchProductsRequest

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

func (*SearchProductsRequest) Descriptor deprecated

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

Deprecated: Use SearchProductsRequest.ProtoReflect.Descriptor instead.

func (*SearchProductsRequest) GetQuery

func (x *SearchProductsRequest) GetQuery() string

func (*SearchProductsRequest) ProtoMessage

func (*SearchProductsRequest) ProtoMessage()

func (*SearchProductsRequest) ProtoReflect

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

func (*SearchProductsRequest) Reset

func (x *SearchProductsRequest) Reset()

func (*SearchProductsRequest) String

func (x *SearchProductsRequest) String() string

type SearchProductsResponse

type SearchProductsResponse struct {
	Results []*Product `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchProductsResponse) Descriptor deprecated

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

Deprecated: Use SearchProductsResponse.ProtoReflect.Descriptor instead.

func (*SearchProductsResponse) GetResults

func (x *SearchProductsResponse) GetResults() []*Product

func (*SearchProductsResponse) ProtoMessage

func (*SearchProductsResponse) ProtoMessage()

func (*SearchProductsResponse) ProtoReflect

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

func (*SearchProductsResponse) Reset

func (x *SearchProductsResponse) Reset()

func (*SearchProductsResponse) String

func (x *SearchProductsResponse) String() string

type SendOrderConfirmationRequest

type SendOrderConfirmationRequest struct {
	Email string       `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Order *OrderResult `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*SendOrderConfirmationRequest) Descriptor deprecated

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

Deprecated: Use SendOrderConfirmationRequest.ProtoReflect.Descriptor instead.

func (*SendOrderConfirmationRequest) GetEmail

func (x *SendOrderConfirmationRequest) GetEmail() string

func (*SendOrderConfirmationRequest) GetOrder

func (*SendOrderConfirmationRequest) ProtoMessage

func (*SendOrderConfirmationRequest) ProtoMessage()

func (*SendOrderConfirmationRequest) ProtoReflect

func (*SendOrderConfirmationRequest) Reset

func (x *SendOrderConfirmationRequest) Reset()

func (*SendOrderConfirmationRequest) String

type ShipOrderRequest

type ShipOrderRequest struct {
	Address *Address    `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Items   []*CartItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ShipOrderRequest) Descriptor deprecated

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

Deprecated: Use ShipOrderRequest.ProtoReflect.Descriptor instead.

func (*ShipOrderRequest) GetAddress

func (x *ShipOrderRequest) GetAddress() *Address

func (*ShipOrderRequest) GetItems

func (x *ShipOrderRequest) GetItems() []*CartItem

func (*ShipOrderRequest) ProtoMessage

func (*ShipOrderRequest) ProtoMessage()

func (*ShipOrderRequest) ProtoReflect

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

func (*ShipOrderRequest) Reset

func (x *ShipOrderRequest) Reset()

func (*ShipOrderRequest) String

func (x *ShipOrderRequest) String() string

type ShipOrderResponse

type ShipOrderResponse struct {
	TrackingId string `protobuf:"bytes,1,opt,name=tracking_id,json=trackingId,proto3" json:"tracking_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ShipOrderResponse) Descriptor deprecated

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

Deprecated: Use ShipOrderResponse.ProtoReflect.Descriptor instead.

func (*ShipOrderResponse) GetTrackingId

func (x *ShipOrderResponse) GetTrackingId() string

func (*ShipOrderResponse) ProtoMessage

func (*ShipOrderResponse) ProtoMessage()

func (*ShipOrderResponse) ProtoReflect

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

func (*ShipOrderResponse) Reset

func (x *ShipOrderResponse) Reset()

func (*ShipOrderResponse) String

func (x *ShipOrderResponse) String() string

type ShippingServiceClient

type ShippingServiceClient interface {
	GetQuote(ctx context.Context, in *GetQuoteRequest, opts ...grpc.CallOption) (*GetQuoteResponse, error)
	ShipOrder(ctx context.Context, in *ShipOrderRequest, opts ...grpc.CallOption) (*ShipOrderResponse, error)
}

ShippingServiceClient is the client API for ShippingService 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 ShippingServiceServer

type ShippingServiceServer interface {
	GetQuote(context.Context, *GetQuoteRequest) (*GetQuoteResponse, error)
	ShipOrder(context.Context, *ShipOrderRequest) (*ShipOrderResponse, error)
	// contains filtered or unexported methods
}

ShippingServiceServer is the server API for ShippingService service. All implementations must embed UnimplementedShippingServiceServer for forward compatibility

type UnimplementedAdServiceServer

type UnimplementedAdServiceServer struct {
}

UnimplementedAdServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAdServiceServer) GetAds

type UnimplementedCartServiceServer

type UnimplementedCartServiceServer struct {
}

UnimplementedCartServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCartServiceServer) AddItem

func (UnimplementedCartServiceServer) EmptyCart

func (UnimplementedCartServiceServer) GetCart

type UnimplementedCheckoutServiceServer

type UnimplementedCheckoutServiceServer struct {
}

UnimplementedCheckoutServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCheckoutServiceServer) PlaceOrder

type UnimplementedCurrencyServiceServer

type UnimplementedCurrencyServiceServer struct {
}

UnimplementedCurrencyServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCurrencyServiceServer) Convert

func (UnimplementedCurrencyServiceServer) GetSupportedCurrencies

type UnimplementedEmailServiceServer

type UnimplementedEmailServiceServer struct {
}

UnimplementedEmailServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedEmailServiceServer) SendOrderConfirmation

type UnimplementedFeatureFlagServiceServer

type UnimplementedFeatureFlagServiceServer struct {
}

UnimplementedFeatureFlagServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedFeatureFlagServiceServer) CreateFlag

func (UnimplementedFeatureFlagServiceServer) DeleteFlag

func (UnimplementedFeatureFlagServiceServer) GetFlag

func (UnimplementedFeatureFlagServiceServer) ListFlags

func (UnimplementedFeatureFlagServiceServer) UpdateFlag

type UnimplementedPaymentServiceServer

type UnimplementedPaymentServiceServer struct {
}

UnimplementedPaymentServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPaymentServiceServer) Charge

type UnimplementedProductCatalogServiceServer

type UnimplementedProductCatalogServiceServer struct {
}

UnimplementedProductCatalogServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedProductCatalogServiceServer) GetProduct

func (UnimplementedProductCatalogServiceServer) ListProducts

func (UnimplementedProductCatalogServiceServer) SearchProducts

type UnimplementedRecommendationServiceServer

type UnimplementedRecommendationServiceServer struct {
}

UnimplementedRecommendationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRecommendationServiceServer) ListRecommendations

type UnimplementedShippingServiceServer

type UnimplementedShippingServiceServer struct {
}

UnimplementedShippingServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedShippingServiceServer) GetQuote

func (UnimplementedShippingServiceServer) ShipOrder

type UnsafeAdServiceServer

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

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

type UnsafeCartServiceServer

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

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

type UnsafeCheckoutServiceServer

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

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

type UnsafeCurrencyServiceServer

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

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

type UnsafeEmailServiceServer

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

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

type UnsafeFeatureFlagServiceServer

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

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

type UnsafePaymentServiceServer

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

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

type UnsafeProductCatalogServiceServer

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

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

type UnsafeRecommendationServiceServer

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

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

type UnsafeShippingServiceServer

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

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

type UpdateFlagRequest

type UpdateFlagRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Enabled bool   `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateFlagRequest) Descriptor deprecated

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

Deprecated: Use UpdateFlagRequest.ProtoReflect.Descriptor instead.

func (*UpdateFlagRequest) GetEnabled

func (x *UpdateFlagRequest) GetEnabled() bool

func (*UpdateFlagRequest) GetName

func (x *UpdateFlagRequest) GetName() string

func (*UpdateFlagRequest) ProtoMessage

func (*UpdateFlagRequest) ProtoMessage()

func (*UpdateFlagRequest) ProtoReflect

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

func (*UpdateFlagRequest) Reset

func (x *UpdateFlagRequest) Reset()

func (*UpdateFlagRequest) String

func (x *UpdateFlagRequest) String() string

type UpdateFlagResponse

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

func (*UpdateFlagResponse) Descriptor deprecated

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

Deprecated: Use UpdateFlagResponse.ProtoReflect.Descriptor instead.

func (*UpdateFlagResponse) ProtoMessage

func (*UpdateFlagResponse) ProtoMessage()

func (*UpdateFlagResponse) ProtoReflect

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

func (*UpdateFlagResponse) Reset

func (x *UpdateFlagResponse) Reset()

func (*UpdateFlagResponse) String

func (x *UpdateFlagResponse) String() string

Jump to

Keyboard shortcuts

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