Documentation ¶
Index ¶
- Variables
- type Box3D
- func (*Box3D) Descriptor() ([]byte, []int)deprecated
- func (this *Box3D) EqualVT(that *Box3D) bool
- func (x *Box3D) GetPivot() *Point3D
- func (x *Box3D) GetPosition() *Point3D
- func (x *Box3D) GetRotate() *Point3D
- func (x *Box3D) GetScale() *Point3D
- func (m *Box3D) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Box3D) MarshalToVT(dAtA []byte) (int, error)
- func (m *Box3D) MarshalVT() (dAtA []byte, err error)
- func (*Box3D) ProtoMessage()
- func (x *Box3D) ProtoReflect() protoreflect.Message
- func (x *Box3D) Reset()
- func (m *Box3D) SizeVT() (n int)
- func (x *Box3D) String() string
- func (m *Box3D) UnmarshalVT(dAtA []byte) error
- type Point3D
- func (*Point3D) Descriptor() ([]byte, []int)deprecated
- func (this *Point3D) EqualVT(that *Point3D) bool
- func (x *Point3D) GetX() int32
- func (x *Point3D) GetY() int32
- func (x *Point3D) GetZ() int32
- func (m *Point3D) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Point3D) MarshalToVT(dAtA []byte) (int, error)
- func (m *Point3D) MarshalVT() (dAtA []byte, err error)
- func (*Point3D) ProtoMessage()
- func (x *Point3D) ProtoReflect() protoreflect.Message
- func (x *Point3D) Reset()
- func (m *Point3D) SizeVT() (n int)
- func (x *Point3D) String() string
- func (m *Point3D) UnmarshalVT(dAtA []byte) error
- type TestEnum
- type TestStruct
- func (*TestStruct) Descriptor() ([]byte, []int)deprecated
- func (this *TestStruct) EqualVT(that *TestStruct) bool
- func (x *TestStruct) GetCreatedAt() *timestamppb.Timestamp
- func (x *TestStruct) GetHello() *testpb.HelloRequest
- func (x *TestStruct) GetHost() string
- func (x *TestStruct) GetIsSecure() bool
- func (x *TestStruct) GetPassword() string
- func (x *TestStruct) GetPort() uint32
- func (x *TestStruct) GetProtocol() TestEnum
- func (m *TestStruct) GetTestOneof() isTestStruct_TestOneof
- func (x *TestStruct) GetToken() uint64
- func (m *TestStruct) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TestStruct) MarshalToVT(dAtA []byte) (int, error)
- func (m *TestStruct) MarshalVT() (dAtA []byte, err error)
- func (*TestStruct) ProtoMessage()
- func (x *TestStruct) ProtoReflect() protoreflect.Message
- func (x *TestStruct) Reset()
- func (m *TestStruct) SizeVT() (n int)
- func (x *TestStruct) String() string
- func (m *TestStruct) UnmarshalVT(dAtA []byte) error
- type TestStruct_Password
- type TestStruct_Token
- type TestWire
- func (*TestWire) Descriptor() ([]byte, []int)deprecated
- func (this *TestWire) EqualVT(that *TestWire) bool
- func (x *TestWire) GetIds() []uint32
- func (m *TestWire) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TestWire) MarshalToVT(dAtA []byte) (int, error)
- func (m *TestWire) MarshalVT() (dAtA []byte, err error)
- func (*TestWire) ProtoMessage()
- func (x *TestWire) ProtoReflect() protoreflect.Message
- func (x *TestWire) Reset()
- func (m *TestWire) SizeVT() (n int)
- func (x *TestWire) String() string
- func (m *TestWire) UnmarshalVT(dAtA []byte) error
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) GetPosition ¶
func (*Box3D) MarshalToSizedBufferVT ¶
func (*Box3D) ProtoMessage ¶
func (*Box3D) ProtoMessage()
func (*Box3D) ProtoReflect ¶
func (x *Box3D) ProtoReflect() protoreflect.Message
func (*Box3D) UnmarshalVT ¶
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) MarshalToSizedBufferVT ¶
func (*Point3D) ProtoMessage ¶
func (*Point3D) ProtoMessage()
func (*Point3D) ProtoReflect ¶
func (x *Point3D) ProtoReflect() protoreflect.Message
func (*Point3D) UnmarshalVT ¶
type TestEnum ¶
type TestEnum int32
func (TestEnum) Descriptor ¶
func (TestEnum) Descriptor() protoreflect.EnumDescriptor
func (TestEnum) EnumDescriptor
deprecated
func (TestEnum) Number ¶
func (x TestEnum) Number() protoreflect.EnumNumber
func (TestEnum) Type ¶
func (TestEnum) Type() protoreflect.EnumType
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) MarshalToSizedBufferVT ¶
func (*TestWire) ProtoMessage ¶
func (*TestWire) ProtoMessage()
func (*TestWire) ProtoReflect ¶
func (x *TestWire) ProtoReflect() protoreflect.Message
func (*TestWire) UnmarshalVT ¶
Click to show internal directories.
Click to hide internal directories.