test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: BSD-3-Clause Imports: 4 Imported by: 17

Documentation

Overview

Package test is a generated protocol buffer package.

It is generated from these files:

tests/test/test.proto

It has these top-level messages:

Test
ExampleTable
PartialTable
TwoMappedAndEnum
Name
Ids
NumRows
ExampleTableRange

Index

Constants

This section is empty.

Variables

View Source
var TestEnum_name = map[int32]string{
	0: "first",
	1: "second",
}
View Source
var TestEnum_value = map[string]int32{
	"first":  0,
	"second": 1,
}

Functions

This section is empty.

Types

type ExampleTable

type ExampleTable struct {
	Id        int64                      `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	StartTime *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
	Name      string                     `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
}

func (*ExampleTable) Descriptor

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

func (*ExampleTable) GetId

func (m *ExampleTable) GetId() int64

func (*ExampleTable) GetName

func (m *ExampleTable) GetName() string

func (*ExampleTable) GetStartTime

func (m *ExampleTable) GetStartTime() *google_protobuf.Timestamp

func (*ExampleTable) ProtoMessage

func (*ExampleTable) ProtoMessage()

func (*ExampleTable) Reset

func (m *ExampleTable) Reset()

func (*ExampleTable) String

func (m *ExampleTable) String() string

type ExampleTableRange

type ExampleTableRange struct {
	StartId int64 `protobuf:"varint,1,opt,name=start_id,json=startId" json:"start_id,omitempty"`
	EndId   int64 `protobuf:"varint,2,opt,name=end_id,json=endId" json:"end_id,omitempty"`
}

func (*ExampleTableRange) Descriptor

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

func (*ExampleTableRange) GetEndId

func (m *ExampleTableRange) GetEndId() int64

func (*ExampleTableRange) GetStartId

func (m *ExampleTableRange) GetStartId() int64

func (*ExampleTableRange) ProtoMessage

func (*ExampleTableRange) ProtoMessage()

func (*ExampleTableRange) Reset

func (m *ExampleTableRange) Reset()

func (*ExampleTableRange) String

func (m *ExampleTableRange) String() string

type Ids

type Ids struct {
	Ids []int64 `protobuf:"varint,1,rep,packed,name=ids" json:"ids,omitempty"`
}

func (*Ids) Descriptor

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

func (*Ids) GetIds

func (m *Ids) GetIds() []int64

func (*Ids) ProtoMessage

func (*Ids) ProtoMessage()

func (*Ids) Reset

func (m *Ids) Reset()

func (*Ids) String

func (m *Ids) String() string

type Name

type Name struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*Name) Descriptor

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

func (*Name) GetName

func (m *Name) GetName() string

func (*Name) ProtoMessage

func (*Name) ProtoMessage()

func (*Name) Reset

func (m *Name) Reset()

func (*Name) String

func (m *Name) String() string

type NumRows

type NumRows struct {
	Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}

func (*NumRows) Descriptor

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

func (*NumRows) GetCount

func (m *NumRows) GetCount() int64

func (*NumRows) ProtoMessage

func (*NumRows) ProtoMessage()

func (*NumRows) Reset

func (m *NumRows) Reset()

func (*NumRows) String

func (m *NumRows) String() string

type PartialTable

type PartialTable struct {
	Id        int64                      `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	StartTime *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
}

func (*PartialTable) Descriptor

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

func (*PartialTable) GetId

func (m *PartialTable) GetId() int64

func (*PartialTable) GetStartTime

func (m *PartialTable) GetStartTime() *google_protobuf.Timestamp

func (*PartialTable) ProtoMessage

func (*PartialTable) ProtoMessage()

func (*PartialTable) Reset

func (m *PartialTable) Reset()

func (*PartialTable) String

func (m *PartialTable) String() string

type Test

type Test struct {
	Id   int32  `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}

func (*Test) Descriptor

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

func (*Test) GetId

func (m *Test) GetId() int32

func (*Test) GetName

func (m *Test) GetName() string

func (*Test) ProtoMessage

func (*Test) ProtoMessage()

func (*Test) Reset

func (m *Test) Reset()

func (*Test) String

func (m *Test) String() string

type TestEnum

type TestEnum int32
const (
	TestEnum_first  TestEnum = 0
	TestEnum_second TestEnum = 1
)

func (TestEnum) EnumDescriptor

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

func (TestEnum) String

func (x TestEnum) String() string

type TwoMappedAndEnum

type TwoMappedAndEnum struct {
	StartTime *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
	EndTime   *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
	GenEnum   TestEnum                   `protobuf:"varint,3,opt,name=gen_enum,json=genEnum,enum=tests.test.TestEnum" json:"gen_enum,omitempty"`
}

func (*TwoMappedAndEnum) Descriptor

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

func (*TwoMappedAndEnum) GetEndTime

func (m *TwoMappedAndEnum) GetEndTime() *google_protobuf.Timestamp

func (*TwoMappedAndEnum) GetGenEnum

func (m *TwoMappedAndEnum) GetGenEnum() TestEnum

func (*TwoMappedAndEnum) GetStartTime

func (m *TwoMappedAndEnum) GetStartTime() *google_protobuf.Timestamp

func (*TwoMappedAndEnum) ProtoMessage

func (*TwoMappedAndEnum) ProtoMessage()

func (*TwoMappedAndEnum) Reset

func (m *TwoMappedAndEnum) Reset()

func (*TwoMappedAndEnum) String

func (m *TwoMappedAndEnum) String() string

Jump to

Keyboard shortcuts

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