protobuf

package
v2.14.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Enum_name = map[int32]string{
		0: "A",
		1: "B",
		2: "C",
	}
	Enum_value = map[string]int32{
		"A": 0,
		"B": 1,
		"C": 2,
	}
)

Enum value maps for Enum.

View Source
var File_tensorflow_python_util_protobuf_compare_test_proto protoreflect.FileDescriptor

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) Descriptor

func (Enum) Descriptor() protoreflect.EnumDescriptor

func (Enum) Enum

func (x Enum) Enum() *Enum

func (Enum) EnumDescriptor deprecated

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

Deprecated: Use Enum.Descriptor instead.

func (Enum) Number

func (x Enum) Number() protoreflect.EnumNumber

func (Enum) String

func (x Enum) String() string

func (Enum) Type

func (Enum) Type() protoreflect.EnumType

func (*Enum) UnmarshalJSON deprecated

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

Deprecated: Do not use.

type Floats added in v2.13.0

type Floats struct {
	Float_  *float32 `protobuf:"fixed32,1,opt,name=float_,json=float" json:"float_,omitempty"`
	Double_ *float64 `protobuf:"fixed64,2,opt,name=double_,json=double" json:"double_,omitempty"`
	// contains filtered or unexported fields
}

func (*Floats) Descriptor deprecated added in v2.13.0

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

Deprecated: Use Floats.ProtoReflect.Descriptor instead.

func (*Floats) GetDouble_ added in v2.13.0

func (x *Floats) GetDouble_() float64

func (*Floats) GetFloat_ added in v2.13.0

func (x *Floats) GetFloat_() float32

func (*Floats) ProtoMessage added in v2.13.0

func (*Floats) ProtoMessage()

func (*Floats) ProtoReflect added in v2.13.0

func (x *Floats) ProtoReflect() protoreflect.Message

func (*Floats) Reset added in v2.13.0

func (x *Floats) Reset()

func (*Floats) String added in v2.13.0

func (x *Floats) String() string

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"`
	// contains filtered or unexported fields
}

func (*Labeled) Descriptor deprecated

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

Deprecated: Use Labeled.ProtoReflect.Descriptor instead.

func (*Labeled) GetOptional

func (x *Labeled) GetOptional() int32

func (*Labeled) GetRequired

func (x *Labeled) GetRequired() int32

func (*Labeled) ProtoMessage

func (*Labeled) ProtoMessage()

func (*Labeled) ProtoReflect

func (x *Labeled) ProtoReflect() protoreflect.Message

func (*Labeled) Reset

func (x *Labeled) Reset()

func (*Labeled) String

func (x *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"`
	// contains filtered or unexported fields
}

func (*Large) Descriptor deprecated

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

Deprecated: Use Large.ProtoReflect.Descriptor instead.

func (*Large) GetBool_

func (x *Large) GetBool_() bool

func (*Large) GetDouble_

func (x *Large) GetDouble_() float64

func (*Large) GetEnum_

func (x *Large) GetEnum_() Enum

func (*Large) GetFloat_

func (x *Large) GetFloat_() float32

func (*Large) GetInt64S

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

func (*Large) GetInt64_

func (x *Large) GetInt64_() int64

func (*Large) GetMedium

func (x *Large) GetMedium() *Medium

func (*Large) GetSmall

func (x *Large) GetSmall() *Small

func (*Large) GetString_

func (x *Large) GetString_() string

func (*Large) GetWithMap

func (x *Large) GetWithMap() *WithMap

func (*Large) ProtoMessage

func (*Large) ProtoMessage()

func (*Large) ProtoReflect

func (x *Large) ProtoReflect() protoreflect.Message

func (*Large) Reset

func (x *Large) Reset()

func (*Large) String

func (x *Large) String() string

type MapFloats added in v2.13.0

type MapFloats struct {
	IntToFloats map[int64]*Floats `` /* 164-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MapFloats) Descriptor deprecated added in v2.13.0

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

Deprecated: Use MapFloats.ProtoReflect.Descriptor instead.

func (*MapFloats) GetIntToFloats added in v2.13.0

func (x *MapFloats) GetIntToFloats() map[int64]*Floats

func (*MapFloats) ProtoMessage added in v2.13.0

func (*MapFloats) ProtoMessage()

func (*MapFloats) ProtoReflect added in v2.13.0

func (x *MapFloats) ProtoReflect() protoreflect.Message

func (*MapFloats) Reset added in v2.13.0

func (x *MapFloats) Reset()

func (*MapFloats) String added in v2.13.0

func (x *MapFloats) 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"`
	// contains filtered or unexported fields
}

func (*Medium) Descriptor deprecated

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

Deprecated: Use Medium.ProtoReflect.Descriptor instead.

func (*Medium) GetFloats

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

func (*Medium) GetGroupa

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

func (*Medium) GetInt32S

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

func (*Medium) GetSmalls

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

func (*Medium) ProtoMessage

func (*Medium) ProtoMessage()

func (*Medium) ProtoReflect

func (x *Medium) ProtoReflect() protoreflect.Message

func (*Medium) Reset

func (x *Medium) Reset()

func (*Medium) String

func (x *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"`
	// contains filtered or unexported fields
}

func (*Medium_GroupA) Descriptor deprecated

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

Deprecated: Use Medium_GroupA.ProtoReflect.Descriptor instead.

func (*Medium_GroupA) GetGroupb

func (x *Medium_GroupA) GetGroupb() []*Medium_GroupA_GroupB

func (*Medium_GroupA) ProtoMessage

func (*Medium_GroupA) ProtoMessage()

func (*Medium_GroupA) ProtoReflect

func (x *Medium_GroupA) ProtoReflect() protoreflect.Message

func (*Medium_GroupA) Reset

func (x *Medium_GroupA) Reset()

func (*Medium_GroupA) String

func (x *Medium_GroupA) String() string

type Medium_GroupA_GroupB

type Medium_GroupA_GroupB struct {
	Strings *string `protobuf:"bytes,5,req,name=strings" json:"strings,omitempty"`
	// contains filtered or unexported fields
}

func (*Medium_GroupA_GroupB) Descriptor deprecated

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

Deprecated: Use Medium_GroupA_GroupB.ProtoReflect.Descriptor instead.

func (*Medium_GroupA_GroupB) GetStrings

func (x *Medium_GroupA_GroupB) GetStrings() string

func (*Medium_GroupA_GroupB) ProtoMessage

func (*Medium_GroupA_GroupB) ProtoMessage()

func (*Medium_GroupA_GroupB) ProtoReflect

func (x *Medium_GroupA_GroupB) ProtoReflect() protoreflect.Message

func (*Medium_GroupA_GroupB) Reset

func (x *Medium_GroupA_GroupB) Reset()

func (*Medium_GroupA_GroupB) String

func (x *Medium_GroupA_GroupB) String() string

type NestedFloats added in v2.13.0

type NestedFloats struct {
	Floats *Floats `protobuf:"bytes,1,opt,name=floats" json:"floats,omitempty"`
	// contains filtered or unexported fields
}

func (*NestedFloats) Descriptor deprecated added in v2.13.0

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

Deprecated: Use NestedFloats.ProtoReflect.Descriptor instead.

func (*NestedFloats) GetFloats added in v2.13.0

func (x *NestedFloats) GetFloats() *Floats

func (*NestedFloats) ProtoMessage added in v2.13.0

func (*NestedFloats) ProtoMessage()

func (*NestedFloats) ProtoReflect added in v2.13.0

func (x *NestedFloats) ProtoReflect() protoreflect.Message

func (*NestedFloats) Reset added in v2.13.0

func (x *NestedFloats) Reset()

func (*NestedFloats) String added in v2.13.0

func (x *NestedFloats) String() string

type RepeatedFloats added in v2.13.0

type RepeatedFloats struct {
	Float_  []float32 `protobuf:"fixed32,1,rep,packed,name=float_,json=float" json:"float_,omitempty"`
	Double_ []float64 `protobuf:"fixed64,2,rep,packed,name=double_,json=double" json:"double_,omitempty"`
	// contains filtered or unexported fields
}

func (*RepeatedFloats) Descriptor deprecated added in v2.13.0

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

Deprecated: Use RepeatedFloats.ProtoReflect.Descriptor instead.

func (*RepeatedFloats) GetDouble_ added in v2.13.0

func (x *RepeatedFloats) GetDouble_() []float64

func (*RepeatedFloats) GetFloat_ added in v2.13.0

func (x *RepeatedFloats) GetFloat_() []float32

func (*RepeatedFloats) ProtoMessage added in v2.13.0

func (*RepeatedFloats) ProtoMessage()

func (*RepeatedFloats) ProtoReflect added in v2.13.0

func (x *RepeatedFloats) ProtoReflect() protoreflect.Message

func (*RepeatedFloats) Reset added in v2.13.0

func (x *RepeatedFloats) Reset()

func (*RepeatedFloats) String added in v2.13.0

func (x *RepeatedFloats) String() string

type Small

type Small struct {
	Strings []string `protobuf:"bytes,1,rep,name=strings" json:"strings,omitempty"`
	// contains filtered or unexported fields
}

func (*Small) Descriptor deprecated

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

Deprecated: Use Small.ProtoReflect.Descriptor instead.

func (*Small) GetStrings

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

func (*Small) ProtoMessage

func (*Small) ProtoMessage()

func (*Small) ProtoReflect

func (x *Small) ProtoReflect() protoreflect.Message

func (*Small) Reset

func (x *Small) Reset()

func (*Small) String

func (x *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 */
	// contains filtered or unexported fields
}

func (*WithMap) Descriptor deprecated

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

Deprecated: Use WithMap.ProtoReflect.Descriptor instead.

func (*WithMap) GetValueMessage

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

func (*WithMap) GetValueString

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

func (*WithMap) ProtoMessage

func (*WithMap) ProtoMessage()

func (*WithMap) ProtoReflect

func (x *WithMap) ProtoReflect() protoreflect.Message

func (*WithMap) Reset

func (x *WithMap) Reset()

func (*WithMap) String

func (x *WithMap) String() string

Jump to

Keyboard shortcuts

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