protosize

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthProtosize        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProtosize          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProtosize = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type SizeMessage

type SizeMessage struct {
	Size                 *int64   `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
	ProtoSize_           *int64   `protobuf:"varint,2,opt,name=proto_size,json=protoSize" json:"proto_size,omitempty"`
	Equal_               *bool    `protobuf:"varint,3,opt,name=Equal" json:"Equal,omitempty"`
	String_              *string  `protobuf:"bytes,4,opt,name=String" json:"String,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedSizeMessage

func NewPopulatedSizeMessage(r randyProtosize, easy bool) *SizeMessage

func (*SizeMessage) Descriptor

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

func (*SizeMessage) Equal

func (this *SizeMessage) Equal(that interface{}) bool

func (*SizeMessage) GetEqual_

func (m *SizeMessage) GetEqual_() bool

func (*SizeMessage) GetProtoSize_

func (m *SizeMessage) GetProtoSize_() int64

func (*SizeMessage) GetSize

func (m *SizeMessage) GetSize() int64

func (*SizeMessage) GetString_

func (m *SizeMessage) GetString_() string

func (*SizeMessage) IsNil added in v1.4.9

func (m *SizeMessage) IsNil() bool

func (*SizeMessage) Marshal

func (m *SizeMessage) Marshal() (dAtA []byte, err error)

func (*SizeMessage) MarshalTo

func (m *SizeMessage) MarshalTo(dAtA []byte) (int, error)

func (*SizeMessage) MarshalToSizedBuffer added in v1.3.9

func (m *SizeMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SizeMessage) ProtoMessage

func (*SizeMessage) ProtoMessage()

func (*SizeMessage) ProtoSize

func (m *SizeMessage) ProtoSize() (n int)

func (*SizeMessage) Reset

func (m *SizeMessage) Reset()

func (*SizeMessage) SetEqual__ added in v1.4.9

func (m *SizeMessage) SetEqual__(val bool)

func (*SizeMessage) SetProtoSize__ added in v1.4.9

func (m *SizeMessage) SetProtoSize__(val int64)

func (*SizeMessage) SetSize_ added in v1.4.9

func (m *SizeMessage) SetSize_(val int64)

func (*SizeMessage) SetString__ added in v1.4.9

func (m *SizeMessage) SetString__(val string)

func (*SizeMessage) String

func (m *SizeMessage) String() string

func (*SizeMessage) Unmarshal

func (m *SizeMessage) Unmarshal(dAtA []byte) error

func (*SizeMessage) XXX_DiscardUnknown added in v1.1.0

func (m *SizeMessage) XXX_DiscardUnknown()

func (*SizeMessage) XXX_Marshal added in v1.1.0

func (m *SizeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SizeMessage) XXX_Merge added in v1.1.0

func (m *SizeMessage) XXX_Merge(src proto.Message)

func (*SizeMessage) XXX_Size added in v1.1.0

func (m *SizeMessage) XXX_Size() int

func (*SizeMessage) XXX_Unmarshal added in v1.1.0

func (m *SizeMessage) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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