scanoss 0.2.18 → 0.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main/bin/cli-bin.js +4 -2
- package/build/main/commands/dep.js +19 -7
- package/build/main/commands/helpers.d.ts +1 -0
- package/build/main/commands/helpers.js +22 -0
- package/build/main/commands/scan.js +3 -15
- package/build/main/index.d.ts +2 -1
- package/build/main/index.js +3 -2
- package/build/main/lib/dependencies/DependencyScanner.d.ts +10 -0
- package/build/main/lib/dependencies/DependencyScanner.js +66 -0
- package/build/main/lib/dependencies/DependencyScannerCfg.d.ts +4 -0
- package/build/main/lib/dependencies/DependencyScannerCfg.js +11 -0
- package/build/main/lib/dependencies/DependencyTypes.d.ts +10 -8
- package/build/main/lib/dependencies/LocalDependency/DependencyTypes.d.ts +16 -0
- package/build/main/lib/dependencies/LocalDependency/DependencyTypes.js +3 -0
- package/build/main/lib/dependencies/LocalDependency/LocalDependency.d.ts +6 -0
- package/build/main/lib/dependencies/LocalDependency/LocalDependency.js +51 -0
- package/build/main/lib/dependencies/LocalDependency/parsers/golangParser.d.ts +2 -0
- package/build/main/lib/dependencies/LocalDependency/parsers/golangParser.js +63 -0
- package/build/main/lib/dependencies/LocalDependency/parsers/mavenParser.d.ts +2 -0
- package/build/main/lib/dependencies/LocalDependency/parsers/mavenParser.js +57 -0
- package/build/main/lib/dependencies/{parsers → LocalDependency/parsers}/npmParser.d.ts +3 -3
- package/build/main/lib/dependencies/LocalDependency/parsers/npmParser.js +50 -0
- package/build/main/lib/dependencies/LocalDependency/parsers/pyParser.d.ts +2 -0
- package/build/main/lib/dependencies/LocalDependency/parsers/pyParser.js +61 -0
- package/build/main/lib/dependencies/{parsers → LocalDependency/parsers}/rubyParser.d.ts +3 -3
- package/build/main/lib/dependencies/LocalDependency/parsers/rubyParser.js +133 -0
- package/build/main/lib/dependencies/{parsers → LocalDependency/parsers}/utils.d.ts +0 -0
- package/build/main/lib/dependencies/{parsers → LocalDependency/parsers}/utils.js +1 -1
- package/build/main/lib/grpc/GrpcDependencyService.d.ts +11 -0
- package/build/main/lib/grpc/GrpcDependencyService.js +88 -0
- package/build/main/lib/{dependencies/parsers/golangParser.d.ts → grpc/scanoss/api/common/v2/scanoss-common_grpc_pb.d.ts} +0 -0
- package/build/main/lib/grpc/scanoss/api/common/v2/scanoss-common_grpc_pb.js +2 -0
- package/build/main/lib/grpc/scanoss/api/common/v2/scanoss-common_pb.d.ts +1 -0
- package/build/main/lib/grpc/scanoss/api/common/v2/scanoss-common_pb.js +404 -0
- package/build/main/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.d.ts +42 -0
- package/build/main/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.js +98 -0
- package/build/main/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_pb.d.ts +1 -0
- package/build/main/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_pb.js +1197 -0
- package/build/main/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.d.ts +21 -0
- package/build/main/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.js +66 -0
- package/build/main/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_pb.d.ts +1 -0
- package/build/main/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_pb.js +14 -0
- package/build/main/lib/scanner/Scanner.js +1 -1
- package/build/module/bin/cli-bin.js +4 -2
- package/build/module/commands/dep.js +19 -7
- package/build/module/commands/helpers.d.ts +1 -0
- package/build/module/commands/helpers.js +15 -0
- package/build/module/commands/scan.js +2 -14
- package/build/module/index.d.ts +2 -1
- package/build/module/index.js +3 -2
- package/build/module/lib/dependencies/DependencyScanner.d.ts +10 -0
- package/build/module/lib/dependencies/DependencyScanner.js +64 -0
- package/build/module/lib/dependencies/DependencyScannerCfg.d.ts +4 -0
- package/build/module/lib/dependencies/DependencyScannerCfg.js +5 -0
- package/build/module/lib/dependencies/DependencyTypes.d.ts +10 -8
- package/build/module/lib/dependencies/LocalDependency/DependencyTypes.d.ts +16 -0
- package/build/module/lib/dependencies/LocalDependency/DependencyTypes.js +2 -0
- package/build/module/lib/dependencies/LocalDependency/LocalDependency.d.ts +6 -0
- package/build/module/lib/dependencies/LocalDependency/LocalDependency.js +45 -0
- package/build/module/lib/dependencies/LocalDependency/parsers/golangParser.d.ts +2 -0
- package/build/module/lib/dependencies/LocalDependency/parsers/golangParser.js +55 -0
- package/build/module/lib/dependencies/LocalDependency/parsers/mavenParser.d.ts +2 -0
- package/build/module/lib/dependencies/LocalDependency/parsers/mavenParser.js +50 -0
- package/build/module/lib/dependencies/{parsers → LocalDependency/parsers}/npmParser.d.ts +3 -3
- package/build/module/lib/dependencies/LocalDependency/parsers/npmParser.js +42 -0
- package/build/module/lib/dependencies/LocalDependency/parsers/pyParser.d.ts +2 -0
- package/build/module/lib/dependencies/LocalDependency/parsers/pyParser.js +53 -0
- package/build/module/lib/dependencies/{parsers → LocalDependency/parsers}/rubyParser.d.ts +3 -3
- package/build/module/lib/dependencies/LocalDependency/parsers/rubyParser.js +130 -0
- package/build/module/lib/dependencies/{parsers → LocalDependency/parsers}/utils.d.ts +0 -0
- package/build/module/lib/dependencies/LocalDependency/parsers/utils.js +15 -0
- package/build/module/lib/grpc/GrpcDependencyService.d.ts +11 -0
- package/build/module/lib/grpc/GrpcDependencyService.js +67 -0
- package/build/module/lib/{dependencies/parsers/golangParser.d.ts → grpc/scanoss/api/common/v2/scanoss-common_grpc_pb.d.ts} +0 -0
- package/build/module/lib/grpc/scanoss/api/common/v2/scanoss-common_grpc_pb.js +2 -0
- package/build/module/lib/grpc/scanoss/api/common/v2/scanoss-common_pb.d.ts +1 -0
- package/build/module/lib/grpc/scanoss/api/common/v2/scanoss-common_pb.js +404 -0
- package/build/module/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.d.ts +42 -0
- package/build/module/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.js +98 -0
- package/build/module/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_pb.d.ts +1 -0
- package/build/module/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_pb.js +1197 -0
- package/build/module/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.d.ts +21 -0
- package/build/module/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.js +66 -0
- package/build/module/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_pb.d.ts +1 -0
- package/build/module/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_pb.js +14 -0
- package/build/module/lib/scanner/Scanner.js +1 -1
- package/build/tsconfig.module.tsbuildinfo +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -1
- package/src/bin/cli-bin.ts +4 -1
- package/src/commands/dep.ts +18 -6
- package/src/commands/helpers.ts +14 -0
- package/src/commands/scan.ts +3 -12
- package/src/index.ts +5 -1
- package/src/lib/dependencies/DependencyScanner.ts +77 -0
- package/src/lib/dependencies/DependencyScannerCfg.ts +7 -0
- package/src/lib/dependencies/DependencyTypes.ts +16 -14
- package/src/lib/dependencies/LocalDependency/DependencyTypes.ts +21 -0
- package/src/lib/dependencies/LocalDependency/LocalDependency.ts +48 -0
- package/src/lib/dependencies/LocalDependency/parsers/golangParser.ts +78 -0
- package/src/lib/dependencies/{parsers → LocalDependency/parsers}/mavenParser.ts +10 -6
- package/src/lib/dependencies/{parsers → LocalDependency/parsers}/npmParser.ts +14 -8
- package/src/lib/dependencies/LocalDependency/parsers/pyParser.ts +55 -0
- package/src/lib/dependencies/{parsers → LocalDependency/parsers}/rubyParser.ts +21 -29
- package/src/lib/dependencies/{parsers → LocalDependency/parsers}/utils.ts +0 -1
- package/src/lib/grpc/GrpcDependencyService.ts +73 -0
- package/src/lib/grpc/scanoss/api/common/v2/scanoss-common_grpc_pb.d.ts +1 -0
- package/src/lib/grpc/scanoss/api/common/v2/scanoss-common_grpc_pb.js +1 -0
- package/src/lib/grpc/scanoss/api/common/v2/scanoss-common_pb.d.ts +79 -0
- package/src/lib/grpc/scanoss/api/common/v2/scanoss-common_pb.js +482 -0
- package/src/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.d.ts +30 -0
- package/src/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.js +109 -0
- package/src/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_pb.d.ts +206 -0
- package/src/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_pb.js +1489 -0
- package/src/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.d.ts +25 -0
- package/src/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.js +73 -0
- package/src/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_pb.d.ts +6 -0
- package/src/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_pb.js +15 -0
- package/src/lib/scanner/Scanner.ts +2 -1
- package/tsconfig.json +5 -22
- package/yarn.lock +5252 -5213
- package/build/main/lib/dependencies/Dependency.d.ts +0 -9
- package/build/main/lib/dependencies/Dependency.js +0 -52
- package/build/main/lib/dependencies/PurlGenerator.d.ts +0 -2
- package/build/main/lib/dependencies/PurlGenerator.js +0 -44
- package/build/main/lib/dependencies/parsers/golangParser.js +0 -3
- package/build/main/lib/dependencies/parsers/mavenParser.d.ts +0 -2
- package/build/main/lib/dependencies/parsers/mavenParser.js +0 -54
- package/build/main/lib/dependencies/parsers/npmParser.js +0 -46
- package/build/main/lib/dependencies/parsers/pyParser.d.ts +0 -2
- package/build/main/lib/dependencies/parsers/pyParser.js +0 -51
- package/build/main/lib/dependencies/parsers/rubyParser.js +0 -135
- package/build/main/lib/dependencies/parsers/types.d.ts +0 -15
- package/build/main/lib/dependencies/parsers/types.js +0 -33
- package/build/module/lib/dependencies/Dependency.d.ts +0 -9
- package/build/module/lib/dependencies/Dependency.js +0 -47
- package/build/module/lib/dependencies/PurlGenerator.d.ts +0 -2
- package/build/module/lib/dependencies/PurlGenerator.js +0 -37
- package/build/module/lib/dependencies/parsers/golangParser.js +0 -3
- package/build/module/lib/dependencies/parsers/mavenParser.d.ts +0 -2
- package/build/module/lib/dependencies/parsers/mavenParser.js +0 -47
- package/build/module/lib/dependencies/parsers/npmParser.js +0 -38
- package/build/module/lib/dependencies/parsers/pyParser.d.ts +0 -2
- package/build/module/lib/dependencies/parsers/pyParser.js +0 -44
- package/build/module/lib/dependencies/parsers/rubyParser.js +0 -132
- package/build/module/lib/dependencies/parsers/types.d.ts +0 -15
- package/build/module/lib/dependencies/parsers/types.js +0 -32
- package/build/module/lib/dependencies/parsers/utils.js +0 -15
- package/package-lock.json +0 -18589
- package/src/lib/dependencies/Dependency.ts +0 -60
- package/src/lib/dependencies/PurlGenerator.ts +0 -44
- package/src/lib/dependencies/parsers/golangParser.ts +0 -4
- package/src/lib/dependencies/parsers/pyParser.ts +0 -46
- package/src/lib/dependencies/parsers/types.ts +0 -50
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as grpc from '@grpc/grpc-js';
|
|
2
|
+
import { DependenciesClient } from './scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb';
|
|
3
|
+
import * as DependenciesMessages from './scanoss/api/dependencies/v2/scanoss-dependencies_pb.js';
|
|
4
|
+
import * as CommonMessages from './scanoss/api/common/v2/scanoss-common_pb'
|
|
5
|
+
|
|
6
|
+
export class GrpcDependencyService {
|
|
7
|
+
|
|
8
|
+
private client: DependenciesClient;
|
|
9
|
+
|
|
10
|
+
private metadata;
|
|
11
|
+
|
|
12
|
+
constructor(endpoint: string, port: string, apiKey='') {
|
|
13
|
+
this.client = new DependenciesClient(endpoint + ':' + port, grpc.credentials.createSsl());
|
|
14
|
+
if(apiKey) {
|
|
15
|
+
this.metadata = new grpc.Metadata();
|
|
16
|
+
console.log("Pased here")
|
|
17
|
+
this.metadata.add('x-api-key', apiKey);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
public async get(req: DependenciesMessages.DependencyRequest): Promise<DependenciesMessages.DependencyResponse> {
|
|
22
|
+
return new Promise((resolve, reject) => {
|
|
23
|
+
this.client.getDependencies(req, (err, response) => {
|
|
24
|
+
if (err) reject(err);
|
|
25
|
+
resolve(response);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public buildDependencyRequestMsg(plainObj: DependenciesMessages.DependencyRequest.AsObject): DependenciesMessages.DependencyRequest {
|
|
31
|
+
try {
|
|
32
|
+
const depMessage = new DependenciesMessages.DependencyRequest();
|
|
33
|
+
for (const dependency of plainObj.filesList) {
|
|
34
|
+
const fileMsg = new DependenciesMessages.DependencyRequest.Files();
|
|
35
|
+
fileMsg.setFile(dependency.file);
|
|
36
|
+
for (const purl of dependency.purlsList) {
|
|
37
|
+
const purlMsg = new DependenciesMessages.DependencyRequest.Purls();
|
|
38
|
+
purlMsg.setPurl(purl.purl);
|
|
39
|
+
purlMsg.setRequirement(purl?.requirement);
|
|
40
|
+
fileMsg.addPurls(purlMsg);
|
|
41
|
+
}
|
|
42
|
+
depMessage.addFiles(fileMsg);
|
|
43
|
+
}
|
|
44
|
+
return depMessage;
|
|
45
|
+
} catch (e) {
|
|
46
|
+
console.error(e);
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
public async echo(req: CommonMessages.EchoRequest): Promise<CommonMessages.EchoResponse> {
|
|
53
|
+
return new Promise((resolve, reject) => {
|
|
54
|
+
this.client.echo(req, (err, response) => {
|
|
55
|
+
if (err) reject(err);
|
|
56
|
+
resolve(response);
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
public buildEchoRequestMsg(plainObj: CommonMessages.EchoRequest.AsObject): CommonMessages.EchoRequest {
|
|
63
|
+
try {
|
|
64
|
+
const echoMessage = new CommonMessages.EchoRequest();
|
|
65
|
+
echoMessage.setMessage(plainObj.message);
|
|
66
|
+
return echoMessage;
|
|
67
|
+
} catch (e) {
|
|
68
|
+
console.error(e);
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// package: scanoss.api.common.v2
|
|
2
|
+
// file: scanoss/api/common/v2/scanoss-common.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
|
|
6
|
+
export class StatusResponse extends jspb.Message {
|
|
7
|
+
getStatus(): StatusCodeMap[keyof StatusCodeMap];
|
|
8
|
+
setStatus(value: StatusCodeMap[keyof StatusCodeMap]): void;
|
|
9
|
+
|
|
10
|
+
getMessage(): string;
|
|
11
|
+
setMessage(value: string): void;
|
|
12
|
+
|
|
13
|
+
serializeBinary(): Uint8Array;
|
|
14
|
+
toObject(includeInstance?: boolean): StatusResponse.AsObject;
|
|
15
|
+
static toObject(includeInstance: boolean, msg: StatusResponse): StatusResponse.AsObject;
|
|
16
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
17
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
18
|
+
static serializeBinaryToWriter(message: StatusResponse, writer: jspb.BinaryWriter): void;
|
|
19
|
+
static deserializeBinary(bytes: Uint8Array): StatusResponse;
|
|
20
|
+
static deserializeBinaryFromReader(message: StatusResponse, reader: jspb.BinaryReader): StatusResponse;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export namespace StatusResponse {
|
|
24
|
+
export type AsObject = {
|
|
25
|
+
status: StatusCodeMap[keyof StatusCodeMap],
|
|
26
|
+
message: string,
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class EchoRequest extends jspb.Message {
|
|
31
|
+
getMessage(): string;
|
|
32
|
+
setMessage(value: string): void;
|
|
33
|
+
|
|
34
|
+
serializeBinary(): Uint8Array;
|
|
35
|
+
toObject(includeInstance?: boolean): EchoRequest.AsObject;
|
|
36
|
+
static toObject(includeInstance: boolean, msg: EchoRequest): EchoRequest.AsObject;
|
|
37
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
38
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
39
|
+
static serializeBinaryToWriter(message: EchoRequest, writer: jspb.BinaryWriter): void;
|
|
40
|
+
static deserializeBinary(bytes: Uint8Array): EchoRequest;
|
|
41
|
+
static deserializeBinaryFromReader(message: EchoRequest, reader: jspb.BinaryReader): EchoRequest;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export namespace EchoRequest {
|
|
45
|
+
export type AsObject = {
|
|
46
|
+
message: string,
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export class EchoResponse extends jspb.Message {
|
|
51
|
+
getMessage(): string;
|
|
52
|
+
setMessage(value: string): void;
|
|
53
|
+
|
|
54
|
+
serializeBinary(): Uint8Array;
|
|
55
|
+
toObject(includeInstance?: boolean): EchoResponse.AsObject;
|
|
56
|
+
static toObject(includeInstance: boolean, msg: EchoResponse): EchoResponse.AsObject;
|
|
57
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
58
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
59
|
+
static serializeBinaryToWriter(message: EchoResponse, writer: jspb.BinaryWriter): void;
|
|
60
|
+
static deserializeBinary(bytes: Uint8Array): EchoResponse;
|
|
61
|
+
static deserializeBinaryFromReader(message: EchoResponse, reader: jspb.BinaryReader): EchoResponse;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export namespace EchoResponse {
|
|
65
|
+
export type AsObject = {
|
|
66
|
+
message: string,
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface StatusCodeMap {
|
|
71
|
+
UNSPECIFIED: 0;
|
|
72
|
+
SUCCESS: 1;
|
|
73
|
+
SUCCEEDED_WITH_WARNINGS: 2;
|
|
74
|
+
WARNING: 3;
|
|
75
|
+
FAILED: 4;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export const StatusCode: StatusCodeMap;
|
|
79
|
+
|
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
5
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
9
|
+
|
|
10
|
+
var jspb = require('google-protobuf');
|
|
11
|
+
var goog = jspb;
|
|
12
|
+
var global = Function('return this')();
|
|
13
|
+
|
|
14
|
+
goog.exportSymbol('proto.scanoss.api.common.v2.EchoRequest', null, global);
|
|
15
|
+
goog.exportSymbol('proto.scanoss.api.common.v2.EchoResponse', null, global);
|
|
16
|
+
goog.exportSymbol('proto.scanoss.api.common.v2.StatusCode', null, global);
|
|
17
|
+
goog.exportSymbol('proto.scanoss.api.common.v2.StatusResponse', null, global);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Generated by JsPbCodeGenerator.
|
|
21
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
22
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
23
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
24
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
25
|
+
* valid.
|
|
26
|
+
* @extends {jspb.Message}
|
|
27
|
+
* @constructor
|
|
28
|
+
*/
|
|
29
|
+
proto.scanoss.api.common.v2.StatusResponse = function(opt_data) {
|
|
30
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
31
|
+
};
|
|
32
|
+
goog.inherits(proto.scanoss.api.common.v2.StatusResponse, jspb.Message);
|
|
33
|
+
if (goog.DEBUG && !COMPILED) {
|
|
34
|
+
proto.scanoss.api.common.v2.StatusResponse.displayName = 'proto.scanoss.api.common.v2.StatusResponse';
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
39
|
+
/**
|
|
40
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
41
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
42
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
43
|
+
* For the list of reserved names please see:
|
|
44
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
45
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
46
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
47
|
+
* @return {!Object}
|
|
48
|
+
*/
|
|
49
|
+
proto.scanoss.api.common.v2.StatusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
50
|
+
return proto.scanoss.api.common.v2.StatusResponse.toObject(opt_includeInstance, this);
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Static version of the {@see toObject} method.
|
|
56
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
57
|
+
* instance for transitional soy proto support:
|
|
58
|
+
* http://goto/soy-param-migration
|
|
59
|
+
* @param {!proto.scanoss.api.common.v2.StatusResponse} msg The msg instance to transform.
|
|
60
|
+
* @return {!Object}
|
|
61
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
62
|
+
*/
|
|
63
|
+
proto.scanoss.api.common.v2.StatusResponse.toObject = function(includeInstance, msg) {
|
|
64
|
+
var f, obj = {
|
|
65
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
66
|
+
message: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
if (includeInstance) {
|
|
70
|
+
obj.$jspbMessageInstance = msg;
|
|
71
|
+
}
|
|
72
|
+
return obj;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Deserializes binary data (in protobuf wire format).
|
|
79
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
80
|
+
* @return {!proto.scanoss.api.common.v2.StatusResponse}
|
|
81
|
+
*/
|
|
82
|
+
proto.scanoss.api.common.v2.StatusResponse.deserializeBinary = function(bytes) {
|
|
83
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
84
|
+
var msg = new proto.scanoss.api.common.v2.StatusResponse;
|
|
85
|
+
return proto.scanoss.api.common.v2.StatusResponse.deserializeBinaryFromReader(msg, reader);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
91
|
+
* given reader into the given message object.
|
|
92
|
+
* @param {!proto.scanoss.api.common.v2.StatusResponse} msg The message object to deserialize into.
|
|
93
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
94
|
+
* @return {!proto.scanoss.api.common.v2.StatusResponse}
|
|
95
|
+
*/
|
|
96
|
+
proto.scanoss.api.common.v2.StatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
97
|
+
while (reader.nextField()) {
|
|
98
|
+
if (reader.isEndGroup()) {
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
var field = reader.getFieldNumber();
|
|
102
|
+
switch (field) {
|
|
103
|
+
case 1:
|
|
104
|
+
var value = /** @type {!proto.scanoss.api.common.v2.StatusCode} */ (reader.readEnum());
|
|
105
|
+
msg.setStatus(value);
|
|
106
|
+
break;
|
|
107
|
+
case 2:
|
|
108
|
+
var value = /** @type {string} */ (reader.readString());
|
|
109
|
+
msg.setMessage(value);
|
|
110
|
+
break;
|
|
111
|
+
default:
|
|
112
|
+
reader.skipField();
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return msg;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
122
|
+
* @return {!Uint8Array}
|
|
123
|
+
*/
|
|
124
|
+
proto.scanoss.api.common.v2.StatusResponse.prototype.serializeBinary = function() {
|
|
125
|
+
var writer = new jspb.BinaryWriter();
|
|
126
|
+
proto.scanoss.api.common.v2.StatusResponse.serializeBinaryToWriter(this, writer);
|
|
127
|
+
return writer.getResultBuffer();
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
133
|
+
* format), writing to the given BinaryWriter.
|
|
134
|
+
* @param {!proto.scanoss.api.common.v2.StatusResponse} message
|
|
135
|
+
* @param {!jspb.BinaryWriter} writer
|
|
136
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
137
|
+
*/
|
|
138
|
+
proto.scanoss.api.common.v2.StatusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
139
|
+
var f = undefined;
|
|
140
|
+
f = message.getStatus();
|
|
141
|
+
if (f !== 0.0) {
|
|
142
|
+
writer.writeEnum(
|
|
143
|
+
1,
|
|
144
|
+
f
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
f = message.getMessage();
|
|
148
|
+
if (f.length > 0) {
|
|
149
|
+
writer.writeString(
|
|
150
|
+
2,
|
|
151
|
+
f
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* optional StatusCode status = 1;
|
|
159
|
+
* @return {!proto.scanoss.api.common.v2.StatusCode}
|
|
160
|
+
*/
|
|
161
|
+
proto.scanoss.api.common.v2.StatusResponse.prototype.getStatus = function() {
|
|
162
|
+
return /** @type {!proto.scanoss.api.common.v2.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
/** @param {!proto.scanoss.api.common.v2.StatusCode} value */
|
|
167
|
+
proto.scanoss.api.common.v2.StatusResponse.prototype.setStatus = function(value) {
|
|
168
|
+
jspb.Message.setProto3EnumField(this, 1, value);
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* optional string message = 2;
|
|
174
|
+
* @return {string}
|
|
175
|
+
*/
|
|
176
|
+
proto.scanoss.api.common.v2.StatusResponse.prototype.getMessage = function() {
|
|
177
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
/** @param {string} value */
|
|
182
|
+
proto.scanoss.api.common.v2.StatusResponse.prototype.setMessage = function(value) {
|
|
183
|
+
jspb.Message.setProto3StringField(this, 2, value);
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Generated by JsPbCodeGenerator.
|
|
190
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
191
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
192
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
193
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
194
|
+
* valid.
|
|
195
|
+
* @extends {jspb.Message}
|
|
196
|
+
* @constructor
|
|
197
|
+
*/
|
|
198
|
+
proto.scanoss.api.common.v2.EchoRequest = function(opt_data) {
|
|
199
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
200
|
+
};
|
|
201
|
+
goog.inherits(proto.scanoss.api.common.v2.EchoRequest, jspb.Message);
|
|
202
|
+
if (goog.DEBUG && !COMPILED) {
|
|
203
|
+
proto.scanoss.api.common.v2.EchoRequest.displayName = 'proto.scanoss.api.common.v2.EchoRequest';
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
208
|
+
/**
|
|
209
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
210
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
211
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
212
|
+
* For the list of reserved names please see:
|
|
213
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
214
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
215
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
216
|
+
* @return {!Object}
|
|
217
|
+
*/
|
|
218
|
+
proto.scanoss.api.common.v2.EchoRequest.prototype.toObject = function(opt_includeInstance) {
|
|
219
|
+
return proto.scanoss.api.common.v2.EchoRequest.toObject(opt_includeInstance, this);
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Static version of the {@see toObject} method.
|
|
225
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
226
|
+
* instance for transitional soy proto support:
|
|
227
|
+
* http://goto/soy-param-migration
|
|
228
|
+
* @param {!proto.scanoss.api.common.v2.EchoRequest} msg The msg instance to transform.
|
|
229
|
+
* @return {!Object}
|
|
230
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
231
|
+
*/
|
|
232
|
+
proto.scanoss.api.common.v2.EchoRequest.toObject = function(includeInstance, msg) {
|
|
233
|
+
var f, obj = {
|
|
234
|
+
message: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
if (includeInstance) {
|
|
238
|
+
obj.$jspbMessageInstance = msg;
|
|
239
|
+
}
|
|
240
|
+
return obj;
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Deserializes binary data (in protobuf wire format).
|
|
247
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
248
|
+
* @return {!proto.scanoss.api.common.v2.EchoRequest}
|
|
249
|
+
*/
|
|
250
|
+
proto.scanoss.api.common.v2.EchoRequest.deserializeBinary = function(bytes) {
|
|
251
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
252
|
+
var msg = new proto.scanoss.api.common.v2.EchoRequest;
|
|
253
|
+
return proto.scanoss.api.common.v2.EchoRequest.deserializeBinaryFromReader(msg, reader);
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
259
|
+
* given reader into the given message object.
|
|
260
|
+
* @param {!proto.scanoss.api.common.v2.EchoRequest} msg The message object to deserialize into.
|
|
261
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
262
|
+
* @return {!proto.scanoss.api.common.v2.EchoRequest}
|
|
263
|
+
*/
|
|
264
|
+
proto.scanoss.api.common.v2.EchoRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
265
|
+
while (reader.nextField()) {
|
|
266
|
+
if (reader.isEndGroup()) {
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
269
|
+
var field = reader.getFieldNumber();
|
|
270
|
+
switch (field) {
|
|
271
|
+
case 1:
|
|
272
|
+
var value = /** @type {string} */ (reader.readString());
|
|
273
|
+
msg.setMessage(value);
|
|
274
|
+
break;
|
|
275
|
+
default:
|
|
276
|
+
reader.skipField();
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
return msg;
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
286
|
+
* @return {!Uint8Array}
|
|
287
|
+
*/
|
|
288
|
+
proto.scanoss.api.common.v2.EchoRequest.prototype.serializeBinary = function() {
|
|
289
|
+
var writer = new jspb.BinaryWriter();
|
|
290
|
+
proto.scanoss.api.common.v2.EchoRequest.serializeBinaryToWriter(this, writer);
|
|
291
|
+
return writer.getResultBuffer();
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
297
|
+
* format), writing to the given BinaryWriter.
|
|
298
|
+
* @param {!proto.scanoss.api.common.v2.EchoRequest} message
|
|
299
|
+
* @param {!jspb.BinaryWriter} writer
|
|
300
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
301
|
+
*/
|
|
302
|
+
proto.scanoss.api.common.v2.EchoRequest.serializeBinaryToWriter = function(message, writer) {
|
|
303
|
+
var f = undefined;
|
|
304
|
+
f = message.getMessage();
|
|
305
|
+
if (f.length > 0) {
|
|
306
|
+
writer.writeString(
|
|
307
|
+
1,
|
|
308
|
+
f
|
|
309
|
+
);
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* optional string message = 1;
|
|
316
|
+
* @return {string}
|
|
317
|
+
*/
|
|
318
|
+
proto.scanoss.api.common.v2.EchoRequest.prototype.getMessage = function() {
|
|
319
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
/** @param {string} value */
|
|
324
|
+
proto.scanoss.api.common.v2.EchoRequest.prototype.setMessage = function(value) {
|
|
325
|
+
jspb.Message.setProto3StringField(this, 1, value);
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Generated by JsPbCodeGenerator.
|
|
332
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
333
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
334
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
335
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
336
|
+
* valid.
|
|
337
|
+
* @extends {jspb.Message}
|
|
338
|
+
* @constructor
|
|
339
|
+
*/
|
|
340
|
+
proto.scanoss.api.common.v2.EchoResponse = function(opt_data) {
|
|
341
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
342
|
+
};
|
|
343
|
+
goog.inherits(proto.scanoss.api.common.v2.EchoResponse, jspb.Message);
|
|
344
|
+
if (goog.DEBUG && !COMPILED) {
|
|
345
|
+
proto.scanoss.api.common.v2.EchoResponse.displayName = 'proto.scanoss.api.common.v2.EchoResponse';
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
350
|
+
/**
|
|
351
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
352
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
353
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
354
|
+
* For the list of reserved names please see:
|
|
355
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
356
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
357
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
358
|
+
* @return {!Object}
|
|
359
|
+
*/
|
|
360
|
+
proto.scanoss.api.common.v2.EchoResponse.prototype.toObject = function(opt_includeInstance) {
|
|
361
|
+
return proto.scanoss.api.common.v2.EchoResponse.toObject(opt_includeInstance, this);
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Static version of the {@see toObject} method.
|
|
367
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
368
|
+
* instance for transitional soy proto support:
|
|
369
|
+
* http://goto/soy-param-migration
|
|
370
|
+
* @param {!proto.scanoss.api.common.v2.EchoResponse} msg The msg instance to transform.
|
|
371
|
+
* @return {!Object}
|
|
372
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
373
|
+
*/
|
|
374
|
+
proto.scanoss.api.common.v2.EchoResponse.toObject = function(includeInstance, msg) {
|
|
375
|
+
var f, obj = {
|
|
376
|
+
message: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
if (includeInstance) {
|
|
380
|
+
obj.$jspbMessageInstance = msg;
|
|
381
|
+
}
|
|
382
|
+
return obj;
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Deserializes binary data (in protobuf wire format).
|
|
389
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
390
|
+
* @return {!proto.scanoss.api.common.v2.EchoResponse}
|
|
391
|
+
*/
|
|
392
|
+
proto.scanoss.api.common.v2.EchoResponse.deserializeBinary = function(bytes) {
|
|
393
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
394
|
+
var msg = new proto.scanoss.api.common.v2.EchoResponse;
|
|
395
|
+
return proto.scanoss.api.common.v2.EchoResponse.deserializeBinaryFromReader(msg, reader);
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
401
|
+
* given reader into the given message object.
|
|
402
|
+
* @param {!proto.scanoss.api.common.v2.EchoResponse} msg The message object to deserialize into.
|
|
403
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
404
|
+
* @return {!proto.scanoss.api.common.v2.EchoResponse}
|
|
405
|
+
*/
|
|
406
|
+
proto.scanoss.api.common.v2.EchoResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
407
|
+
while (reader.nextField()) {
|
|
408
|
+
if (reader.isEndGroup()) {
|
|
409
|
+
break;
|
|
410
|
+
}
|
|
411
|
+
var field = reader.getFieldNumber();
|
|
412
|
+
switch (field) {
|
|
413
|
+
case 1:
|
|
414
|
+
var value = /** @type {string} */ (reader.readString());
|
|
415
|
+
msg.setMessage(value);
|
|
416
|
+
break;
|
|
417
|
+
default:
|
|
418
|
+
reader.skipField();
|
|
419
|
+
break;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
return msg;
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
428
|
+
* @return {!Uint8Array}
|
|
429
|
+
*/
|
|
430
|
+
proto.scanoss.api.common.v2.EchoResponse.prototype.serializeBinary = function() {
|
|
431
|
+
var writer = new jspb.BinaryWriter();
|
|
432
|
+
proto.scanoss.api.common.v2.EchoResponse.serializeBinaryToWriter(this, writer);
|
|
433
|
+
return writer.getResultBuffer();
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
439
|
+
* format), writing to the given BinaryWriter.
|
|
440
|
+
* @param {!proto.scanoss.api.common.v2.EchoResponse} message
|
|
441
|
+
* @param {!jspb.BinaryWriter} writer
|
|
442
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
443
|
+
*/
|
|
444
|
+
proto.scanoss.api.common.v2.EchoResponse.serializeBinaryToWriter = function(message, writer) {
|
|
445
|
+
var f = undefined;
|
|
446
|
+
f = message.getMessage();
|
|
447
|
+
if (f.length > 0) {
|
|
448
|
+
writer.writeString(
|
|
449
|
+
1,
|
|
450
|
+
f
|
|
451
|
+
);
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* optional string message = 1;
|
|
458
|
+
* @return {string}
|
|
459
|
+
*/
|
|
460
|
+
proto.scanoss.api.common.v2.EchoResponse.prototype.getMessage = function() {
|
|
461
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
/** @param {string} value */
|
|
466
|
+
proto.scanoss.api.common.v2.EchoResponse.prototype.setMessage = function(value) {
|
|
467
|
+
jspb.Message.setProto3StringField(this, 1, value);
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* @enum {number}
|
|
473
|
+
*/
|
|
474
|
+
proto.scanoss.api.common.v2.StatusCode = {
|
|
475
|
+
UNSPECIFIED: 0,
|
|
476
|
+
SUCCESS: 1,
|
|
477
|
+
SUCCEEDED_WITH_WARNINGS: 2,
|
|
478
|
+
WARNING: 3,
|
|
479
|
+
FAILED: 4
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
goog.object.extend(exports, proto.scanoss.api.common.v2);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
// package: scanoss.api.dependencies.v2
|
|
4
|
+
// file: scanoss/api/dependencies/v2/scanoss-dependencies.proto
|
|
5
|
+
|
|
6
|
+
import * as scanoss_api_dependencies_v2_scanoss_dependencies_pb from "../../../../scanoss/api/dependencies/v2/scanoss-dependencies_pb";
|
|
7
|
+
import * as scanoss_api_common_v2_scanoss_common_pb from "../../../../scanoss/api/common/v2/scanoss-common_pb";
|
|
8
|
+
import * as grpc from "@grpc/grpc-js";
|
|
9
|
+
|
|
10
|
+
interface IDependenciesService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
11
|
+
echo: grpc.MethodDefinition<scanoss_api_common_v2_scanoss_common_pb.EchoRequest, scanoss_api_common_v2_scanoss_common_pb.EchoResponse>;
|
|
12
|
+
getDependencies: grpc.MethodDefinition<scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyRequest, scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyResponse>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const DependenciesService: IDependenciesService;
|
|
16
|
+
|
|
17
|
+
export interface IDependenciesServer extends grpc.UntypedServiceImplementation {
|
|
18
|
+
echo: grpc.handleUnaryCall<scanoss_api_common_v2_scanoss_common_pb.EchoRequest, scanoss_api_common_v2_scanoss_common_pb.EchoResponse>;
|
|
19
|
+
getDependencies: grpc.handleUnaryCall<scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyRequest, scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyResponse>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class DependenciesClient extends grpc.Client {
|
|
23
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
|
|
24
|
+
echo(argument: scanoss_api_common_v2_scanoss_common_pb.EchoRequest, callback: grpc.requestCallback<scanoss_api_common_v2_scanoss_common_pb.EchoResponse>): grpc.ClientUnaryCall;
|
|
25
|
+
echo(argument: scanoss_api_common_v2_scanoss_common_pb.EchoRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<scanoss_api_common_v2_scanoss_common_pb.EchoResponse>): grpc.ClientUnaryCall;
|
|
26
|
+
echo(argument: scanoss_api_common_v2_scanoss_common_pb.EchoRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<scanoss_api_common_v2_scanoss_common_pb.EchoResponse>): grpc.ClientUnaryCall;
|
|
27
|
+
getDependencies(argument: scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyRequest, callback: grpc.requestCallback<scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyResponse>): grpc.ClientUnaryCall;
|
|
28
|
+
getDependencies(argument: scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyResponse>): grpc.ClientUnaryCall;
|
|
29
|
+
getDependencies(argument: scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyResponse>): grpc.ClientUnaryCall;
|
|
30
|
+
}
|