gen

package
v0.0.0-...-984bda2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MPL-2.0 Imports: 15 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_network_proto protoreflect.FileDescriptor
View Source
var NetworkService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ukama.registry.network.v1.NetworkService",
	HandlerType: (*NetworkServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Add",
			Handler:    _NetworkService_Add_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _NetworkService_Get_Handler,
		},
		{
			MethodName: "GetDefault",
			Handler:    _NetworkService_GetDefault_Handler,
		},
		{
			MethodName: "GetByName",
			Handler:    _NetworkService_GetByName_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _NetworkService_Delete_Handler,
		},
		{
			MethodName: "GetAll",
			Handler:    _NetworkService_GetAll_Handler,
		},
		{
			MethodName: "SetDefault",
			Handler:    _NetworkService_SetDefault_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "network.proto",
}

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

Functions

func RegisterNetworkServiceServer

func RegisterNetworkServiceServer(s grpc.ServiceRegistrar, srv NetworkServiceServer)

Types

type AddRequest

type AddRequest struct {
	Name             string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	AllowedCountries []string `protobuf:"bytes,3,rep,name=allowedCountries,json=allowed_countries,proto3" json:"allowedCountries,omitempty"`
	AllowedNetworks  []string `protobuf:"bytes,4,rep,name=allowedNetworks,json=allowed_networks,proto3" json:"allowedNetworks,omitempty"`
	Budget           float64  `protobuf:"fixed64,5,opt,name=budget,proto3" json:"budget,omitempty"`
	Overdraft        float64  `protobuf:"fixed64,6,opt,name=overdraft,proto3" json:"overdraft,omitempty"`
	TrafficPolicy    uint32   `protobuf:"varint,7,opt,name=trafficPolicy,json=traffic_policy,proto3" json:"trafficPolicy,omitempty"`
	PaymentLinks     bool     `protobuf:"varint,8,opt,name=paymentLinks,json=payment_links,proto3" json:"paymentLinks,omitempty"`
	// contains filtered or unexported fields
}

func (*AddRequest) Descriptor deprecated

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

Deprecated: Use AddRequest.ProtoReflect.Descriptor instead.

func (*AddRequest) GetAllowedCountries

func (x *AddRequest) GetAllowedCountries() []string

func (*AddRequest) GetAllowedNetworks

func (x *AddRequest) GetAllowedNetworks() []string

func (*AddRequest) GetBudget

func (x *AddRequest) GetBudget() float64

func (*AddRequest) GetName

func (x *AddRequest) GetName() string

func (*AddRequest) GetOverdraft

func (x *AddRequest) GetOverdraft() float64
func (x *AddRequest) GetPaymentLinks() bool

func (*AddRequest) GetTrafficPolicy

func (x *AddRequest) GetTrafficPolicy() uint32

func (*AddRequest) ProtoMessage

func (*AddRequest) ProtoMessage()

func (*AddRequest) ProtoReflect

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

func (*AddRequest) Reset

func (x *AddRequest) Reset()

func (*AddRequest) String

func (x *AddRequest) String() string

func (*AddRequest) Validate

func (this *AddRequest) Validate() error

type AddResponse

type AddResponse struct {
	Network *Network `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	// contains filtered or unexported fields
}

func (*AddResponse) Descriptor deprecated

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

Deprecated: Use AddResponse.ProtoReflect.Descriptor instead.

func (*AddResponse) GetNetwork

func (x *AddResponse) GetNetwork() *Network

func (*AddResponse) ProtoMessage

func (*AddResponse) ProtoMessage()

func (*AddResponse) ProtoReflect

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

func (*AddResponse) Reset

func (x *AddResponse) Reset()

func (*AddResponse) String

func (x *AddResponse) String() string

func (*AddResponse) Validate

func (this *AddResponse) Validate() error

type DeleteRequest

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

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetNetworkId

func (x *DeleteRequest) GetNetworkId() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

func (*DeleteRequest) Validate

func (this *DeleteRequest) Validate() error

type DeleteResponse

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

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

func (*DeleteResponse) Validate

func (this *DeleteResponse) Validate() error

type GetByNameRequest

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

func (*GetByNameRequest) Descriptor deprecated

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

Deprecated: Use GetByNameRequest.ProtoReflect.Descriptor instead.

func (*GetByNameRequest) GetName

func (x *GetByNameRequest) GetName() string

func (*GetByNameRequest) ProtoMessage

func (*GetByNameRequest) ProtoMessage()

func (*GetByNameRequest) ProtoReflect

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

func (*GetByNameRequest) Reset

func (x *GetByNameRequest) Reset()

func (*GetByNameRequest) String

func (x *GetByNameRequest) String() string

func (*GetByNameRequest) Validate

func (this *GetByNameRequest) Validate() error

type GetByNameResponse

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

func (*GetByNameResponse) Descriptor deprecated

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

Deprecated: Use GetByNameResponse.ProtoReflect.Descriptor instead.

func (*GetByNameResponse) GetNetwork

func (x *GetByNameResponse) GetNetwork() *Network

func (*GetByNameResponse) ProtoMessage

func (*GetByNameResponse) ProtoMessage()

func (*GetByNameResponse) ProtoReflect

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

func (*GetByNameResponse) Reset

func (x *GetByNameResponse) Reset()

func (*GetByNameResponse) String

func (x *GetByNameResponse) String() string

func (*GetByNameResponse) Validate

func (this *GetByNameResponse) Validate() error

type GetDefaultRequest

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

func (*GetDefaultRequest) Descriptor deprecated

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

Deprecated: Use GetDefaultRequest.ProtoReflect.Descriptor instead.

func (*GetDefaultRequest) ProtoMessage

func (*GetDefaultRequest) ProtoMessage()

func (*GetDefaultRequest) ProtoReflect

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

func (*GetDefaultRequest) Reset

func (x *GetDefaultRequest) Reset()

func (*GetDefaultRequest) String

func (x *GetDefaultRequest) String() string

func (*GetDefaultRequest) Validate

func (this *GetDefaultRequest) Validate() error

type GetDefaultResponse

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

func (*GetDefaultResponse) Descriptor deprecated

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

Deprecated: Use GetDefaultResponse.ProtoReflect.Descriptor instead.

func (*GetDefaultResponse) GetNetwork

func (x *GetDefaultResponse) GetNetwork() *Network

func (*GetDefaultResponse) ProtoMessage

func (*GetDefaultResponse) ProtoMessage()

func (*GetDefaultResponse) ProtoReflect

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

func (*GetDefaultResponse) Reset

func (x *GetDefaultResponse) Reset()

func (*GetDefaultResponse) String

func (x *GetDefaultResponse) String() string

func (*GetDefaultResponse) Validate

func (this *GetDefaultResponse) Validate() error

type GetNetworksRequest

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

func (*GetNetworksRequest) Descriptor deprecated

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

Deprecated: Use GetNetworksRequest.ProtoReflect.Descriptor instead.

func (*GetNetworksRequest) ProtoMessage

func (*GetNetworksRequest) ProtoMessage()

func (*GetNetworksRequest) ProtoReflect

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

func (*GetNetworksRequest) Reset

func (x *GetNetworksRequest) Reset()

func (*GetNetworksRequest) String

func (x *GetNetworksRequest) String() string

func (*GetNetworksRequest) Validate

func (this *GetNetworksRequest) Validate() error

type GetNetworksResponse

type GetNetworksResponse struct {
	Networks []*Network `protobuf:"bytes,2,rep,name=networks,proto3" json:"networks,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNetworksResponse) Descriptor deprecated

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

Deprecated: Use GetNetworksResponse.ProtoReflect.Descriptor instead.

func (*GetNetworksResponse) GetNetworks

func (x *GetNetworksResponse) GetNetworks() []*Network

func (*GetNetworksResponse) ProtoMessage

func (*GetNetworksResponse) ProtoMessage()

func (*GetNetworksResponse) ProtoReflect

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

func (*GetNetworksResponse) Reset

func (x *GetNetworksResponse) Reset()

func (*GetNetworksResponse) String

func (x *GetNetworksResponse) String() string

func (*GetNetworksResponse) Validate

func (this *GetNetworksResponse) Validate() error

type GetRequest

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

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetNetworkId

func (x *GetRequest) GetNetworkId() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

func (*GetRequest) Validate

func (this *GetRequest) Validate() error

type GetResponse

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

func (*GetResponse) Descriptor deprecated

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

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetNetwork

func (x *GetResponse) GetNetwork() *Network

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect

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

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) String

func (x *GetResponse) String() string

func (*GetResponse) Validate

func (this *GetResponse) Validate() error

type Network

type Network 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"`
	AllowedCountries []string               `protobuf:"bytes,4,rep,name=allowedCountries,json=allowed_countries,proto3" json:"allowedCountries,omitempty"`
	AllowedNetworks  []string               `protobuf:"bytes,5,rep,name=allowedNetworks,json=allowed_networks,proto3" json:"allowedNetworks,omitempty"`
	Budget           float64                `protobuf:"fixed64,6,opt,name=budget,proto3" json:"budget,omitempty"`
	Overdraft        float64                `protobuf:"fixed64,7,opt,name=overdraft,proto3" json:"overdraft,omitempty"`
	TrafficPolicy    uint32                 `protobuf:"varint,8,opt,name=trafficPolicy,json=traffic_policy,proto3" json:"trafficPolicy,omitempty"`
	IsDeactivated    bool                   `protobuf:"varint,9,opt,name=isDeactivated,json=is_deactivated,proto3" json:"isDeactivated,omitempty"`
	PaymentLinks     bool                   `protobuf:"varint,10,opt,name=paymentLinks,json=payment_links,proto3" json:"paymentLinks,omitempty"`
	IsDefault        bool                   `protobuf:"varint,11,opt,name=isDefault,json=is_default,proto3" json:"isDefault,omitempty"`
	CreatedAt        *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=createdAt,json=created_at,proto3" json:"createdAt,omitempty"`
	SyncStatus       string                 `protobuf:"bytes,13,opt,name=syncStatus,json=sync_status,proto3" json:"syncStatus,omitempty"`
	// contains filtered or unexported fields
}

func (*Network) Descriptor deprecated

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

Deprecated: Use Network.ProtoReflect.Descriptor instead.

func (*Network) GetAllowedCountries

func (x *Network) GetAllowedCountries() []string

func (*Network) GetAllowedNetworks

func (x *Network) GetAllowedNetworks() []string

func (*Network) GetBudget

func (x *Network) GetBudget() float64

func (*Network) GetCreatedAt

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

func (*Network) GetId

func (x *Network) GetId() string

func (*Network) GetIsDeactivated

func (x *Network) GetIsDeactivated() bool

func (*Network) GetIsDefault

func (x *Network) GetIsDefault() bool

func (*Network) GetName

func (x *Network) GetName() string

func (*Network) GetOverdraft

func (x *Network) GetOverdraft() float64
func (x *Network) GetPaymentLinks() bool

func (*Network) GetSyncStatus

func (x *Network) GetSyncStatus() string

func (*Network) GetTrafficPolicy

func (x *Network) GetTrafficPolicy() uint32

func (*Network) ProtoMessage

func (*Network) ProtoMessage()

func (*Network) ProtoReflect

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

func (*Network) Reset

func (x *Network) Reset()

func (*Network) String

func (x *Network) String() string

func (*Network) Validate

func (this *Network) Validate() error

type NetworkServiceClient

type NetworkServiceClient interface {
	// Networks
	Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error)
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	GetDefault(ctx context.Context, in *GetDefaultRequest, opts ...grpc.CallOption) (*GetDefaultResponse, error)
	GetByName(ctx context.Context, in *GetByNameRequest, opts ...grpc.CallOption) (*GetByNameResponse, error)
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
	GetAll(ctx context.Context, in *GetNetworksRequest, opts ...grpc.CallOption) (*GetNetworksResponse, error)
	SetDefault(ctx context.Context, in *SetDefaultRequest, opts ...grpc.CallOption) (*SetDefaultResponse, error)
}

NetworkServiceClient is the client API for NetworkService 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 NetworkServiceServer

type NetworkServiceServer interface {
	// Networks
	Add(context.Context, *AddRequest) (*AddResponse, error)
	Get(context.Context, *GetRequest) (*GetResponse, error)
	GetDefault(context.Context, *GetDefaultRequest) (*GetDefaultResponse, error)
	GetByName(context.Context, *GetByNameRequest) (*GetByNameResponse, error)
	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
	GetAll(context.Context, *GetNetworksRequest) (*GetNetworksResponse, error)
	SetDefault(context.Context, *SetDefaultRequest) (*SetDefaultResponse, error)
	// contains filtered or unexported methods
}

NetworkServiceServer is the server API for NetworkService service. All implementations must embed UnimplementedNetworkServiceServer for forward compatibility

type SetDefaultRequest

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

func (*SetDefaultRequest) Descriptor deprecated

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

Deprecated: Use SetDefaultRequest.ProtoReflect.Descriptor instead.

func (*SetDefaultRequest) GetNetworkId

func (x *SetDefaultRequest) GetNetworkId() string

func (*SetDefaultRequest) ProtoMessage

func (*SetDefaultRequest) ProtoMessage()

func (*SetDefaultRequest) ProtoReflect

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

func (*SetDefaultRequest) Reset

func (x *SetDefaultRequest) Reset()

func (*SetDefaultRequest) String

func (x *SetDefaultRequest) String() string

func (*SetDefaultRequest) Validate

func (this *SetDefaultRequest) Validate() error

type SetDefaultResponse

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

func (*SetDefaultResponse) Descriptor deprecated

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

Deprecated: Use SetDefaultResponse.ProtoReflect.Descriptor instead.

func (*SetDefaultResponse) ProtoMessage

func (*SetDefaultResponse) ProtoMessage()

func (*SetDefaultResponse) ProtoReflect

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

func (*SetDefaultResponse) Reset

func (x *SetDefaultResponse) Reset()

func (*SetDefaultResponse) String

func (x *SetDefaultResponse) String() string

func (*SetDefaultResponse) Validate

func (this *SetDefaultResponse) Validate() error

type UnimplementedNetworkServiceServer

type UnimplementedNetworkServiceServer struct {
}

UnimplementedNetworkServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNetworkServiceServer) Add

func (UnimplementedNetworkServiceServer) Delete

func (UnimplementedNetworkServiceServer) Get

func (UnimplementedNetworkServiceServer) GetAll

func (UnimplementedNetworkServiceServer) GetByName

func (UnimplementedNetworkServiceServer) GetDefault

func (UnimplementedNetworkServiceServer) SetDefault

type UnsafeNetworkServiceServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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