e2e

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 valid to be assigned to B:
	//	*Basic_Int
	//	*Basic_Str
	B                    isBasic_B         `protobuf_oneof:"b"`
	Map                  map[string]string `` /* 147-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

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

func (*Basic) Descriptor

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

func (*Basic) GetA

func (m *Basic) GetA() string

func (*Basic) GetB

func (m *Basic) GetB() isBasic_B

func (*Basic) GetInt

func (m *Basic) GetInt() int32

func (*Basic) GetMap

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

func (*Basic) GetStr

func (m *Basic) GetStr() string

func (*Basic) MarshalJSON

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

MarshalJSON implements json.Marshaler

func (*Basic) ProtoMessage

func (*Basic) ProtoMessage()

func (*Basic) Reset

func (m *Basic) Reset()

func (*Basic) String

func (m *Basic) String() string

func (*Basic) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler

func (*Basic) XXX_DiscardUnknown

func (m *Basic) XXX_DiscardUnknown()

func (*Basic) XXX_Marshal

func (m *Basic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Basic) XXX_Merge

func (m *Basic) XXX_Merge(src proto.Message)

func (*Basic) XXX_OneofWrappers

func (*Basic) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Basic) XXX_Size

func (m *Basic) XXX_Size() int

func (*Basic) XXX_Unmarshal

func (m *Basic) XXX_Unmarshal(b []byte) error

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 {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Test nested types

func (*Nested) Descriptor

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

func (*Nested) MarshalJSON

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

MarshalJSON implements json.Marshaler

func (*Nested) ProtoMessage

func (*Nested) ProtoMessage()

func (*Nested) Reset

func (m *Nested) Reset()

func (*Nested) String

func (m *Nested) String() string

func (*Nested) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler

func (*Nested) XXX_DiscardUnknown

func (m *Nested) XXX_DiscardUnknown()

func (*Nested) XXX_Marshal

func (m *Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Nested) XXX_Merge

func (m *Nested) XXX_Merge(src proto.Message)

func (*Nested) XXX_Size

func (m *Nested) XXX_Size() int

func (*Nested) XXX_Unmarshal

func (m *Nested) XXX_Unmarshal(b []byte) error

type Nested_Message

type Nested_Message struct {
	Basic                *Basic   `protobuf:"bytes,1,opt,name=basic,proto3" json:"basic,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Nested_Message) Descriptor

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

func (*Nested_Message) GetBasic

func (m *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) Reset

func (m *Nested_Message) Reset()

func (*Nested_Message) String

func (m *Nested_Message) String() string

func (*Nested_Message) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler

func (*Nested_Message) XXX_DiscardUnknown

func (m *Nested_Message) XXX_DiscardUnknown()

func (*Nested_Message) XXX_Marshal

func (m *Nested_Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Nested_Message) XXX_Merge

func (m *Nested_Message) XXX_Merge(src proto.Message)

func (*Nested_Message) XXX_Size

func (m *Nested_Message) XXX_Size() int

func (*Nested_Message) XXX_Unmarshal

func (m *Nested_Message) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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