protocol

package
v2.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package protocol is a generated protocol buffer package.

It is generated from these files:

github.com/TheThingsNetwork/ttn/api/protocol/protocol.proto

It has these top-level messages:

Message
RxMetadata
TxConfiguration
ActivationMetadata

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthProtocol = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProtocol   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type ActivationMetadata

type ActivationMetadata struct {
	// Types that are valid to be assigned to Protocol:
	//	*ActivationMetadata_Lorawan
	Protocol isActivationMetadata_Protocol `protobuf_oneof:"protocol"`
}

func (*ActivationMetadata) Descriptor

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

func (*ActivationMetadata) GetLorawan

func (*ActivationMetadata) GetProtocol

func (m *ActivationMetadata) GetProtocol() isActivationMetadata_Protocol

func (*ActivationMetadata) Marshal

func (m *ActivationMetadata) Marshal() (dAtA []byte, err error)

func (*ActivationMetadata) MarshalTo

func (m *ActivationMetadata) MarshalTo(dAtA []byte) (int, error)

func (*ActivationMetadata) ProtoMessage

func (*ActivationMetadata) ProtoMessage()

func (*ActivationMetadata) Reset

func (m *ActivationMetadata) Reset()

func (*ActivationMetadata) Size

func (m *ActivationMetadata) Size() (n int)

func (*ActivationMetadata) String

func (m *ActivationMetadata) String() string

func (*ActivationMetadata) Unmarshal

func (m *ActivationMetadata) Unmarshal(dAtA []byte) error

func (*ActivationMetadata) Validate

func (m *ActivationMetadata) Validate() error

Validate implements the api.Validator interface

func (*ActivationMetadata) XXX_OneofFuncs

func (*ActivationMetadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type ActivationMetadata_Lorawan

type ActivationMetadata_Lorawan struct {
	Lorawan *lorawan.ActivationMetadata `protobuf:"bytes,1,opt,name=lorawan,oneof"`
}

func (*ActivationMetadata_Lorawan) MarshalTo

func (m *ActivationMetadata_Lorawan) MarshalTo(dAtA []byte) (int, error)

func (*ActivationMetadata_Lorawan) Size

func (m *ActivationMetadata_Lorawan) Size() (n int)

func (*ActivationMetadata_Lorawan) Validate

func (m *ActivationMetadata_Lorawan) Validate() error

Validate implements the api.Validator interface

type Message

type Message struct {
	// Types that are valid to be assigned to Protocol:
	//	*Message_Lorawan
	Protocol isMessage_Protocol `protobuf_oneof:"protocol"`
}

func (*Message) Descriptor

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

func (*Message) GetLorawan

func (m *Message) GetLorawan() *lorawan.Message

func (*Message) GetProtocol

func (m *Message) GetProtocol() isMessage_Protocol

func (*Message) InitLoRaWAN

func (m *Message) InitLoRaWAN() *lorawan.Message

InitLoRaWAN initializes a LoRaWAN message

func (*Message) Marshal

func (m *Message) Marshal() (dAtA []byte, err error)

func (*Message) MarshalTo

func (m *Message) MarshalTo(dAtA []byte) (int, error)

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size

func (m *Message) Size() (n int)

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

func (m *Message) Unmarshal(dAtA []byte) error

func (*Message) Validate

func (m *Message) Validate() error

Validate implements the api.Validator interface

func (*Message) XXX_OneofFuncs

func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Message_Lorawan

type Message_Lorawan struct {
	Lorawan *lorawan.Message `protobuf:"bytes,1,opt,name=lorawan,oneof"`
}

func (*Message_Lorawan) MarshalTo

func (m *Message_Lorawan) MarshalTo(dAtA []byte) (int, error)

func (*Message_Lorawan) Size

func (m *Message_Lorawan) Size() (n int)

func (*Message_Lorawan) Validate

func (m *Message_Lorawan) Validate() error

Validate implements the api.Validator interface

type RxMetadata

type RxMetadata struct {
	// Types that are valid to be assigned to Protocol:
	//	*RxMetadata_Lorawan
	Protocol isRxMetadata_Protocol `protobuf_oneof:"protocol"`
}

func RandomLorawanRxMetadata

func RandomLorawanRxMetadata(modulation ...lorawan.Modulation) *RxMetadata

RandomLorawanRxMetadata returns randomly generated LorawanRxMetadata. Used for testing.

func RandomRxMetadata

func RandomRxMetadata() *RxMetadata

RandomRxMetadata returns randomly generated RxMetadata. Used for testing.

func (*RxMetadata) Descriptor

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

func (*RxMetadata) GetLorawan

func (m *RxMetadata) GetLorawan() *lorawan.Metadata

func (*RxMetadata) GetProtocol

func (m *RxMetadata) GetProtocol() isRxMetadata_Protocol

func (*RxMetadata) Marshal

func (m *RxMetadata) Marshal() (dAtA []byte, err error)

func (*RxMetadata) MarshalTo

func (m *RxMetadata) MarshalTo(dAtA []byte) (int, error)

func (*RxMetadata) ProtoMessage

func (*RxMetadata) ProtoMessage()

func (*RxMetadata) Reset

func (m *RxMetadata) Reset()

func (*RxMetadata) Size

func (m *RxMetadata) Size() (n int)

func (*RxMetadata) String

func (m *RxMetadata) String() string

func (*RxMetadata) Unmarshal

func (m *RxMetadata) Unmarshal(dAtA []byte) error

func (*RxMetadata) Validate

func (m *RxMetadata) Validate() error

Validate implements the api.Validator interface

func (*RxMetadata) XXX_OneofFuncs

func (*RxMetadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type RxMetadata_Lorawan

type RxMetadata_Lorawan struct {
	Lorawan *lorawan.Metadata `protobuf:"bytes,1,opt,name=lorawan,oneof"`
}

func (*RxMetadata_Lorawan) MarshalTo

func (m *RxMetadata_Lorawan) MarshalTo(dAtA []byte) (int, error)

func (*RxMetadata_Lorawan) Size

func (m *RxMetadata_Lorawan) Size() (n int)

func (*RxMetadata_Lorawan) Validate

func (m *RxMetadata_Lorawan) Validate() error

Validate implements the api.Validator interface

type TxConfiguration

type TxConfiguration struct {
	// Types that are valid to be assigned to Protocol:
	//	*TxConfiguration_Lorawan
	Protocol isTxConfiguration_Protocol `protobuf_oneof:"protocol"`
}

func RandomLorawanTxConfiguration

func RandomLorawanTxConfiguration(modulation ...lorawan.Modulation) *TxConfiguration

RandomLorawanTxConfiguration returns randomly generated LorawanTxConfiguration. Used for testing.

func RandomTxConfiguration

func RandomTxConfiguration() *TxConfiguration

RandomTxConfiguration returns randomly generated TxConfiguration. Used for testing.

func (*TxConfiguration) Descriptor

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

func (*TxConfiguration) GetLorawan

func (m *TxConfiguration) GetLorawan() *lorawan.TxConfiguration

func (*TxConfiguration) GetProtocol

func (m *TxConfiguration) GetProtocol() isTxConfiguration_Protocol

func (*TxConfiguration) Marshal

func (m *TxConfiguration) Marshal() (dAtA []byte, err error)

func (*TxConfiguration) MarshalTo

func (m *TxConfiguration) MarshalTo(dAtA []byte) (int, error)

func (*TxConfiguration) ProtoMessage

func (*TxConfiguration) ProtoMessage()

func (*TxConfiguration) Reset

func (m *TxConfiguration) Reset()

func (*TxConfiguration) Size

func (m *TxConfiguration) Size() (n int)

func (*TxConfiguration) String

func (m *TxConfiguration) String() string

func (*TxConfiguration) Unmarshal

func (m *TxConfiguration) Unmarshal(dAtA []byte) error

func (*TxConfiguration) Validate

func (m *TxConfiguration) Validate() error

Validate implements the api.Validator interface

func (*TxConfiguration) XXX_OneofFuncs

func (*TxConfiguration) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type TxConfiguration_Lorawan

type TxConfiguration_Lorawan struct {
	Lorawan *lorawan.TxConfiguration `protobuf:"bytes,1,opt,name=lorawan,oneof"`
}

func (*TxConfiguration_Lorawan) MarshalTo

func (m *TxConfiguration_Lorawan) MarshalTo(dAtA []byte) (int, error)

func (*TxConfiguration_Lorawan) Size

func (m *TxConfiguration_Lorawan) Size() (n int)

func (*TxConfiguration_Lorawan) Validate

func (m *TxConfiguration_Lorawan) Validate() error

Validate implements the api.Validator interface

Directories

Path Synopsis
Package lorawan is a generated protocol buffer package.
Package lorawan is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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