simple

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package simple is a generated protocol buffer package.

It is generated from these files:

simple.proto

It has these top-level messages:

Simple
Test
Nested

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Nested

type Nested struct {
	NestedMessage *Test `protobuf:"bytes,1,opt,name=nested_message,json=nestedMessage" json:"nested_message,omitempty"`
}

func (*Nested) Descriptor

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

func (*Nested) GetNestedMessage

func (m *Nested) GetNestedMessage() *Test

func (*Nested) Marshal

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

func (*Nested) MarshalTo

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

func (*Nested) ProtoMessage

func (*Nested) ProtoMessage()

func (*Nested) Reset

func (m *Nested) Reset()

func (*Nested) Size

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

func (*Nested) String

func (m *Nested) String() string

func (*Nested) Unmarshal

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

type Simple

type Simple struct {
	Double              float64 `protobuf:"fixed64,1,opt,name=double,proto3" json:"double,omitempty"`
	Float               float32 `protobuf:"fixed32,2,opt,name=float,proto3" json:"float,omitempty"`
	Int32               int32   `protobuf:"varint,3,opt,name=int32,proto3" json:"int32,omitempty"`
	Int64               int64   `protobuf:"varint,4,opt,name=int64,proto3" json:"int64,omitempty"`
	Uint32              uint32  `protobuf:"varint,5,opt,name=uint32,proto3" json:"uint32,omitempty"`
	Uint64              uint64  `protobuf:"varint,6,opt,name=uint64,proto3" json:"uint64,omitempty"`
	Sint32              int32   `protobuf:"zigzag32,7,opt,name=sint32,proto3" json:"sint32,omitempty"`
	Sint64              int64   `protobuf:"zigzag64,8,opt,name=sint64,proto3" json:"sint64,omitempty"`
	Fixed32             uint32  `protobuf:"fixed32,9,opt,name=fixed32,proto3" json:"fixed32,omitempty"`
	Fixed64             uint64  `protobuf:"fixed64,10,opt,name=fixed64,proto3" json:"fixed64,omitempty"`
	Sfixed32            int32   `protobuf:"fixed32,11,opt,name=sfixed32,proto3" json:"sfixed32,omitempty"`
	Sfixed64            int64   `protobuf:"fixed64,12,opt,name=sfixed64,proto3" json:"sfixed64,omitempty"`
	Bool                bool    `protobuf:"varint,13,opt,name=bool,proto3" json:"bool,omitempty"`
	String_             string  `protobuf:"bytes,14,opt,name=string,proto3" json:"string,omitempty"`
	Bytes               []byte  `protobuf:"bytes,15,opt,name=bytes,proto3" json:"bytes,omitempty"`
	RepeatedInt64Packed []int64 `protobuf:"varint,16,rep,packed,name=repeated_int64_packed,json=repeatedInt64Packed" json:"repeated_int64_packed,omitempty"`
}

func (*Simple) Descriptor

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

func (*Simple) GetBool

func (m *Simple) GetBool() bool

func (*Simple) GetBytes

func (m *Simple) GetBytes() []byte

func (*Simple) GetDouble

func (m *Simple) GetDouble() float64

func (*Simple) GetFixed32

func (m *Simple) GetFixed32() uint32

func (*Simple) GetFixed64

func (m *Simple) GetFixed64() uint64

func (*Simple) GetFloat

func (m *Simple) GetFloat() float32

func (*Simple) GetInt32

func (m *Simple) GetInt32() int32

func (*Simple) GetInt64

func (m *Simple) GetInt64() int64

func (*Simple) GetRepeatedInt64Packed

func (m *Simple) GetRepeatedInt64Packed() []int64

func (*Simple) GetSfixed32

func (m *Simple) GetSfixed32() int32

func (*Simple) GetSfixed64

func (m *Simple) GetSfixed64() int64

func (*Simple) GetSint32

func (m *Simple) GetSint32() int32

func (*Simple) GetSint64

func (m *Simple) GetSint64() int64

func (*Simple) GetString_

func (m *Simple) GetString_() string

func (*Simple) GetUint32

func (m *Simple) GetUint32() uint32

func (*Simple) GetUint64

func (m *Simple) GetUint64() uint64

func (*Simple) Marshal

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

func (*Simple) MarshalTo

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

func (*Simple) ProtoMessage

func (*Simple) ProtoMessage()

func (*Simple) Reset

func (m *Simple) Reset()

func (*Simple) Size

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

func (*Simple) String

func (m *Simple) String() string

func (*Simple) Unmarshal

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

type Test

type Test struct {
	StringField        string  `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"`
	Int64Field         int64   `protobuf:"varint,2,opt,name=int64_field,json=int64Field,proto3" json:"int64_field,omitempty"`
	RepeatedInt64Field []int64 `protobuf:"varint,3,rep,packed,name=repeated_int64_field,json=repeatedInt64Field" json:"repeated_int64_field,omitempty"`
}

func (*Test) Descriptor

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

func (*Test) GetInt64Field

func (m *Test) GetInt64Field() int64

func (*Test) GetRepeatedInt64Field

func (m *Test) GetRepeatedInt64Field() []int64

func (*Test) GetStringField

func (m *Test) GetStringField() string

func (*Test) Marshal

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

func (*Test) MarshalTo

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

func (*Test) ProtoMessage

func (*Test) ProtoMessage()

func (*Test) Reset

func (m *Test) Reset()

func (*Test) Size

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

func (*Test) String

func (m *Test) String() string

func (*Test) Unmarshal

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

Jump to

Keyboard shortcuts

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