testpb

package
v1.0.0-beta.5 Latest Latest
Warning

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

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

Documentation

Overview

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

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

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

Index

Constants

This section is empty.

Variables

View Source
var (
	Enumeration_name = map[int32]string{
		0: "One",
		1: "Two",
	}
	Enumeration_value = map[string]int32{
		"One": 0,
		"Two": 1,
	}
)

Enum value maps for Enumeration.

Functions

This section is empty.

Types

type A

type A struct {
	Enum        Enumeration   `protobuf:"varint,1,opt,name=enum,proto3,enum=Enumeration" json:"enum,omitempty"`
	SomeBoolean bool          `protobuf:"varint,2,opt,name=some_boolean,json=someBoolean,proto3" json:"some_boolean,omitempty"`
	INT32       int32         `protobuf:"varint,3,opt,name=INT32,proto3" json:"INT32,omitempty"`
	SINT32      int32         `protobuf:"zigzag32,4,opt,name=SINT32,proto3" json:"SINT32,omitempty"`
	UINT32      uint32        `protobuf:"varint,5,opt,name=UINT32,proto3" json:"UINT32,omitempty"`
	INT64       int64         `protobuf:"varint,6,opt,name=INT64,proto3" json:"INT64,omitempty"`
	SING64      int64         `protobuf:"zigzag64,7,opt,name=SING64,proto3" json:"SING64,omitempty"`
	UINT64      uint64        `protobuf:"varint,8,opt,name=UINT64,proto3" json:"UINT64,omitempty"`
	SFIXED32    int32         `protobuf:"fixed32,9,opt,name=SFIXED32,proto3" json:"SFIXED32,omitempty"`
	FIXED32     uint32        `protobuf:"fixed32,10,opt,name=FIXED32,proto3" json:"FIXED32,omitempty"`
	FLOAT       float32       `protobuf:"fixed32,11,opt,name=FLOAT,proto3" json:"FLOAT,omitempty"`
	SFIXED64    int64         `protobuf:"fixed64,12,opt,name=SFIXED64,proto3" json:"SFIXED64,omitempty"`
	FIXED64     uint64        `protobuf:"fixed64,13,opt,name=FIXED64,proto3" json:"FIXED64,omitempty"`
	DOUBLE      float64       `protobuf:"fixed64,14,opt,name=DOUBLE,proto3" json:"DOUBLE,omitempty"`
	STRING      string        `protobuf:"bytes,15,opt,name=STRING,proto3" json:"STRING,omitempty"`
	BYTES       []byte        `protobuf:"bytes,16,opt,name=BYTES,proto3" json:"BYTES,omitempty"`
	MESSAGE     *B            `protobuf:"bytes,17,opt,name=MESSAGE,proto3" json:"MESSAGE,omitempty"`
	MAP         map[string]*B `` /* 148-byte string literal not displayed */
	LIST        []*B          `protobuf:"bytes,19,rep,name=LIST,proto3" json:"LIST,omitempty"`
	// Types that are assignable to ONEOF:
	//
	//	*A_ONEOF_B
	//	*A_ONEOF_STRING
	ONEOF     isA_ONEOF        `protobuf_oneof:"ONEOF"`
	LIST_ENUM []Enumeration    `protobuf:"varint,22,rep,packed,name=LIST_ENUM,json=LISTENUM,proto3,enum=Enumeration" json:"LIST_ENUM,omitempty"`
	Imported  *ImportedMessage `protobuf:"bytes,23,opt,name=imported,proto3" json:"imported,omitempty"`
	Type_     string           `protobuf:"bytes,24,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*A) Descriptor deprecated

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

Deprecated: Use A.ProtoReflect.Descriptor instead.

func (*A) GetBYTES

func (x *A) GetBYTES() []byte

func (*A) GetDOUBLE

func (x *A) GetDOUBLE() float64

func (*A) GetEnum

func (x *A) GetEnum() Enumeration

func (*A) GetFIXED32

func (x *A) GetFIXED32() uint32

func (*A) GetFIXED64

func (x *A) GetFIXED64() uint64

func (*A) GetFLOAT

func (x *A) GetFLOAT() float32

func (*A) GetINT32

func (x *A) GetINT32() int32

func (*A) GetINT64

func (x *A) GetINT64() int64

func (*A) GetImported

func (x *A) GetImported() *ImportedMessage

func (*A) GetLIST

func (x *A) GetLIST() []*B

func (*A) GetLIST_ENUM

func (x *A) GetLIST_ENUM() []Enumeration

func (*A) GetMAP

func (x *A) GetMAP() map[string]*B

func (*A) GetMESSAGE

func (x *A) GetMESSAGE() *B

func (*A) GetONEOF

func (x *A) GetONEOF() isA_ONEOF

func (*A) GetONEOF_B

func (x *A) GetONEOF_B() *B

func (*A) GetONEOF_STRING

func (x *A) GetONEOF_STRING() string

func (*A) GetSFIXED32

func (x *A) GetSFIXED32() int32

func (*A) GetSFIXED64

func (x *A) GetSFIXED64() int64

func (*A) GetSING64

func (x *A) GetSING64() int64

func (*A) GetSINT32

func (x *A) GetSINT32() int32

func (*A) GetSTRING

func (x *A) GetSTRING() string

func (*A) GetSomeBoolean

func (x *A) GetSomeBoolean() bool

func (*A) GetType_

func (x *A) GetType_() string

func (*A) GetUINT32

func (x *A) GetUINT32() uint32

func (*A) GetUINT64

func (x *A) GetUINT64() uint64

func (*A) ProtoMessage

func (*A) ProtoMessage()

func (*A) ProtoReflect

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

func (*A) Reset

func (x *A) Reset()

func (*A) String

func (x *A) String() string

type A_ONEOF_B

type A_ONEOF_B struct {
	ONEOF_B *B `protobuf:"bytes,20,opt,name=ONEOF_B,json=ONEOFB,proto3,oneof"`
}

type A_ONEOF_STRING

type A_ONEOF_STRING struct {
	ONEOF_STRING string `protobuf:"bytes,21,opt,name=ONEOF_STRING,json=ONEOFSTRING,proto3,oneof"`
}

type B

type B struct {
	X string `protobuf:"bytes,1,opt,name=x,proto3" json:"x,omitempty"`
	// contains filtered or unexported fields
}

func (*B) Descriptor deprecated

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

Deprecated: Use B.ProtoReflect.Descriptor instead.

func (*B) GetX

func (x *B) GetX() string

func (*B) ProtoMessage

func (*B) ProtoMessage()

func (*B) ProtoReflect

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

func (*B) Reset

func (x *B) Reset()

func (*B) String

func (x *B) String() string

type CounterQueryRequest

type CounterQueryRequest struct {
	// contains filtered or unexported fields
}

CounterQueryRequest defines the request type used to query the counter.

func (*CounterQueryRequest) Descriptor deprecated

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

Deprecated: Use CounterQueryRequest.ProtoReflect.Descriptor instead.

func (*CounterQueryRequest) ProtoMessage

func (*CounterQueryRequest) ProtoMessage()

func (*CounterQueryRequest) ProtoReflect

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

func (*CounterQueryRequest) Reset

func (x *CounterQueryRequest) Reset()

func (*CounterQueryRequest) String

func (x *CounterQueryRequest) String() string

type CounterQueryResponse

type CounterQueryResponse struct {
	Counter uint64 `protobuf:"varint,1,opt,name=counter,proto3" json:"counter,omitempty"`
	// contains filtered or unexported fields
}

CounterQueryResponse defines the response type for querying the counter.

func (*CounterQueryResponse) Descriptor deprecated

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

Deprecated: Use CounterQueryResponse.ProtoReflect.Descriptor instead.

func (*CounterQueryResponse) GetCounter

func (x *CounterQueryResponse) GetCounter() uint64

func (*CounterQueryResponse) ProtoMessage

func (*CounterQueryResponse) ProtoMessage()

func (*CounterQueryResponse) ProtoReflect

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

func (*CounterQueryResponse) Reset

func (x *CounterQueryResponse) Reset()

func (*CounterQueryResponse) String

func (x *CounterQueryResponse) String() string

type Enumeration

type Enumeration int32
const (
	Enumeration_One Enumeration = 0
	Enumeration_Two Enumeration = 1
)

func (Enumeration) Descriptor

func (Enumeration) Enum

func (x Enumeration) Enum() *Enumeration

func (Enumeration) EnumDescriptor deprecated

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

Deprecated: Use Enumeration.Descriptor instead.

func (Enumeration) Number

func (x Enumeration) Number() protoreflect.EnumNumber

func (Enumeration) String

func (x Enumeration) String() string

func (Enumeration) Type

type ImportedMessage

type ImportedMessage struct {
	// contains filtered or unexported fields
}

func (*ImportedMessage) Descriptor deprecated

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

Deprecated: Use ImportedMessage.ProtoReflect.Descriptor instead.

func (*ImportedMessage) ProtoMessage

func (*ImportedMessage) ProtoMessage()

func (*ImportedMessage) ProtoReflect

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

func (*ImportedMessage) Reset

func (x *ImportedMessage) Reset()

func (*ImportedMessage) String

func (x *ImportedMessage) String() string

Jump to

Keyboard shortcuts

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