2019-05-11 04:06:16 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: cdp-service.proto
|
|
|
|
|
|
|
|
package v1
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
_ "github.com/golang/protobuf/ptypes/timestamp"
|
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
|
status "google.golang.org/grpc/status"
|
|
|
|
math "math"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
|
|
|
type TransitionType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
TransitionType_link TransitionType = 0
|
|
|
|
TransitionType_typed TransitionType = 1
|
|
|
|
TransitionType_address_bar TransitionType = 2
|
|
|
|
TransitionType_auto_bookmark TransitionType = 3
|
|
|
|
TransitionType_auto_subframe TransitionType = 4
|
|
|
|
TransitionType_manual_subframe TransitionType = 5
|
|
|
|
TransitionType_generated TransitionType = 6
|
|
|
|
TransitionType_auto_toplevel TransitionType = 7
|
|
|
|
TransitionType_form_submit TransitionType = 8
|
|
|
|
TransitionType_reload TransitionType = 9
|
|
|
|
TransitionType_keyword TransitionType = 10
|
|
|
|
TransitionType_keyword_generated TransitionType = 11
|
|
|
|
TransitionType_other TransitionType = 12
|
|
|
|
)
|
|
|
|
|
|
|
|
var TransitionType_name = map[int32]string{
|
|
|
|
0: "link",
|
|
|
|
1: "typed",
|
|
|
|
2: "address_bar",
|
|
|
|
3: "auto_bookmark",
|
|
|
|
4: "auto_subframe",
|
|
|
|
5: "manual_subframe",
|
|
|
|
6: "generated",
|
|
|
|
7: "auto_toplevel",
|
|
|
|
8: "form_submit",
|
|
|
|
9: "reload",
|
|
|
|
10: "keyword",
|
|
|
|
11: "keyword_generated",
|
|
|
|
12: "other",
|
|
|
|
}
|
|
|
|
|
|
|
|
var TransitionType_value = map[string]int32{
|
|
|
|
"link": 0,
|
|
|
|
"typed": 1,
|
|
|
|
"address_bar": 2,
|
|
|
|
"auto_bookmark": 3,
|
|
|
|
"auto_subframe": 4,
|
|
|
|
"manual_subframe": 5,
|
|
|
|
"generated": 6,
|
|
|
|
"auto_toplevel": 7,
|
|
|
|
"form_submit": 8,
|
|
|
|
"reload": 9,
|
|
|
|
"keyword": 10,
|
|
|
|
"keyword_generated": 11,
|
|
|
|
"other": 12,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x TransitionType) String() string {
|
|
|
|
return proto.EnumName(TransitionType_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (TransitionType) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_2d5fb18e228de6bf, []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
type NavigateRequest struct {
|
2019-05-11 05:11:33 +00:00
|
|
|
Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"`
|
|
|
|
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
|
|
|
Referrer string `protobuf:"bytes,3,opt,name=referrer,proto3" json:"referrer,omitempty"`
|
|
|
|
TransitionType TransitionType `protobuf:"varint,4,opt,name=transitionType,proto3,enum=v1.TransitionType" json:"transitionType,omitempty"`
|
2019-05-11 09:24:39 +00:00
|
|
|
FrameID string `protobuf:"bytes,5,opt,name=frameID,proto3" json:"frameID,omitempty"`
|
2019-05-11 04:06:16 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NavigateRequest) Reset() { *m = NavigateRequest{} }
|
|
|
|
func (m *NavigateRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*NavigateRequest) ProtoMessage() {}
|
|
|
|
func (*NavigateRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_2d5fb18e228de6bf, []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NavigateRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_NavigateRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *NavigateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_NavigateRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *NavigateRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NavigateRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *NavigateRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_NavigateRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *NavigateRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NavigateRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_NavigateRequest proto.InternalMessageInfo
|
|
|
|
|
2019-05-11 05:11:33 +00:00
|
|
|
func (m *NavigateRequest) GetApi() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Api
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-05-11 04:06:16 +00:00
|
|
|
func (m *NavigateRequest) GetUrl() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Url
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NavigateRequest) GetReferrer() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Referrer
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NavigateRequest) GetTransitionType() TransitionType {
|
|
|
|
if m != nil {
|
|
|
|
return m.TransitionType
|
|
|
|
}
|
|
|
|
return TransitionType_link
|
|
|
|
}
|
|
|
|
|
2019-05-11 09:24:39 +00:00
|
|
|
func (m *NavigateRequest) GetFrameID() string {
|
2019-05-11 04:06:16 +00:00
|
|
|
if m != nil {
|
2019-05-11 09:24:39 +00:00
|
|
|
return m.FrameID
|
2019-05-11 04:06:16 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type NavigateReply struct {
|
2019-05-11 05:11:33 +00:00
|
|
|
Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"`
|
2019-05-11 09:24:39 +00:00
|
|
|
FrameID string `protobuf:"bytes,2,opt,name=frameID,proto3" json:"frameID,omitempty"`
|
|
|
|
LoaderID string `protobuf:"bytes,3,opt,name=loaderID,proto3" json:"loaderID,omitempty"`
|
2019-05-11 05:11:33 +00:00
|
|
|
ErrorText string `protobuf:"bytes,4,opt,name=errorText,proto3" json:"errorText,omitempty"`
|
2019-05-11 04:06:16 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NavigateReply) Reset() { *m = NavigateReply{} }
|
|
|
|
func (m *NavigateReply) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*NavigateReply) ProtoMessage() {}
|
|
|
|
func (*NavigateReply) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_2d5fb18e228de6bf, []int{1}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NavigateReply) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_NavigateReply.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *NavigateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_NavigateReply.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *NavigateReply) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NavigateReply.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *NavigateReply) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_NavigateReply.Size(m)
|
|
|
|
}
|
|
|
|
func (m *NavigateReply) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NavigateReply.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_NavigateReply proto.InternalMessageInfo
|
|
|
|
|
2019-05-11 05:11:33 +00:00
|
|
|
func (m *NavigateReply) GetApi() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Api
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-05-11 09:24:39 +00:00
|
|
|
func (m *NavigateReply) GetFrameID() string {
|
2019-05-11 04:06:16 +00:00
|
|
|
if m != nil {
|
2019-05-11 09:24:39 +00:00
|
|
|
return m.FrameID
|
2019-05-11 04:06:16 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-05-11 09:24:39 +00:00
|
|
|
func (m *NavigateReply) GetLoaderID() string {
|
2019-05-11 04:06:16 +00:00
|
|
|
if m != nil {
|
2019-05-11 09:24:39 +00:00
|
|
|
return m.LoaderID
|
2019-05-11 04:06:16 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NavigateReply) GetErrorText() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.ErrorText
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterEnum("v1.TransitionType", TransitionType_name, TransitionType_value)
|
|
|
|
proto.RegisterType((*NavigateRequest)(nil), "v1.NavigateRequest")
|
|
|
|
proto.RegisterType((*NavigateReply)(nil), "v1.NavigateReply")
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("cdp-service.proto", fileDescriptor_2d5fb18e228de6bf) }
|
|
|
|
|
|
|
|
var fileDescriptor_2d5fb18e228de6bf = []byte{
|
2019-05-11 05:11:33 +00:00
|
|
|
// 400 bytes of a gzipped FileDescriptorProto
|
2019-05-11 09:24:39 +00:00
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xcf, 0x8e, 0xd3, 0x30,
|
|
|
|
0x10, 0xc6, 0x49, 0xff, 0x67, 0x4a, 0x5b, 0x77, 0x56, 0x48, 0x51, 0x85, 0xc4, 0x6a, 0x4f, 0x2b,
|
|
|
|
0x24, 0xba, 0xda, 0x72, 0xe3, 0x84, 0x44, 0x2f, 0x7b, 0x41, 0xa8, 0xf4, 0x5e, 0x39, 0x9b, 0x69,
|
|
|
|
0xb1, 0xea, 0xc4, 0x66, 0x62, 0x07, 0xf2, 0x44, 0x3c, 0x16, 0xaf, 0x82, 0x9c, 0xd2, 0x96, 0x56,
|
|
|
|
0xdc, 0xf2, 0xfd, 0xe2, 0x6f, 0xf2, 0x4b, 0x32, 0x30, 0x7d, 0xce, 0xec, 0xbb, 0x92, 0xb8, 0x52,
|
|
|
|
0xcf, 0x34, 0xb7, 0x6c, 0x9c, 0xc1, 0x56, 0xf5, 0x38, 0x7b, 0xb3, 0x33, 0x66, 0xa7, 0xe9, 0xa1,
|
|
|
|
0x21, 0xa9, 0xdf, 0x3e, 0x38, 0x95, 0x53, 0xe9, 0x64, 0x6e, 0x0f, 0x87, 0xee, 0x7e, 0x45, 0x30,
|
|
|
|
0xf9, 0x2c, 0x2b, 0xb5, 0x93, 0x8e, 0x56, 0xf4, 0xdd, 0x53, 0xe9, 0x50, 0x40, 0x5b, 0x5a, 0x95,
|
|
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0x8e, 0x20, 0xde, 0x51, 0x41, 0x2c, 0x1d, 0x65,
|
|
|
|
0xa2, 0x77, 0xaa, 0x39, 0x63, 0x35, 0x55, 0xa4, 0x45, 0x3f, 0x3c, 0x6d, 0x6b, 0x38, 0x0f, 0xa5,
|
|
|
|
0x5c, 0x39, 0x31, 0x40, 0x80, 0x1e, 0x53, 0x78, 0x25, 0x11, 0xe3, 0x10, 0xfa, 0x7b, 0xaa, 0x7f,
|
|
|
|
0x18, 0xce, 0x04, 0xe0, 0x2b, 0x98, 0xfe, 0x0d, 0x9b, 0xf3, 0xcc, 0x61, 0x30, 0x37, 0xee, 0x1b,
|
|
|
|
0xb1, 0x78, 0xb9, 0xf8, 0x08, 0xf0, 0x69, 0xf9, 0xe5, 0xeb, 0x61, 0x77, 0x70, 0x01, 0x83, 0xe3,
|
|
|
|
0x67, 0xc6, 0x9b, 0xf0, 0xc3, 0xae, 0xb6, 0x63, 0x36, 0xbd, 0x84, 0x56, 0xd7, 0x69, 0xaf, 0xd9,
|
|
|
|
0xa5, 0xf7, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x45, 0x6a, 0x51, 0xf4, 0x85, 0x02, 0x00, 0x00,
|
2019-05-11 04:06:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
|
|
|
var _ grpc.ClientConn
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
|
|
|
|
// CDPServiceClient is the client API for CDPService service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type CDPServiceClient interface {
|
|
|
|
Navigate(ctx context.Context, in *NavigateRequest, opts ...grpc.CallOption) (*NavigateReply, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type cDPServiceClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewCDPServiceClient(cc *grpc.ClientConn) CDPServiceClient {
|
|
|
|
return &cDPServiceClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *cDPServiceClient) Navigate(ctx context.Context, in *NavigateRequest, opts ...grpc.CallOption) (*NavigateReply, error) {
|
|
|
|
out := new(NavigateReply)
|
|
|
|
err := c.cc.Invoke(ctx, "/v1.CDPService/Navigate", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// CDPServiceServer is the server API for CDPService service.
|
|
|
|
type CDPServiceServer interface {
|
|
|
|
Navigate(context.Context, *NavigateRequest) (*NavigateReply, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnimplementedCDPServiceServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedCDPServiceServer struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UnimplementedCDPServiceServer) Navigate(ctx context.Context, req *NavigateRequest) (*NavigateReply, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Navigate not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterCDPServiceServer(s *grpc.Server, srv CDPServiceServer) {
|
|
|
|
s.RegisterService(&_CDPService_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _CDPService_Navigate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(NavigateRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(CDPServiceServer).Navigate(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/v1.CDPService/Navigate",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(CDPServiceServer).Navigate(ctx, req.(*NavigateRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
var _CDPService_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "v1.CDPService",
|
|
|
|
HandlerType: (*CDPServiceServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "Navigate",
|
|
|
|
Handler: _CDPService_Navigate_Handler,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "cdp-service.proto",
|
|
|
|
}
|