Documentation
¶
Overview ¶
Package protobuf is a generated protocol buffer package.
It is generated from these files:
tensorflow/python/util/protobuf/compare_test.proto
It has these top-level messages:
Small Medium Large Labeled WithMap
Index ¶
- Variables
- type Enum
- type Labeled
- type Large
- func (*Large) Descriptor() ([]byte, []int)
- func (m *Large) GetBool_() bool
- func (m *Large) GetDouble_() float64
- func (m *Large) GetEnum_() Enum
- func (m *Large) GetFloat_() float32
- func (m *Large) GetInt64S() []int64
- func (m *Large) GetInt64_() int64
- func (m *Large) GetMedium() *Medium
- func (m *Large) GetSmall() *Small
- func (m *Large) GetString_() string
- func (m *Large) GetWithMap() *WithMap
- func (*Large) ProtoMessage()
- func (m *Large) Reset()
- func (m *Large) String() string
- type Medium
- type Medium_GroupA
- type Medium_GroupA_GroupB
- type Small
- type WithMap
Constants ¶
This section is empty.
Variables ¶
View Source
var Enum_name = map[int32]string{
0: "A",
1: "B",
2: "C",
}
View Source
var Enum_value = map[string]int32{
"A": 0,
"B": 1,
"C": 2,
}
Functions ¶
This section is empty.
Types ¶
type Labeled ¶
type Labeled struct { Required *int32 `protobuf:"varint,1,req,name=required" json:"required,omitempty"` Optional *int32 `protobuf:"varint,2,opt,name=optional" json:"optional,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Labeled) Descriptor ¶
func (*Labeled) GetOptional ¶
func (*Labeled) GetRequired ¶
func (*Labeled) ProtoMessage ¶
func (*Labeled) ProtoMessage()
type Large ¶
type Large struct { String_ *string `protobuf:"bytes,1,opt,name=string_,json=string" json:"string_,omitempty"` Int64_ *int64 `protobuf:"varint,2,opt,name=int64_,json=int64" json:"int64_,omitempty"` Float_ *float32 `protobuf:"fixed32,3,opt,name=float_,json=float" json:"float_,omitempty"` Bool_ *bool `protobuf:"varint,4,opt,name=bool_,json=bool" json:"bool_,omitempty"` Enum_ *Enum `protobuf:"varint,5,opt,name=enum_,json=enum,enum=compare_test.Enum" json:"enum_,omitempty"` Int64S []int64 `protobuf:"varint,6,rep,name=int64s" json:"int64s,omitempty"` Medium *Medium `protobuf:"bytes,7,opt,name=medium" json:"medium,omitempty"` Small *Small `protobuf:"bytes,8,opt,name=small" json:"small,omitempty"` Double_ *float64 `protobuf:"fixed64,9,opt,name=double_,json=double" json:"double_,omitempty"` WithMap *WithMap `protobuf:"bytes,10,opt,name=with_map,json=withMap" json:"with_map,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Large) Descriptor ¶
func (*Large) GetDouble_ ¶
func (*Large) GetString_ ¶
func (*Large) GetWithMap ¶
func (*Large) ProtoMessage ¶
func (*Large) ProtoMessage()
type Medium ¶
type Medium struct { Int32S []int32 `protobuf:"varint,1,rep,name=int32s" json:"int32s,omitempty"` Smalls []*Small `protobuf:"bytes,2,rep,name=smalls" json:"smalls,omitempty"` Groupa []*Medium_GroupA `protobuf:"group,3,rep,name=GroupA,json=groupa" json:"groupa,omitempty"` Floats []float32 `protobuf:"fixed32,6,rep,name=floats" json:"floats,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Medium) Descriptor ¶
func (*Medium) GetGroupa ¶
func (m *Medium) GetGroupa() []*Medium_GroupA
func (*Medium) ProtoMessage ¶
func (*Medium) ProtoMessage()
type Medium_GroupA ¶
type Medium_GroupA struct { Groupb []*Medium_GroupA_GroupB `protobuf:"group,4,rep,name=GroupB,json=groupb" json:"groupb,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Medium_GroupA) Descriptor ¶
func (*Medium_GroupA) Descriptor() ([]byte, []int)
func (*Medium_GroupA) GetGroupb ¶
func (m *Medium_GroupA) GetGroupb() []*Medium_GroupA_GroupB
func (*Medium_GroupA) ProtoMessage ¶
func (*Medium_GroupA) ProtoMessage()
func (*Medium_GroupA) Reset ¶
func (m *Medium_GroupA) Reset()
func (*Medium_GroupA) String ¶
func (m *Medium_GroupA) String() string
type Medium_GroupA_GroupB ¶
type Medium_GroupA_GroupB struct { Strings *string `protobuf:"bytes,5,req,name=strings" json:"strings,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Medium_GroupA_GroupB) Descriptor ¶
func (*Medium_GroupA_GroupB) Descriptor() ([]byte, []int)
func (*Medium_GroupA_GroupB) GetStrings ¶
func (m *Medium_GroupA_GroupB) GetStrings() string
func (*Medium_GroupA_GroupB) ProtoMessage ¶
func (*Medium_GroupA_GroupB) ProtoMessage()
func (*Medium_GroupA_GroupB) Reset ¶
func (m *Medium_GroupA_GroupB) Reset()
func (*Medium_GroupA_GroupB) String ¶
func (m *Medium_GroupA_GroupB) String() string
type Small ¶
type Small struct { Strings []string `protobuf:"bytes,1,rep,name=strings" json:"strings,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Small) Descriptor ¶
func (*Small) GetStrings ¶
func (*Small) ProtoMessage ¶
func (*Small) ProtoMessage()
type WithMap ¶
type WithMap struct { ValueMessage map[int32]*Small `` /* 165-byte string literal not displayed */ ValueString map[string]string `` /* 161-byte string literal not displayed */ XXX_unrecognized []byte `json:"-"` }
func (*WithMap) Descriptor ¶
func (*WithMap) GetValueMessage ¶
func (*WithMap) GetValueString ¶
func (*WithMap) ProtoMessage ¶
func (*WithMap) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.