v0

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NumberPortabilityService_CreatePortingRecords_FullMethodName = "/wgtwo.number_portability.v0.NumberPortabilityService/CreatePortingRecords"
	NumberPortabilityService_ListPortingRecords_FullMethodName   = "/wgtwo.number_portability.v0.NumberPortabilityService/ListPortingRecords"
)

Variables

View Source
var File_wgtwo_number_portability_v0_number_portability_proto protoreflect.FileDescriptor
View Source
var NumberPortabilityService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wgtwo.number_portability.v0.NumberPortabilityService",
	HandlerType: (*NumberPortabilityServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreatePortingRecords",
			Handler:    _NumberPortabilityService_CreatePortingRecords_Handler,
		},
		{
			MethodName: "ListPortingRecords",
			Handler:    _NumberPortabilityService_ListPortingRecords_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "wgtwo/number_portability/v0/number_portability.proto",
}

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

Functions

func RegisterNumberPortabilityServiceServer

func RegisterNumberPortabilityServiceServer(s grpc.ServiceRegistrar, srv NumberPortabilityServiceServer)

Types

type CreatePortingRecordsRequest

type CreatePortingRecordsRequest struct {
	Records []*PortingRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePortingRecordsRequest) Descriptor deprecated

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

Deprecated: Use CreatePortingRecordsRequest.ProtoReflect.Descriptor instead.

func (*CreatePortingRecordsRequest) GetRecords

func (x *CreatePortingRecordsRequest) GetRecords() []*PortingRecord

func (*CreatePortingRecordsRequest) ProtoMessage

func (*CreatePortingRecordsRequest) ProtoMessage()

func (*CreatePortingRecordsRequest) ProtoReflect

func (*CreatePortingRecordsRequest) Reset

func (x *CreatePortingRecordsRequest) Reset()

func (*CreatePortingRecordsRequest) String

func (x *CreatePortingRecordsRequest) String() string

type CreatePortingRecordsResponse

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

func (*CreatePortingRecordsResponse) Descriptor deprecated

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

Deprecated: Use CreatePortingRecordsResponse.ProtoReflect.Descriptor instead.

func (*CreatePortingRecordsResponse) ProtoMessage

func (*CreatePortingRecordsResponse) ProtoMessage()

func (*CreatePortingRecordsResponse) ProtoReflect

func (*CreatePortingRecordsResponse) Reset

func (x *CreatePortingRecordsResponse) Reset()

func (*CreatePortingRecordsResponse) String

type ListPortingRecordsRequest

type ListPortingRecordsRequest struct {
	OperatorCode           *string                `protobuf:"bytes,1,opt,name=operator_code,json=operatorCode,proto3,oneof" json:"operator_code,omitempty"`
	SubscriberNumberPrefix *string                `` /* 135-byte string literal not displayed */
	ValidFrom              *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=valid_from,json=validFrom,proto3,oneof" json:"valid_from,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPortingRecordsRequest) Descriptor deprecated

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

Deprecated: Use ListPortingRecordsRequest.ProtoReflect.Descriptor instead.

func (*ListPortingRecordsRequest) GetOperatorCode

func (x *ListPortingRecordsRequest) GetOperatorCode() string

func (*ListPortingRecordsRequest) GetSubscriberNumberPrefix

func (x *ListPortingRecordsRequest) GetSubscriberNumberPrefix() string

func (*ListPortingRecordsRequest) GetValidFrom

func (x *ListPortingRecordsRequest) GetValidFrom() *timestamppb.Timestamp

func (*ListPortingRecordsRequest) ProtoMessage

func (*ListPortingRecordsRequest) ProtoMessage()

func (*ListPortingRecordsRequest) ProtoReflect

func (*ListPortingRecordsRequest) Reset

func (x *ListPortingRecordsRequest) Reset()

func (*ListPortingRecordsRequest) String

func (x *ListPortingRecordsRequest) String() string

type ListPortingRecordsResponse

type ListPortingRecordsResponse struct {
	Records []*PortingRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPortingRecordsResponse) Descriptor deprecated

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

Deprecated: Use ListPortingRecordsResponse.ProtoReflect.Descriptor instead.

func (*ListPortingRecordsResponse) GetRecords

func (x *ListPortingRecordsResponse) GetRecords() []*PortingRecord

func (*ListPortingRecordsResponse) ProtoMessage

func (*ListPortingRecordsResponse) ProtoMessage()

func (*ListPortingRecordsResponse) ProtoReflect

func (*ListPortingRecordsResponse) Reset

func (x *ListPortingRecordsResponse) Reset()

func (*ListPortingRecordsResponse) String

func (x *ListPortingRecordsResponse) String() string

type NumberPortabilityServiceClient

type NumberPortabilityServiceClient interface {
	CreatePortingRecords(ctx context.Context, in *CreatePortingRecordsRequest, opts ...grpc.CallOption) (*CreatePortingRecordsResponse, error)
	ListPortingRecords(ctx context.Context, in *ListPortingRecordsRequest, opts ...grpc.CallOption) (*ListPortingRecordsResponse, error)
}

NumberPortabilityServiceClient is the client API for NumberPortabilityService 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 NumberPortabilityServiceServer

type NumberPortabilityServiceServer interface {
	CreatePortingRecords(context.Context, *CreatePortingRecordsRequest) (*CreatePortingRecordsResponse, error)
	ListPortingRecords(context.Context, *ListPortingRecordsRequest) (*ListPortingRecordsResponse, error)
}

NumberPortabilityServiceServer is the server API for NumberPortabilityService service. All implementations should embed UnimplementedNumberPortabilityServiceServer for forward compatibility

type PortingRecord

type PortingRecord struct {

	// Subscriber number with a country code.
	SubscriberNumber *v1.E164 `protobuf:"bytes,1,opt,name=subscriber_number,json=subscriberNumber,proto3" json:"subscriber_number,omitempty"`
	// A new operator's code (in Sweden this is SPID allocated by SNPAC).
	OperatorCode string `protobuf:"bytes,2,opt,name=operator_code,json=operatorCode,proto3" json:"operator_code,omitempty"`
	// Routing code of the new operator, used at least in Sweden.
	RoutingCode string `protobuf:"bytes,3,opt,name=routing_code,json=routingCode,proto3" json:"routing_code,omitempty"`
	// Porting date and time.
	ValidFrom *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=valid_from,json=validFrom,proto3" json:"valid_from,omitempty"`
	// May be used to store tenant-specific data.
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PortingRecord) Descriptor deprecated

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

Deprecated: Use PortingRecord.ProtoReflect.Descriptor instead.

func (*PortingRecord) GetMetadata

func (x *PortingRecord) GetMetadata() map[string]string

func (*PortingRecord) GetOperatorCode

func (x *PortingRecord) GetOperatorCode() string

func (*PortingRecord) GetRoutingCode

func (x *PortingRecord) GetRoutingCode() string

func (*PortingRecord) GetSubscriberNumber

func (x *PortingRecord) GetSubscriberNumber() *v1.E164

func (*PortingRecord) GetValidFrom

func (x *PortingRecord) GetValidFrom() *timestamppb.Timestamp

func (*PortingRecord) ProtoMessage

func (*PortingRecord) ProtoMessage()

func (*PortingRecord) ProtoReflect

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

func (*PortingRecord) Reset

func (x *PortingRecord) Reset()

func (*PortingRecord) String

func (x *PortingRecord) String() string

type UnimplementedNumberPortabilityServiceServer

type UnimplementedNumberPortabilityServiceServer struct {
}

UnimplementedNumberPortabilityServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedNumberPortabilityServiceServer) CreatePortingRecords

func (UnimplementedNumberPortabilityServiceServer) ListPortingRecords

type UnsafeNumberPortabilityServiceServer

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

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

Jump to

Keyboard shortcuts

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