pb

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type IP

type IP struct {
	Address string `protobuf:"bytes,1,opt,name=Address,proto3" json:"overrided" valid:"ip" yaml:"ip"` // @gotags: valid:"ip" yaml:"ip" json:"overrided"
	// contains filtered or unexported fields
}

func (*IP) Descriptor deprecated

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

Deprecated: Use IP.ProtoReflect.Descriptor instead.

func (*IP) GetAddress

func (x *IP) GetAddress() string

func (*IP) ProtoMessage

func (*IP) ProtoMessage()

func (*IP) ProtoReflect

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

func (*IP) Reset

func (x *IP) Reset()

func (*IP) String

func (x *IP) String() string

type OneOfObject

type OneOfObject struct {

	// @gotags: tag:"foo_bar"
	//
	// Types that are assignable to FooBar:
	//
	//	*OneOfObject_Foo
	//	*OneOfObject_Bar
	FooBar isOneOfObject_FooBar `protobuf_oneof:"foo_bar" tag:"foo_bar"`
	// contains filtered or unexported fields
}

func (*OneOfObject) Descriptor deprecated

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

Deprecated: Use OneOfObject.ProtoReflect.Descriptor instead.

func (*OneOfObject) GetBar

func (x *OneOfObject) GetBar() int64

func (*OneOfObject) GetFoo

func (x *OneOfObject) GetFoo() string

func (*OneOfObject) GetFooBar

func (m *OneOfObject) GetFooBar() isOneOfObject_FooBar

func (*OneOfObject) ProtoMessage

func (*OneOfObject) ProtoMessage()

func (*OneOfObject) ProtoReflect

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

func (*OneOfObject) Reset

func (x *OneOfObject) Reset()

func (*OneOfObject) String

func (x *OneOfObject) String() string

type OneOfObject_Bar

type OneOfObject_Bar struct {
	// @gotags: tag:"bar"
	Bar int64 `protobuf:"varint,2,opt,name=bar,proto3,oneof" tag:"bar"`
}

type OneOfObject_Foo

type OneOfObject_Foo struct {
	// @gotags: tag:"foo"
	Foo string `protobuf:"bytes,1,opt,name=foo,proto3,oneof" tag:"foo"`
}

type Params

type Params struct {

	// @gotags: validate:"omitempty"
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"omitempty"`
	// gets converted into XXX_Deprecated, for use with testing pre-v1.4.x protoc-gen-go
	// functionality that exposes unknown fields as public.
	XXX_Deprecated string `protobuf:"bytes,2,opt,name=XXX__deprecated,json=XXXDeprecated,proto3" json:"XXX__deprecated,omitempty"`
	// contains filtered or unexported fields
}

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetId

func (x *Params) GetId() string

func (*Params) GetXXX_Deprecated

func (x *Params) GetXXX_Deprecated() string

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

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

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type Record

type Record struct {

	// @gotags: validate:"omitempty"
	Id        string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"omitempty"`
	TestAny   *anypb.Any     `protobuf:"bytes,2,opt,name=test_any,json=testAny,proto3" json:"test_any,omitempty"`
	TestEmpty *emptypb.Empty `protobuf:"bytes,3,opt,name=test_empty,json=testEmpty,proto3" json:"test_empty,omitempty"`
	// contains filtered or unexported fields
}

func (*Record) Descriptor deprecated

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetId

func (x *Record) GetId() string

func (*Record) GetTestAny

func (x *Record) GetTestAny() *anypb.Any

func (*Record) GetTestEmpty

func (x *Record) GetTestEmpty() *emptypb.Empty

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

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

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

type URL

type URL struct {

	// below is an example where the line-specific comment should take precedence
	// over the "doc" comment, which is known to be more free-form. On the
	// resulting struct field, you should see `valid:"http|https"` added, not
	// `valid:"-"`.
	//
	// @gotags: valid:"-"
	Scheme string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty" valid:"-"` // @gotags: valid:"http|https"
	Url    string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// Test legacy field name.
	// @inject_tags: valid:"nonzero"
	Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty" valid:"nonzero"`
	// contains filtered or unexported fields
}

func (*URL) Descriptor deprecated

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

Deprecated: Use URL.ProtoReflect.Descriptor instead.

func (*URL) GetPort

func (x *URL) GetPort() int32

func (*URL) GetScheme

func (x *URL) GetScheme() string

func (*URL) GetUrl

func (x *URL) GetUrl() string

func (*URL) ProtoMessage

func (*URL) ProtoMessage()

func (*URL) ProtoReflect

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

func (*URL) Reset

func (x *URL) Reset()

func (*URL) String

func (x *URL) String() string

type V2GoTagExpr

type V2GoTagExpr struct {

	// @go_tags(`validate:"required"`)
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" validate:"required"` // 用户id
	// contains filtered or unexported fields
}

func (*V2GoTagExpr) Descriptor deprecated

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

Deprecated: Use V2GoTagExpr.ProtoReflect.Descriptor instead.

func (*V2GoTagExpr) GetUserId

func (x *V2GoTagExpr) GetUserId() int64

func (*V2GoTagExpr) ProtoMessage

func (*V2GoTagExpr) ProtoMessage()

func (*V2GoTagExpr) ProtoReflect

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

func (*V2GoTagExpr) Reset

func (x *V2GoTagExpr) Reset()

func (*V2GoTagExpr) String

func (x *V2GoTagExpr) String() string

Jump to

Keyboard shortcuts

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