proto_text

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 proto_text is a generated protocol buffer package.

It is generated from these files:

tensorflow/tools/proto_text/test.proto

It has these top-level messages:

TestAllTypes
NestedTestAllTypes
ForeignMessage
TestEmptyMessage

Index

Constants

This section is empty.

Variables

View Source
var ForeignEnum_name = map[int32]string{
	0: "FOREIGN_ZERO",
	4: "FOREIGN_FOO",
	5: "FOREIGN_BAR",
	6: "FOREIGN_BAZ",
}
View Source
var ForeignEnum_value = map[string]int32{
	"FOREIGN_ZERO": 0,
	"FOREIGN_FOO":  4,
	"FOREIGN_BAR":  5,
	"FOREIGN_BAZ":  6,
}
View Source
var TestAllTypes_NestedEnum_name = map[int32]string{
	0:  "ZERO",
	1:  "FOO",
	2:  "BAR",
	3:  "BAZ",
	-1: "NEG",
}
View Source
var TestAllTypes_NestedEnum_value = map[string]int32{
	"ZERO": 0,
	"FOO":  1,
	"BAR":  2,
	"BAZ":  3,
	"NEG":  -1,
}

Functions

This section is empty.

Types

type ForeignEnum

type ForeignEnum int32
const (
	ForeignEnum_FOREIGN_ZERO ForeignEnum = 0
	ForeignEnum_FOREIGN_FOO  ForeignEnum = 4
	ForeignEnum_FOREIGN_BAR  ForeignEnum = 5
	ForeignEnum_FOREIGN_BAZ  ForeignEnum = 6
)

func (ForeignEnum) EnumDescriptor

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

func (ForeignEnum) String

func (x ForeignEnum) String() string

type ForeignMessage

type ForeignMessage struct {
	C int32 `protobuf:"varint,1,opt,name=c" json:"c,omitempty"`
}

func (*ForeignMessage) Descriptor

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

func (*ForeignMessage) GetC

func (m *ForeignMessage) GetC() int32

func (*ForeignMessage) ProtoMessage

func (*ForeignMessage) ProtoMessage()

func (*ForeignMessage) Reset

func (m *ForeignMessage) Reset()

func (*ForeignMessage) String

func (m *ForeignMessage) String() string

type NestedTestAllTypes

type NestedTestAllTypes struct {
	Child            *NestedTestAllTypes `protobuf:"bytes,1,opt,name=child" json:"child,omitempty"`
	Payload          *TestAllTypes       `protobuf:"bytes,2,opt,name=payload" json:"payload,omitempty"`
	MapStringToInt64 map[string]int64    `` /* 181-byte string literal not displayed */
}

A recursive message.

func (*NestedTestAllTypes) Descriptor

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

func (*NestedTestAllTypes) GetChild

func (m *NestedTestAllTypes) GetChild() *NestedTestAllTypes

func (*NestedTestAllTypes) GetMapStringToInt64

func (m *NestedTestAllTypes) GetMapStringToInt64() map[string]int64

func (*NestedTestAllTypes) GetPayload

func (m *NestedTestAllTypes) GetPayload() *TestAllTypes

func (*NestedTestAllTypes) ProtoMessage

func (*NestedTestAllTypes) ProtoMessage()

func (*NestedTestAllTypes) Reset

func (m *NestedTestAllTypes) Reset()

func (*NestedTestAllTypes) String

func (m *NestedTestAllTypes) String() string

type TestAllTypes

type TestAllTypes struct {
	// Singular
	OptionalInt32          int32                       `protobuf:"varint,1000,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
	OptionalInt64          int64                       `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty"`
	OptionalUint32         uint32                      `protobuf:"varint,3,opt,name=optional_uint32,json=optionalUint32" json:"optional_uint32,omitempty"`
	OptionalUint64         uint64                      `protobuf:"varint,999,opt,name=optional_uint64,json=optionalUint64" json:"optional_uint64,omitempty"`
	OptionalSint32         int32                       `protobuf:"zigzag32,5,opt,name=optional_sint32,json=optionalSint32" json:"optional_sint32,omitempty"`
	OptionalSint64         int64                       `protobuf:"zigzag64,6,opt,name=optional_sint64,json=optionalSint64" json:"optional_sint64,omitempty"`
	OptionalFixed32        uint32                      `protobuf:"fixed32,7,opt,name=optional_fixed32,json=optionalFixed32" json:"optional_fixed32,omitempty"`
	OptionalFixed64        uint64                      `protobuf:"fixed64,8,opt,name=optional_fixed64,json=optionalFixed64" json:"optional_fixed64,omitempty"`
	OptionalSfixed32       int32                       `protobuf:"fixed32,9,opt,name=optional_sfixed32,json=optionalSfixed32" json:"optional_sfixed32,omitempty"`
	OptionalSfixed64       int64                       `protobuf:"fixed64,10,opt,name=optional_sfixed64,json=optionalSfixed64" json:"optional_sfixed64,omitempty"`
	OptionalFloat          float32                     `protobuf:"fixed32,11,opt,name=optional_float,json=optionalFloat" json:"optional_float,omitempty"`
	OptionalDouble         float64                     `protobuf:"fixed64,12,opt,name=optional_double,json=optionalDouble" json:"optional_double,omitempty"`
	OptionalBool           bool                        `protobuf:"varint,13,opt,name=optional_bool,json=optionalBool" json:"optional_bool,omitempty"`
	OptionalString         string                      `protobuf:"bytes,14,opt,name=optional_string,json=optionalString" json:"optional_string,omitempty"`
	OptionalBytes          []byte                      `protobuf:"bytes,15,opt,name=optional_bytes,json=optionalBytes,proto3" json:"optional_bytes,omitempty"`
	OptionalNestedMessage  *TestAllTypes_NestedMessage `protobuf:"bytes,18,opt,name=optional_nested_message,json=optionalNestedMessage" json:"optional_nested_message,omitempty"`
	OptionalForeignMessage *ForeignMessage             `protobuf:"bytes,19,opt,name=optional_foreign_message,json=optionalForeignMessage" json:"optional_foreign_message,omitempty"`
	OptionalNestedEnum     TestAllTypes_NestedEnum     `` /* 157-byte string literal not displayed */
	OptionalForeignEnum    ForeignEnum                 `` /* 148-byte string literal not displayed */
	OptionalCord           string                      `protobuf:"bytes,25,opt,name=optional_cord,json=optionalCord" json:"optional_cord,omitempty"`
	// Repeated
	RepeatedInt32         []int32                       `protobuf:"varint,31,rep,packed,name=repeated_int32,json=repeatedInt32" json:"repeated_int32,omitempty"`
	RepeatedInt64         []int64                       `protobuf:"varint,32,rep,packed,name=repeated_int64,json=repeatedInt64" json:"repeated_int64,omitempty"`
	RepeatedUint32        []uint32                      `protobuf:"varint,33,rep,packed,name=repeated_uint32,json=repeatedUint32" json:"repeated_uint32,omitempty"`
	RepeatedUint64        []uint64                      `protobuf:"varint,34,rep,packed,name=repeated_uint64,json=repeatedUint64" json:"repeated_uint64,omitempty"`
	RepeatedSint32        []int32                       `protobuf:"zigzag32,35,rep,packed,name=repeated_sint32,json=repeatedSint32" json:"repeated_sint32,omitempty"`
	RepeatedSint64        []int64                       `protobuf:"zigzag64,36,rep,packed,name=repeated_sint64,json=repeatedSint64" json:"repeated_sint64,omitempty"`
	RepeatedFixed32       []uint32                      `protobuf:"fixed32,37,rep,packed,name=repeated_fixed32,json=repeatedFixed32" json:"repeated_fixed32,omitempty"`
	RepeatedFixed64       []uint64                      `protobuf:"fixed64,38,rep,packed,name=repeated_fixed64,json=repeatedFixed64" json:"repeated_fixed64,omitempty"`
	RepeatedSfixed32      []int32                       `protobuf:"fixed32,39,rep,packed,name=repeated_sfixed32,json=repeatedSfixed32" json:"repeated_sfixed32,omitempty"`
	RepeatedSfixed64      []int64                       `protobuf:"fixed64,40,rep,packed,name=repeated_sfixed64,json=repeatedSfixed64" json:"repeated_sfixed64,omitempty"`
	RepeatedFloat         []float32                     `protobuf:"fixed32,41,rep,packed,name=repeated_float,json=repeatedFloat" json:"repeated_float,omitempty"`
	RepeatedDouble        []float64                     `protobuf:"fixed64,42,rep,packed,name=repeated_double,json=repeatedDouble" json:"repeated_double,omitempty"`
	RepeatedBool          []bool                        `protobuf:"varint,43,rep,packed,name=repeated_bool,json=repeatedBool" json:"repeated_bool,omitempty"`
	RepeatedString        []string                      `protobuf:"bytes,44,rep,name=repeated_string,json=repeatedString" json:"repeated_string,omitempty"`
	RepeatedBytes         [][]byte                      `protobuf:"bytes,45,rep,name=repeated_bytes,json=repeatedBytes,proto3" json:"repeated_bytes,omitempty"`
	RepeatedNestedMessage []*TestAllTypes_NestedMessage `protobuf:"bytes,48,rep,name=repeated_nested_message,json=repeatedNestedMessage" json:"repeated_nested_message,omitempty"`
	RepeatedNestedEnum    []TestAllTypes_NestedEnum     `` /* 164-byte string literal not displayed */
	RepeatedCord          []string                      `protobuf:"bytes,55,rep,name=repeated_cord,json=repeatedCord" json:"repeated_cord,omitempty"`
	// Types that are valid to be assigned to OneofField:
	//	*TestAllTypes_OneofUint32
	//	*TestAllTypes_OneofNestedMessage
	//	*TestAllTypes_OneofString
	//	*TestAllTypes_OneofBytes
	//	*TestAllTypes_OneofEnum
	OneofField                isTestAllTypes_OneofField              `protobuf_oneof:"oneof_field"`
	MapStringToMessage        map[string]*TestAllTypes_NestedMessage `` /* 187-byte string literal not displayed */
	MapInt32ToMessage         map[int32]*TestAllTypes_NestedMessage  `` /* 185-byte string literal not displayed */
	MapInt64ToMessage         map[int64]*TestAllTypes_NestedMessage  `` /* 185-byte string literal not displayed */
	MapBoolToMessage          map[bool]*TestAllTypes_NestedMessage   `` /* 182-byte string literal not displayed */
	MapStringToInt64          map[string]int64                       `` /* 182-byte string literal not displayed */
	MapInt64ToString          map[int64]string                       `` /* 182-byte string literal not displayed */
	AnotherMapStringToMessage map[string]*TestAllTypes_NestedMessage `` /* 210-byte string literal not displayed */
	PackedRepeatedInt64       []int64                                `protobuf:"varint,64,rep,packed,name=packed_repeated_int64,json=packedRepeatedInt64" json:"packed_repeated_int64,omitempty"`
}

func (*TestAllTypes) Descriptor

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

func (*TestAllTypes) GetAnotherMapStringToMessage

func (m *TestAllTypes) GetAnotherMapStringToMessage() map[string]*TestAllTypes_NestedMessage

func (*TestAllTypes) GetMapBoolToMessage

func (m *TestAllTypes) GetMapBoolToMessage() map[bool]*TestAllTypes_NestedMessage

func (*TestAllTypes) GetMapInt32ToMessage

func (m *TestAllTypes) GetMapInt32ToMessage() map[int32]*TestAllTypes_NestedMessage

func (*TestAllTypes) GetMapInt64ToMessage

func (m *TestAllTypes) GetMapInt64ToMessage() map[int64]*TestAllTypes_NestedMessage

func (*TestAllTypes) GetMapInt64ToString

func (m *TestAllTypes) GetMapInt64ToString() map[int64]string

func (*TestAllTypes) GetMapStringToInt64

func (m *TestAllTypes) GetMapStringToInt64() map[string]int64

func (*TestAllTypes) GetMapStringToMessage

func (m *TestAllTypes) GetMapStringToMessage() map[string]*TestAllTypes_NestedMessage

func (*TestAllTypes) GetOneofBytes

func (m *TestAllTypes) GetOneofBytes() []byte

func (*TestAllTypes) GetOneofEnum

func (m *TestAllTypes) GetOneofEnum() TestAllTypes_NestedEnum

func (*TestAllTypes) GetOneofField

func (m *TestAllTypes) GetOneofField() isTestAllTypes_OneofField

func (*TestAllTypes) GetOneofNestedMessage

func (m *TestAllTypes) GetOneofNestedMessage() *TestAllTypes_NestedMessage

func (*TestAllTypes) GetOneofString

func (m *TestAllTypes) GetOneofString() string

func (*TestAllTypes) GetOneofUint32

func (m *TestAllTypes) GetOneofUint32() uint32

func (*TestAllTypes) GetOptionalBool

func (m *TestAllTypes) GetOptionalBool() bool

func (*TestAllTypes) GetOptionalBytes

func (m *TestAllTypes) GetOptionalBytes() []byte

func (*TestAllTypes) GetOptionalCord

func (m *TestAllTypes) GetOptionalCord() string

func (*TestAllTypes) GetOptionalDouble

func (m *TestAllTypes) GetOptionalDouble() float64

func (*TestAllTypes) GetOptionalFixed32

func (m *TestAllTypes) GetOptionalFixed32() uint32

func (*TestAllTypes) GetOptionalFixed64

func (m *TestAllTypes) GetOptionalFixed64() uint64

func (*TestAllTypes) GetOptionalFloat

func (m *TestAllTypes) GetOptionalFloat() float32

func (*TestAllTypes) GetOptionalForeignEnum

func (m *TestAllTypes) GetOptionalForeignEnum() ForeignEnum

func (*TestAllTypes) GetOptionalForeignMessage

func (m *TestAllTypes) GetOptionalForeignMessage() *ForeignMessage

func (*TestAllTypes) GetOptionalInt32

func (m *TestAllTypes) GetOptionalInt32() int32

func (*TestAllTypes) GetOptionalInt64

func (m *TestAllTypes) GetOptionalInt64() int64

func (*TestAllTypes) GetOptionalNestedEnum

func (m *TestAllTypes) GetOptionalNestedEnum() TestAllTypes_NestedEnum

func (*TestAllTypes) GetOptionalNestedMessage

func (m *TestAllTypes) GetOptionalNestedMessage() *TestAllTypes_NestedMessage

func (*TestAllTypes) GetOptionalSfixed32

func (m *TestAllTypes) GetOptionalSfixed32() int32

func (*TestAllTypes) GetOptionalSfixed64

func (m *TestAllTypes) GetOptionalSfixed64() int64

func (*TestAllTypes) GetOptionalSint32

func (m *TestAllTypes) GetOptionalSint32() int32

func (*TestAllTypes) GetOptionalSint64

func (m *TestAllTypes) GetOptionalSint64() int64

func (*TestAllTypes) GetOptionalString

func (m *TestAllTypes) GetOptionalString() string

func (*TestAllTypes) GetOptionalUint32

func (m *TestAllTypes) GetOptionalUint32() uint32

func (*TestAllTypes) GetOptionalUint64

func (m *TestAllTypes) GetOptionalUint64() uint64

func (*TestAllTypes) GetPackedRepeatedInt64

func (m *TestAllTypes) GetPackedRepeatedInt64() []int64

func (*TestAllTypes) GetRepeatedBool

func (m *TestAllTypes) GetRepeatedBool() []bool

func (*TestAllTypes) GetRepeatedBytes

func (m *TestAllTypes) GetRepeatedBytes() [][]byte

func (*TestAllTypes) GetRepeatedCord

func (m *TestAllTypes) GetRepeatedCord() []string

func (*TestAllTypes) GetRepeatedDouble

func (m *TestAllTypes) GetRepeatedDouble() []float64

func (*TestAllTypes) GetRepeatedFixed32

func (m *TestAllTypes) GetRepeatedFixed32() []uint32

func (*TestAllTypes) GetRepeatedFixed64

func (m *TestAllTypes) GetRepeatedFixed64() []uint64

func (*TestAllTypes) GetRepeatedFloat

func (m *TestAllTypes) GetRepeatedFloat() []float32

func (*TestAllTypes) GetRepeatedInt32

func (m *TestAllTypes) GetRepeatedInt32() []int32

func (*TestAllTypes) GetRepeatedInt64

func (m *TestAllTypes) GetRepeatedInt64() []int64

func (*TestAllTypes) GetRepeatedNestedEnum

func (m *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum

func (*TestAllTypes) GetRepeatedNestedMessage

func (m *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage

func (*TestAllTypes) GetRepeatedSfixed32

func (m *TestAllTypes) GetRepeatedSfixed32() []int32

func (*TestAllTypes) GetRepeatedSfixed64

func (m *TestAllTypes) GetRepeatedSfixed64() []int64

func (*TestAllTypes) GetRepeatedSint32

func (m *TestAllTypes) GetRepeatedSint32() []int32

func (*TestAllTypes) GetRepeatedSint64

func (m *TestAllTypes) GetRepeatedSint64() []int64

func (*TestAllTypes) GetRepeatedString

func (m *TestAllTypes) GetRepeatedString() []string

func (*TestAllTypes) GetRepeatedUint32

func (m *TestAllTypes) GetRepeatedUint32() []uint32

func (*TestAllTypes) GetRepeatedUint64

func (m *TestAllTypes) GetRepeatedUint64() []uint64

func (*TestAllTypes) ProtoMessage

func (*TestAllTypes) ProtoMessage()

func (*TestAllTypes) Reset

func (m *TestAllTypes) Reset()

func (*TestAllTypes) String

func (m *TestAllTypes) String() string

func (*TestAllTypes) XXX_OneofFuncs

func (*TestAllTypes) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type TestAllTypes_NestedEnum

type TestAllTypes_NestedEnum int32
const (
	TestAllTypes_ZERO TestAllTypes_NestedEnum = 0
	TestAllTypes_FOO  TestAllTypes_NestedEnum = 1
	TestAllTypes_BAR  TestAllTypes_NestedEnum = 2
	TestAllTypes_BAZ  TestAllTypes_NestedEnum = 3
	TestAllTypes_NEG  TestAllTypes_NestedEnum = -1
)

func (TestAllTypes_NestedEnum) EnumDescriptor

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

func (TestAllTypes_NestedEnum) String

func (x TestAllTypes_NestedEnum) String() string

type TestAllTypes_NestedMessage

type TestAllTypes_NestedMessage struct {
	OptionalInt32 int32                                           `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
	RepeatedInt32 []int32                                         `protobuf:"varint,2,rep,packed,name=repeated_int32,json=repeatedInt32" json:"repeated_int32,omitempty"`
	Msg           *TestAllTypes_NestedMessage_DoubleNestedMessage `protobuf:"bytes,3,opt,name=msg" json:"msg,omitempty"`
	OptionalInt64 int64                                           `protobuf:"varint,4,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty"`
}

func (*TestAllTypes_NestedMessage) Descriptor

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

func (*TestAllTypes_NestedMessage) GetMsg

func (*TestAllTypes_NestedMessage) GetOptionalInt32

func (m *TestAllTypes_NestedMessage) GetOptionalInt32() int32

func (*TestAllTypes_NestedMessage) GetOptionalInt64

func (m *TestAllTypes_NestedMessage) GetOptionalInt64() int64

func (*TestAllTypes_NestedMessage) GetRepeatedInt32

func (m *TestAllTypes_NestedMessage) GetRepeatedInt32() []int32

func (*TestAllTypes_NestedMessage) ProtoMessage

func (*TestAllTypes_NestedMessage) ProtoMessage()

func (*TestAllTypes_NestedMessage) Reset

func (m *TestAllTypes_NestedMessage) Reset()

func (*TestAllTypes_NestedMessage) String

func (m *TestAllTypes_NestedMessage) String() string

type TestAllTypes_NestedMessage_DoubleNestedMessage

type TestAllTypes_NestedMessage_DoubleNestedMessage struct {
	OptionalString string `protobuf:"bytes,1,opt,name=optional_string,json=optionalString" json:"optional_string,omitempty"`
}

func (*TestAllTypes_NestedMessage_DoubleNestedMessage) Descriptor

func (*TestAllTypes_NestedMessage_DoubleNestedMessage) GetOptionalString

func (*TestAllTypes_NestedMessage_DoubleNestedMessage) ProtoMessage

func (*TestAllTypes_NestedMessage_DoubleNestedMessage) Reset

func (*TestAllTypes_NestedMessage_DoubleNestedMessage) String

type TestAllTypes_OneofBytes

type TestAllTypes_OneofBytes struct {
	OneofBytes []byte `protobuf:"bytes,114,opt,name=oneof_bytes,json=oneofBytes,proto3,oneof"`
}

type TestAllTypes_OneofEnum

type TestAllTypes_OneofEnum struct {
	OneofEnum TestAllTypes_NestedEnum `protobuf:"varint,100,opt,name=oneof_enum,json=oneofEnum,enum=tensorflow.test.TestAllTypes_NestedEnum,oneof"`
}

type TestAllTypes_OneofNestedMessage

type TestAllTypes_OneofNestedMessage struct {
	OneofNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,112,opt,name=oneof_nested_message,json=oneofNestedMessage,oneof"`
}

type TestAllTypes_OneofString

type TestAllTypes_OneofString struct {
	OneofString string `protobuf:"bytes,113,opt,name=oneof_string,json=oneofString,oneof"`
}

type TestAllTypes_OneofUint32

type TestAllTypes_OneofUint32 struct {
	OneofUint32 uint32 `protobuf:"varint,111,opt,name=oneof_uint32,json=oneofUint32,oneof"`
}

type TestEmptyMessage

type TestEmptyMessage struct {
}

func (*TestEmptyMessage) Descriptor

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

func (*TestEmptyMessage) ProtoMessage

func (*TestEmptyMessage) ProtoMessage()

func (*TestEmptyMessage) Reset

func (m *TestEmptyMessage) Reset()

func (*TestEmptyMessage) String

func (m *TestEmptyMessage) String() string

Jump to

Keyboard shortcuts

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