protobuf

package
v0.0.0-...-d1695c4 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

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

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 Enum

type Enum int32
const (
	Enum_A Enum = 0
	Enum_B Enum = 1
	Enum_C Enum = 2
)

func (Enum) Enum

func (x Enum) Enum() *Enum

func (Enum) EnumDescriptor

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

func (Enum) String

func (x Enum) String() string

func (*Enum) UnmarshalJSON

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

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) Descriptor() ([]byte, []int)

func (*Labeled) GetOptional

func (m *Labeled) GetOptional() int32

func (*Labeled) GetRequired

func (m *Labeled) GetRequired() int32

func (*Labeled) ProtoMessage

func (*Labeled) ProtoMessage()

func (*Labeled) Reset

func (m *Labeled) Reset()

func (*Labeled) String

func (m *Labeled) String() string

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) Descriptor() ([]byte, []int)

func (*Large) GetBool_

func (m *Large) GetBool_() bool

func (*Large) GetDouble_

func (m *Large) GetDouble_() float64

func (*Large) GetEnum_

func (m *Large) GetEnum_() Enum

func (*Large) GetFloat_

func (m *Large) GetFloat_() float32

func (*Large) GetInt64S

func (m *Large) GetInt64S() []int64

func (*Large) GetInt64_

func (m *Large) GetInt64_() int64

func (*Large) GetMedium

func (m *Large) GetMedium() *Medium

func (*Large) GetSmall

func (m *Large) GetSmall() *Small

func (*Large) GetString_

func (m *Large) GetString_() string

func (*Large) GetWithMap

func (m *Large) GetWithMap() *WithMap

func (*Large) ProtoMessage

func (*Large) ProtoMessage()

func (*Large) Reset

func (m *Large) Reset()

func (*Large) String

func (m *Large) String() string

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) Descriptor() ([]byte, []int)

func (*Medium) GetFloats

func (m *Medium) GetFloats() []float32

func (*Medium) GetGroupa

func (m *Medium) GetGroupa() []*Medium_GroupA

func (*Medium) GetInt32S

func (m *Medium) GetInt32S() []int32

func (*Medium) GetSmalls

func (m *Medium) GetSmalls() []*Small

func (*Medium) ProtoMessage

func (*Medium) ProtoMessage()

func (*Medium) Reset

func (m *Medium) Reset()

func (*Medium) String

func (m *Medium) String() string

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) Descriptor() ([]byte, []int)

func (*Small) GetStrings

func (m *Small) GetStrings() []string

func (*Small) ProtoMessage

func (*Small) ProtoMessage()

func (*Small) Reset

func (m *Small) Reset()

func (*Small) String

func (m *Small) String() string

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) Descriptor() ([]byte, []int)

func (*WithMap) GetValueMessage

func (m *WithMap) GetValueMessage() map[int32]*Small

func (*WithMap) GetValueString

func (m *WithMap) GetValueString() map[string]string

func (*WithMap) ProtoMessage

func (*WithMap) ProtoMessage()

func (*WithMap) Reset

func (m *WithMap) Reset()

func (*WithMap) String

func (m *WithMap) String() string

Jump to

Keyboard shortcuts

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