v1

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NumberPortabilityService_CreatePortingRecords_FullMethodName = "/wgtwo.number_portability.v1.NumberPortabilityService/CreatePortingRecords"
	NumberPortabilityService_ListPortingRecords_FullMethodName   = "/wgtwo.number_portability.v1.NumberPortabilityService/ListPortingRecords"
)
View Source
const (
	RoutingDestinationService_CreateOrUpdateDestination_FullMethodName = "/wgtwo.number_portability.v1.RoutingDestinationService/CreateOrUpdateDestination"
	RoutingDestinationService_DeleteDestination_FullMethodName         = "/wgtwo.number_portability.v1.RoutingDestinationService/DeleteDestination"
	RoutingDestinationService_ListDestinations_FullMethodName          = "/wgtwo.number_portability.v1.RoutingDestinationService/ListDestinations"
)
View Source
const (
	NumberBlockService_CreateOrUpdateNumberBlock_FullMethodName = "/wgtwo.number_portability.v1.NumberBlockService/CreateOrUpdateNumberBlock"
	NumberBlockService_DeleteNumberBlock_FullMethodName         = "/wgtwo.number_portability.v1.NumberBlockService/DeleteNumberBlock"
	NumberBlockService_ListNumberBlocks_FullMethodName          = "/wgtwo.number_portability.v1.NumberBlockService/ListNumberBlocks"
)

Variables

View Source
var (
	NumberBlockStatus_name = map[int32]string{
		0: "UNKNOWN_UNSPECIFIED",
		1: "R_RESERVED",
		2: "A_ALLOCATED",
		3: "F_FREE",
		4: "RC_RESERVED",
		5: "T_RESERVED_UNDER_TESTING",
		6: "U_UNAVAILABLE",
		7: "B_BLOCKED",
	}
	NumberBlockStatus_value = map[string]int32{
		"UNKNOWN_UNSPECIFIED":      0,
		"R_RESERVED":               1,
		"A_ALLOCATED":              2,
		"F_FREE":                   3,
		"RC_RESERVED":              4,
		"T_RESERVED_UNDER_TESTING": 5,
		"U_UNAVAILABLE":            6,
		"B_BLOCKED":                7,
	}
)

Enum value maps for NumberBlockStatus.

View Source
var File_wgtwo_number_portability_v1_number_portability_proto protoreflect.FileDescriptor
View Source
var NumberBlockService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wgtwo.number_portability.v1.NumberBlockService",
	HandlerType: (*NumberBlockServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateOrUpdateNumberBlock",
			Handler:    _NumberBlockService_CreateOrUpdateNumberBlock_Handler,
		},
		{
			MethodName: "DeleteNumberBlock",
			Handler:    _NumberBlockService_DeleteNumberBlock_Handler,
		},
		{
			MethodName: "ListNumberBlocks",
			Handler:    _NumberBlockService_ListNumberBlocks_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "wgtwo/number_portability/v1/number_portability.proto",
}

NumberBlockService_ServiceDesc is the grpc.ServiceDesc for NumberBlockService 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 NumberPortabilityService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wgtwo.number_portability.v1.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/v1/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)

View Source
var RoutingDestinationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wgtwo.number_portability.v1.RoutingDestinationService",
	HandlerType: (*RoutingDestinationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateOrUpdateDestination",
			Handler:    _RoutingDestinationService_CreateOrUpdateDestination_Handler,
		},
		{
			MethodName: "DeleteDestination",
			Handler:    _RoutingDestinationService_DeleteDestination_Handler,
		},
		{
			MethodName: "ListDestinations",
			Handler:    _RoutingDestinationService_ListDestinations_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "wgtwo/number_portability/v1/number_portability.proto",
}

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

Functions

func RegisterNumberBlockServiceServer

func RegisterNumberBlockServiceServer(s grpc.ServiceRegistrar, srv NumberBlockServiceServer)

func RegisterNumberPortabilityServiceServer

func RegisterNumberPortabilityServiceServer(s grpc.ServiceRegistrar, srv NumberPortabilityServiceServer)

func RegisterRoutingDestinationServiceServer

func RegisterRoutingDestinationServiceServer(s grpc.ServiceRegistrar, srv RoutingDestinationServiceServer)

Types

type CreateOrUpdateDestinationRequest

type CreateOrUpdateDestinationRequest struct {
	Destination *RoutingDestination `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrUpdateDestinationRequest) Descriptor deprecated

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

Deprecated: Use CreateOrUpdateDestinationRequest.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateDestinationRequest) GetDestination

func (*CreateOrUpdateDestinationRequest) ProtoMessage

func (*CreateOrUpdateDestinationRequest) ProtoMessage()

func (*CreateOrUpdateDestinationRequest) ProtoReflect

func (*CreateOrUpdateDestinationRequest) Reset

func (*CreateOrUpdateDestinationRequest) String

type CreateOrUpdateDestinationResponse

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

func (*CreateOrUpdateDestinationResponse) Descriptor deprecated

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

Deprecated: Use CreateOrUpdateDestinationResponse.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateDestinationResponse) GetDestinationId

func (x *CreateOrUpdateDestinationResponse) GetDestinationId() string

func (*CreateOrUpdateDestinationResponse) ProtoMessage

func (*CreateOrUpdateDestinationResponse) ProtoMessage()

func (*CreateOrUpdateDestinationResponse) ProtoReflect

func (*CreateOrUpdateDestinationResponse) Reset

func (*CreateOrUpdateDestinationResponse) String

type CreateOrUpdateNumberBlockRequest

type CreateOrUpdateNumberBlockRequest struct {
	Block *NumberBlock `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrUpdateNumberBlockRequest) Descriptor deprecated

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

Deprecated: Use CreateOrUpdateNumberBlockRequest.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateNumberBlockRequest) GetBlock

func (*CreateOrUpdateNumberBlockRequest) ProtoMessage

func (*CreateOrUpdateNumberBlockRequest) ProtoMessage()

func (*CreateOrUpdateNumberBlockRequest) ProtoReflect

func (*CreateOrUpdateNumberBlockRequest) Reset

func (*CreateOrUpdateNumberBlockRequest) String

type CreateOrUpdateNumberBlockResponse

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

func (*CreateOrUpdateNumberBlockResponse) Descriptor deprecated

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

Deprecated: Use CreateOrUpdateNumberBlockResponse.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateNumberBlockResponse) ProtoMessage

func (*CreateOrUpdateNumberBlockResponse) ProtoMessage()

func (*CreateOrUpdateNumberBlockResponse) ProtoReflect

func (*CreateOrUpdateNumberBlockResponse) Reset

func (*CreateOrUpdateNumberBlockResponse) String

type CreatePortingRecordsRequest

type CreatePortingRecordsRequest struct {

	// Porting records to be created.
	Records []*PortingRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	// contains filtered or unexported fields
}

Request message to create porting records.

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
}

Response message for create porting records.

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 DeleteDestinationRequest

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

func (*DeleteDestinationRequest) Descriptor deprecated

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

Deprecated: Use DeleteDestinationRequest.ProtoReflect.Descriptor instead.

func (*DeleteDestinationRequest) GetDestinationId

func (x *DeleteDestinationRequest) GetDestinationId() string

func (*DeleteDestinationRequest) ProtoMessage

func (*DeleteDestinationRequest) ProtoMessage()

func (*DeleteDestinationRequest) ProtoReflect

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

func (*DeleteDestinationRequest) Reset

func (x *DeleteDestinationRequest) Reset()

func (*DeleteDestinationRequest) String

func (x *DeleteDestinationRequest) String() string

type DeleteDestinationResponse

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

func (*DeleteDestinationResponse) Descriptor deprecated

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

Deprecated: Use DeleteDestinationResponse.ProtoReflect.Descriptor instead.

func (*DeleteDestinationResponse) ProtoMessage

func (*DeleteDestinationResponse) ProtoMessage()

func (*DeleteDestinationResponse) ProtoReflect

func (*DeleteDestinationResponse) Reset

func (x *DeleteDestinationResponse) Reset()

func (*DeleteDestinationResponse) String

func (x *DeleteDestinationResponse) String() string

type DeleteNumberBlockRequest

type DeleteNumberBlockRequest struct {
	DestinationId string `protobuf:"bytes,1,opt,name=destination_id,json=destinationId,proto3" json:"destination_id,omitempty"`
	Prefix        string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteNumberBlockRequest) Descriptor deprecated

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

Deprecated: Use DeleteNumberBlockRequest.ProtoReflect.Descriptor instead.

func (*DeleteNumberBlockRequest) GetDestinationId

func (x *DeleteNumberBlockRequest) GetDestinationId() string

func (*DeleteNumberBlockRequest) GetPrefix

func (x *DeleteNumberBlockRequest) GetPrefix() string

func (*DeleteNumberBlockRequest) ProtoMessage

func (*DeleteNumberBlockRequest) ProtoMessage()

func (*DeleteNumberBlockRequest) ProtoReflect

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

func (*DeleteNumberBlockRequest) Reset

func (x *DeleteNumberBlockRequest) Reset()

func (*DeleteNumberBlockRequest) String

func (x *DeleteNumberBlockRequest) String() string

type DeleteNumberBlockResponse

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

func (*DeleteNumberBlockResponse) Descriptor deprecated

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

Deprecated: Use DeleteNumberBlockResponse.ProtoReflect.Descriptor instead.

func (*DeleteNumberBlockResponse) ProtoMessage

func (*DeleteNumberBlockResponse) ProtoMessage()

func (*DeleteNumberBlockResponse) ProtoReflect

func (*DeleteNumberBlockResponse) Reset

func (x *DeleteNumberBlockResponse) Reset()

func (*DeleteNumberBlockResponse) String

func (x *DeleteNumberBlockResponse) String() string

type ListDestinationsRequest

type ListDestinationsRequest struct {
	DestinationId *string `protobuf:"bytes,1,opt,name=destination_id,json=destinationId,proto3,oneof" json:"destination_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDestinationsRequest) Descriptor deprecated

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

Deprecated: Use ListDestinationsRequest.ProtoReflect.Descriptor instead.

func (*ListDestinationsRequest) GetDestinationId

func (x *ListDestinationsRequest) GetDestinationId() string

func (*ListDestinationsRequest) ProtoMessage

func (*ListDestinationsRequest) ProtoMessage()

func (*ListDestinationsRequest) ProtoReflect

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

func (*ListDestinationsRequest) Reset

func (x *ListDestinationsRequest) Reset()

func (*ListDestinationsRequest) String

func (x *ListDestinationsRequest) String() string

type ListDestinationsResponse

type ListDestinationsResponse struct {
	Destinations []*RoutingDestination `protobuf:"bytes,1,rep,name=destinations,proto3" json:"destinations,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDestinationsResponse) Descriptor deprecated

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

Deprecated: Use ListDestinationsResponse.ProtoReflect.Descriptor instead.

func (*ListDestinationsResponse) GetDestinations

func (x *ListDestinationsResponse) GetDestinations() []*RoutingDestination

func (*ListDestinationsResponse) ProtoMessage

func (*ListDestinationsResponse) ProtoMessage()

func (*ListDestinationsResponse) ProtoReflect

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

func (*ListDestinationsResponse) Reset

func (x *ListDestinationsResponse) Reset()

func (*ListDestinationsResponse) String

func (x *ListDestinationsResponse) String() string

type ListNumberBlocksRequest

type ListNumberBlocksRequest struct {
	DestinationId *string            `protobuf:"bytes,1,opt,name=destination_id,json=destinationId,proto3,oneof" json:"destination_id,omitempty"`
	Prefix        *string            `protobuf:"bytes,2,opt,name=prefix,proto3,oneof" json:"prefix,omitempty"`
	Status        *NumberBlockStatus `protobuf:"varint,3,opt,name=status,proto3,enum=wgtwo.number_portability.v1.NumberBlockStatus,oneof" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*ListNumberBlocksRequest) Descriptor deprecated

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

Deprecated: Use ListNumberBlocksRequest.ProtoReflect.Descriptor instead.

func (*ListNumberBlocksRequest) GetDestinationId

func (x *ListNumberBlocksRequest) GetDestinationId() string

func (*ListNumberBlocksRequest) GetPrefix

func (x *ListNumberBlocksRequest) GetPrefix() string

func (*ListNumberBlocksRequest) GetStatus

func (*ListNumberBlocksRequest) ProtoMessage

func (*ListNumberBlocksRequest) ProtoMessage()

func (*ListNumberBlocksRequest) ProtoReflect

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

func (*ListNumberBlocksRequest) Reset

func (x *ListNumberBlocksRequest) Reset()

func (*ListNumberBlocksRequest) String

func (x *ListNumberBlocksRequest) String() string

type ListNumberBlocksResponse

type ListNumberBlocksResponse struct {
	Blocks []*NumberBlock `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"`
	// contains filtered or unexported fields
}

func (*ListNumberBlocksResponse) Descriptor deprecated

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

Deprecated: Use ListNumberBlocksResponse.ProtoReflect.Descriptor instead.

func (*ListNumberBlocksResponse) GetBlocks

func (x *ListNumberBlocksResponse) GetBlocks() []*NumberBlock

func (*ListNumberBlocksResponse) ProtoMessage

func (*ListNumberBlocksResponse) ProtoMessage()

func (*ListNumberBlocksResponse) ProtoReflect

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

func (*ListNumberBlocksResponse) Reset

func (x *ListNumberBlocksResponse) Reset()

func (*ListNumberBlocksResponse) String

func (x *ListNumberBlocksResponse) String() string

type ListPortingRecordsRequest

type ListPortingRecordsRequest struct {

	// Optional operator code to filter porting records.
	OperatorCode *string `protobuf:"bytes,1,opt,name=operator_code,json=operatorCode,proto3,oneof" json:"operator_code,omitempty"`
	// Optional subscriber number prefix to filter porting records.
	SubscriberNumberPrefix *string `` /* 135-byte string literal not displayed */
	// Optional destination ID to filter porting records.
	DestinationId *string `protobuf:"bytes,3,opt,name=destination_id,json=destinationId,proto3,oneof" json:"destination_id,omitempty"`
	// Optional minimum porting date to filter porting records.
	ValidFrom *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=valid_from,json=validFrom,proto3,oneof" json:"valid_from,omitempty"`
	// contains filtered or unexported fields
}

Request message to list porting records.

func (*ListPortingRecordsRequest) Descriptor deprecated

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

Deprecated: Use ListPortingRecordsRequest.ProtoReflect.Descriptor instead.

func (*ListPortingRecordsRequest) GetDestinationId

func (x *ListPortingRecordsRequest) GetDestinationId() string

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 {

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

Response message for list porting records.

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 NumberBlock

type NumberBlock struct {

	// A reference to the destination created in the RoutingDestinationService.
	DestinationId string `protobuf:"bytes,1,opt,name=destination_id,json=destinationId,proto3" json:"destination_id,omitempty"`
	// Subscriber number prefix.
	Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
	// Status of a number block.
	// Only reserved and allocated blocks are used for the lookups.
	Status NumberBlockStatus `protobuf:"varint,3,opt,name=status,proto3,enum=wgtwo.number_portability.v1.NumberBlockStatus" json:"status,omitempty"`
	// Only blocks with assignment date in the past are used for the lookups.
	AssignmentDate *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=assignment_date,json=assignmentDate,proto3,oneof" json:"assignment_date,omitempty"`
	// contains filtered or unexported fields
}

A block of subscriber numbers identified by a prefix. Non-ported numbers will be matched against the prefixes to determine the routing destination, which in turn will be used to determine the routing code.

func (*NumberBlock) Descriptor deprecated

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

Deprecated: Use NumberBlock.ProtoReflect.Descriptor instead.

func (*NumberBlock) GetAssignmentDate

func (x *NumberBlock) GetAssignmentDate() *timestamppb.Timestamp

func (*NumberBlock) GetDestinationId

func (x *NumberBlock) GetDestinationId() string

func (*NumberBlock) GetPrefix

func (x *NumberBlock) GetPrefix() string

func (*NumberBlock) GetStatus

func (x *NumberBlock) GetStatus() NumberBlockStatus

func (*NumberBlock) ProtoMessage

func (*NumberBlock) ProtoMessage()

func (*NumberBlock) ProtoReflect

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

func (*NumberBlock) Reset

func (x *NumberBlock) Reset()

func (*NumberBlock) String

func (x *NumberBlock) String() string

type NumberBlockServiceClient

type NumberBlockServiceClient interface {
	// Creates a new or updates an existing number block.
	CreateOrUpdateNumberBlock(ctx context.Context, in *CreateOrUpdateNumberBlockRequest, opts ...grpc.CallOption) (*CreateOrUpdateNumberBlockResponse, error)
	// Deletes an existing number block.
	DeleteNumberBlock(ctx context.Context, in *DeleteNumberBlockRequest, opts ...grpc.CallOption) (*DeleteNumberBlockResponse, error)
	// List existing number blocks.
	ListNumberBlocks(ctx context.Context, in *ListNumberBlocksRequest, opts ...grpc.CallOption) (*ListNumberBlocksResponse, error)
}

NumberBlockServiceClient is the client API for NumberBlockService 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.

In some countries, a subscriber number itself may not be sufficient to determine the routing code for non-ported numbers. For example, in Belgium, an earliest number prefix allocated to an operator must be used, separately for fixed-line and mobile numbers. NumberBlockService allows to create, update, delete and list number blocks allocated to operators by a regulator.

type NumberBlockServiceServer

type NumberBlockServiceServer interface {
	// Creates a new or updates an existing number block.
	CreateOrUpdateNumberBlock(context.Context, *CreateOrUpdateNumberBlockRequest) (*CreateOrUpdateNumberBlockResponse, error)
	// Deletes an existing number block.
	DeleteNumberBlock(context.Context, *DeleteNumberBlockRequest) (*DeleteNumberBlockResponse, error)
	// List existing number blocks.
	ListNumberBlocks(context.Context, *ListNumberBlocksRequest) (*ListNumberBlocksResponse, error)
}

NumberBlockServiceServer is the server API for NumberBlockService service. All implementations should embed UnimplementedNumberBlockServiceServer for forward compatibility.

In some countries, a subscriber number itself may not be sufficient to determine the routing code for non-ported numbers. For example, in Belgium, an earliest number prefix allocated to an operator must be used, separately for fixed-line and mobile numbers. NumberBlockService allows to create, update, delete and list number blocks allocated to operators by a regulator.

type NumberBlockStatus

type NumberBlockStatus int32
const (
	NumberBlockStatus_UNKNOWN_UNSPECIFIED      NumberBlockStatus = 0
	NumberBlockStatus_R_RESERVED               NumberBlockStatus = 1 // R Number Range reserved
	NumberBlockStatus_A_ALLOCATED              NumberBlockStatus = 2 // A Allocated
	NumberBlockStatus_F_FREE                   NumberBlockStatus = 3 // F Number range Free
	NumberBlockStatus_RC_RESERVED              NumberBlockStatus = 4 // RC Number Range reserved
	NumberBlockStatus_T_RESERVED_UNDER_TESTING NumberBlockStatus = 5 // T Number range reserved under testing
	NumberBlockStatus_U_UNAVAILABLE            NumberBlockStatus = 6 // U Unavailable
	NumberBlockStatus_B_BLOCKED                NumberBlockStatus = 7 // B Blocked (no reservation possible)
)

func (NumberBlockStatus) Descriptor

func (NumberBlockStatus) Enum

func (NumberBlockStatus) EnumDescriptor deprecated

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

Deprecated: Use NumberBlockStatus.Descriptor instead.

func (NumberBlockStatus) Number

func (NumberBlockStatus) String

func (x NumberBlockStatus) String() string

func (NumberBlockStatus) Type

type NumberPortabilityServiceClient

type NumberPortabilityServiceClient interface {
	// CreatePortingRecords is used to import porting records into the number portability database.
	// It may also be used to clear the porting record to return it to it's original number block -
	// for that, destination_id, operator_code and routing_code in the PortingRecords should be set to empty values.
	CreatePortingRecords(ctx context.Context, in *CreatePortingRecordsRequest, opts ...grpc.CallOption) (*CreatePortingRecordsResponse, error)
	// ListPortingRecords is used to list porting records from the number portability database.
	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.

NumberPortabilityService is supposed to be used by tenants or third parties to import country-specific number porting records into Working Group Two's number portability database. A porting record consists of a subscriber number, routing destination, porting date and optional routing code as well as tenant-specific metadata. Porting date can both be a past or a future date.

type NumberPortabilityServiceServer

type NumberPortabilityServiceServer interface {
	// CreatePortingRecords is used to import porting records into the number portability database.
	// It may also be used to clear the porting record to return it to it's original number block -
	// for that, destination_id, operator_code and routing_code in the PortingRecords should be set to empty values.
	CreatePortingRecords(context.Context, *CreatePortingRecordsRequest) (*CreatePortingRecordsResponse, error)
	// ListPortingRecords is used to list porting records from the number portability database.
	ListPortingRecords(context.Context, *ListPortingRecordsRequest) (*ListPortingRecordsResponse, error)
}

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

NumberPortabilityService is supposed to be used by tenants or third parties to import country-specific number porting records into Working Group Two's number portability database. A porting record consists of a subscriber number, routing destination, porting date and optional routing code as well as tenant-specific metadata. Porting date can both be a past or a future date.

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"`
	// Porting date and time.
	ValidFrom *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=valid_from,json=validFrom,proto3" json:"valid_from,omitempty"`
	// Destination ID to route calls or messages to.
	// May be empty if destinations are not used.
	DestinationId string `protobuf:"bytes,3,opt,name=destination_id,json=destinationId,proto3" json:"destination_id,omitempty"`
	// A free-form operator code (in Sweden this is SPID allocated by SNPAC). May be empty.
	OperatorCode string `protobuf:"bytes,4,opt,name=operator_code,json=operatorCode,proto3" json:"operator_code,omitempty"`
	// Country-specific code used to route calls or messages
	// If empty and destination_id is set, the effective routing code is resolved from the destination.
	RoutingCode string `protobuf:"bytes,5,opt,name=routing_code,json=routingCode,proto3" json:"routing_code,omitempty"`
	// May be used to store tenant-specific data.
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

Message representing a porting record (or lack thereof, in case destination_id, operator_code and routing_code are empty).

func (*PortingRecord) Descriptor deprecated

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

Deprecated: Use PortingRecord.ProtoReflect.Descriptor instead.

func (*PortingRecord) GetDestinationId

func (x *PortingRecord) GetDestinationId() string

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 RoutingDestination

type RoutingDestination struct {

	// Destination's unique identifier. Mandatory.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Informational destination name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Country-specific code used to route calls or messages
	// In Belgium this is a C-code that is the earliest block assigned to an operator by the regulator.
	RoutingCode string `protobuf:"bytes,3,opt,name=routing_code,json=routingCode,proto3" json:"routing_code,omitempty"`
	// contains filtered or unexported fields
}

Routing destination defines how the messages or calls should be routed. It can correspond to an operator, a particular subset of numbers, an interconnect partner, etc. In the current implementation, it defines the routing code which is appended to the subscriber number when sending messages or making calls.

func (*RoutingDestination) Descriptor deprecated

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

Deprecated: Use RoutingDestination.ProtoReflect.Descriptor instead.

func (*RoutingDestination) GetId

func (x *RoutingDestination) GetId() string

func (*RoutingDestination) GetName

func (x *RoutingDestination) GetName() string

func (*RoutingDestination) GetRoutingCode

func (x *RoutingDestination) GetRoutingCode() string

func (*RoutingDestination) ProtoMessage

func (*RoutingDestination) ProtoMessage()

func (*RoutingDestination) ProtoReflect

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

func (*RoutingDestination) Reset

func (x *RoutingDestination) Reset()

func (*RoutingDestination) String

func (x *RoutingDestination) String() string

type RoutingDestinationServiceClient

type RoutingDestinationServiceClient interface {
	// Creates a new or updates an existing routing destination.
	CreateOrUpdateDestination(ctx context.Context, in *CreateOrUpdateDestinationRequest, opts ...grpc.CallOption) (*CreateOrUpdateDestinationResponse, error)
	// Deletes an existing routing destination.
	DeleteDestination(ctx context.Context, in *DeleteDestinationRequest, opts ...grpc.CallOption) (*DeleteDestinationResponse, error)
	// List existing mobile routing destinations.
	ListDestinations(ctx context.Context, in *ListDestinationsRequest, opts ...grpc.CallOption) (*ListDestinationsResponse, error)
}

RoutingDestinationServiceClient is the client API for RoutingDestinationService 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.

RoutingDestinationService is supposed to be used by tenants or third parties to create, update, delete and list routing destinations, which define how SMS messages or called should be routed. A porting record may be associated either directly to the routing code or indirectly via routing destinations (destination_id field of the PortingRecord message). Indirect association facilitates routing code changes without updating all porting records.

type RoutingDestinationServiceServer

type RoutingDestinationServiceServer interface {
	// Creates a new or updates an existing routing destination.
	CreateOrUpdateDestination(context.Context, *CreateOrUpdateDestinationRequest) (*CreateOrUpdateDestinationResponse, error)
	// Deletes an existing routing destination.
	DeleteDestination(context.Context, *DeleteDestinationRequest) (*DeleteDestinationResponse, error)
	// List existing mobile routing destinations.
	ListDestinations(context.Context, *ListDestinationsRequest) (*ListDestinationsResponse, error)
}

RoutingDestinationServiceServer is the server API for RoutingDestinationService service. All implementations should embed UnimplementedRoutingDestinationServiceServer for forward compatibility.

RoutingDestinationService is supposed to be used by tenants or third parties to create, update, delete and list routing destinations, which define how SMS messages or called should be routed. A porting record may be associated either directly to the routing code or indirectly via routing destinations (destination_id field of the PortingRecord message). Indirect association facilitates routing code changes without updating all porting records.

type UnimplementedNumberBlockServiceServer

type UnimplementedNumberBlockServiceServer struct{}

UnimplementedNumberBlockServiceServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedNumberBlockServiceServer) DeleteNumberBlock

func (UnimplementedNumberBlockServiceServer) ListNumberBlocks

type UnimplementedNumberPortabilityServiceServer

type UnimplementedNumberPortabilityServiceServer struct{}

UnimplementedNumberPortabilityServiceServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedNumberPortabilityServiceServer) CreatePortingRecords

func (UnimplementedNumberPortabilityServiceServer) ListPortingRecords

type UnimplementedRoutingDestinationServiceServer

type UnimplementedRoutingDestinationServiceServer struct{}

UnimplementedRoutingDestinationServiceServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedRoutingDestinationServiceServer) DeleteDestination

func (UnimplementedRoutingDestinationServiceServer) ListDestinations

type UnsafeNumberBlockServiceServer

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

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

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.

type UnsafeRoutingDestinationServiceServer

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

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

Jump to

Keyboard shortcuts

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