bilibili

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Bilibili_NewQRCode_FullMethodName       = "/api.bilibili.Bilibili/NewQRCode"
	Bilibili_LoginWithQRCode_FullMethodName = "/api.bilibili.Bilibili/LoginWithQRCode"
	Bilibili_NewCaptcha_FullMethodName      = "/api.bilibili.Bilibili/NewCaptcha"
	Bilibili_NewSMS_FullMethodName          = "/api.bilibili.Bilibili/NewSMS"
	Bilibili_LoginWithSMS_FullMethodName    = "/api.bilibili.Bilibili/LoginWithSMS"
	Bilibili_ParseVideoPage_FullMethodName  = "/api.bilibili.Bilibili/ParseVideoPage"
	Bilibili_GetVideoURL_FullMethodName     = "/api.bilibili.Bilibili/GetVideoURL"
	Bilibili_GetDashVideoURL_FullMethodName = "/api.bilibili.Bilibili/GetDashVideoURL"
	Bilibili_GetSubtitles_FullMethodName    = "/api.bilibili.Bilibili/GetSubtitles"
	Bilibili_ParsePGCPage_FullMethodName    = "/api.bilibili.Bilibili/ParsePGCPage"
	Bilibili_GetPGCURL_FullMethodName       = "/api.bilibili.Bilibili/GetPGCURL"
	Bilibili_GetDashPGCURL_FullMethodName   = "/api.bilibili.Bilibili/GetDashPGCURL"
	Bilibili_UserInfo_FullMethodName        = "/api.bilibili.Bilibili/UserInfo"
	Bilibili_Match_FullMethodName           = "/api.bilibili.Bilibili/Match"
)
View Source
const OperationBilibiliGetDashPGCURL = "/api.bilibili.Bilibili/GetDashPGCURL"
View Source
const OperationBilibiliGetDashVideoURL = "/api.bilibili.Bilibili/GetDashVideoURL"
View Source
const OperationBilibiliGetPGCURL = "/api.bilibili.Bilibili/GetPGCURL"
View Source
const OperationBilibiliGetSubtitles = "/api.bilibili.Bilibili/GetSubtitles"
View Source
const OperationBilibiliGetVideoURL = "/api.bilibili.Bilibili/GetVideoURL"
View Source
const OperationBilibiliLoginWithQRCode = "/api.bilibili.Bilibili/LoginWithQRCode"
View Source
const OperationBilibiliLoginWithSMS = "/api.bilibili.Bilibili/LoginWithSMS"
View Source
const OperationBilibiliMatch = "/api.bilibili.Bilibili/Match"
View Source
const OperationBilibiliNewCaptcha = "/api.bilibili.Bilibili/NewCaptcha"
View Source
const OperationBilibiliNewQRCode = "/api.bilibili.Bilibili/NewQRCode"
View Source
const OperationBilibiliNewSMS = "/api.bilibili.Bilibili/NewSMS"
View Source
const OperationBilibiliParsePGCPage = "/api.bilibili.Bilibili/ParsePGCPage"
View Source
const OperationBilibiliParseVideoPage = "/api.bilibili.Bilibili/ParseVideoPage"
View Source
const OperationBilibiliUserInfo = "/api.bilibili.Bilibili/UserInfo"

Variables

View Source
var (
	QRCodeStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "EXPIRED",
		2: "NOTSCANNED",
		3: "SCANNED",
		4: "SUCCESS",
	}
	QRCodeStatus_value = map[string]int32{
		"UNKNOWN":    0,
		"EXPIRED":    1,
		"NOTSCANNED": 2,
		"SCANNED":    3,
		"SUCCESS":    4,
	}
)

Enum value maps for QRCodeStatus.

View Source
var Bilibili_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.bilibili.Bilibili",
	HandlerType: (*BilibiliServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "NewQRCode",
			Handler:    _Bilibili_NewQRCode_Handler,
		},
		{
			MethodName: "LoginWithQRCode",
			Handler:    _Bilibili_LoginWithQRCode_Handler,
		},
		{
			MethodName: "NewCaptcha",
			Handler:    _Bilibili_NewCaptcha_Handler,
		},
		{
			MethodName: "NewSMS",
			Handler:    _Bilibili_NewSMS_Handler,
		},
		{
			MethodName: "LoginWithSMS",
			Handler:    _Bilibili_LoginWithSMS_Handler,
		},
		{
			MethodName: "ParseVideoPage",
			Handler:    _Bilibili_ParseVideoPage_Handler,
		},
		{
			MethodName: "GetVideoURL",
			Handler:    _Bilibili_GetVideoURL_Handler,
		},
		{
			MethodName: "GetDashVideoURL",
			Handler:    _Bilibili_GetDashVideoURL_Handler,
		},
		{
			MethodName: "GetSubtitles",
			Handler:    _Bilibili_GetSubtitles_Handler,
		},
		{
			MethodName: "ParsePGCPage",
			Handler:    _Bilibili_ParsePGCPage_Handler,
		},
		{
			MethodName: "GetPGCURL",
			Handler:    _Bilibili_GetPGCURL_Handler,
		},
		{
			MethodName: "GetDashPGCURL",
			Handler:    _Bilibili_GetDashPGCURL_Handler,
		},
		{
			MethodName: "UserInfo",
			Handler:    _Bilibili_UserInfo_Handler,
		},
		{
			MethodName: "Match",
			Handler:    _Bilibili_Match_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "bilibili/bilibili.proto",
}

Bilibili_ServiceDesc is the grpc.ServiceDesc for Bilibili service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_bilibili_bilibili_proto protoreflect.FileDescriptor

Functions

func RegisterBilibiliHTTPServer

func RegisterBilibiliHTTPServer(s *http.Server, srv BilibiliHTTPServer)

func RegisterBilibiliServer

func RegisterBilibiliServer(s grpc.ServiceRegistrar, srv BilibiliServer)

Types

type BilibiliClient

type BilibiliClient interface {
	NewQRCode(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*NewQRCodeResp, error)
	LoginWithQRCode(ctx context.Context, in *LoginWithQRCodeReq, opts ...grpc.CallOption) (*LoginWithQRCodeResp, error)
	NewCaptcha(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*NewCaptchaResp, error)
	NewSMS(ctx context.Context, in *NewSMSReq, opts ...grpc.CallOption) (*NewSMSResp, error)
	LoginWithSMS(ctx context.Context, in *LoginWithSMSReq, opts ...grpc.CallOption) (*LoginWithSMSResp, error)
	ParseVideoPage(ctx context.Context, in *ParseVideoPageReq, opts ...grpc.CallOption) (*VideoPageInfo, error)
	GetVideoURL(ctx context.Context, in *GetVideoURLReq, opts ...grpc.CallOption) (*VideoURL, error)
	GetDashVideoURL(ctx context.Context, in *GetDashVideoURLReq, opts ...grpc.CallOption) (*GetDashVideoURLResp, error)
	GetSubtitles(ctx context.Context, in *GetSubtitlesReq, opts ...grpc.CallOption) (*GetSubtitlesResp, error)
	ParsePGCPage(ctx context.Context, in *ParsePGCPageReq, opts ...grpc.CallOption) (*VideoPageInfo, error)
	GetPGCURL(ctx context.Context, in *GetPGCURLReq, opts ...grpc.CallOption) (*VideoURL, error)
	GetDashPGCURL(ctx context.Context, in *GetDashPGCURLReq, opts ...grpc.CallOption) (*GetDashPGCURLResp, error)
	UserInfo(ctx context.Context, in *UserInfoReq, opts ...grpc.CallOption) (*UserInfoResp, error)
	Match(ctx context.Context, in *MatchReq, opts ...grpc.CallOption) (*MatchResp, error)
}

BilibiliClient is the client API for Bilibili service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewBilibiliClient

func NewBilibiliClient(cc grpc.ClientConnInterface) BilibiliClient

type BilibiliHTTPClient

type BilibiliHTTPClient interface {
	GetDashPGCURL(ctx context.Context, req *GetDashPGCURLReq, opts ...http.CallOption) (rsp *GetDashPGCURLResp, err error)
	GetDashVideoURL(ctx context.Context, req *GetDashVideoURLReq, opts ...http.CallOption) (rsp *GetDashVideoURLResp, err error)
	GetPGCURL(ctx context.Context, req *GetPGCURLReq, opts ...http.CallOption) (rsp *VideoURL, err error)
	GetSubtitles(ctx context.Context, req *GetSubtitlesReq, opts ...http.CallOption) (rsp *GetSubtitlesResp, err error)
	GetVideoURL(ctx context.Context, req *GetVideoURLReq, opts ...http.CallOption) (rsp *VideoURL, err error)
	LoginWithQRCode(ctx context.Context, req *LoginWithQRCodeReq, opts ...http.CallOption) (rsp *LoginWithQRCodeResp, err error)
	LoginWithSMS(ctx context.Context, req *LoginWithSMSReq, opts ...http.CallOption) (rsp *LoginWithSMSResp, err error)
	Match(ctx context.Context, req *MatchReq, opts ...http.CallOption) (rsp *MatchResp, err error)
	NewCaptcha(ctx context.Context, req *Empty, opts ...http.CallOption) (rsp *NewCaptchaResp, err error)
	NewQRCode(ctx context.Context, req *Empty, opts ...http.CallOption) (rsp *NewQRCodeResp, err error)
	NewSMS(ctx context.Context, req *NewSMSReq, opts ...http.CallOption) (rsp *NewSMSResp, err error)
	ParsePGCPage(ctx context.Context, req *ParsePGCPageReq, opts ...http.CallOption) (rsp *VideoPageInfo, err error)
	ParseVideoPage(ctx context.Context, req *ParseVideoPageReq, opts ...http.CallOption) (rsp *VideoPageInfo, err error)
	UserInfo(ctx context.Context, req *UserInfoReq, opts ...http.CallOption) (rsp *UserInfoResp, err error)
}

func NewBilibiliHTTPClient

func NewBilibiliHTTPClient(client *http.Client) BilibiliHTTPClient

type BilibiliHTTPClientImpl

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

func (*BilibiliHTTPClientImpl) GetDashPGCURL

func (*BilibiliHTTPClientImpl) GetDashVideoURL

func (*BilibiliHTTPClientImpl) GetPGCURL

func (c *BilibiliHTTPClientImpl) GetPGCURL(ctx context.Context, in *GetPGCURLReq, opts ...http.CallOption) (*VideoURL, error)

func (*BilibiliHTTPClientImpl) GetSubtitles

func (*BilibiliHTTPClientImpl) GetVideoURL

func (c *BilibiliHTTPClientImpl) GetVideoURL(ctx context.Context, in *GetVideoURLReq, opts ...http.CallOption) (*VideoURL, error)

func (*BilibiliHTTPClientImpl) LoginWithQRCode

func (*BilibiliHTTPClientImpl) LoginWithSMS

func (*BilibiliHTTPClientImpl) Match

func (c *BilibiliHTTPClientImpl) Match(ctx context.Context, in *MatchReq, opts ...http.CallOption) (*MatchResp, error)

func (*BilibiliHTTPClientImpl) NewCaptcha

func (c *BilibiliHTTPClientImpl) NewCaptcha(ctx context.Context, in *Empty, opts ...http.CallOption) (*NewCaptchaResp, error)

func (*BilibiliHTTPClientImpl) NewQRCode

func (c *BilibiliHTTPClientImpl) NewQRCode(ctx context.Context, in *Empty, opts ...http.CallOption) (*NewQRCodeResp, error)

func (*BilibiliHTTPClientImpl) NewSMS

func (*BilibiliHTTPClientImpl) ParsePGCPage

func (*BilibiliHTTPClientImpl) ParseVideoPage

func (c *BilibiliHTTPClientImpl) ParseVideoPage(ctx context.Context, in *ParseVideoPageReq, opts ...http.CallOption) (*VideoPageInfo, error)

func (*BilibiliHTTPClientImpl) UserInfo

type BilibiliServer

BilibiliServer is the server API for Bilibili service. All implementations must embed UnimplementedBilibiliServer for forward compatibility

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type GetDashPGCURLReq

type GetDashPGCURLReq struct {
	Cookies map[string]string `` /* 155-byte string literal not displayed */
	Epid    uint64            `protobuf:"varint,2,opt,name=epid,proto3" json:"epid,omitempty"`
	Cid     uint64            `protobuf:"varint,3,opt,name=cid,proto3" json:"cid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDashPGCURLReq) Descriptor deprecated

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

Deprecated: Use GetDashPGCURLReq.ProtoReflect.Descriptor instead.

func (*GetDashPGCURLReq) GetCid

func (x *GetDashPGCURLReq) GetCid() uint64

func (*GetDashPGCURLReq) GetCookies

func (x *GetDashPGCURLReq) GetCookies() map[string]string

func (*GetDashPGCURLReq) GetEpid

func (x *GetDashPGCURLReq) GetEpid() uint64

func (*GetDashPGCURLReq) ProtoMessage

func (*GetDashPGCURLReq) ProtoMessage()

func (*GetDashPGCURLReq) ProtoReflect

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

func (*GetDashPGCURLReq) Reset

func (x *GetDashPGCURLReq) Reset()

func (*GetDashPGCURLReq) String

func (x *GetDashPGCURLReq) String() string

type GetDashPGCURLResp

type GetDashPGCURLResp struct {
	Mpd     string `protobuf:"bytes,1,opt,name=mpd,proto3" json:"mpd,omitempty"`
	HevcMpd string `protobuf:"bytes,2,opt,name=hevcMpd,proto3" json:"hevcMpd,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDashPGCURLResp) Descriptor deprecated

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

Deprecated: Use GetDashPGCURLResp.ProtoReflect.Descriptor instead.

func (*GetDashPGCURLResp) GetHevcMpd added in v0.2.0

func (x *GetDashPGCURLResp) GetHevcMpd() string

func (*GetDashPGCURLResp) GetMpd

func (x *GetDashPGCURLResp) GetMpd() string

func (*GetDashPGCURLResp) ProtoMessage

func (*GetDashPGCURLResp) ProtoMessage()

func (*GetDashPGCURLResp) ProtoReflect

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

func (*GetDashPGCURLResp) Reset

func (x *GetDashPGCURLResp) Reset()

func (*GetDashPGCURLResp) String

func (x *GetDashPGCURLResp) String() string

type GetDashVideoURLReq

type GetDashVideoURLReq struct {
	Cookies map[string]string `` /* 155-byte string literal not displayed */
	Aid     uint64            `protobuf:"varint,2,opt,name=aid,proto3" json:"aid,omitempty"`
	Bvid    string            `protobuf:"bytes,3,opt,name=bvid,proto3" json:"bvid,omitempty"`
	Cid     uint64            `protobuf:"varint,4,opt,name=cid,proto3" json:"cid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDashVideoURLReq) Descriptor deprecated

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

Deprecated: Use GetDashVideoURLReq.ProtoReflect.Descriptor instead.

func (*GetDashVideoURLReq) GetAid

func (x *GetDashVideoURLReq) GetAid() uint64

func (*GetDashVideoURLReq) GetBvid

func (x *GetDashVideoURLReq) GetBvid() string

func (*GetDashVideoURLReq) GetCid

func (x *GetDashVideoURLReq) GetCid() uint64

func (*GetDashVideoURLReq) GetCookies

func (x *GetDashVideoURLReq) GetCookies() map[string]string

func (*GetDashVideoURLReq) ProtoMessage

func (*GetDashVideoURLReq) ProtoMessage()

func (*GetDashVideoURLReq) ProtoReflect

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

func (*GetDashVideoURLReq) Reset

func (x *GetDashVideoURLReq) Reset()

func (*GetDashVideoURLReq) String

func (x *GetDashVideoURLReq) String() string

type GetDashVideoURLResp

type GetDashVideoURLResp struct {
	Mpd     string `protobuf:"bytes,1,opt,name=mpd,proto3" json:"mpd,omitempty"`
	HevcMpd string `protobuf:"bytes,2,opt,name=hevcMpd,proto3" json:"hevcMpd,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDashVideoURLResp) Descriptor deprecated

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

Deprecated: Use GetDashVideoURLResp.ProtoReflect.Descriptor instead.

func (*GetDashVideoURLResp) GetHevcMpd added in v0.2.0

func (x *GetDashVideoURLResp) GetHevcMpd() string

func (*GetDashVideoURLResp) GetMpd

func (x *GetDashVideoURLResp) GetMpd() string

func (*GetDashVideoURLResp) ProtoMessage

func (*GetDashVideoURLResp) ProtoMessage()

func (*GetDashVideoURLResp) ProtoReflect

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

func (*GetDashVideoURLResp) Reset

func (x *GetDashVideoURLResp) Reset()

func (*GetDashVideoURLResp) String

func (x *GetDashVideoURLResp) String() string

type GetPGCURLReq

type GetPGCURLReq struct {
	Cookies map[string]string `` /* 155-byte string literal not displayed */
	Epid    uint64            `protobuf:"varint,2,opt,name=epid,proto3" json:"epid,omitempty"`
	Cid     uint64            `protobuf:"varint,3,opt,name=cid,proto3" json:"cid,omitempty"`
	Quality uint64            `protobuf:"varint,4,opt,name=quality,proto3" json:"quality,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPGCURLReq) Descriptor deprecated

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

Deprecated: Use GetPGCURLReq.ProtoReflect.Descriptor instead.

func (*GetPGCURLReq) GetCid

func (x *GetPGCURLReq) GetCid() uint64

func (*GetPGCURLReq) GetCookies

func (x *GetPGCURLReq) GetCookies() map[string]string

func (*GetPGCURLReq) GetEpid

func (x *GetPGCURLReq) GetEpid() uint64

func (*GetPGCURLReq) GetQuality

func (x *GetPGCURLReq) GetQuality() uint64

func (*GetPGCURLReq) ProtoMessage

func (*GetPGCURLReq) ProtoMessage()

func (*GetPGCURLReq) ProtoReflect

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

func (*GetPGCURLReq) Reset

func (x *GetPGCURLReq) Reset()

func (*GetPGCURLReq) String

func (x *GetPGCURLReq) String() string

type GetSubtitlesReq

type GetSubtitlesReq struct {
	Cookies map[string]string `` /* 155-byte string literal not displayed */
	Aid     uint64            `protobuf:"varint,2,opt,name=aid,proto3" json:"aid,omitempty"`
	Bvid    string            `protobuf:"bytes,3,opt,name=bvid,proto3" json:"bvid,omitempty"`
	Cid     uint64            `protobuf:"varint,4,opt,name=cid,proto3" json:"cid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSubtitlesReq) Descriptor deprecated

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

Deprecated: Use GetSubtitlesReq.ProtoReflect.Descriptor instead.

func (*GetSubtitlesReq) GetAid

func (x *GetSubtitlesReq) GetAid() uint64

func (*GetSubtitlesReq) GetBvid

func (x *GetSubtitlesReq) GetBvid() string

func (*GetSubtitlesReq) GetCid

func (x *GetSubtitlesReq) GetCid() uint64

func (*GetSubtitlesReq) GetCookies

func (x *GetSubtitlesReq) GetCookies() map[string]string

func (*GetSubtitlesReq) ProtoMessage

func (*GetSubtitlesReq) ProtoMessage()

func (*GetSubtitlesReq) ProtoReflect

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

func (*GetSubtitlesReq) Reset

func (x *GetSubtitlesReq) Reset()

func (*GetSubtitlesReq) String

func (x *GetSubtitlesReq) String() string

type GetSubtitlesResp

type GetSubtitlesResp struct {
	Subtitles map[string]string `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetSubtitlesResp) Descriptor deprecated

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

Deprecated: Use GetSubtitlesResp.ProtoReflect.Descriptor instead.

func (*GetSubtitlesResp) GetSubtitles

func (x *GetSubtitlesResp) GetSubtitles() map[string]string

func (*GetSubtitlesResp) ProtoMessage

func (*GetSubtitlesResp) ProtoMessage()

func (*GetSubtitlesResp) ProtoReflect

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

func (*GetSubtitlesResp) Reset

func (x *GetSubtitlesResp) Reset()

func (*GetSubtitlesResp) String

func (x *GetSubtitlesResp) String() string

type GetVideoURLReq

type GetVideoURLReq struct {
	Cookies map[string]string `` /* 155-byte string literal not displayed */
	Aid     uint64            `protobuf:"varint,2,opt,name=aid,proto3" json:"aid,omitempty"`
	Bvid    string            `protobuf:"bytes,3,opt,name=bvid,proto3" json:"bvid,omitempty"`
	Cid     uint64            `protobuf:"varint,4,opt,name=cid,proto3" json:"cid,omitempty"`
	Quality uint64            `protobuf:"varint,5,opt,name=quality,proto3" json:"quality,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVideoURLReq) Descriptor deprecated

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

Deprecated: Use GetVideoURLReq.ProtoReflect.Descriptor instead.

func (*GetVideoURLReq) GetAid

func (x *GetVideoURLReq) GetAid() uint64

func (*GetVideoURLReq) GetBvid

func (x *GetVideoURLReq) GetBvid() string

func (*GetVideoURLReq) GetCid

func (x *GetVideoURLReq) GetCid() uint64

func (*GetVideoURLReq) GetCookies

func (x *GetVideoURLReq) GetCookies() map[string]string

func (*GetVideoURLReq) GetQuality

func (x *GetVideoURLReq) GetQuality() uint64

func (*GetVideoURLReq) ProtoMessage

func (*GetVideoURLReq) ProtoMessage()

func (*GetVideoURLReq) ProtoReflect

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

func (*GetVideoURLReq) Reset

func (x *GetVideoURLReq) Reset()

func (*GetVideoURLReq) String

func (x *GetVideoURLReq) String() string

type LoginWithQRCodeReq

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

func (*LoginWithQRCodeReq) Descriptor deprecated

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

Deprecated: Use LoginWithQRCodeReq.ProtoReflect.Descriptor instead.

func (*LoginWithQRCodeReq) GetKey

func (x *LoginWithQRCodeReq) GetKey() string

func (*LoginWithQRCodeReq) ProtoMessage

func (*LoginWithQRCodeReq) ProtoMessage()

func (*LoginWithQRCodeReq) ProtoReflect

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

func (*LoginWithQRCodeReq) Reset

func (x *LoginWithQRCodeReq) Reset()

func (*LoginWithQRCodeReq) String

func (x *LoginWithQRCodeReq) String() string

type LoginWithQRCodeResp

type LoginWithQRCodeResp struct {
	Status  QRCodeStatus      `protobuf:"varint,1,opt,name=status,proto3,enum=api.bilibili.QRCodeStatus" json:"status,omitempty"`
	Cookies map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LoginWithQRCodeResp) Descriptor deprecated

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

Deprecated: Use LoginWithQRCodeResp.ProtoReflect.Descriptor instead.

func (*LoginWithQRCodeResp) GetCookies

func (x *LoginWithQRCodeResp) GetCookies() map[string]string

func (*LoginWithQRCodeResp) GetStatus

func (x *LoginWithQRCodeResp) GetStatus() QRCodeStatus

func (*LoginWithQRCodeResp) ProtoMessage

func (*LoginWithQRCodeResp) ProtoMessage()

func (*LoginWithQRCodeResp) ProtoReflect

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

func (*LoginWithQRCodeResp) Reset

func (x *LoginWithQRCodeResp) Reset()

func (*LoginWithQRCodeResp) String

func (x *LoginWithQRCodeResp) String() string

type LoginWithSMSReq

type LoginWithSMSReq struct {
	Phone      string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"`
	Code       string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	CaptchaKey string `protobuf:"bytes,3,opt,name=captchaKey,proto3" json:"captchaKey,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginWithSMSReq) Descriptor deprecated

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

Deprecated: Use LoginWithSMSReq.ProtoReflect.Descriptor instead.

func (*LoginWithSMSReq) GetCaptchaKey

func (x *LoginWithSMSReq) GetCaptchaKey() string

func (*LoginWithSMSReq) GetCode

func (x *LoginWithSMSReq) GetCode() string

func (*LoginWithSMSReq) GetPhone

func (x *LoginWithSMSReq) GetPhone() string

func (*LoginWithSMSReq) ProtoMessage

func (*LoginWithSMSReq) ProtoMessage()

func (*LoginWithSMSReq) ProtoReflect

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

func (*LoginWithSMSReq) Reset

func (x *LoginWithSMSReq) Reset()

func (*LoginWithSMSReq) String

func (x *LoginWithSMSReq) String() string

type LoginWithSMSResp

type LoginWithSMSResp struct {
	Cookies map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LoginWithSMSResp) Descriptor deprecated

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

Deprecated: Use LoginWithSMSResp.ProtoReflect.Descriptor instead.

func (*LoginWithSMSResp) GetCookies

func (x *LoginWithSMSResp) GetCookies() map[string]string

func (*LoginWithSMSResp) ProtoMessage

func (*LoginWithSMSResp) ProtoMessage()

func (*LoginWithSMSResp) ProtoReflect

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

func (*LoginWithSMSResp) Reset

func (x *LoginWithSMSResp) Reset()

func (*LoginWithSMSResp) String

func (x *LoginWithSMSResp) String() string

type MatchReq

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

func (*MatchReq) Descriptor deprecated

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

Deprecated: Use MatchReq.ProtoReflect.Descriptor instead.

func (*MatchReq) GetUrl

func (x *MatchReq) GetUrl() string

func (*MatchReq) ProtoMessage

func (*MatchReq) ProtoMessage()

func (*MatchReq) ProtoReflect

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

func (*MatchReq) Reset

func (x *MatchReq) Reset()

func (*MatchReq) String

func (x *MatchReq) String() string

type MatchResp

type MatchResp struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Id   string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*MatchResp) Descriptor deprecated

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

Deprecated: Use MatchResp.ProtoReflect.Descriptor instead.

func (*MatchResp) GetId

func (x *MatchResp) GetId() string

func (*MatchResp) GetType

func (x *MatchResp) GetType() string

func (*MatchResp) ProtoMessage

func (*MatchResp) ProtoMessage()

func (*MatchResp) ProtoReflect

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

func (*MatchResp) Reset

func (x *MatchResp) Reset()

func (*MatchResp) String

func (x *MatchResp) String() string

type NewCaptchaResp

type NewCaptchaResp struct {
	Token     string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Gt        string `protobuf:"bytes,2,opt,name=gt,proto3" json:"gt,omitempty"`
	Challenge string `protobuf:"bytes,3,opt,name=challenge,proto3" json:"challenge,omitempty"`
	// contains filtered or unexported fields
}

func (*NewCaptchaResp) Descriptor deprecated

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

Deprecated: Use NewCaptchaResp.ProtoReflect.Descriptor instead.

func (*NewCaptchaResp) GetChallenge

func (x *NewCaptchaResp) GetChallenge() string

func (*NewCaptchaResp) GetGt

func (x *NewCaptchaResp) GetGt() string

func (*NewCaptchaResp) GetToken

func (x *NewCaptchaResp) GetToken() string

func (*NewCaptchaResp) ProtoMessage

func (*NewCaptchaResp) ProtoMessage()

func (*NewCaptchaResp) ProtoReflect

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

func (*NewCaptchaResp) Reset

func (x *NewCaptchaResp) Reset()

func (*NewCaptchaResp) String

func (x *NewCaptchaResp) String() string

type NewQRCodeResp

type NewQRCodeResp struct {
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*NewQRCodeResp) Descriptor deprecated

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

Deprecated: Use NewQRCodeResp.ProtoReflect.Descriptor instead.

func (*NewQRCodeResp) GetKey

func (x *NewQRCodeResp) GetKey() string

func (*NewQRCodeResp) GetUrl

func (x *NewQRCodeResp) GetUrl() string

func (*NewQRCodeResp) ProtoMessage

func (*NewQRCodeResp) ProtoMessage()

func (*NewQRCodeResp) ProtoReflect

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

func (*NewQRCodeResp) Reset

func (x *NewQRCodeResp) Reset()

func (*NewQRCodeResp) String

func (x *NewQRCodeResp) String() string

type NewSMSReq

type NewSMSReq struct {
	Phone     string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"`
	Token     string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Challenge string `protobuf:"bytes,3,opt,name=challenge,proto3" json:"challenge,omitempty"`
	Validate  string `protobuf:"bytes,4,opt,name=validate,proto3" json:"validate,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSMSReq) Descriptor deprecated

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

Deprecated: Use NewSMSReq.ProtoReflect.Descriptor instead.

func (*NewSMSReq) GetChallenge

func (x *NewSMSReq) GetChallenge() string

func (*NewSMSReq) GetPhone

func (x *NewSMSReq) GetPhone() string

func (*NewSMSReq) GetToken

func (x *NewSMSReq) GetToken() string

func (*NewSMSReq) GetValidate

func (x *NewSMSReq) GetValidate() string

func (*NewSMSReq) ProtoMessage

func (*NewSMSReq) ProtoMessage()

func (*NewSMSReq) ProtoReflect

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

func (*NewSMSReq) Reset

func (x *NewSMSReq) Reset()

func (*NewSMSReq) String

func (x *NewSMSReq) String() string

type NewSMSResp

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

func (*NewSMSResp) Descriptor deprecated

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

Deprecated: Use NewSMSResp.ProtoReflect.Descriptor instead.

func (*NewSMSResp) GetCaptchaKey

func (x *NewSMSResp) GetCaptchaKey() string

func (*NewSMSResp) ProtoMessage

func (*NewSMSResp) ProtoMessage()

func (*NewSMSResp) ProtoReflect

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

func (*NewSMSResp) Reset

func (x *NewSMSResp) Reset()

func (*NewSMSResp) String

func (x *NewSMSResp) String() string

type ParsePGCPageReq

type ParsePGCPageReq struct {
	Cookies map[string]string `` /* 155-byte string literal not displayed */
	Ssid    uint64            `protobuf:"varint,2,opt,name=ssid,proto3" json:"ssid,omitempty"`
	Epid    uint64            `protobuf:"varint,3,opt,name=epid,proto3" json:"epid,omitempty"`
	// contains filtered or unexported fields
}

func (*ParsePGCPageReq) Descriptor deprecated

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

Deprecated: Use ParsePGCPageReq.ProtoReflect.Descriptor instead.

func (*ParsePGCPageReq) GetCookies

func (x *ParsePGCPageReq) GetCookies() map[string]string

func (*ParsePGCPageReq) GetEpid

func (x *ParsePGCPageReq) GetEpid() uint64

func (*ParsePGCPageReq) GetSsid

func (x *ParsePGCPageReq) GetSsid() uint64

func (*ParsePGCPageReq) ProtoMessage

func (*ParsePGCPageReq) ProtoMessage()

func (*ParsePGCPageReq) ProtoReflect

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

func (*ParsePGCPageReq) Reset

func (x *ParsePGCPageReq) Reset()

func (*ParsePGCPageReq) String

func (x *ParsePGCPageReq) String() string

type ParseVideoPageReq

type ParseVideoPageReq struct {
	Cookies  map[string]string `` /* 155-byte string literal not displayed */
	Aid      uint64            `protobuf:"varint,2,opt,name=aid,proto3" json:"aid,omitempty"`
	Bvid     string            `protobuf:"bytes,3,opt,name=bvid,proto3" json:"bvid,omitempty"`
	Sections bool              `protobuf:"varint,4,opt,name=sections,proto3" json:"sections,omitempty"`
	// contains filtered or unexported fields
}

func (*ParseVideoPageReq) Descriptor deprecated

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

Deprecated: Use ParseVideoPageReq.ProtoReflect.Descriptor instead.

func (*ParseVideoPageReq) GetAid

func (x *ParseVideoPageReq) GetAid() uint64

func (*ParseVideoPageReq) GetBvid

func (x *ParseVideoPageReq) GetBvid() string

func (*ParseVideoPageReq) GetCookies

func (x *ParseVideoPageReq) GetCookies() map[string]string

func (*ParseVideoPageReq) GetSections

func (x *ParseVideoPageReq) GetSections() bool

func (*ParseVideoPageReq) ProtoMessage

func (*ParseVideoPageReq) ProtoMessage()

func (*ParseVideoPageReq) ProtoReflect

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

func (*ParseVideoPageReq) Reset

func (x *ParseVideoPageReq) Reset()

func (*ParseVideoPageReq) String

func (x *ParseVideoPageReq) String() string

type QRCodeStatus

type QRCodeStatus int32
const (
	QRCodeStatus_UNKNOWN    QRCodeStatus = 0
	QRCodeStatus_EXPIRED    QRCodeStatus = 1
	QRCodeStatus_NOTSCANNED QRCodeStatus = 2
	QRCodeStatus_SCANNED    QRCodeStatus = 3
	QRCodeStatus_SUCCESS    QRCodeStatus = 4
)

func (QRCodeStatus) Descriptor

func (QRCodeStatus) Enum

func (x QRCodeStatus) Enum() *QRCodeStatus

func (QRCodeStatus) EnumDescriptor deprecated

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

Deprecated: Use QRCodeStatus.Descriptor instead.

func (QRCodeStatus) Number

func (QRCodeStatus) String

func (x QRCodeStatus) String() string

func (QRCodeStatus) Type

type UnimplementedBilibiliServer

type UnimplementedBilibiliServer struct {
}

UnimplementedBilibiliServer must be embedded to have forward compatible implementations.

func (UnimplementedBilibiliServer) GetDashPGCURL

func (UnimplementedBilibiliServer) GetDashVideoURL

func (UnimplementedBilibiliServer) GetPGCURL

func (UnimplementedBilibiliServer) GetSubtitles

func (UnimplementedBilibiliServer) GetVideoURL

func (UnimplementedBilibiliServer) LoginWithQRCode

func (UnimplementedBilibiliServer) LoginWithSMS

func (UnimplementedBilibiliServer) Match

func (UnimplementedBilibiliServer) NewCaptcha

func (UnimplementedBilibiliServer) NewQRCode

func (UnimplementedBilibiliServer) NewSMS

func (UnimplementedBilibiliServer) ParsePGCPage

func (UnimplementedBilibiliServer) ParseVideoPage

func (UnimplementedBilibiliServer) UserInfo

type UnsafeBilibiliServer

type UnsafeBilibiliServer interface {
	// contains filtered or unexported methods
}

UnsafeBilibiliServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BilibiliServer will result in compilation errors.

type UserInfoReq

type UserInfoReq struct {
	Cookies map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UserInfoReq) Descriptor deprecated

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

Deprecated: Use UserInfoReq.ProtoReflect.Descriptor instead.

func (*UserInfoReq) GetCookies

func (x *UserInfoReq) GetCookies() map[string]string

func (*UserInfoReq) ProtoMessage

func (*UserInfoReq) ProtoMessage()

func (*UserInfoReq) ProtoReflect

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

func (*UserInfoReq) Reset

func (x *UserInfoReq) Reset()

func (*UserInfoReq) String

func (x *UserInfoReq) String() string

type UserInfoResp

type UserInfoResp struct {
	IsLogin  bool   `protobuf:"varint,1,opt,name=isLogin,proto3" json:"isLogin,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Face     string `protobuf:"bytes,3,opt,name=face,proto3" json:"face,omitempty"`
	IsVip    bool   `protobuf:"varint,4,opt,name=isVip,proto3" json:"isVip,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfoResp) Descriptor deprecated

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

Deprecated: Use UserInfoResp.ProtoReflect.Descriptor instead.

func (*UserInfoResp) GetFace

func (x *UserInfoResp) GetFace() string

func (*UserInfoResp) GetIsLogin

func (x *UserInfoResp) GetIsLogin() bool

func (*UserInfoResp) GetIsVip

func (x *UserInfoResp) GetIsVip() bool

func (*UserInfoResp) GetUsername

func (x *UserInfoResp) GetUsername() string

func (*UserInfoResp) ProtoMessage

func (*UserInfoResp) ProtoMessage()

func (*UserInfoResp) ProtoReflect

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

func (*UserInfoResp) Reset

func (x *UserInfoResp) Reset()

func (*UserInfoResp) String

func (x *UserInfoResp) String() string

type VideoInfo

type VideoInfo struct {
	Bvid       string `protobuf:"bytes,2,opt,name=bvid,proto3" json:"bvid,omitempty"`
	Cid        uint64 `protobuf:"varint,3,opt,name=cid,proto3" json:"cid,omitempty"`
	Epid       uint64 `protobuf:"varint,4,opt,name=epid,proto3" json:"epid,omitempty"`
	Name       string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	CoverImage string `protobuf:"bytes,6,opt,name=coverImage,proto3" json:"coverImage,omitempty"`
	// contains filtered or unexported fields
}

func (*VideoInfo) Descriptor deprecated

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

Deprecated: Use VideoInfo.ProtoReflect.Descriptor instead.

func (*VideoInfo) GetBvid

func (x *VideoInfo) GetBvid() string

func (*VideoInfo) GetCid

func (x *VideoInfo) GetCid() uint64

func (*VideoInfo) GetCoverImage

func (x *VideoInfo) GetCoverImage() string

func (*VideoInfo) GetEpid

func (x *VideoInfo) GetEpid() uint64

func (*VideoInfo) GetName

func (x *VideoInfo) GetName() string

func (*VideoInfo) ProtoMessage

func (*VideoInfo) ProtoMessage()

func (*VideoInfo) ProtoReflect

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

func (*VideoInfo) Reset

func (x *VideoInfo) Reset()

func (*VideoInfo) String

func (x *VideoInfo) String() string

type VideoPageInfo

type VideoPageInfo struct {
	Title      string       `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Actors     string       `protobuf:"bytes,3,opt,name=actors,proto3" json:"actors,omitempty"`
	VideoInfos []*VideoInfo `protobuf:"bytes,4,rep,name=videoInfos,proto3" json:"videoInfos,omitempty"`
	// contains filtered or unexported fields
}

func (*VideoPageInfo) Descriptor deprecated

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

Deprecated: Use VideoPageInfo.ProtoReflect.Descriptor instead.

func (*VideoPageInfo) GetActors

func (x *VideoPageInfo) GetActors() string

func (*VideoPageInfo) GetTitle

func (x *VideoPageInfo) GetTitle() string

func (*VideoPageInfo) GetVideoInfos

func (x *VideoPageInfo) GetVideoInfos() []*VideoInfo

func (*VideoPageInfo) ProtoMessage

func (*VideoPageInfo) ProtoMessage()

func (*VideoPageInfo) ProtoReflect

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

func (*VideoPageInfo) Reset

func (x *VideoPageInfo) Reset()

func (*VideoPageInfo) String

func (x *VideoPageInfo) String() string

type VideoURL

type VideoURL struct {
	AcceptDescription []string `protobuf:"bytes,1,rep,name=acceptDescription,proto3" json:"acceptDescription,omitempty"`
	AcceptQuality     []uint64 `protobuf:"varint,2,rep,packed,name=acceptQuality,proto3" json:"acceptQuality,omitempty"`
	CurrentQuality    uint64   `protobuf:"varint,3,opt,name=currentQuality,proto3" json:"currentQuality,omitempty"`
	Url               string   `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*VideoURL) Descriptor deprecated

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

Deprecated: Use VideoURL.ProtoReflect.Descriptor instead.

func (*VideoURL) GetAcceptDescription

func (x *VideoURL) GetAcceptDescription() []string

func (*VideoURL) GetAcceptQuality

func (x *VideoURL) GetAcceptQuality() []uint64

func (*VideoURL) GetCurrentQuality

func (x *VideoURL) GetCurrentQuality() uint64

func (*VideoURL) GetUrl

func (x *VideoURL) GetUrl() string

func (*VideoURL) ProtoMessage

func (*VideoURL) ProtoMessage()

func (*VideoURL) ProtoReflect

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

func (*VideoURL) Reset

func (x *VideoURL) Reset()

func (*VideoURL) String

func (x *VideoURL) String() string

Jump to

Keyboard shortcuts

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