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 ¶
- Variables
- type ExampleTable
- type ExampleTableRange
- type Ids
- type Name
- type NumRows
- type PartialTable
- type Test
- type TestEnum
- type TwoMappedAndEnum
- func (*TwoMappedAndEnum) Descriptor() ([]byte, []int)
- func (m *TwoMappedAndEnum) GetEndTime() *google_protobuf.Timestamp
- func (m *TwoMappedAndEnum) GetGenEnum() TestEnum
- func (m *TwoMappedAndEnum) GetStartTime() *google_protobuf.Timestamp
- func (*TwoMappedAndEnum) ProtoMessage()
- func (m *TwoMappedAndEnum) Reset()
- func (m *TwoMappedAndEnum) String() string
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) ProtoMessage ¶
func (*Ids) ProtoMessage()
type Name ¶
type Name struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*Name) Descriptor ¶
func (*Name) ProtoMessage ¶
func (*Name) ProtoMessage()
type NumRows ¶
type NumRows struct {
Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}
func (*NumRows) Descriptor ¶
func (*NumRows) ProtoMessage ¶
func (*NumRows) ProtoMessage()
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) ProtoMessage ¶
func (*Test) ProtoMessage()
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
Click to show internal directories.
Click to hide internal directories.