Autogenerated update for 63ad706dd9...0773cba6c7
This commit is contained in:
@@ -20,16 +20,16 @@ const (
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type FileID struct {
|
||||
type DownloadUrl struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
FileID string `protobuf:"bytes,1,opt,name=FileID,proto3" json:"FileID,omitempty"`
|
||||
Url string `protobuf:"bytes,1,opt,name=Url,proto3" json:"Url,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FileID) Reset() {
|
||||
*x = FileID{}
|
||||
func (x *DownloadUrl) Reset() {
|
||||
*x = DownloadUrl{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_bot_analyzer_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@@ -37,13 +37,13 @@ func (x *FileID) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FileID) String() string {
|
||||
func (x *DownloadUrl) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FileID) ProtoMessage() {}
|
||||
func (*DownloadUrl) ProtoMessage() {}
|
||||
|
||||
func (x *FileID) ProtoReflect() protoreflect.Message {
|
||||
func (x *DownloadUrl) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_bot_analyzer_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@@ -55,14 +55,14 @@ func (x *FileID) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use FileID.ProtoReflect.Descriptor instead.
|
||||
func (*FileID) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use DownloadUrl.ProtoReflect.Descriptor instead.
|
||||
func (*DownloadUrl) Descriptor() ([]byte, []int) {
|
||||
return file_bot_analyzer_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *FileID) GetFileID() string {
|
||||
func (x *DownloadUrl) GetUrl() string {
|
||||
if x != nil {
|
||||
return x.FileID
|
||||
return x.Url
|
||||
}
|
||||
return ""
|
||||
}
|
||||
@@ -119,20 +119,21 @@ var File_bot_analyzer_proto protoreflect.FileDescriptor
|
||||
var file_bot_analyzer_proto_rawDesc = []byte{
|
||||
0x0a, 0x12, 0x62, 0x6f, 0x74, 0x5f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x62, 0x6f, 0x74, 0x5f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a,
|
||||
0x65, 0x72, 0x22, 0x20, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06,
|
||||
0x46, 0x69, 0x6c, 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x46, 0x69,
|
||||
0x6c, 0x65, 0x49, 0x44, 0x22, 0x2e, 0x0a, 0x10, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x6e, 0x61, 0x6c,
|
||||
0x79, 0x73, 0x69, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x41, 0x6e, 0x61, 0x6c,
|
||||
0x79, 0x73, 0x69, 0x73, 0x32, 0x4e, 0x0a, 0x0b, 0x42, 0x6f, 0x74, 0x41, 0x6e, 0x61, 0x6c, 0x79,
|
||||
0x7a, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x07, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x12, 0x14,
|
||||
0x2e, 0x62, 0x6f, 0x74, 0x5f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x2e, 0x46, 0x69,
|
||||
0x6c, 0x65, 0x49, 0x44, 0x1a, 0x1e, 0x2e, 0x62, 0x6f, 0x74, 0x5f, 0x61, 0x6e, 0x61, 0x6c, 0x79,
|
||||
0x7a, 0x65, 0x72, 0x2e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x74, 0x7a, 0x61,
|
||||
0x6e, 0x61, 0x2e, 0x6d, 0x65, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x66, 0x65, 0x73, 0x6e, 0x65, 0x74,
|
||||
0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x62, 0x6f, 0x74, 0x5f, 0x61, 0x6e, 0x61,
|
||||
0x6c, 0x79, 0x7a, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x65, 0x72, 0x22, 0x1f, 0x0a, 0x0b, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72,
|
||||
0x6c, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
||||
0x55, 0x72, 0x6c, 0x22, 0x2e, 0x0a, 0x10, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x52,
|
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79,
|
||||
0x73, 0x69, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79,
|
||||
0x73, 0x69, 0x73, 0x32, 0x53, 0x0a, 0x0b, 0x42, 0x6f, 0x74, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a,
|
||||
0x65, 0x72, 0x12, 0x44, 0x0a, 0x07, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x12, 0x19, 0x2e,
|
||||
0x62, 0x6f, 0x74, 0x5f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x77,
|
||||
0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x1a, 0x1e, 0x2e, 0x62, 0x6f, 0x74, 0x5f, 0x61,
|
||||
0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x2e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x2e,
|
||||
0x69, 0x74, 0x7a, 0x61, 0x6e, 0x61, 0x2e, 0x6d, 0x65, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x66, 0x65,
|
||||
0x73, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x62, 0x6f, 0x74,
|
||||
0x5f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -149,11 +150,11 @@ func file_bot_analyzer_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_bot_analyzer_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_bot_analyzer_proto_goTypes = []interface{}{
|
||||
(*FileID)(nil), // 0: bot_analyzer.FileID
|
||||
(*DownloadUrl)(nil), // 0: bot_analyzer.DownloadUrl
|
||||
(*AnalysisResponse)(nil), // 1: bot_analyzer.AnalysisResponse
|
||||
}
|
||||
var file_bot_analyzer_proto_depIdxs = []int32{
|
||||
0, // 0: bot_analyzer.BotAnalyzer.Analyze:input_type -> bot_analyzer.FileID
|
||||
0, // 0: bot_analyzer.BotAnalyzer.Analyze:input_type -> bot_analyzer.DownloadUrl
|
||||
1, // 1: bot_analyzer.BotAnalyzer.Analyze:output_type -> bot_analyzer.AnalysisResponse
|
||||
1, // [1:2] is the sub-list for method output_type
|
||||
0, // [0:1] is the sub-list for method input_type
|
||||
@@ -169,7 +170,7 @@ func file_bot_analyzer_proto_init() {
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_bot_analyzer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FileID); i {
|
||||
switch v := v.(*DownloadUrl); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
|
||||
@@ -22,7 +22,7 @@ const _ = grpc.SupportPackageIsVersion7
|
||||
//
|
||||
// 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.
|
||||
type BotAnalyzerClient interface {
|
||||
Analyze(ctx context.Context, in *FileID, opts ...grpc.CallOption) (*AnalysisResponse, error)
|
||||
Analyze(ctx context.Context, in *DownloadUrl, opts ...grpc.CallOption) (*AnalysisResponse, error)
|
||||
}
|
||||
|
||||
type botAnalyzerClient struct {
|
||||
@@ -33,7 +33,7 @@ func NewBotAnalyzerClient(cc grpc.ClientConnInterface) BotAnalyzerClient {
|
||||
return &botAnalyzerClient{cc}
|
||||
}
|
||||
|
||||
func (c *botAnalyzerClient) Analyze(ctx context.Context, in *FileID, opts ...grpc.CallOption) (*AnalysisResponse, error) {
|
||||
func (c *botAnalyzerClient) Analyze(ctx context.Context, in *DownloadUrl, opts ...grpc.CallOption) (*AnalysisResponse, error) {
|
||||
out := new(AnalysisResponse)
|
||||
err := c.cc.Invoke(ctx, "/bot_analyzer.BotAnalyzer/Analyze", in, out, opts...)
|
||||
if err != nil {
|
||||
@@ -46,7 +46,7 @@ func (c *botAnalyzerClient) Analyze(ctx context.Context, in *FileID, opts ...grp
|
||||
// All implementations must embed UnimplementedBotAnalyzerServer
|
||||
// for forward compatibility
|
||||
type BotAnalyzerServer interface {
|
||||
Analyze(context.Context, *FileID) (*AnalysisResponse, error)
|
||||
Analyze(context.Context, *DownloadUrl) (*AnalysisResponse, error)
|
||||
mustEmbedUnimplementedBotAnalyzerServer()
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ type BotAnalyzerServer interface {
|
||||
type UnimplementedBotAnalyzerServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedBotAnalyzerServer) Analyze(context.Context, *FileID) (*AnalysisResponse, error) {
|
||||
func (UnimplementedBotAnalyzerServer) Analyze(context.Context, *DownloadUrl) (*AnalysisResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Analyze not implemented")
|
||||
}
|
||||
func (UnimplementedBotAnalyzerServer) mustEmbedUnimplementedBotAnalyzerServer() {}
|
||||
@@ -71,7 +71,7 @@ func RegisterBotAnalyzerServer(s grpc.ServiceRegistrar, srv BotAnalyzerServer) {
|
||||
}
|
||||
|
||||
func _BotAnalyzer_Analyze_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FileID)
|
||||
in := new(DownloadUrl)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -83,7 +83,7 @@ func _BotAnalyzer_Analyze_Handler(srv interface{}, ctx context.Context, dec func
|
||||
FullMethod: "/bot_analyzer.BotAnalyzer/Analyze",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(BotAnalyzerServer).Analyze(ctx, req.(*FileID))
|
||||
return srv.(BotAnalyzerServer).Analyze(ctx, req.(*DownloadUrl))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user