pb

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 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:"Address,omitempty"` // @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 added in v1.3.0

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

func (*IP) Reset

func (x *IP) Reset()

func (*IP) String

func (x *IP) String() string

type OneOfObject added in v1.3.0

type OneOfObject struct {

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

func (*OneOfObject) Descriptor deprecated added in v1.3.0

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

Deprecated: Use OneOfObject.ProtoReflect.Descriptor instead.

func (*OneOfObject) GetBar added in v1.3.0

func (x *OneOfObject) GetBar() int64

func (*OneOfObject) GetFoo added in v1.3.0

func (x *OneOfObject) GetFoo() string

func (*OneOfObject) GetFooBar added in v1.3.0

func (m *OneOfObject) GetFooBar() isOneOfObject_FooBar

func (*OneOfObject) ProtoMessage added in v1.3.0

func (*OneOfObject) ProtoMessage()

func (*OneOfObject) ProtoReflect added in v1.3.0

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

func (*OneOfObject) Reset added in v1.3.0

func (x *OneOfObject) Reset()

func (*OneOfObject) String added in v1.3.0

func (x *OneOfObject) String() string

type OneOfObject_Bar added in v1.3.0

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

type OneOfObject_Foo added in v1.3.0

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

type Params added in v1.3.0

type Params struct {

	// @gotags: validate:"omitempty"
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,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 added in v1.3.0

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetId added in v1.3.0

func (x *Params) GetId() string

func (*Params) GetXXX_Deprecated added in v1.3.0

func (x *Params) GetXXX_Deprecated() string

func (*Params) ProtoMessage added in v1.3.0

func (*Params) ProtoMessage()

func (*Params) ProtoReflect added in v1.3.0

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

func (*Params) Reset added in v1.3.0

func (x *Params) Reset()

func (*Params) String added in v1.3.0

func (x *Params) String() string

type Record added in v1.3.0

type Record struct {

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

func (*Record) Descriptor deprecated added in v1.3.0

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetId added in v1.3.0

func (x *Record) GetId() string

func (*Record) GetTestAny added in v1.3.0

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

func (*Record) GetTestEmpty added in v1.3.0

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

func (*Record) ProtoMessage added in v1.3.0

func (*Record) ProtoMessage()

func (*Record) ProtoReflect added in v1.3.0

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

func (*Record) Reset added in v1.3.0

func (x *Record) Reset()

func (*Record) String added in v1.3.0

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"` // @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"`
	// 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 added in v1.3.0

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

func (*URL) Reset

func (x *URL) Reset()

func (*URL) String

func (x *URL) String() string

Jump to

Keyboard shortcuts

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