testprotos

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional string some_custom_options = 44444;
	E_SomeCustomOptions = &file_proto3_optional_desc_test_proto3_optional_proto_extTypes[0]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var File_proto3_optional_desc_test_proto3_optional_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type MessageWithOptionalFields

type MessageWithOptionalFields struct {
	Foo *string `protobuf:"bytes,1,opt,name=foo,proto3,oneof" json:"foo,omitempty"`
	Bar *int64  `protobuf:"varint,2,opt,name=bar,proto3,oneof" json:"bar,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageWithOptionalFields) Descriptor deprecated

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

Deprecated: Use MessageWithOptionalFields.ProtoReflect.Descriptor instead.

func (*MessageWithOptionalFields) GetBar

func (x *MessageWithOptionalFields) GetBar() int64

func (*MessageWithOptionalFields) GetFoo

func (x *MessageWithOptionalFields) GetFoo() string

func (*MessageWithOptionalFields) ProtoMessage

func (*MessageWithOptionalFields) ProtoMessage()

func (*MessageWithOptionalFields) ProtoReflect

func (*MessageWithOptionalFields) Reset

func (x *MessageWithOptionalFields) Reset()

func (*MessageWithOptionalFields) String

func (x *MessageWithOptionalFields) String() string

Jump to

Keyboard shortcuts

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