example

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Example

type Example struct {
	WithNewTags     string `protobuf:"bytes,1,opt,name=with_new_tags,json=withNewTags,proto3" json:"with_new_tags,omitempty"`
	WithNewMultiple string `protobuf:"bytes,2,opt,name=with_new_multiple,json=withNewMultiple,proto3" json:"with_new_multiple,omitempty"`
	ReplaceDefault  string `protobuf:"bytes,3,opt,name=replace_default,json=replaceDefault,proto3" json:"replace_default,omitempty"`
	// Types that are assignable to OneOf:
	//	*Example_A
	//	*Example_BJk
	OneOf isExample_OneOf `protobuf_oneof:"one_of"`
	// contains filtered or unexported fields
}

func (*Example) Descriptor deprecated

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

Deprecated: Use Example.ProtoReflect.Descriptor instead.

func (*Example) GetA

func (x *Example) GetA() string

func (*Example) GetBJk

func (x *Example) GetBJk() int32

func (*Example) GetOneOf

func (m *Example) GetOneOf() isExample_OneOf

func (*Example) GetReplaceDefault

func (x *Example) GetReplaceDefault() string

func (*Example) GetWithNewMultiple

func (x *Example) GetWithNewMultiple() string

func (*Example) GetWithNewTags

func (x *Example) GetWithNewTags() string

func (*Example) ProtoMessage

func (*Example) ProtoMessage()

func (*Example) ProtoReflect added in v0.5.2

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

func (*Example) Reset

func (x *Example) Reset()

func (*Example) String

func (x *Example) String() string

type Example_A

type Example_A struct {
	A string `protobuf:"bytes,5,opt,name=a,proto3,oneof"`
}

type Example_BJk

type Example_BJk struct {
	BJk int32 `protobuf:"varint,6,opt,name=b_jk,json=bJk,proto3,oneof"`
}

type SecondMessage

type SecondMessage struct {
	WithNewTags     string `protobuf:"bytes,1,opt,name=with_new_tags,json=withNewTags,proto3" json:"with_new_tags,omitempty"`
	WithNewMultiple string `protobuf:"bytes,2,opt,name=with_new_multiple,json=withNewMultiple,proto3" json:"with_new_multiple,omitempty"`
	ReplaceDefault  string `protobuf:"bytes,3,opt,name=replace_default,json=replaceDefault,proto3" json:"replace_default,omitempty"`
	// contains filtered or unexported fields
}

func (*SecondMessage) Descriptor deprecated

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

Deprecated: Use SecondMessage.ProtoReflect.Descriptor instead.

func (*SecondMessage) GetReplaceDefault

func (x *SecondMessage) GetReplaceDefault() string

func (*SecondMessage) GetWithNewMultiple

func (x *SecondMessage) GetWithNewMultiple() string

func (*SecondMessage) GetWithNewTags

func (x *SecondMessage) GetWithNewTags() string

func (*SecondMessage) ProtoMessage

func (*SecondMessage) ProtoMessage()

func (*SecondMessage) ProtoReflect added in v0.5.2

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

func (*SecondMessage) Reset

func (x *SecondMessage) Reset()

func (*SecondMessage) String

func (x *SecondMessage) String() string

type ThirdExample

type ThirdExample struct {
	InnerExample *ThirdExample_InnerExample `protobuf:"bytes,1,opt,name=inner_example,json=innerExample,proto3" json:"inner_example,omitempty"`
	// contains filtered or unexported fields
}

func (*ThirdExample) Descriptor deprecated

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

Deprecated: Use ThirdExample.ProtoReflect.Descriptor instead.

func (*ThirdExample) GetInnerExample

func (x *ThirdExample) GetInnerExample() *ThirdExample_InnerExample

func (*ThirdExample) ProtoMessage

func (*ThirdExample) ProtoMessage()

func (*ThirdExample) ProtoReflect added in v0.5.2

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

func (*ThirdExample) Reset

func (x *ThirdExample) Reset()

func (*ThirdExample) String

func (x *ThirdExample) String() string

type ThirdExample_InnerExample

type ThirdExample_InnerExample struct {
	Id  string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Yes int32  `protobuf:"varint,2,opt,name=yes,proto3" json:"yes,omitempty"`
	// contains filtered or unexported fields
}

func (*ThirdExample_InnerExample) Descriptor deprecated

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

Deprecated: Use ThirdExample_InnerExample.ProtoReflect.Descriptor instead.

func (*ThirdExample_InnerExample) GetId

func (x *ThirdExample_InnerExample) GetId() string

func (*ThirdExample_InnerExample) GetYes

func (x *ThirdExample_InnerExample) GetYes() int32

func (*ThirdExample_InnerExample) ProtoMessage

func (*ThirdExample_InnerExample) ProtoMessage()

func (*ThirdExample_InnerExample) ProtoReflect added in v0.5.2

func (*ThirdExample_InnerExample) Reset

func (x *ThirdExample_InnerExample) Reset()

func (*ThirdExample_InnerExample) String

func (x *ThirdExample_InnerExample) String() string

Jump to

Keyboard shortcuts

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