protoc_gen_gogofaster

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMyproto        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMyproto          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMyproto = fmt.Errorf("proto: unexpected end of group")
)
View Source
var SearchReq_Type_name = map[int32]string{
	0: "PC",
	1: "Mobile",
}
View Source
var SearchReq_Type_value = map[string]int32{
	"PC":     0,
	"Mobile": 1,
}

Functions

This section is empty.

Types

type MetaData

type MetaData struct {
	Mid       int64  `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
	Username  string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Buvid     string `protobuf:"bytes,3,opt,name=buvid,proto3" json:"buvid,omitempty"`
	Ip        string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`
	Referer   string `protobuf:"bytes,9,opt,name=referer,proto3" json:"referer,omitempty"`
	UserAgent string `protobuf:"bytes,10,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	Build     string `protobuf:"bytes,11,opt,name=build,proto3" json:"build,omitempty"`
}

func (*MetaData) Descriptor

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

func (*MetaData) GetBuild

func (m *MetaData) GetBuild() string

func (*MetaData) GetBuvid

func (m *MetaData) GetBuvid() string

func (*MetaData) GetIp

func (m *MetaData) GetIp() string

func (*MetaData) GetMid

func (m *MetaData) GetMid() int64

func (*MetaData) GetReferer

func (m *MetaData) GetReferer() string

func (*MetaData) GetUserAgent

func (m *MetaData) GetUserAgent() string

func (*MetaData) GetUsername

func (m *MetaData) GetUsername() string

func (*MetaData) Marshal

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

func (*MetaData) MarshalTo

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

func (*MetaData) MarshalToSizedBuffer

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

func (*MetaData) ProtoMessage

func (*MetaData) ProtoMessage()

func (*MetaData) Reset

func (m *MetaData) Reset()

func (*MetaData) Size

func (m *MetaData) Size() (n int)

func (*MetaData) String

func (m *MetaData) String() string

func (*MetaData) Unmarshal

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

func (*MetaData) XXX_DiscardUnknown

func (m *MetaData) XXX_DiscardUnknown()

func (*MetaData) XXX_Marshal

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

func (*MetaData) XXX_Merge

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

func (*MetaData) XXX_Size

func (m *MetaData) XXX_Size() int

func (*MetaData) XXX_Unmarshal

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

type SearchReq

type SearchReq struct {
	QueryText string            `protobuf:"bytes,1,opt,name=query_text,json=queryText,proto3" json:"query_text,omitempty"`
	Limit     int32             `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	Type      SearchReq_Type    `protobuf:"varint,4,opt,name=type,proto3,enum=kit.test.protobuf_gogofaster.v1.SearchReq_Type" json:"type,omitempty"`
	Metadata  *MetaData         `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Extra     map[string]string `` /* 151-byte string literal not displayed */
}

func (*SearchReq) Descriptor

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

func (*SearchReq) GetExtra

func (m *SearchReq) GetExtra() map[string]string

func (*SearchReq) GetLimit

func (m *SearchReq) GetLimit() int32

func (*SearchReq) GetMetadata

func (m *SearchReq) GetMetadata() *MetaData

func (*SearchReq) GetQueryText

func (m *SearchReq) GetQueryText() string

func (*SearchReq) GetType

func (m *SearchReq) GetType() SearchReq_Type

func (*SearchReq) Marshal

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

func (*SearchReq) MarshalTo

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

func (*SearchReq) MarshalToSizedBuffer

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

func (*SearchReq) ProtoMessage

func (*SearchReq) ProtoMessage()

func (*SearchReq) Reset

func (m *SearchReq) Reset()

func (*SearchReq) Size

func (m *SearchReq) Size() (n int)

func (*SearchReq) String

func (m *SearchReq) String() string

func (*SearchReq) Unmarshal

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

func (*SearchReq) XXX_DiscardUnknown

func (m *SearchReq) XXX_DiscardUnknown()

func (*SearchReq) XXX_Marshal

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

func (*SearchReq) XXX_Merge

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

func (*SearchReq) XXX_Size

func (m *SearchReq) XXX_Size() int

func (*SearchReq) XXX_Unmarshal

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

type SearchReq_Type

type SearchReq_Type int32
const (
	SearchReq_PC     SearchReq_Type = 0
	SearchReq_Mobile SearchReq_Type = 1
)

func (SearchReq_Type) EnumDescriptor

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

func (SearchReq_Type) String

func (x SearchReq_Type) String() string

type SearchResp

type SearchResp struct {
	Result     []string `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"`
	NumResults int32    `protobuf:"varint,2,opt,name=num_results,json=numResults,proto3" json:"num_results,omitempty"`
}

func (*SearchResp) Descriptor

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

func (*SearchResp) GetNumResults

func (m *SearchResp) GetNumResults() int32

func (*SearchResp) GetResult

func (m *SearchResp) GetResult() []string

func (*SearchResp) Marshal

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

func (*SearchResp) MarshalTo

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

func (*SearchResp) MarshalToSizedBuffer

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

func (*SearchResp) ProtoMessage

func (*SearchResp) ProtoMessage()

func (*SearchResp) Reset

func (m *SearchResp) Reset()

func (*SearchResp) Size

func (m *SearchResp) Size() (n int)

func (*SearchResp) String

func (m *SearchResp) String() string

func (*SearchResp) Unmarshal

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

func (*SearchResp) XXX_DiscardUnknown

func (m *SearchResp) XXX_DiscardUnknown()

func (*SearchResp) XXX_Marshal

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

func (*SearchResp) XXX_Merge

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

func (*SearchResp) XXX_Size

func (m *SearchResp) XXX_Size() int

func (*SearchResp) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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