mappingpb

package module
v2.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	GatewayVisibilityManager_GetDefaultVisibility_FullMethodName     = "/org.packetbroker.mapping.v2.GatewayVisibilityManager/GetDefaultVisibility"
	GatewayVisibilityManager_SetDefaultVisibility_FullMethodName     = "/org.packetbroker.mapping.v2.GatewayVisibilityManager/SetDefaultVisibility"
	GatewayVisibilityManager_GetHomeNetworkVisibility_FullMethodName = "/org.packetbroker.mapping.v2.GatewayVisibilityManager/GetHomeNetworkVisibility"
	GatewayVisibilityManager_SetHomeNetworkVisibility_FullMethodName = "/org.packetbroker.mapping.v2.GatewayVisibilityManager/SetHomeNetworkVisibility"
)
View Source
const (
	Mapper_UpdateGateway_FullMethodName = "/org.packetbroker.mapping.v2.Mapper/UpdateGateway"
)

Variables

View Source
var File_packetbroker_api_mapping_v2_service_proto protoreflect.FileDescriptor
View Source
var GatewayVisibilityManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "org.packetbroker.mapping.v2.GatewayVisibilityManager",
	HandlerType: (*GatewayVisibilityManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetDefaultVisibility",
			Handler:    _GatewayVisibilityManager_GetDefaultVisibility_Handler,
		},
		{
			MethodName: "SetDefaultVisibility",
			Handler:    _GatewayVisibilityManager_SetDefaultVisibility_Handler,
		},
		{
			MethodName: "GetHomeNetworkVisibility",
			Handler:    _GatewayVisibilityManager_GetHomeNetworkVisibility_Handler,
		},
		{
			MethodName: "SetHomeNetworkVisibility",
			Handler:    _GatewayVisibilityManager_SetHomeNetworkVisibility_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "packetbroker/api/mapping/v2/service.proto",
}

GatewayVisibilityManager_ServiceDesc is the grpc.ServiceDesc for GatewayVisibilityManager 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 Mapper_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "org.packetbroker.mapping.v2.Mapper",
	HandlerType: (*MapperServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateGateway",
			Handler:    _Mapper_UpdateGateway_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "packetbroker/api/mapping/v2/service.proto",
}

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

Functions

func RegisterGatewayVisibilityManagerServer

func RegisterGatewayVisibilityManagerServer(s grpc.ServiceRegistrar, srv GatewayVisibilityManagerServer)

func RegisterMapperServer

func RegisterMapperServer(s grpc.ServiceRegistrar, srv MapperServer)

Types

type GatewayVisibilityManagerClient

type GatewayVisibilityManagerClient interface {
	// Get the Default Gateway Visibility.
	GetDefaultVisibility(ctx context.Context, in *GetDefaultGatewayVisibilityRequest, opts ...grpc.CallOption) (*GetGatewayVisibilityResponse, error)
	// Set the Default Gateway Visibility.
	SetDefaultVisibility(ctx context.Context, in *SetGatewayVisibilityRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Get the Gateway Visibility with the Home Network.
	GetHomeNetworkVisibility(ctx context.Context, in *GetHomeNetworkGatewayVisibilityRequest, opts ...grpc.CallOption) (*GetGatewayVisibilityResponse, error)
	// Set the Gateway Visibility with the Home Network.
	SetHomeNetworkVisibility(ctx context.Context, in *SetGatewayVisibilityRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

GatewayVisibilityManagerClient is the client API for GatewayVisibilityManager 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 GatewayVisibilityManagerServer

type GatewayVisibilityManagerServer interface {
	// Get the Default Gateway Visibility.
	GetDefaultVisibility(context.Context, *GetDefaultGatewayVisibilityRequest) (*GetGatewayVisibilityResponse, error)
	// Set the Default Gateway Visibility.
	SetDefaultVisibility(context.Context, *SetGatewayVisibilityRequest) (*emptypb.Empty, error)
	// Get the Gateway Visibility with the Home Network.
	GetHomeNetworkVisibility(context.Context, *GetHomeNetworkGatewayVisibilityRequest) (*GetGatewayVisibilityResponse, error)
	// Set the Gateway Visibility with the Home Network.
	SetHomeNetworkVisibility(context.Context, *SetGatewayVisibilityRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

GatewayVisibilityManagerServer is the server API for GatewayVisibilityManager service. All implementations must embed UnimplementedGatewayVisibilityManagerServer for forward compatibility

type GetDefaultGatewayVisibilityRequest

type GetDefaultGatewayVisibilityRequest struct {

	// LoRa Alliance NetID of the Forwarder Member.
	ForwarderNetId uint32 `protobuf:"varint,1,opt,name=forwarder_net_id,json=forwarderNetId,proto3" json:"forwarder_net_id,omitempty"`
	// Tenant ID managed by the Forwarder Member.
	ForwarderTenantId string `protobuf:"bytes,2,opt,name=forwarder_tenant_id,json=forwarderTenantId,proto3" json:"forwarder_tenant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDefaultGatewayVisibilityRequest) Descriptor deprecated

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

Deprecated: Use GetDefaultGatewayVisibilityRequest.ProtoReflect.Descriptor instead.

func (*GetDefaultGatewayVisibilityRequest) GetForwarderNetId

func (x *GetDefaultGatewayVisibilityRequest) GetForwarderNetId() uint32

func (*GetDefaultGatewayVisibilityRequest) GetForwarderTenantId

func (x *GetDefaultGatewayVisibilityRequest) GetForwarderTenantId() string

func (*GetDefaultGatewayVisibilityRequest) ProtoMessage

func (*GetDefaultGatewayVisibilityRequest) ProtoMessage()

func (*GetDefaultGatewayVisibilityRequest) ProtoReflect

func (*GetDefaultGatewayVisibilityRequest) Reset

func (*GetDefaultGatewayVisibilityRequest) String

func (*GetDefaultGatewayVisibilityRequest) Validate

Validate returns whether the request is valid.

type GetGatewayVisibilityResponse

type GetGatewayVisibilityResponse struct {
	Visibility *v3.GatewayVisibility `protobuf:"bytes,1,opt,name=visibility,proto3" json:"visibility,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGatewayVisibilityResponse) Descriptor deprecated

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

Deprecated: Use GetGatewayVisibilityResponse.ProtoReflect.Descriptor instead.

func (*GetGatewayVisibilityResponse) GetVisibility

func (*GetGatewayVisibilityResponse) ProtoMessage

func (*GetGatewayVisibilityResponse) ProtoMessage()

func (*GetGatewayVisibilityResponse) ProtoReflect

func (*GetGatewayVisibilityResponse) Reset

func (x *GetGatewayVisibilityResponse) Reset()

func (*GetGatewayVisibilityResponse) String

type GetHomeNetworkGatewayVisibilityRequest

type GetHomeNetworkGatewayVisibilityRequest struct {

	// LoRa Alliance NetID of the Forwarder Member.
	ForwarderNetId uint32 `protobuf:"varint,1,opt,name=forwarder_net_id,json=forwarderNetId,proto3" json:"forwarder_net_id,omitempty"`
	// Tenant ID managed by the Forwarder Member.
	ForwarderTenantId string `protobuf:"bytes,2,opt,name=forwarder_tenant_id,json=forwarderTenantId,proto3" json:"forwarder_tenant_id,omitempty"`
	// LoRa Alliance NetID of the Home Network Member.
	HomeNetworkNetId uint32 `protobuf:"varint,3,opt,name=home_network_net_id,json=homeNetworkNetId,proto3" json:"home_network_net_id,omitempty"`
	// Tenant ID managed by the Home Network Member.
	HomeNetworkTenantId string `protobuf:"bytes,4,opt,name=home_network_tenant_id,json=homeNetworkTenantId,proto3" json:"home_network_tenant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetHomeNetworkGatewayVisibilityRequest) Descriptor deprecated

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

Deprecated: Use GetHomeNetworkGatewayVisibilityRequest.ProtoReflect.Descriptor instead.

func (*GetHomeNetworkGatewayVisibilityRequest) GetForwarderNetId

func (x *GetHomeNetworkGatewayVisibilityRequest) GetForwarderNetId() uint32

func (*GetHomeNetworkGatewayVisibilityRequest) GetForwarderTenantId

func (x *GetHomeNetworkGatewayVisibilityRequest) GetForwarderTenantId() string

func (*GetHomeNetworkGatewayVisibilityRequest) GetHomeNetworkNetId

func (x *GetHomeNetworkGatewayVisibilityRequest) GetHomeNetworkNetId() uint32

func (*GetHomeNetworkGatewayVisibilityRequest) GetHomeNetworkTenantId

func (x *GetHomeNetworkGatewayVisibilityRequest) GetHomeNetworkTenantId() string

func (*GetHomeNetworkGatewayVisibilityRequest) ProtoMessage

func (*GetHomeNetworkGatewayVisibilityRequest) ProtoReflect

func (*GetHomeNetworkGatewayVisibilityRequest) Reset

func (*GetHomeNetworkGatewayVisibilityRequest) String

func (*GetHomeNetworkGatewayVisibilityRequest) Validate

Validate returns whether the request is valid.

type MapperClient

type MapperClient interface {
	// Update a gateway.
	UpdateGateway(ctx context.Context, in *UpdateGatewayRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

MapperClient is the client API for Mapper 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.

func NewMapperClient

func NewMapperClient(cc grpc.ClientConnInterface) MapperClient

type MapperServer

type MapperServer interface {
	// Update a gateway.
	UpdateGateway(context.Context, *UpdateGatewayRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

MapperServer is the server API for Mapper service. All implementations must embed UnimplementedMapperServer for forward compatibility

type SetGatewayVisibilityRequest added in v2.1.0

type SetGatewayVisibilityRequest struct {
	Visibility *v3.GatewayVisibility `protobuf:"bytes,3,opt,name=visibility,proto3" json:"visibility,omitempty"`
	// contains filtered or unexported fields
}

func (*SetGatewayVisibilityRequest) Descriptor deprecated added in v2.1.0

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

Deprecated: Use SetGatewayVisibilityRequest.ProtoReflect.Descriptor instead.

func (*SetGatewayVisibilityRequest) GetVisibility added in v2.1.0

func (x *SetGatewayVisibilityRequest) GetVisibility() *v3.GatewayVisibility

func (*SetGatewayVisibilityRequest) ProtoMessage added in v2.1.0

func (*SetGatewayVisibilityRequest) ProtoMessage()

func (*SetGatewayVisibilityRequest) ProtoReflect added in v2.1.0

func (*SetGatewayVisibilityRequest) Reset added in v2.1.0

func (x *SetGatewayVisibilityRequest) Reset()

func (*SetGatewayVisibilityRequest) String added in v2.1.0

func (x *SetGatewayVisibilityRequest) String() string

func (*SetGatewayVisibilityRequest) Validate added in v2.1.0

func (r *SetGatewayVisibilityRequest) Validate() error

Validate returns whether the request is valid.

type UnimplementedGatewayVisibilityManagerServer

type UnimplementedGatewayVisibilityManagerServer struct {
}

UnimplementedGatewayVisibilityManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedGatewayVisibilityManagerServer) SetDefaultVisibility

func (UnimplementedGatewayVisibilityManagerServer) SetHomeNetworkVisibility

type UnimplementedMapperServer

type UnimplementedMapperServer struct {
}

UnimplementedMapperServer must be embedded to have forward compatible implementations.

func (UnimplementedMapperServer) UpdateGateway

type UnsafeGatewayVisibilityManagerServer

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

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

type UnsafeMapperServer

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

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

type UpdateGatewayRequest

type UpdateGatewayRequest struct {

	// LoRa Alliance NetID of the Forwarder Member.
	ForwarderNetId uint32 `protobuf:"varint,1,opt,name=forwarder_net_id,json=forwarderNetId,proto3" json:"forwarder_net_id,omitempty"`
	// Tenant ID managed by the Forwarder Member.
	ForwarderTenantId string `protobuf:"bytes,2,opt,name=forwarder_tenant_id,json=forwarderTenantId,proto3" json:"forwarder_tenant_id,omitempty"`
	// Forwarder cluster of the Forwarder Member (optional).
	ForwarderClusterId string `protobuf:"bytes,3,opt,name=forwarder_cluster_id,json=forwarderClusterId,proto3" json:"forwarder_cluster_id,omitempty"`
	// Identifier of the gateway.
	ForwarderGatewayId *v3.GatewayIdentifier `protobuf:"bytes,4,opt,name=forwarder_gateway_id,json=forwarderGatewayId,proto3" json:"forwarder_gateway_id,omitempty"`
	// Gateway location.
	// This field gets updated when a value is set.
	GatewayLocation *v3.GatewayLocationValue `protobuf:"bytes,5,opt,name=gateway_location,json=gatewayLocation,proto3" json:"gateway_location,omitempty"`
	// Administrative contact.
	// This field gets updated when a value is set.
	AdministrativeContact *v3.ContactInfoValue `protobuf:"bytes,6,opt,name=administrative_contact,json=administrativeContact,proto3" json:"administrative_contact,omitempty"`
	// Technical contact.
	// This field gets updated when a value is set.
	TechnicalContact *v3.ContactInfoValue `protobuf:"bytes,7,opt,name=technical_contact,json=technicalContact,proto3" json:"technical_contact,omitempty"`
	// Indicates whether the gateway is online.
	// This field gets updated when a value is set.
	Online *wrapperspb.BoolValue `protobuf:"bytes,8,opt,name=online,proto3" json:"online,omitempty"`
	// If the gateway is online, this value indicates the time-to-live for the online status. This value must be set when
	// the online field is set and true.
	// When the online status expires, the gateway will be offline.
	// To keep the gateway online, update online status before the status expires.
	OnlineTtl *durationpb.Duration `protobuf:"bytes,9,opt,name=online_ttl,json=onlineTtl,proto3" json:"online_ttl,omitempty"`
	// Frequency plan of the gateway.
	// This field gets updated when a value is set.
	FrequencyPlan *v3.GatewayFrequencyPlan `protobuf:"bytes,10,opt,name=frequency_plan,json=frequencyPlan,proto3" json:"frequency_plan,omitempty"`
	// Received packets rate (number of packets per hour).
	// This field gets updated when a value is set.
	RxRate *wrapperspb.FloatValue `protobuf:"bytes,11,opt,name=rx_rate,json=rxRate,proto3" json:"rx_rate,omitempty"`
	// Transmitted packets rate (number of packets per hour).
	// This field gets updated when a value is set.
	TxRate *wrapperspb.FloatValue `protobuf:"bytes,12,opt,name=tx_rate,json=txRate,proto3" json:"tx_rate,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateGatewayRequest) Descriptor deprecated

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

Deprecated: Use UpdateGatewayRequest.ProtoReflect.Descriptor instead.

func (*UpdateGatewayRequest) GetAdministrativeContact

func (x *UpdateGatewayRequest) GetAdministrativeContact() *v3.ContactInfoValue

func (*UpdateGatewayRequest) GetForwarderClusterId

func (x *UpdateGatewayRequest) GetForwarderClusterId() string

func (*UpdateGatewayRequest) GetForwarderGatewayId

func (x *UpdateGatewayRequest) GetForwarderGatewayId() *v3.GatewayIdentifier

func (*UpdateGatewayRequest) GetForwarderNetId

func (x *UpdateGatewayRequest) GetForwarderNetId() uint32

func (*UpdateGatewayRequest) GetForwarderTenantId

func (x *UpdateGatewayRequest) GetForwarderTenantId() string

func (*UpdateGatewayRequest) GetFrequencyPlan

func (x *UpdateGatewayRequest) GetFrequencyPlan() *v3.GatewayFrequencyPlan

func (*UpdateGatewayRequest) GetGatewayLocation

func (x *UpdateGatewayRequest) GetGatewayLocation() *v3.GatewayLocationValue

func (*UpdateGatewayRequest) GetOnline

func (x *UpdateGatewayRequest) GetOnline() *wrapperspb.BoolValue

func (*UpdateGatewayRequest) GetOnlineTtl

func (x *UpdateGatewayRequest) GetOnlineTtl() *durationpb.Duration

func (*UpdateGatewayRequest) GetRxRate

func (x *UpdateGatewayRequest) GetRxRate() *wrapperspb.FloatValue

func (*UpdateGatewayRequest) GetTechnicalContact

func (x *UpdateGatewayRequest) GetTechnicalContact() *v3.ContactInfoValue

func (*UpdateGatewayRequest) GetTxRate

func (x *UpdateGatewayRequest) GetTxRate() *wrapperspb.FloatValue

func (*UpdateGatewayRequest) ProtoMessage

func (*UpdateGatewayRequest) ProtoMessage()

func (*UpdateGatewayRequest) ProtoReflect

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

func (*UpdateGatewayRequest) Reset

func (x *UpdateGatewayRequest) Reset()

func (*UpdateGatewayRequest) String

func (x *UpdateGatewayRequest) String() string

func (*UpdateGatewayRequest) Validate

func (r *UpdateGatewayRequest) Validate() error

Validate returns whether the request is valid.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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