gen

package
v0.0.0-...-2119b44 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MPL-2.0 Imports: 13 Imported by: 8

Documentation

Index

Constants

View Source
const (
	BaseRatesService_GetBaseRatesById_FullMethodName             = "/ukama.dataplan.baserate.v1.BaseRatesService/GetBaseRatesById"
	BaseRatesService_GetBaseRatesByCountry_FullMethodName        = "/ukama.dataplan.baserate.v1.BaseRatesService/GetBaseRatesByCountry"
	BaseRatesService_GetBaseRatesForPeriod_FullMethodName        = "/ukama.dataplan.baserate.v1.BaseRatesService/GetBaseRatesForPeriod"
	BaseRatesService_GetBaseRatesForPackage_FullMethodName       = "/ukama.dataplan.baserate.v1.BaseRatesService/GetBaseRatesForPackage"
	BaseRatesService_GetBaseRatesHistoryByCountry_FullMethodName = "/ukama.dataplan.baserate.v1.BaseRatesService/GetBaseRatesHistoryByCountry"
	BaseRatesService_UploadBaseRates_FullMethodName              = "/ukama.dataplan.baserate.v1.BaseRatesService/UploadBaseRates"
)

Variables

View Source
var BaseRatesService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ukama.dataplan.baserate.v1.BaseRatesService",
	HandlerType: (*BaseRatesServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetBaseRatesById",
			Handler:    _BaseRatesService_GetBaseRatesById_Handler,
		},
		{
			MethodName: "GetBaseRatesByCountry",
			Handler:    _BaseRatesService_GetBaseRatesByCountry_Handler,
		},
		{
			MethodName: "GetBaseRatesForPeriod",
			Handler:    _BaseRatesService_GetBaseRatesForPeriod_Handler,
		},
		{
			MethodName: "GetBaseRatesForPackage",
			Handler:    _BaseRatesService_GetBaseRatesForPackage_Handler,
		},
		{
			MethodName: "GetBaseRatesHistoryByCountry",
			Handler:    _BaseRatesService_GetBaseRatesHistoryByCountry_Handler,
		},
		{
			MethodName: "UploadBaseRates",
			Handler:    _BaseRatesService_UploadBaseRates_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "baserate.proto",
}

BaseRatesService_ServiceDesc is the grpc.ServiceDesc for BaseRatesService 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_baserate_proto protoreflect.FileDescriptor

Functions

func RegisterBaseRatesServiceServer

func RegisterBaseRatesServiceServer(s grpc.ServiceRegistrar, srv BaseRatesServiceServer)

Types

type BaseRatesServiceClient

type BaseRatesServiceClient interface {
	GetBaseRatesById(ctx context.Context, in *GetBaseRatesByIdRequest, opts ...grpc.CallOption) (*GetBaseRatesByIdResponse, error)
	GetBaseRatesByCountry(ctx context.Context, in *GetBaseRatesByCountryRequest, opts ...grpc.CallOption) (*GetBaseRatesResponse, error)
	GetBaseRatesForPeriod(ctx context.Context, in *GetBaseRatesByPeriodRequest, opts ...grpc.CallOption) (*GetBaseRatesResponse, error)
	GetBaseRatesForPackage(ctx context.Context, in *GetBaseRatesByPeriodRequest, opts ...grpc.CallOption) (*GetBaseRatesResponse, error)
	GetBaseRatesHistoryByCountry(ctx context.Context, in *GetBaseRatesByCountryRequest, opts ...grpc.CallOption) (*GetBaseRatesResponse, error)
	UploadBaseRates(ctx context.Context, in *UploadBaseRatesRequest, opts ...grpc.CallOption) (*UploadBaseRatesResponse, error)
}

BaseRatesServiceClient is the client API for BaseRatesService 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 BaseRatesServiceServer

type BaseRatesServiceServer interface {
	GetBaseRatesById(context.Context, *GetBaseRatesByIdRequest) (*GetBaseRatesByIdResponse, error)
	GetBaseRatesByCountry(context.Context, *GetBaseRatesByCountryRequest) (*GetBaseRatesResponse, error)
	GetBaseRatesForPeriod(context.Context, *GetBaseRatesByPeriodRequest) (*GetBaseRatesResponse, error)
	GetBaseRatesForPackage(context.Context, *GetBaseRatesByPeriodRequest) (*GetBaseRatesResponse, error)
	GetBaseRatesHistoryByCountry(context.Context, *GetBaseRatesByCountryRequest) (*GetBaseRatesResponse, error)
	UploadBaseRates(context.Context, *UploadBaseRatesRequest) (*UploadBaseRatesResponse, error)
	// contains filtered or unexported methods
}

BaseRatesServiceServer is the server API for BaseRatesService service. All implementations must embed UnimplementedBaseRatesServiceServer for forward compatibility

type GetBaseRatesByCountryRequest

type GetBaseRatesByCountryRequest struct {
	Country     string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"`
	Provider    string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	SimType     string `protobuf:"bytes,5,opt,name=simType,json=sim_type,proto3" json:"simType,omitempty"`
	EffectiveAt string `protobuf:"bytes,6,opt,name=effectiveAt,json=effective_at,proto3" json:"effectiveAt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBaseRatesByCountryRequest) Descriptor deprecated

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

Deprecated: Use GetBaseRatesByCountryRequest.ProtoReflect.Descriptor instead.

func (*GetBaseRatesByCountryRequest) GetCountry

func (x *GetBaseRatesByCountryRequest) GetCountry() string

func (*GetBaseRatesByCountryRequest) GetEffectiveAt

func (x *GetBaseRatesByCountryRequest) GetEffectiveAt() string

func (*GetBaseRatesByCountryRequest) GetProvider

func (x *GetBaseRatesByCountryRequest) GetProvider() string

func (*GetBaseRatesByCountryRequest) GetSimType

func (x *GetBaseRatesByCountryRequest) GetSimType() string

func (*GetBaseRatesByCountryRequest) ProtoMessage

func (*GetBaseRatesByCountryRequest) ProtoMessage()

func (*GetBaseRatesByCountryRequest) ProtoReflect

func (*GetBaseRatesByCountryRequest) Reset

func (x *GetBaseRatesByCountryRequest) Reset()

func (*GetBaseRatesByCountryRequest) String

func (*GetBaseRatesByCountryRequest) Validate

func (this *GetBaseRatesByCountryRequest) Validate() error

type GetBaseRatesByIdRequest

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

func (*GetBaseRatesByIdRequest) Descriptor deprecated

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

Deprecated: Use GetBaseRatesByIdRequest.ProtoReflect.Descriptor instead.

func (*GetBaseRatesByIdRequest) GetUuid

func (x *GetBaseRatesByIdRequest) GetUuid() string

func (*GetBaseRatesByIdRequest) ProtoMessage

func (*GetBaseRatesByIdRequest) ProtoMessage()

func (*GetBaseRatesByIdRequest) ProtoReflect

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

func (*GetBaseRatesByIdRequest) Reset

func (x *GetBaseRatesByIdRequest) Reset()

func (*GetBaseRatesByIdRequest) String

func (x *GetBaseRatesByIdRequest) String() string

func (*GetBaseRatesByIdRequest) Validate

func (this *GetBaseRatesByIdRequest) Validate() error

type GetBaseRatesByIdResponse

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

func (*GetBaseRatesByIdResponse) Descriptor deprecated

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

Deprecated: Use GetBaseRatesByIdResponse.ProtoReflect.Descriptor instead.

func (*GetBaseRatesByIdResponse) GetRate

func (x *GetBaseRatesByIdResponse) GetRate() *Rate

func (*GetBaseRatesByIdResponse) ProtoMessage

func (*GetBaseRatesByIdResponse) ProtoMessage()

func (*GetBaseRatesByIdResponse) ProtoReflect

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

func (*GetBaseRatesByIdResponse) Reset

func (x *GetBaseRatesByIdResponse) Reset()

func (*GetBaseRatesByIdResponse) String

func (x *GetBaseRatesByIdResponse) String() string

func (*GetBaseRatesByIdResponse) Validate

func (this *GetBaseRatesByIdResponse) Validate() error

type GetBaseRatesByPeriodRequest

type GetBaseRatesByPeriodRequest struct {
	Country  string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"`
	Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	From     string `protobuf:"bytes,3,opt,name=From,json=from,proto3" json:"From,omitempty"`
	To       string `protobuf:"bytes,4,opt,name=To,json=to,proto3" json:"To,omitempty"`
	SimType  string `protobuf:"bytes,5,opt,name=simType,json=sim_type,proto3" json:"simType,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBaseRatesByPeriodRequest) Descriptor deprecated

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

Deprecated: Use GetBaseRatesByPeriodRequest.ProtoReflect.Descriptor instead.

func (*GetBaseRatesByPeriodRequest) GetCountry

func (x *GetBaseRatesByPeriodRequest) GetCountry() string

func (*GetBaseRatesByPeriodRequest) GetFrom

func (x *GetBaseRatesByPeriodRequest) GetFrom() string

func (*GetBaseRatesByPeriodRequest) GetProvider

func (x *GetBaseRatesByPeriodRequest) GetProvider() string

func (*GetBaseRatesByPeriodRequest) GetSimType

func (x *GetBaseRatesByPeriodRequest) GetSimType() string

func (*GetBaseRatesByPeriodRequest) GetTo

func (*GetBaseRatesByPeriodRequest) ProtoMessage

func (*GetBaseRatesByPeriodRequest) ProtoMessage()

func (*GetBaseRatesByPeriodRequest) ProtoReflect

func (*GetBaseRatesByPeriodRequest) Reset

func (x *GetBaseRatesByPeriodRequest) Reset()

func (*GetBaseRatesByPeriodRequest) String

func (x *GetBaseRatesByPeriodRequest) String() string

func (*GetBaseRatesByPeriodRequest) Validate

func (this *GetBaseRatesByPeriodRequest) Validate() error

type GetBaseRatesResponse

type GetBaseRatesResponse struct {
	Rates []*Rate `protobuf:"bytes,1,rep,name=rates,proto3" json:"rates,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBaseRatesResponse) Descriptor deprecated

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

Deprecated: Use GetBaseRatesResponse.ProtoReflect.Descriptor instead.

func (*GetBaseRatesResponse) GetRates

func (x *GetBaseRatesResponse) GetRates() []*Rate

func (*GetBaseRatesResponse) ProtoMessage

func (*GetBaseRatesResponse) ProtoMessage()

func (*GetBaseRatesResponse) ProtoReflect

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

func (*GetBaseRatesResponse) Reset

func (x *GetBaseRatesResponse) Reset()

func (*GetBaseRatesResponse) String

func (x *GetBaseRatesResponse) String() string

func (*GetBaseRatesResponse) Validate

func (this *GetBaseRatesResponse) Validate() error

type Rate

type Rate struct {
	Uuid        string  `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Country     string  `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"`
	Provider    string  `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"`
	Vpmn        string  `protobuf:"bytes,4,opt,name=vpmn,proto3" json:"vpmn,omitempty"`
	Imsi        int64   `protobuf:"varint,5,opt,name=imsi,proto3" json:"imsi,omitempty"`
	SmsMo       float64 `protobuf:"fixed64,6,opt,name=smsMo,json=sms_mo,proto3" json:"smsMo,omitempty"`
	SmsMt       float64 `protobuf:"fixed64,7,opt,name=smsMt,json=sms_mt,proto3" json:"smsMt,omitempty"`
	Data        float64 `protobuf:"fixed64,8,opt,name=data,proto3" json:"data,omitempty"`
	X2G         bool    `protobuf:"varint,9,opt,name=_2g,json=2g,proto3" json:"_2g,omitempty"`
	X3G         bool    `protobuf:"varint,10,opt,name=_3g,json=3g,proto3" json:"_3g,omitempty"`
	X5G         bool    `protobuf:"varint,11,opt,name=_5g,json=5g,proto3" json:"_5g,omitempty"`
	Lte         bool    `protobuf:"varint,12,opt,name=lte,proto3" json:"lte,omitempty"`
	LteM        bool    `protobuf:"varint,13,opt,name=lteM,json=lte_m,proto3" json:"lteM,omitempty"`
	Apn         string  `protobuf:"bytes,14,opt,name=apn,proto3" json:"apn,omitempty"`
	CreatedAt   string  `protobuf:"bytes,15,opt,name=createdAt,json=created_at,proto3" json:"createdAt,omitempty"`
	DeletedAt   string  `protobuf:"bytes,16,opt,name=deletedAt,json=deleted_at,proto3" json:"deletedAt,omitempty"`
	UpdatedAt   string  `protobuf:"bytes,17,opt,name=updatedAt,json=updated_at,proto3" json:"updatedAt,omitempty"`
	EffectiveAt string  `protobuf:"bytes,18,opt,name=effectiveAt,json=effective_at,proto3" json:"effectiveAt,omitempty"`
	EndAt       string  `protobuf:"bytes,19,opt,name=endAt,json=end_at,proto3" json:"endAt,omitempty"`
	SimType     string  `protobuf:"bytes,20,opt,name=simType,json=sim_type,proto3" json:"simType,omitempty"`
	Currency    string  `protobuf:"bytes,21,opt,name=currency,proto3" json:"currency,omitempty"`
	// contains filtered or unexported fields
}

func (*Rate) Descriptor deprecated

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

Deprecated: Use Rate.ProtoReflect.Descriptor instead.

func (*Rate) GetApn

func (x *Rate) GetApn() string

func (*Rate) GetCountry

func (x *Rate) GetCountry() string

func (*Rate) GetCreatedAt

func (x *Rate) GetCreatedAt() string

func (*Rate) GetCurrency

func (x *Rate) GetCurrency() string

func (*Rate) GetData

func (x *Rate) GetData() float64

func (*Rate) GetDeletedAt

func (x *Rate) GetDeletedAt() string

func (*Rate) GetEffectiveAt

func (x *Rate) GetEffectiveAt() string

func (*Rate) GetEndAt

func (x *Rate) GetEndAt() string

func (*Rate) GetImsi

func (x *Rate) GetImsi() int64

func (*Rate) GetLte

func (x *Rate) GetLte() bool

func (*Rate) GetLteM

func (x *Rate) GetLteM() bool

func (*Rate) GetProvider

func (x *Rate) GetProvider() string

func (*Rate) GetSimType

func (x *Rate) GetSimType() string

func (*Rate) GetSmsMo

func (x *Rate) GetSmsMo() float64

func (*Rate) GetSmsMt

func (x *Rate) GetSmsMt() float64

func (*Rate) GetUpdatedAt

func (x *Rate) GetUpdatedAt() string

func (*Rate) GetUuid

func (x *Rate) GetUuid() string

func (*Rate) GetVpmn

func (x *Rate) GetVpmn() string

func (*Rate) GetX2G

func (x *Rate) GetX2G() bool

func (*Rate) GetX3G

func (x *Rate) GetX3G() bool

func (*Rate) GetX5G

func (x *Rate) GetX5G() bool

func (*Rate) ProtoMessage

func (*Rate) ProtoMessage()

func (*Rate) ProtoReflect

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

func (*Rate) Reset

func (x *Rate) Reset()

func (*Rate) String

func (x *Rate) String() string

func (*Rate) Validate

func (this *Rate) Validate() error

type UnimplementedBaseRatesServiceServer

type UnimplementedBaseRatesServiceServer struct {
}

UnimplementedBaseRatesServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedBaseRatesServiceServer) GetBaseRatesByCountry

func (UnimplementedBaseRatesServiceServer) GetBaseRatesById

func (UnimplementedBaseRatesServiceServer) GetBaseRatesForPackage

func (UnimplementedBaseRatesServiceServer) GetBaseRatesForPeriod

func (UnimplementedBaseRatesServiceServer) GetBaseRatesHistoryByCountry

func (UnimplementedBaseRatesServiceServer) UploadBaseRates

type UnsafeBaseRatesServiceServer

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

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

type UploadBaseRatesRequest

type UploadBaseRatesRequest struct {
	FileURL     string `protobuf:"bytes,1,opt,name=fileURL,json=file_url,proto3" json:"fileURL,omitempty"`
	EffectiveAt string `protobuf:"bytes,2,opt,name=effectiveAt,json=effective_at,proto3" json:"effectiveAt,omitempty"`
	EndAt       string `protobuf:"bytes,3,opt,name=endAt,json=end_at,proto3" json:"endAt,omitempty"`
	SimType     string `protobuf:"bytes,4,opt,name=simType,json=sim_type,proto3" json:"simType,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadBaseRatesRequest) Descriptor deprecated

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

Deprecated: Use UploadBaseRatesRequest.ProtoReflect.Descriptor instead.

func (*UploadBaseRatesRequest) GetEffectiveAt

func (x *UploadBaseRatesRequest) GetEffectiveAt() string

func (*UploadBaseRatesRequest) GetEndAt

func (x *UploadBaseRatesRequest) GetEndAt() string

func (*UploadBaseRatesRequest) GetFileURL

func (x *UploadBaseRatesRequest) GetFileURL() string

func (*UploadBaseRatesRequest) GetSimType

func (x *UploadBaseRatesRequest) GetSimType() string

func (*UploadBaseRatesRequest) ProtoMessage

func (*UploadBaseRatesRequest) ProtoMessage()

func (*UploadBaseRatesRequest) ProtoReflect

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

func (*UploadBaseRatesRequest) Reset

func (x *UploadBaseRatesRequest) Reset()

func (*UploadBaseRatesRequest) String

func (x *UploadBaseRatesRequest) String() string

func (*UploadBaseRatesRequest) Validate

func (this *UploadBaseRatesRequest) Validate() error

type UploadBaseRatesResponse

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

func (*UploadBaseRatesResponse) Descriptor deprecated

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

Deprecated: Use UploadBaseRatesResponse.ProtoReflect.Descriptor instead.

func (*UploadBaseRatesResponse) GetRate

func (x *UploadBaseRatesResponse) GetRate() []*Rate

func (*UploadBaseRatesResponse) ProtoMessage

func (*UploadBaseRatesResponse) ProtoMessage()

func (*UploadBaseRatesResponse) ProtoReflect

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

func (*UploadBaseRatesResponse) Reset

func (x *UploadBaseRatesResponse) Reset()

func (*UploadBaseRatesResponse) String

func (x *UploadBaseRatesResponse) String() string

func (*UploadBaseRatesResponse) Validate

func (this *UploadBaseRatesResponse) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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