...

Package protoexample

import "github.com/gin-gonic/gin/testdata/protoexample"
Overview
Index

Overview ▾

Constants

Default values for Test fields.

const (
    Default_Test_Type = int32(77)
)

Variables

Enum value maps for FOO.

var (
    FOO_name = map[int32]string{
        17: "X",
    }
    FOO_value = map[string]int32{
        "X": 17,
    }
)
var File_test_proto protoreflect.FileDescriptor

type FOO

type FOO int32
const (
    FOO_X FOO = 17
)

func (FOO) Descriptor

func (FOO) Descriptor() protoreflect.EnumDescriptor

func (FOO) Enum

func (x FOO) Enum() *FOO

func (FOO) EnumDescriptor

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

Deprecated: Use FOO.Descriptor instead.

func (FOO) Number

func (x FOO) Number() protoreflect.EnumNumber

func (FOO) String

func (x FOO) String() string

func (FOO) Type

func (FOO) Type() protoreflect.EnumType

func (*FOO) UnmarshalJSON

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

Deprecated: Do not use.

type Test

type Test struct {
    Label         *string             `protobuf:"bytes,1,req,name=label" json:"label,omitempty"`
    Type          *int32              `protobuf:"varint,2,opt,name=type,def=77" json:"type,omitempty"`
    Reps          []int64             `protobuf:"varint,3,rep,name=reps" json:"reps,omitempty"`
    Optionalgroup *Test_OptionalGroup `protobuf:"group,4,opt,name=OptionalGroup,json=optionalgroup" json:"optionalgroup,omitempty"`
    // contains filtered or unexported fields
}

func (*Test) Descriptor

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

Deprecated: Use Test.ProtoReflect.Descriptor instead.

func (*Test) GetLabel

func (x *Test) GetLabel() string

func (*Test) GetOptionalgroup

func (x *Test) GetOptionalgroup() *Test_OptionalGroup

func (*Test) GetReps

func (x *Test) GetReps() []int64

func (*Test) GetType

func (x *Test) GetType() int32

func (*Test) ProtoMessage

func (*Test) ProtoMessage()

func (*Test) ProtoReflect

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

func (*Test) Reset

func (x *Test) Reset()

func (*Test) String

func (x *Test) String() string

type Test_OptionalGroup

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

func (*Test_OptionalGroup) Descriptor

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

Deprecated: Use Test_OptionalGroup.ProtoReflect.Descriptor instead.

func (*Test_OptionalGroup) GetRequiredField

func (x *Test_OptionalGroup) GetRequiredField() string

func (*Test_OptionalGroup) ProtoMessage

func (*Test_OptionalGroup) ProtoMessage()

func (*Test_OptionalGroup) ProtoReflect

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

func (*Test_OptionalGroup) Reset

func (x *Test_OptionalGroup) Reset()

func (*Test_OptionalGroup) String

func (x *Test_OptionalGroup) String() string