v0

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Code_name = map[int32]string{
		0: "CODE_UNSPECIFIED",
		1: "CODE_OK",
		2: "CODE_ABSENT_PROFILE",
		3: "CODE_ABSENT_SUBSCRIBER",
		4: "CODE_UNKNOWN_PROFILE",
		5: "CODE_BLOCKED_PROFILE",
		6: "CODE_ROAMING_NOT_ALLOWED",
	}
	Code_value = map[string]int32{
		"CODE_UNSPECIFIED":         0,
		"CODE_OK":                  1,
		"CODE_ABSENT_PROFILE":      2,
		"CODE_ABSENT_SUBSCRIBER":   3,
		"CODE_UNKNOWN_PROFILE":     4,
		"CODE_BLOCKED_PROFILE":     5,
		"CODE_ROAMING_NOT_ALLOWED": 6,
	}
)

Enum value maps for Code.

View Source
var File_wgtwo_subscription_v0_network_info_proto protoreflect.FileDescriptor
View Source
var NetworkInfoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wgtwo.subscription.v0.NetworkInfoService",
	HandlerType: (*NetworkInfoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetNetworkInfoForSubscriber",
			Handler:    _NetworkInfoService_GetNetworkInfoForSubscriber_Handler,
		},
		{
			MethodName: "GetAttachmentAttemptsForSubscriber",
			Handler:    _NetworkInfoService_GetAttachmentAttemptsForSubscriber_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "wgtwo/subscription/v0/network_info.proto",
}

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

Functions

func RegisterNetworkInfoServiceServer

func RegisterNetworkInfoServiceServer(s grpc.ServiceRegistrar, srv NetworkInfoServiceServer)

Types

type AttachmentAttempt

type AttachmentAttempt struct {
	Iccid             *v0.Iccid              `protobuf:"bytes,1,opt,name=iccid,proto3" json:"iccid,omitempty"`
	Imsi              *v0.Imsi               `protobuf:"bytes,2,opt,name=imsi,proto3" json:"imsi,omitempty"`
	Timestamp         *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	NetworkIdentity   *v0.NetworkIdentity    `protobuf:"bytes,4,opt,name=network_identity,json=networkIdentity,proto3" json:"network_identity,omitempty"`
	NetworkGeneration v0.NetworkGeneration   `` /* 152-byte string literal not displayed */
	// TADIG code, if present
	// May be empty
	Tadig  *v0.Tadig `protobuf:"bytes,6,opt,name=tadig,proto3" json:"tadig,omitempty"`
	Status *Status   `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*AttachmentAttempt) Descriptor deprecated

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

Deprecated: Use AttachmentAttempt.ProtoReflect.Descriptor instead.

func (*AttachmentAttempt) GetIccid

func (x *AttachmentAttempt) GetIccid() *v0.Iccid

func (*AttachmentAttempt) GetImsi

func (x *AttachmentAttempt) GetImsi() *v0.Imsi

func (*AttachmentAttempt) GetNetworkGeneration

func (x *AttachmentAttempt) GetNetworkGeneration() v0.NetworkGeneration

func (*AttachmentAttempt) GetNetworkIdentity

func (x *AttachmentAttempt) GetNetworkIdentity() *v0.NetworkIdentity

func (*AttachmentAttempt) GetStatus

func (x *AttachmentAttempt) GetStatus() *Status

func (*AttachmentAttempt) GetTadig

func (x *AttachmentAttempt) GetTadig() *v0.Tadig

func (*AttachmentAttempt) GetTimestamp

func (x *AttachmentAttempt) GetTimestamp() *timestamppb.Timestamp

func (*AttachmentAttempt) ProtoMessage

func (*AttachmentAttempt) ProtoMessage()

func (*AttachmentAttempt) ProtoReflect

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

func (*AttachmentAttempt) Reset

func (x *AttachmentAttempt) Reset()

func (*AttachmentAttempt) String

func (x *AttachmentAttempt) String() string

type Code

type Code int32
const (
	Code_CODE_UNSPECIFIED         Code = 0
	Code_CODE_OK                  Code = 1
	Code_CODE_ABSENT_PROFILE      Code = 2
	Code_CODE_ABSENT_SUBSCRIBER   Code = 3
	Code_CODE_UNKNOWN_PROFILE     Code = 4
	Code_CODE_BLOCKED_PROFILE     Code = 5
	Code_CODE_ROAMING_NOT_ALLOWED Code = 6
)

func (Code) Descriptor

func (Code) Descriptor() protoreflect.EnumDescriptor

func (Code) Enum

func (x Code) Enum() *Code

func (Code) EnumDescriptor deprecated

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

Deprecated: Use Code.Descriptor instead.

func (Code) Number

func (x Code) Number() protoreflect.EnumNumber

func (Code) String

func (x Code) String() string

func (Code) Type

func (Code) Type() protoreflect.EnumType

type GetAttachmentAttemptsForSubscriberRequest

type GetAttachmentAttemptsForSubscriberRequest struct {
	PhoneNumber      *v0.PhoneNumber `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	FilterByInterval *Interval       `protobuf:"bytes,2,opt,name=filter_by_interval,json=filterByInterval,proto3" json:"filter_by_interval,omitempty"`
	MaxAttempts      uint32          `protobuf:"varint,3,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAttachmentAttemptsForSubscriberRequest) Descriptor deprecated

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

Deprecated: Use GetAttachmentAttemptsForSubscriberRequest.ProtoReflect.Descriptor instead.

func (*GetAttachmentAttemptsForSubscriberRequest) GetFilterByInterval

func (x *GetAttachmentAttemptsForSubscriberRequest) GetFilterByInterval() *Interval

func (*GetAttachmentAttemptsForSubscriberRequest) GetMaxAttempts

func (*GetAttachmentAttemptsForSubscriberRequest) GetPhoneNumber

func (*GetAttachmentAttemptsForSubscriberRequest) ProtoMessage

func (*GetAttachmentAttemptsForSubscriberRequest) ProtoReflect

func (*GetAttachmentAttemptsForSubscriberRequest) Reset

func (*GetAttachmentAttemptsForSubscriberRequest) String

type GetAttachmentAttemptsForSubscriberResponse

type GetAttachmentAttemptsForSubscriberResponse struct {
	AttachmentAttempts []*AttachmentAttempt `protobuf:"bytes,1,rep,name=attachment_attempts,json=attachmentAttempts,proto3" json:"attachment_attempts,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAttachmentAttemptsForSubscriberResponse) Descriptor deprecated

Deprecated: Use GetAttachmentAttemptsForSubscriberResponse.ProtoReflect.Descriptor instead.

func (*GetAttachmentAttemptsForSubscriberResponse) GetAttachmentAttempts

func (x *GetAttachmentAttemptsForSubscriberResponse) GetAttachmentAttempts() []*AttachmentAttempt

func (*GetAttachmentAttemptsForSubscriberResponse) ProtoMessage

func (*GetAttachmentAttemptsForSubscriberResponse) ProtoReflect

func (*GetAttachmentAttemptsForSubscriberResponse) Reset

func (*GetAttachmentAttemptsForSubscriberResponse) String

type GetNetworkInfoForSubscriberRequest

type GetNetworkInfoForSubscriberRequest struct {
	PhoneNumber *v0.PhoneNumber `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNetworkInfoForSubscriberRequest) Descriptor deprecated

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

Deprecated: Use GetNetworkInfoForSubscriberRequest.ProtoReflect.Descriptor instead.

func (*GetNetworkInfoForSubscriberRequest) GetPhoneNumber

func (x *GetNetworkInfoForSubscriberRequest) GetPhoneNumber() *v0.PhoneNumber

func (*GetNetworkInfoForSubscriberRequest) ProtoMessage

func (*GetNetworkInfoForSubscriberRequest) ProtoMessage()

func (*GetNetworkInfoForSubscriberRequest) ProtoReflect

func (*GetNetworkInfoForSubscriberRequest) Reset

func (*GetNetworkInfoForSubscriberRequest) String

type GetNetworkInfoForSubscriberResponse

type GetNetworkInfoForSubscriberResponse struct {
	NetworkInfos []*NetworkInfo `protobuf:"bytes,1,rep,name=network_infos,json=networkInfos,proto3" json:"network_infos,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNetworkInfoForSubscriberResponse) Descriptor deprecated

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

Deprecated: Use GetNetworkInfoForSubscriberResponse.ProtoReflect.Descriptor instead.

func (*GetNetworkInfoForSubscriberResponse) GetNetworkInfos

func (x *GetNetworkInfoForSubscriberResponse) GetNetworkInfos() []*NetworkInfo

func (*GetNetworkInfoForSubscriberResponse) ProtoMessage

func (*GetNetworkInfoForSubscriberResponse) ProtoMessage()

func (*GetNetworkInfoForSubscriberResponse) ProtoReflect

func (*GetNetworkInfoForSubscriberResponse) Reset

func (*GetNetworkInfoForSubscriberResponse) String

type Interval

type Interval struct {
	After  *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=after,proto3" json:"after,omitempty"`
	Before *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=before,proto3" json:"before,omitempty"`
	// contains filtered or unexported fields
}

func (*Interval) Descriptor deprecated

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

Deprecated: Use Interval.ProtoReflect.Descriptor instead.

func (*Interval) GetAfter

func (x *Interval) GetAfter() *timestamppb.Timestamp

func (*Interval) GetBefore

func (x *Interval) GetBefore() *timestamppb.Timestamp

func (*Interval) ProtoMessage

func (*Interval) ProtoMessage()

func (*Interval) ProtoReflect

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

func (*Interval) Reset

func (x *Interval) Reset()

func (*Interval) String

func (x *Interval) String() string

type NetworkInfo

type NetworkInfo struct {
	Iccid             *v0.Iccid              `protobuf:"bytes,1,opt,name=iccid,proto3" json:"iccid,omitempty"`
	Imsi              *v0.Imsi               `protobuf:"bytes,2,opt,name=imsi,proto3" json:"imsi,omitempty"`
	Timestamp         *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	NetworkIdentity   *v0.NetworkIdentity    `protobuf:"bytes,4,opt,name=network_identity,json=networkIdentity,proto3" json:"network_identity,omitempty"`
	NetworkGeneration v0.NetworkGeneration   `` /* 152-byte string literal not displayed */
	// TADIG code, if present
	// May be empty
	Tadig *v0.Tadig `protobuf:"bytes,6,opt,name=tadig,proto3" json:"tadig,omitempty"`
	// MSC, if present
	// May be empty
	Msc *v0.GlobalTitle `protobuf:"bytes,7,opt,name=msc,proto3" json:"msc,omitempty"`
	// VLR, if present
	// May be empty
	Vlr *v0.GlobalTitle `protobuf:"bytes,8,opt,name=vlr,proto3" json:"vlr,omitempty"`
	// SGSN, if present
	// May be empty
	Sgsn *v0.GlobalTitle `protobuf:"bytes,9,opt,name=sgsn,proto3" json:"sgsn,omitempty"`
	// MME, if present
	// May be empty
	Mme *v0.Fqdn `protobuf:"bytes,10,opt,name=mme,proto3" json:"mme,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkInfo) Descriptor deprecated

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

Deprecated: Use NetworkInfo.ProtoReflect.Descriptor instead.

func (*NetworkInfo) GetIccid

func (x *NetworkInfo) GetIccid() *v0.Iccid

func (*NetworkInfo) GetImsi

func (x *NetworkInfo) GetImsi() *v0.Imsi

func (*NetworkInfo) GetMme

func (x *NetworkInfo) GetMme() *v0.Fqdn

func (*NetworkInfo) GetMsc

func (x *NetworkInfo) GetMsc() *v0.GlobalTitle

func (*NetworkInfo) GetNetworkGeneration

func (x *NetworkInfo) GetNetworkGeneration() v0.NetworkGeneration

func (*NetworkInfo) GetNetworkIdentity

func (x *NetworkInfo) GetNetworkIdentity() *v0.NetworkIdentity

func (*NetworkInfo) GetSgsn

func (x *NetworkInfo) GetSgsn() *v0.GlobalTitle

func (*NetworkInfo) GetTadig

func (x *NetworkInfo) GetTadig() *v0.Tadig

func (*NetworkInfo) GetTimestamp

func (x *NetworkInfo) GetTimestamp() *timestamppb.Timestamp

func (*NetworkInfo) GetVlr

func (x *NetworkInfo) GetVlr() *v0.GlobalTitle

func (*NetworkInfo) ProtoMessage

func (*NetworkInfo) ProtoMessage()

func (*NetworkInfo) ProtoReflect

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

func (*NetworkInfo) Reset

func (x *NetworkInfo) Reset()

func (*NetworkInfo) String

func (x *NetworkInfo) String() string

type NetworkInfoServiceClient

type NetworkInfoServiceClient interface {
	// Get current network information for subscriber
	GetNetworkInfoForSubscriber(ctx context.Context, in *GetNetworkInfoForSubscriberRequest, opts ...grpc.CallOption) (*GetNetworkInfoForSubscriberResponse, error)
	// Get attachment attempts, both failed and successful, for subscriber
	GetAttachmentAttemptsForSubscriber(ctx context.Context, in *GetAttachmentAttemptsForSubscriberRequest, opts ...grpc.CallOption) (*GetAttachmentAttemptsForSubscriberResponse, error)
}

NetworkInfoServiceClient is the client API for NetworkInfoService 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 NetworkInfoServiceServer

type NetworkInfoServiceServer interface {
	// Get current network information for subscriber
	GetNetworkInfoForSubscriber(context.Context, *GetNetworkInfoForSubscriberRequest) (*GetNetworkInfoForSubscriberResponse, error)
	// Get attachment attempts, both failed and successful, for subscriber
	GetAttachmentAttemptsForSubscriber(context.Context, *GetAttachmentAttemptsForSubscriberRequest) (*GetAttachmentAttemptsForSubscriberResponse, error)
}

NetworkInfoServiceServer is the server API for NetworkInfoService service. All implementations should embed UnimplementedNetworkInfoServiceServer for forward compatibility

type Status

type Status struct {
	Code        Code   `protobuf:"varint,1,opt,name=code,proto3,enum=wgtwo.subscription.v0.Code" json:"code,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*Status) Descriptor deprecated

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

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetCode

func (x *Status) GetCode() Code

func (*Status) GetDescription

func (x *Status) GetDescription() string

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

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

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

type UnimplementedNetworkInfoServiceServer

type UnimplementedNetworkInfoServiceServer struct {
}

UnimplementedNetworkInfoServiceServer should be embedded to have forward compatible implementations.

type UnsafeNetworkInfoServiceServer

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

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

Jump to

Keyboard shortcuts

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