example

package
v0.0.0-...-18de31d Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package example is a generated protocol buffer package.

It is generated from these files:

examples/protobuf/pb/gen.proto

It has these top-level messages:

M0
M1
M2
M3
M4
M5
M6
M7
M8
M9
M10
M11
M12
M13
M14
M15
M16
M17
M18
M19
M20
M21
M22
M23
M24
M25

Index

Constants

View Source
const Default_M1_F int64 = -123123123123
View Source
const Default_M3_F uint64 = 123123123123

Variables

View Source
var Corpus_name = map[int32]string{
	0:      "UNIVERSAL",
	1:      "WEB",
	2:      "IMAGES",
	42:     "LOCAL",
	155:    "NEWS",
	123123: "PRODUCTS",
}
View Source
var Corpus_value = map[string]int32{
	"UNIVERSAL": 0,
	"WEB":       1,
	"IMAGES":    2,
	"LOCAL":     42,
	"NEWS":      155,
	"PRODUCTS":  123123,
}
View Source
var E_F1 = &proto.ExtensionDesc{
	ExtendedType:  (*M18)(nil),
	ExtensionType: (*int32)(nil),
	Field:         126,
	Name:          "example.f1",
	Tag:           "varint,126,opt,name=f1",
}

Functions

This section is empty.

Types

type Corpus

type Corpus int32
const (
	Corpus_UNIVERSAL Corpus = 0
	Corpus_WEB       Corpus = 1
	Corpus_IMAGES    Corpus = 2
	Corpus_LOCAL     Corpus = 42
	Corpus_NEWS      Corpus = 155
	Corpus_PRODUCTS  Corpus = 123123
)
const Default_M16_F Corpus = Corpus_UNIVERSAL

func (Corpus) Enum

func (x Corpus) Enum() *Corpus

func (Corpus) String

func (x Corpus) String() string

func (*Corpus) UnmarshalJSON

func (x *Corpus) UnmarshalJSON(data []byte) error

type M0

type M0 struct {
	F                *int32 `protobuf:"varint,1,req,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*M0) GetF

func (m *M0) GetF() int32

func (*M0) ProtoMessage

func (*M0) ProtoMessage()

func (*M0) Reset

func (m *M0) Reset()

func (*M0) String

func (m *M0) String() string

type M1

type M1 struct {
	F                *int64 `protobuf:"varint,1,req,name=f,def=-123123123123" json:"f,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*M1) GetF

func (m *M1) GetF() int64

func (*M1) ProtoMessage

func (*M1) ProtoMessage()

func (*M1) Reset

func (m *M1) Reset()

func (*M1) String

func (m *M1) String() string

type M10

type M10 struct {
	F                *float64 `protobuf:"fixed64,1,opt,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*M10) GetF

func (m *M10) GetF() float64

func (*M10) ProtoMessage

func (*M10) ProtoMessage()

func (*M10) Reset

func (m *M10) Reset()

func (*M10) String

func (m *M10) String() string

type M11

type M11 struct {
	F                *float32 `protobuf:"fixed32,1,opt,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*M11) GetF

func (m *M11) GetF() float32

func (*M11) ProtoMessage

func (*M11) ProtoMessage()

func (*M11) Reset

func (m *M11) Reset()

func (*M11) String

func (m *M11) String() string

type M12

type M12 struct {
	F                *bool  `protobuf:"varint,1,opt,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*M12) GetF

func (m *M12) GetF() bool

func (*M12) ProtoMessage

func (*M12) ProtoMessage()

func (*M12) Reset

func (m *M12) Reset()

func (*M12) String

func (m *M12) String() string

type M13

type M13 struct {
	F                *string `protobuf:"bytes,1,opt,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*M13) GetF

func (m *M13) GetF() string

func (*M13) ProtoMessage

func (*M13) ProtoMessage()

func (*M13) Reset

func (m *M13) Reset()

func (*M13) String

func (m *M13) String() string

type M14

type M14 struct {
	F                []byte `protobuf:"bytes,1,opt,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*M14) GetF

func (m *M14) GetF() []byte

func (*M14) ProtoMessage

func (*M14) ProtoMessage()

func (*M14) Reset

func (m *M14) Reset()

func (*M14) String

func (m *M14) String() string

type M15

type M15 struct {
	F0               *int32  `protobuf:"varint,1,req,name=f0" json:"f0,omitempty"`
	F1               *string `protobuf:"bytes,2,opt,name=f1" json:"f1,omitempty"`
	F2               []byte  `protobuf:"bytes,3,opt,name=f2" json:"f2,omitempty"`
	F4               *bool   `protobuf:"varint,5,opt,name=f4" json:"f4,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*M15) GetF0

func (m *M15) GetF0() int32

func (*M15) GetF1

func (m *M15) GetF1() string

func (*M15) GetF2

func (m *M15) GetF2() []byte

func (*M15) GetF4

func (m *M15) GetF4() bool

func (*M15) ProtoMessage

func (*M15) ProtoMessage()

func (*M15) Reset

func (m *M15) Reset()

func (*M15) String

func (m *M15) String() string

type M16

type M16 struct {
	F                *Corpus `protobuf:"varint,1,opt,name=f,enum=example.Corpus,def=0" json:"f,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*M16) GetF

func (m *M16) GetF() Corpus

func (*M16) ProtoMessage

func (*M16) ProtoMessage()

func (*M16) Reset

func (m *M16) Reset()

func (*M16) String

func (m *M16) String() string

type M17

type M17 struct {
	F                *M15   `protobuf:"bytes,1,req,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*M17) GetF

func (m *M17) GetF() *M15

func (*M17) ProtoMessage

func (*M17) ProtoMessage()

func (*M17) Reset

func (m *M17) Reset()

func (*M17) String

func (m *M17) String() string

type M18

type M18 struct {
	F0               *string                   `protobuf:"bytes,1,opt,name=f0" json:"f0,omitempty"`
	XXX_extensions   map[int32]proto.Extension `json:"-"`
	XXX_unrecognized []byte                    `json:"-"`
}

func (*M18) ExtensionMap

func (m *M18) ExtensionMap() map[int32]proto.Extension

func (*M18) ExtensionRangeArray

func (*M18) ExtensionRangeArray() []proto.ExtensionRange

func (*M18) GetF0

func (m *M18) GetF0() string

func (*M18) ProtoMessage

func (*M18) ProtoMessage()

func (*M18) Reset

func (m *M18) Reset()

func (*M18) String

func (m *M18) String() string

type M19

type M19 struct {
	F                []int32 `protobuf:"varint,1,rep,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*M19) GetF

func (m *M19) GetF() []int32

func (*M19) ProtoMessage

func (*M19) ProtoMessage()

func (*M19) Reset

func (m *M19) Reset()

func (*M19) String

func (m *M19) String() string

type M2

type M2 struct {
	F                *uint32 `protobuf:"varint,1,opt,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*M2) GetF

func (m *M2) GetF() uint32

func (*M2) ProtoMessage

func (*M2) ProtoMessage()

func (*M2) Reset

func (m *M2) Reset()

func (*M2) String

func (m *M2) String() string

type M20

type M20 struct {
	F                []string `protobuf:"bytes,1,rep,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*M20) GetF

func (m *M20) GetF() []string

func (*M20) ProtoMessage

func (*M20) ProtoMessage()

func (*M20) Reset

func (m *M20) Reset()

func (*M20) String

func (m *M20) String() string

type M21

type M21 struct {
	F                []*M15 `protobuf:"bytes,1,rep,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*M21) GetF

func (m *M21) GetF() []*M15

func (*M21) ProtoMessage

func (*M21) ProtoMessage()

func (*M21) Reset

func (m *M21) Reset()

func (*M21) String

func (m *M21) String() string

type M22

type M22 struct {
	F                []*M2  `protobuf:"bytes,1,rep,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*M22) GetF

func (m *M22) GetF() []*M2

func (*M22) ProtoMessage

func (*M22) ProtoMessage()

func (*M22) Reset

func (m *M22) Reset()

func (*M22) String

func (m *M22) String() string

type M23

type M23 struct {
	F                map[int32]string `protobuf:"bytes,1,rep,name=f" json:"f,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	XXX_unrecognized []byte           `json:"-"`
}

func (*M23) GetF

func (m *M23) GetF() map[int32]string

func (*M23) ProtoMessage

func (*M23) ProtoMessage()

func (*M23) Reset

func (m *M23) Reset()

func (*M23) String

func (m *M23) String() string

type M24

type M24 struct {
	F                map[string]*M2 `protobuf:"bytes,1,rep,name=f" json:"f,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	XXX_unrecognized []byte         `json:"-"`
}

func (*M24) GetF

func (m *M24) GetF() map[string]*M2

func (*M24) ProtoMessage

func (*M24) ProtoMessage()

func (*M24) Reset

func (m *M24) Reset()

func (*M24) String

func (m *M24) String() string

type M25

type M25 struct {
	F0               *string `protobuf:"bytes,4,opt,name=f0" json:"f0,omitempty"`
	F1               *M2     `protobuf:"bytes,9,opt,name=f1" json:"f1,omitempty"`
	F2               *Corpus `protobuf:"varint,127,opt,name=f2,enum=example.Corpus" json:"f2,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*M25) GetF0

func (m *M25) GetF0() string

func (*M25) GetF1

func (m *M25) GetF1() *M2

func (*M25) GetF2

func (m *M25) GetF2() Corpus

func (*M25) ProtoMessage

func (*M25) ProtoMessage()

func (*M25) Reset

func (m *M25) Reset()

func (*M25) String

func (m *M25) String() string

type M3

type M3 struct {
	F                *uint64 `protobuf:"varint,1,opt,name=f,def=123123123123" json:"f,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*M3) GetF

func (m *M3) GetF() uint64

func (*M3) ProtoMessage

func (*M3) ProtoMessage()

func (*M3) Reset

func (m *M3) Reset()

func (*M3) String

func (m *M3) String() string

type M4

type M4 struct {
	F                *int32 `protobuf:"zigzag32,1,opt,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*M4) GetF

func (m *M4) GetF() int32

func (*M4) ProtoMessage

func (*M4) ProtoMessage()

func (*M4) Reset

func (m *M4) Reset()

func (*M4) String

func (m *M4) String() string

type M5

type M5 struct {
	F                *int64 `protobuf:"zigzag64,1,opt,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*M5) GetF

func (m *M5) GetF() int64

func (*M5) ProtoMessage

func (*M5) ProtoMessage()

func (*M5) Reset

func (m *M5) Reset()

func (*M5) String

func (m *M5) String() string

type M6

type M6 struct {
	F                *uint32 `protobuf:"fixed32,1,opt,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*M6) GetF

func (m *M6) GetF() uint32

func (*M6) ProtoMessage

func (*M6) ProtoMessage()

func (*M6) Reset

func (m *M6) Reset()

func (*M6) String

func (m *M6) String() string

type M7

type M7 struct {
	F                *uint64 `protobuf:"fixed64,1,opt,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*M7) GetF

func (m *M7) GetF() uint64

func (*M7) ProtoMessage

func (*M7) ProtoMessage()

func (*M7) Reset

func (m *M7) Reset()

func (*M7) String

func (m *M7) String() string

type M8

type M8 struct {
	F                *int32 `protobuf:"fixed32,1,opt,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*M8) GetF

func (m *M8) GetF() int32

func (*M8) ProtoMessage

func (*M8) ProtoMessage()

func (*M8) Reset

func (m *M8) Reset()

func (*M8) String

func (m *M8) String() string

type M9

type M9 struct {
	F                *int64 `protobuf:"fixed64,1,opt,name=f" json:"f,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*M9) GetF

func (m *M9) GetF() int64

func (*M9) ProtoMessage

func (*M9) ProtoMessage()

func (*M9) Reset

func (m *M9) Reset()

func (*M9) String

func (m *M9) String() string

Jump to

Keyboard shortcuts

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