proto

package
v0.0.0-...-6bdbe4c Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestEnum_name = map[int32]string{
		0: "HTTP",
		2: "HTTPS",
		5: "FTP",
	}
	TestEnum_value = map[string]int32{
		"HTTP":  0,
		"HTTPS": 2,
		"FTP":   5,
	}
)

Enum value maps for TestEnum.

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_proto_test_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Box3D

type Box3D struct {
	Scale    *Point3D `protobuf:"bytes,1,opt,name=scale,proto3" json:"scale,omitempty"`
	Position *Point3D `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
	Rotate   *Point3D `protobuf:"bytes,3,opt,name=rotate,proto3" json:"rotate,omitempty"`
	Pivot    *Point3D `protobuf:"bytes,4,opt,name=pivot,proto3" json:"pivot,omitempty"`
	// contains filtered or unexported fields
}

func (*Box3D) Descriptor deprecated

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

Deprecated: Use Box3D.ProtoReflect.Descriptor instead.

func (*Box3D) EqualVT

func (this *Box3D) EqualVT(that *Box3D) bool

func (*Box3D) GetPivot

func (x *Box3D) GetPivot() *Point3D

func (*Box3D) GetPosition

func (x *Box3D) GetPosition() *Point3D

func (*Box3D) GetRotate

func (x *Box3D) GetRotate() *Point3D

func (*Box3D) GetScale

func (x *Box3D) GetScale() *Point3D

func (*Box3D) MarshalToSizedBufferVT

func (m *Box3D) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Box3D) MarshalToVT

func (m *Box3D) MarshalToVT(dAtA []byte) (int, error)

func (*Box3D) MarshalVT

func (m *Box3D) MarshalVT() (dAtA []byte, err error)

func (*Box3D) ProtoMessage

func (*Box3D) ProtoMessage()

func (*Box3D) ProtoReflect

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

func (*Box3D) Reset

func (x *Box3D) Reset()

func (*Box3D) SizeVT

func (m *Box3D) SizeVT() (n int)

func (*Box3D) String

func (x *Box3D) String() string

func (*Box3D) UnmarshalVT

func (m *Box3D) UnmarshalVT(dAtA []byte) error

type Point3D

type Point3D struct {
	X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	Z int32 `protobuf:"varint,3,opt,name=z,proto3" json:"z,omitempty"`
	// contains filtered or unexported fields
}

func (*Point3D) Descriptor deprecated

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

Deprecated: Use Point3D.ProtoReflect.Descriptor instead.

func (*Point3D) EqualVT

func (this *Point3D) EqualVT(that *Point3D) bool

func (*Point3D) GetX

func (x *Point3D) GetX() int32

func (*Point3D) GetY

func (x *Point3D) GetY() int32

func (*Point3D) GetZ

func (x *Point3D) GetZ() int32

func (*Point3D) MarshalToSizedBufferVT

func (m *Point3D) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Point3D) MarshalToVT

func (m *Point3D) MarshalToVT(dAtA []byte) (int, error)

func (*Point3D) MarshalVT

func (m *Point3D) MarshalVT() (dAtA []byte, err error)

func (*Point3D) ProtoMessage

func (*Point3D) ProtoMessage()

func (*Point3D) ProtoReflect

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

func (*Point3D) Reset

func (x *Point3D) Reset()

func (*Point3D) SizeVT

func (m *Point3D) SizeVT() (n int)

func (*Point3D) String

func (x *Point3D) String() string

func (*Point3D) UnmarshalVT

func (m *Point3D) UnmarshalVT(dAtA []byte) error

type TestEnum

type TestEnum int32
const (
	TestEnum_HTTP  TestEnum = 0
	TestEnum_HTTPS TestEnum = 2
	TestEnum_FTP   TestEnum = 5
)

func (TestEnum) Descriptor

func (TestEnum) Descriptor() protoreflect.EnumDescriptor

func (TestEnum) Enum

func (x TestEnum) Enum() *TestEnum

func (TestEnum) EnumDescriptor deprecated

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

Deprecated: Use TestEnum.Descriptor instead.

func (TestEnum) Number

func (x TestEnum) Number() protoreflect.EnumNumber

func (TestEnum) String

func (x TestEnum) String() string

func (TestEnum) Type

type TestStruct

type TestStruct struct {
	Protocol  TestEnum               `protobuf:"varint,1,opt,name=protocol,proto3,enum=proto.TestEnum" json:"protocol,omitempty"`
	Host      string                 `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	Port      uint32                 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	IsSecure  *bool                  `protobuf:"varint,4,opt,name=is_secure,json=isSecure,proto3,oneof" json:"is_secure,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Hello     *testpb.HelloRequest   `protobuf:"bytes,60,opt,name=hello,proto3" json:"hello,omitempty"`
	// Types that are assignable to TestOneof:
	//	*TestStruct_Password
	//	*TestStruct_Token
	TestOneof isTestStruct_TestOneof `protobuf_oneof:"TestOneof"`
	// contains filtered or unexported fields
}

func (*TestStruct) Descriptor deprecated

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

Deprecated: Use TestStruct.ProtoReflect.Descriptor instead.

func (*TestStruct) EqualVT

func (this *TestStruct) EqualVT(that *TestStruct) bool

func (*TestStruct) GetCreatedAt

func (x *TestStruct) GetCreatedAt() *timestamppb.Timestamp

func (*TestStruct) GetHello

func (x *TestStruct) GetHello() *testpb.HelloRequest

func (*TestStruct) GetHost

func (x *TestStruct) GetHost() string

func (*TestStruct) GetIsSecure

func (x *TestStruct) GetIsSecure() bool

func (*TestStruct) GetPassword

func (x *TestStruct) GetPassword() string

func (*TestStruct) GetPort

func (x *TestStruct) GetPort() uint32

func (*TestStruct) GetProtocol

func (x *TestStruct) GetProtocol() TestEnum

func (*TestStruct) GetTestOneof

func (m *TestStruct) GetTestOneof() isTestStruct_TestOneof

func (*TestStruct) GetToken

func (x *TestStruct) GetToken() uint64

func (*TestStruct) MarshalToSizedBufferVT

func (m *TestStruct) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*TestStruct) MarshalToVT

func (m *TestStruct) MarshalToVT(dAtA []byte) (int, error)

func (*TestStruct) MarshalVT

func (m *TestStruct) MarshalVT() (dAtA []byte, err error)

func (*TestStruct) ProtoMessage

func (*TestStruct) ProtoMessage()

func (*TestStruct) ProtoReflect

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

func (*TestStruct) Reset

func (x *TestStruct) Reset()

func (*TestStruct) SizeVT

func (m *TestStruct) SizeVT() (n int)

func (*TestStruct) String

func (x *TestStruct) String() string

func (*TestStruct) UnmarshalVT

func (m *TestStruct) UnmarshalVT(dAtA []byte) error

type TestStruct_Password

type TestStruct_Password struct {
	Password string `protobuf:"bytes,6,opt,name=password,proto3,oneof"`
}

func (*TestStruct_Password) MarshalToSizedBufferVT

func (m *TestStruct_Password) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*TestStruct_Password) MarshalToVT

func (m *TestStruct_Password) MarshalToVT(dAtA []byte) (int, error)

func (*TestStruct_Password) SizeVT

func (m *TestStruct_Password) SizeVT() (n int)

type TestStruct_Token

type TestStruct_Token struct {
	Token uint64 `protobuf:"varint,7,opt,name=token,proto3,oneof"`
}

func (*TestStruct_Token) MarshalToSizedBufferVT

func (m *TestStruct_Token) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*TestStruct_Token) MarshalToVT

func (m *TestStruct_Token) MarshalToVT(dAtA []byte) (int, error)

func (*TestStruct_Token) SizeVT

func (m *TestStruct_Token) SizeVT() (n int)

type TestWire

type TestWire struct {
	Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*TestWire) Descriptor deprecated

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

Deprecated: Use TestWire.ProtoReflect.Descriptor instead.

func (*TestWire) EqualVT

func (this *TestWire) EqualVT(that *TestWire) bool

func (*TestWire) GetIds

func (x *TestWire) GetIds() []uint32

func (*TestWire) MarshalToSizedBufferVT

func (m *TestWire) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*TestWire) MarshalToVT

func (m *TestWire) MarshalToVT(dAtA []byte) (int, error)

func (*TestWire) MarshalVT

func (m *TestWire) MarshalVT() (dAtA []byte, err error)

func (*TestWire) ProtoMessage

func (*TestWire) ProtoMessage()

func (*TestWire) ProtoReflect

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

func (*TestWire) Reset

func (x *TestWire) Reset()

func (*TestWire) SizeVT

func (m *TestWire) SizeVT() (n int)

func (*TestWire) String

func (x *TestWire) String() string

func (*TestWire) UnmarshalVT

func (m *TestWire) UnmarshalVT(dAtA []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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