testpb

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	AnEnum_name = map[int32]string{
		0: "UNDEFINED",
		1: "ONE",
		2: "TWO",
	}
	AnEnum_value = map[string]int32{
		"UNDEFINED": 0,
		"ONE":       1,
		"TWO":       2,
	}
)

Enum value maps for AnEnum.

View Source
var File_testpb_test_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ABitOfEverything

type ABitOfEverything struct {
	Message  *NestedMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Enum     AnEnum         `protobuf:"varint,2,opt,name=enum,proto3,enum=testpb.AnEnum" json:"enum,omitempty"`
	Repeated []int32        `protobuf:"varint,6,rep,packed,name=repeated,proto3" json:"repeated,omitempty"`
	Str      string         `protobuf:"bytes,7,opt,name=str,proto3" json:"str,omitempty"`
	Bool     bool           `protobuf:"varint,8,opt,name=bool,proto3" json:"bool,omitempty"`
	Bytes    []byte         `protobuf:"bytes,9,opt,name=bytes,proto3" json:"bytes,omitempty"`
	I32      int32          `protobuf:"varint,10,opt,name=i32,proto3" json:"i32,omitempty"`
	F32      uint32         `protobuf:"fixed32,11,opt,name=f32,proto3" json:"f32,omitempty"`
	U32      uint32         `protobuf:"varint,12,opt,name=u32,proto3" json:"u32,omitempty"`
	Si32     int32          `protobuf:"zigzag32,13,opt,name=si32,proto3" json:"si32,omitempty"`
	Sf32     int32          `protobuf:"fixed32,14,opt,name=sf32,proto3" json:"sf32,omitempty"`
	I64      int64          `protobuf:"varint,15,opt,name=i64,proto3" json:"i64,omitempty"`
	F64      uint64         `protobuf:"fixed64,16,opt,name=f64,proto3" json:"f64,omitempty"`
	U64      uint64         `protobuf:"varint,17,opt,name=u64,proto3" json:"u64,omitempty"`
	Si64     int64          `protobuf:"zigzag64,18,opt,name=si64,proto3" json:"si64,omitempty"`
	Sf64     int64          `protobuf:"fixed64,19,opt,name=sf64,proto3" json:"sf64,omitempty"`
	// contains filtered or unexported fields
}

func (*ABitOfEverything) Descriptor deprecated

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

Deprecated: Use ABitOfEverything.ProtoReflect.Descriptor instead.

func (*ABitOfEverything) GetBool

func (x *ABitOfEverything) GetBool() bool

func (*ABitOfEverything) GetBytes

func (x *ABitOfEverything) GetBytes() []byte

func (*ABitOfEverything) GetEnum

func (x *ABitOfEverything) GetEnum() AnEnum

func (*ABitOfEverything) GetF32

func (x *ABitOfEverything) GetF32() uint32

func (*ABitOfEverything) GetF64

func (x *ABitOfEverything) GetF64() uint64

func (*ABitOfEverything) GetI32

func (x *ABitOfEverything) GetI32() int32

func (*ABitOfEverything) GetI64

func (x *ABitOfEverything) GetI64() int64

func (*ABitOfEverything) GetMessage

func (x *ABitOfEverything) GetMessage() *NestedMessage

func (*ABitOfEverything) GetRepeated

func (x *ABitOfEverything) GetRepeated() []int32

func (*ABitOfEverything) GetSf32

func (x *ABitOfEverything) GetSf32() int32

func (*ABitOfEverything) GetSf64

func (x *ABitOfEverything) GetSf64() int64

func (*ABitOfEverything) GetSi32

func (x *ABitOfEverything) GetSi32() int32

func (*ABitOfEverything) GetSi64

func (x *ABitOfEverything) GetSi64() int64

func (*ABitOfEverything) GetStr

func (x *ABitOfEverything) GetStr() string

func (*ABitOfEverything) GetU32

func (x *ABitOfEverything) GetU32() uint32

func (*ABitOfEverything) GetU64

func (x *ABitOfEverything) GetU64() uint64

func (*ABitOfEverything) ProtoMessage

func (*ABitOfEverything) ProtoMessage()

func (*ABitOfEverything) ProtoReflect

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

func (*ABitOfEverything) Reset

func (x *ABitOfEverything) Reset()

func (*ABitOfEverything) String

func (x *ABitOfEverything) String() string

type AnEnum

type AnEnum int32
const (
	AnEnum_UNDEFINED AnEnum = 0
	AnEnum_ONE       AnEnum = 1
	AnEnum_TWO       AnEnum = 2
)

func (AnEnum) Descriptor

func (AnEnum) Descriptor() protoreflect.EnumDescriptor

func (AnEnum) Enum

func (x AnEnum) Enum() *AnEnum

func (AnEnum) EnumDescriptor deprecated

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

Deprecated: Use AnEnum.Descriptor instead.

func (AnEnum) Number

func (x AnEnum) Number() protoreflect.EnumNumber

func (AnEnum) String

func (x AnEnum) String() string

func (AnEnum) Type

func (AnEnum) Type() protoreflect.EnumType

type Duration added in v0.10.0

type Duration struct {
	Duration  *durationpb.Duration   `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*Duration) Descriptor deprecated added in v0.10.0

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

Deprecated: Use Duration.ProtoReflect.Descriptor instead.

func (*Duration) GetDuration added in v0.10.0

func (x *Duration) GetDuration() *durationpb.Duration

func (*Duration) GetTimestamp added in v0.10.0

func (x *Duration) GetTimestamp() *timestamppb.Timestamp

func (*Duration) ProtoMessage added in v0.10.0

func (*Duration) ProtoMessage()

func (*Duration) ProtoReflect added in v0.10.0

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

func (*Duration) Reset added in v0.10.0

func (x *Duration) Reset()

func (*Duration) String added in v0.10.0

func (x *Duration) String() string

type NestedMessage

type NestedMessage struct {
	Foo string `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"`
	Bar int32  `protobuf:"varint,2,opt,name=bar,proto3" json:"bar,omitempty"`
	// contains filtered or unexported fields
}

func (*NestedMessage) Descriptor deprecated

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

Deprecated: Use NestedMessage.ProtoReflect.Descriptor instead.

func (*NestedMessage) GetBar

func (x *NestedMessage) GetBar() int32

func (*NestedMessage) GetFoo

func (x *NestedMessage) GetFoo() string

func (*NestedMessage) ProtoMessage

func (*NestedMessage) ProtoMessage()

func (*NestedMessage) ProtoReflect

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

func (*NestedMessage) Reset

func (x *NestedMessage) Reset()

func (*NestedMessage) String

func (x *NestedMessage) String() string

type WithAJson added in v0.13.2

type WithAJson struct {
	Field1 []byte `protobuf:"bytes,1,opt,name=field1,proto3" json:"field1,omitempty"`
	// contains filtered or unexported fields
}

func (*WithAJson) Descriptor deprecated added in v0.13.2

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

Deprecated: Use WithAJson.ProtoReflect.Descriptor instead.

func (*WithAJson) GetField1 added in v0.13.2

func (x *WithAJson) GetField1() []byte

func (*WithAJson) ProtoMessage added in v0.13.2

func (*WithAJson) ProtoMessage()

func (*WithAJson) ProtoReflect added in v0.13.2

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

func (*WithAJson) Reset added in v0.13.2

func (x *WithAJson) Reset()

func (*WithAJson) String added in v0.13.2

func (x *WithAJson) String() string

type WithAList

type WithAList struct {
	DontOmitemptyList []string `protobuf:"bytes,1,rep,name=dont_omitempty_list,json=dontOmitemptyList,proto3" json:"dont_omitempty_list,omitempty"`
	List              []string `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*WithAList) Descriptor deprecated

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

Deprecated: Use WithAList.ProtoReflect.Descriptor instead.

func (*WithAList) GetDontOmitemptyList

func (x *WithAList) GetDontOmitemptyList() []string

func (*WithAList) GetList

func (x *WithAList) GetList() []string

func (*WithAList) ProtoMessage

func (*WithAList) ProtoMessage()

func (*WithAList) ProtoReflect

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

func (*WithAList) Reset

func (x *WithAList) Reset()

func (*WithAList) String

func (x *WithAList) String() string

type WithAMap

type WithAMap struct {
	StrMap map[string]string `` /* 167-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*WithAMap) Descriptor deprecated

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

Deprecated: Use WithAMap.ProtoReflect.Descriptor instead.

func (*WithAMap) GetStrMap

func (x *WithAMap) GetStrMap() map[string]string

func (*WithAMap) ProtoMessage

func (*WithAMap) ProtoMessage()

func (*WithAMap) ProtoReflect

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

func (*WithAMap) Reset

func (x *WithAMap) Reset()

func (*WithAMap) String

func (x *WithAMap) String() string

Jump to

Keyboard shortcuts

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