e2e

package
v0.0.0-...-4ca03c8 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_e2e_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Basic

type Basic struct {
	A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
	// Types that are assignable to B:
	//	*Basic_Int
	//	*Basic_Str
	B   isBasic_B         `protobuf_oneof:"b"`
	Map map[string]string `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

Basic just tests basic fields, including oneofs and so on that don't generally work automatically with encoding/json.

func (*Basic) Descriptor deprecated

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

Deprecated: Use Basic.ProtoReflect.Descriptor instead.

func (*Basic) GetA

func (x *Basic) GetA() string

func (*Basic) GetB

func (m *Basic) GetB() isBasic_B

func (*Basic) GetInt

func (x *Basic) GetInt() int32

func (*Basic) GetMap

func (x *Basic) GetMap() map[string]string

func (*Basic) GetStr

func (x *Basic) GetStr() string

func (*Basic) MarshalJSON

func (msg *Basic) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Basic) ProtoMessage

func (*Basic) ProtoMessage()

func (*Basic) ProtoReflect

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

func (*Basic) Reset

func (x *Basic) Reset()

func (*Basic) String

func (x *Basic) String() string

func (*Basic) UnmarshalJSON

func (msg *Basic) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Basic_Int

type Basic_Int struct {
	Int int32 `protobuf:"varint,2,opt,name=int,proto3,oneof"`
}

type Basic_Str

type Basic_Str struct {
	Str string `protobuf:"bytes,3,opt,name=str,proto3,oneof"`
}

type Nested

type Nested struct {
	// contains filtered or unexported fields
}

Test nested types

func (*Nested) Descriptor deprecated

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

Deprecated: Use Nested.ProtoReflect.Descriptor instead.

func (*Nested) MarshalJSON

func (msg *Nested) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Nested) ProtoMessage

func (*Nested) ProtoMessage()

func (*Nested) ProtoReflect

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

func (*Nested) Reset

func (x *Nested) Reset()

func (*Nested) String

func (x *Nested) String() string

func (*Nested) UnmarshalJSON

func (msg *Nested) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Nested_Message

type Nested_Message struct {
	Basic *Basic `protobuf:"bytes,1,opt,name=basic,proto3" json:"basic,omitempty"`
	// contains filtered or unexported fields
}

func (*Nested_Message) Descriptor deprecated

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

Deprecated: Use Nested_Message.ProtoReflect.Descriptor instead.

func (*Nested_Message) GetBasic

func (x *Nested_Message) GetBasic() *Basic

func (*Nested_Message) MarshalJSON

func (msg *Nested_Message) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Nested_Message) ProtoMessage

func (*Nested_Message) ProtoMessage()

func (*Nested_Message) ProtoReflect

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

func (*Nested_Message) Reset

func (x *Nested_Message) Reset()

func (*Nested_Message) String

func (x *Nested_Message) String() string

func (*Nested_Message) UnmarshalJSON

func (msg *Nested_Message) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

Jump to

Keyboard shortcuts

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