offering_grpc_service

package
v0.0.0-...-adbfc65 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OfferingFieldMask_name = map[int32]string{
		0:  "OFFERING_FIELD_NONE",
		1:  "OFFERING_FIELD_NAME",
		2:  "OFFERING_FIELD_ACTIVE",
		3:  "OFFERING_FIELD_TYPE",
		4:  "OFFERING_FIELD_PRICING_MODEL",
		5:  "OFFERING_FIELD_PRICING_PERIOD_IN_MONTHS",
		6:  "OFFERING_FIELD_CURRENCY",
		7:  "OFFERING_FIELD_PRICE",
		8:  "OFFERING_FIELD_PRICE_CALCULATED",
		9:  "OFFERING_FIELD_CONDITIONAL",
		10: "OFFERING_FIELD_TAXABLE",
		11: "OFFERING_FIELD_PRICE_CALCULATION_TYPE",
		12: "OFFERING_FIELD_PRICE_CALCULATION_REVENUE_SHARE_PERCENTAGE",
		13: "OFFERING_FIELD_CONDITIONALS_MINIMUM_CHARGE_PERIOD",
		14: "OFFERING_FIELD_CONDITIONALS_MINIMUM_CHARGE_AMOUNT",
	}
	OfferingFieldMask_value = map[string]int32{
		"OFFERING_FIELD_NONE":                                       0,
		"OFFERING_FIELD_NAME":                                       1,
		"OFFERING_FIELD_ACTIVE":                                     2,
		"OFFERING_FIELD_TYPE":                                       3,
		"OFFERING_FIELD_PRICING_MODEL":                              4,
		"OFFERING_FIELD_PRICING_PERIOD_IN_MONTHS":                   5,
		"OFFERING_FIELD_CURRENCY":                                   6,
		"OFFERING_FIELD_PRICE":                                      7,
		"OFFERING_FIELD_PRICE_CALCULATED":                           8,
		"OFFERING_FIELD_CONDITIONAL":                                9,
		"OFFERING_FIELD_TAXABLE":                                    10,
		"OFFERING_FIELD_PRICE_CALCULATION_TYPE":                     11,
		"OFFERING_FIELD_PRICE_CALCULATION_REVENUE_SHARE_PERCENTAGE": 12,
		"OFFERING_FIELD_CONDITIONALS_MINIMUM_CHARGE_PERIOD":         13,
		"OFFERING_FIELD_CONDITIONALS_MINIMUM_CHARGE_AMOUNT":         14,
	}
)

Enum value maps for OfferingFieldMask.

View Source
var File_offering_proto protoreflect.FileDescriptor
View Source
var OfferingGrpcService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "offeringGrpcService",
	HandlerType: (*OfferingGrpcServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateOffering",
			Handler:    _OfferingGrpcService_CreateOffering_Handler,
		},
		{
			MethodName: "UpdateOffering",
			Handler:    _OfferingGrpcService_UpdateOffering_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "offering.proto",
}

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

Functions

func RegisterOfferingGrpcServiceServer

func RegisterOfferingGrpcServiceServer(s grpc.ServiceRegistrar, srv OfferingGrpcServiceServer)

Types

type CreateOfferingGrpcRequest

type CreateOfferingGrpcRequest struct {
	Tenant                                 string                 `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	LoggedInUserId                         string                 `protobuf:"bytes,2,opt,name=loggedInUserId,proto3" json:"loggedInUserId,omitempty"`
	CreatedAt                              *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	SourceFields                           *common.SourceFields   `protobuf:"bytes,4,opt,name=sourceFields,proto3" json:"sourceFields,omitempty"`
	Name                                   string                 `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	Active                                 bool                   `protobuf:"varint,6,opt,name=active,proto3" json:"active,omitempty"`
	Type                                   string                 `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`
	Currency                               string                 `protobuf:"bytes,8,opt,name=currency,proto3" json:"currency,omitempty"`
	PricingModel                           string                 `protobuf:"bytes,9,opt,name=pricingModel,proto3" json:"pricingModel,omitempty"`
	PricingPeriodInMonths                  int64                  `protobuf:"varint,10,opt,name=pricingPeriodInMonths,proto3" json:"pricingPeriodInMonths,omitempty"`
	Price                                  float64                `protobuf:"fixed64,11,opt,name=price,proto3" json:"price,omitempty"`
	PriceCalculated                        bool                   `protobuf:"varint,12,opt,name=priceCalculated,proto3" json:"priceCalculated,omitempty"`
	PriceCalculationType                   string                 `protobuf:"bytes,13,opt,name=priceCalculationType,proto3" json:"priceCalculationType,omitempty"`
	PriceCalculationRevenueSharePercentage float64                `` /* 132-byte string literal not displayed */
	Taxable                                bool                   `protobuf:"varint,15,opt,name=taxable,proto3" json:"taxable,omitempty"`
	Conditional                            bool                   `protobuf:"varint,16,opt,name=conditional,proto3" json:"conditional,omitempty"`
	ConditionalsMinimumChargePeriod        string                 `protobuf:"bytes,17,opt,name=conditionalsMinimumChargePeriod,proto3" json:"conditionalsMinimumChargePeriod,omitempty"`
	ConditionalsMinimumChargeAmount        float64                `protobuf:"fixed64,18,opt,name=conditionalsMinimumChargeAmount,proto3" json:"conditionalsMinimumChargeAmount,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOfferingGrpcRequest) Descriptor deprecated

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

Deprecated: Use CreateOfferingGrpcRequest.ProtoReflect.Descriptor instead.

func (*CreateOfferingGrpcRequest) GetActive

func (x *CreateOfferingGrpcRequest) GetActive() bool

func (*CreateOfferingGrpcRequest) GetConditional

func (x *CreateOfferingGrpcRequest) GetConditional() bool

func (*CreateOfferingGrpcRequest) GetConditionalsMinimumChargeAmount

func (x *CreateOfferingGrpcRequest) GetConditionalsMinimumChargeAmount() float64

func (*CreateOfferingGrpcRequest) GetConditionalsMinimumChargePeriod

func (x *CreateOfferingGrpcRequest) GetConditionalsMinimumChargePeriod() string

func (*CreateOfferingGrpcRequest) GetCreatedAt

func (x *CreateOfferingGrpcRequest) GetCreatedAt() *timestamppb.Timestamp

func (*CreateOfferingGrpcRequest) GetCurrency

func (x *CreateOfferingGrpcRequest) GetCurrency() string

func (*CreateOfferingGrpcRequest) GetLoggedInUserId

func (x *CreateOfferingGrpcRequest) GetLoggedInUserId() string

func (*CreateOfferingGrpcRequest) GetName

func (x *CreateOfferingGrpcRequest) GetName() string

func (*CreateOfferingGrpcRequest) GetPrice

func (x *CreateOfferingGrpcRequest) GetPrice() float64

func (*CreateOfferingGrpcRequest) GetPriceCalculated

func (x *CreateOfferingGrpcRequest) GetPriceCalculated() bool

func (*CreateOfferingGrpcRequest) GetPriceCalculationRevenueSharePercentage

func (x *CreateOfferingGrpcRequest) GetPriceCalculationRevenueSharePercentage() float64

func (*CreateOfferingGrpcRequest) GetPriceCalculationType

func (x *CreateOfferingGrpcRequest) GetPriceCalculationType() string

func (*CreateOfferingGrpcRequest) GetPricingModel

func (x *CreateOfferingGrpcRequest) GetPricingModel() string

func (*CreateOfferingGrpcRequest) GetPricingPeriodInMonths

func (x *CreateOfferingGrpcRequest) GetPricingPeriodInMonths() int64

func (*CreateOfferingGrpcRequest) GetSourceFields

func (x *CreateOfferingGrpcRequest) GetSourceFields() *common.SourceFields

func (*CreateOfferingGrpcRequest) GetTaxable

func (x *CreateOfferingGrpcRequest) GetTaxable() bool

func (*CreateOfferingGrpcRequest) GetTenant

func (x *CreateOfferingGrpcRequest) GetTenant() string

func (*CreateOfferingGrpcRequest) GetType

func (x *CreateOfferingGrpcRequest) GetType() string

func (*CreateOfferingGrpcRequest) ProtoMessage

func (*CreateOfferingGrpcRequest) ProtoMessage()

func (*CreateOfferingGrpcRequest) ProtoReflect

func (*CreateOfferingGrpcRequest) Reset

func (x *CreateOfferingGrpcRequest) Reset()

func (*CreateOfferingGrpcRequest) String

func (x *CreateOfferingGrpcRequest) String() string

type OfferingFieldMask

type OfferingFieldMask int32
const (
	OfferingFieldMask_OFFERING_FIELD_NONE                                       OfferingFieldMask = 0 // No property, ignored by the server
	OfferingFieldMask_OFFERING_FIELD_NAME                                       OfferingFieldMask = 1
	OfferingFieldMask_OFFERING_FIELD_ACTIVE                                     OfferingFieldMask = 2
	OfferingFieldMask_OFFERING_FIELD_TYPE                                       OfferingFieldMask = 3
	OfferingFieldMask_OFFERING_FIELD_PRICING_MODEL                              OfferingFieldMask = 4
	OfferingFieldMask_OFFERING_FIELD_PRICING_PERIOD_IN_MONTHS                   OfferingFieldMask = 5
	OfferingFieldMask_OFFERING_FIELD_CURRENCY                                   OfferingFieldMask = 6
	OfferingFieldMask_OFFERING_FIELD_PRICE                                      OfferingFieldMask = 7
	OfferingFieldMask_OFFERING_FIELD_PRICE_CALCULATED                           OfferingFieldMask = 8
	OfferingFieldMask_OFFERING_FIELD_CONDITIONAL                                OfferingFieldMask = 9
	OfferingFieldMask_OFFERING_FIELD_TAXABLE                                    OfferingFieldMask = 10
	OfferingFieldMask_OFFERING_FIELD_PRICE_CALCULATION_TYPE                     OfferingFieldMask = 11
	OfferingFieldMask_OFFERING_FIELD_PRICE_CALCULATION_REVENUE_SHARE_PERCENTAGE OfferingFieldMask = 12
	OfferingFieldMask_OFFERING_FIELD_CONDITIONALS_MINIMUM_CHARGE_PERIOD         OfferingFieldMask = 13
	OfferingFieldMask_OFFERING_FIELD_CONDITIONALS_MINIMUM_CHARGE_AMOUNT         OfferingFieldMask = 14
)

func (OfferingFieldMask) Descriptor

func (OfferingFieldMask) Enum

func (OfferingFieldMask) EnumDescriptor deprecated

func (OfferingFieldMask) EnumDescriptor() ([]byte, []int)

Deprecated: Use OfferingFieldMask.Descriptor instead.

func (OfferingFieldMask) Number

func (OfferingFieldMask) String

func (x OfferingFieldMask) String() string

func (OfferingFieldMask) Type

type OfferingGrpcServiceClient

type OfferingGrpcServiceClient interface {
	CreateOffering(ctx context.Context, in *CreateOfferingGrpcRequest, opts ...grpc.CallOption) (*common.IdResponse, error)
	UpdateOffering(ctx context.Context, in *UpdateOfferingGrpcRequest, opts ...grpc.CallOption) (*common.IdResponse, error)
}

OfferingGrpcServiceClient is the client API for OfferingGrpcService 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 OfferingGrpcServiceServer

type OfferingGrpcServiceServer interface {
	CreateOffering(context.Context, *CreateOfferingGrpcRequest) (*common.IdResponse, error)
	UpdateOffering(context.Context, *UpdateOfferingGrpcRequest) (*common.IdResponse, error)
}

OfferingGrpcServiceServer is the server API for OfferingGrpcService service. All implementations should embed UnimplementedOfferingGrpcServiceServer for forward compatibility

type UnimplementedOfferingGrpcServiceServer

type UnimplementedOfferingGrpcServiceServer struct {
}

UnimplementedOfferingGrpcServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedOfferingGrpcServiceServer) CreateOffering

func (UnimplementedOfferingGrpcServiceServer) UpdateOffering

type UnsafeOfferingGrpcServiceServer

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

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

type UpdateOfferingGrpcRequest

type UpdateOfferingGrpcRequest struct {
	Id                                     string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Tenant                                 string                 `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"`
	LoggedInUserId                         string                 `protobuf:"bytes,3,opt,name=loggedInUserId,proto3" json:"loggedInUserId,omitempty"`
	UpdatedAt                              *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	AppSource                              string                 `protobuf:"bytes,5,opt,name=appSource,proto3" json:"appSource,omitempty"`
	Name                                   string                 `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	Active                                 bool                   `protobuf:"varint,7,opt,name=active,proto3" json:"active,omitempty"`
	Type                                   string                 `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"`
	Currency                               string                 `protobuf:"bytes,9,opt,name=currency,proto3" json:"currency,omitempty"`
	PricingModel                           string                 `protobuf:"bytes,10,opt,name=pricingModel,proto3" json:"pricingModel,omitempty"`
	PricingPeriodInMonths                  int64                  `protobuf:"varint,11,opt,name=pricingPeriodInMonths,proto3" json:"pricingPeriodInMonths,omitempty"`
	Price                                  float64                `protobuf:"fixed64,12,opt,name=price,proto3" json:"price,omitempty"`
	PriceCalculated                        bool                   `protobuf:"varint,13,opt,name=priceCalculated,proto3" json:"priceCalculated,omitempty"`
	PriceCalculationType                   string                 `protobuf:"bytes,14,opt,name=priceCalculationType,proto3" json:"priceCalculationType,omitempty"`
	PriceCalculationRevenueSharePercentage float64                `` /* 132-byte string literal not displayed */
	Taxable                                bool                   `protobuf:"varint,16,opt,name=taxable,proto3" json:"taxable,omitempty"`
	Conditional                            bool                   `protobuf:"varint,17,opt,name=conditional,proto3" json:"conditional,omitempty"`
	ConditionalsMinimumChargePeriod        string                 `protobuf:"bytes,18,opt,name=conditionalsMinimumChargePeriod,proto3" json:"conditionalsMinimumChargePeriod,omitempty"`
	ConditionalsMinimumChargeAmount        float64                `protobuf:"fixed64,19,opt,name=conditionalsMinimumChargeAmount,proto3" json:"conditionalsMinimumChargeAmount,omitempty"`
	FieldsMask                             []OfferingFieldMask    `protobuf:"varint,99,rep,packed,name=fieldsMask,proto3,enum=OfferingFieldMask" json:"fieldsMask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateOfferingGrpcRequest) Descriptor deprecated

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

Deprecated: Use UpdateOfferingGrpcRequest.ProtoReflect.Descriptor instead.

func (*UpdateOfferingGrpcRequest) GetActive

func (x *UpdateOfferingGrpcRequest) GetActive() bool

func (*UpdateOfferingGrpcRequest) GetAppSource

func (x *UpdateOfferingGrpcRequest) GetAppSource() string

func (*UpdateOfferingGrpcRequest) GetConditional

func (x *UpdateOfferingGrpcRequest) GetConditional() bool

func (*UpdateOfferingGrpcRequest) GetConditionalsMinimumChargeAmount

func (x *UpdateOfferingGrpcRequest) GetConditionalsMinimumChargeAmount() float64

func (*UpdateOfferingGrpcRequest) GetConditionalsMinimumChargePeriod

func (x *UpdateOfferingGrpcRequest) GetConditionalsMinimumChargePeriod() string

func (*UpdateOfferingGrpcRequest) GetCurrency

func (x *UpdateOfferingGrpcRequest) GetCurrency() string

func (*UpdateOfferingGrpcRequest) GetFieldsMask

func (x *UpdateOfferingGrpcRequest) GetFieldsMask() []OfferingFieldMask

func (*UpdateOfferingGrpcRequest) GetId

func (x *UpdateOfferingGrpcRequest) GetId() string

func (*UpdateOfferingGrpcRequest) GetLoggedInUserId

func (x *UpdateOfferingGrpcRequest) GetLoggedInUserId() string

func (*UpdateOfferingGrpcRequest) GetName

func (x *UpdateOfferingGrpcRequest) GetName() string

func (*UpdateOfferingGrpcRequest) GetPrice

func (x *UpdateOfferingGrpcRequest) GetPrice() float64

func (*UpdateOfferingGrpcRequest) GetPriceCalculated

func (x *UpdateOfferingGrpcRequest) GetPriceCalculated() bool

func (*UpdateOfferingGrpcRequest) GetPriceCalculationRevenueSharePercentage

func (x *UpdateOfferingGrpcRequest) GetPriceCalculationRevenueSharePercentage() float64

func (*UpdateOfferingGrpcRequest) GetPriceCalculationType

func (x *UpdateOfferingGrpcRequest) GetPriceCalculationType() string

func (*UpdateOfferingGrpcRequest) GetPricingModel

func (x *UpdateOfferingGrpcRequest) GetPricingModel() string

func (*UpdateOfferingGrpcRequest) GetPricingPeriodInMonths

func (x *UpdateOfferingGrpcRequest) GetPricingPeriodInMonths() int64

func (*UpdateOfferingGrpcRequest) GetTaxable

func (x *UpdateOfferingGrpcRequest) GetTaxable() bool

func (*UpdateOfferingGrpcRequest) GetTenant

func (x *UpdateOfferingGrpcRequest) GetTenant() string

func (*UpdateOfferingGrpcRequest) GetType

func (x *UpdateOfferingGrpcRequest) GetType() string

func (*UpdateOfferingGrpcRequest) GetUpdatedAt

func (x *UpdateOfferingGrpcRequest) GetUpdatedAt() *timestamppb.Timestamp

func (*UpdateOfferingGrpcRequest) ProtoMessage

func (*UpdateOfferingGrpcRequest) ProtoMessage()

func (*UpdateOfferingGrpcRequest) ProtoReflect

func (*UpdateOfferingGrpcRequest) Reset

func (x *UpdateOfferingGrpcRequest) Reset()

func (*UpdateOfferingGrpcRequest) String

func (x *UpdateOfferingGrpcRequest) String() string

Jump to

Keyboard shortcuts

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