@superblocksteam/sabs-types-js 0.0.1-demo-databricks-deploy
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/v1/service_grpc_pb.d.ts +128 -0
- package/build/v1/service_grpc_pb.js +212 -0
- package/build/v1/service_pb.d.ts +394 -0
- package/build/v1/service_pb.js +3062 -0
- package/google/api/annotations_grpc_pb.js +1 -0
- package/google/api/annotations_pb.d.ts +11 -0
- package/google/api/annotations_pb.js +48 -0
- package/google/api/http_grpc_pb.js +1 -0
- package/google/api/http_pb.d.ts +135 -0
- package/google/api/http_pb.js +1006 -0
- package/health/v1/service_grpc_pb.d.ts +42 -0
- package/health/v1/service_grpc_pb.js +46 -0
- package/health/v1/service_pb.d.ts +51 -0
- package/health/v1/service_pb.js +357 -0
- package/liveedit/v1/service_grpc_pb.d.ts +60 -0
- package/liveedit/v1/service_grpc_pb.js +80 -0
- package/liveedit/v1/service_pb.d.ts +166 -0
- package/liveedit/v1/service_pb.js +1232 -0
- package/package.json +18 -0
- package/protoc-gen-openapiv2/options/annotations_grpc_pb.js +1 -0
- package/protoc-gen-openapiv2/options/annotations_pb.d.ts +19 -0
- package/protoc-gen-openapiv2/options/annotations_pb.js +152 -0
- package/protoc-gen-openapiv2/options/openapiv2_grpc_pb.js +1 -0
- package/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +800 -0
- package/protoc-gen-openapiv2/options/openapiv2_pb.js +6323 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// package: health.v1
|
|
2
|
+
// file: health/v1/service.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as grpc from "@grpc/grpc-js";
|
|
8
|
+
import * as health_v1_service_pb from "../../health/v1/service_pb";
|
|
9
|
+
import * as protoc_gen_openapiv2_options_annotations_pb from "../../protoc-gen-openapiv2/options/annotations_pb";
|
|
10
|
+
|
|
11
|
+
interface IHealthServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
12
|
+
health: IHealthServiceService_IHealth;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface IHealthServiceService_IHealth extends grpc.MethodDefinition<health_v1_service_pb.HealthRequest, health_v1_service_pb.HealthResponse> {
|
|
16
|
+
path: "/health.v1.HealthService/Health";
|
|
17
|
+
requestStream: false;
|
|
18
|
+
responseStream: false;
|
|
19
|
+
requestSerialize: grpc.serialize<health_v1_service_pb.HealthRequest>;
|
|
20
|
+
requestDeserialize: grpc.deserialize<health_v1_service_pb.HealthRequest>;
|
|
21
|
+
responseSerialize: grpc.serialize<health_v1_service_pb.HealthResponse>;
|
|
22
|
+
responseDeserialize: grpc.deserialize<health_v1_service_pb.HealthResponse>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const HealthServiceService: IHealthServiceService;
|
|
26
|
+
|
|
27
|
+
export interface IHealthServiceServer extends grpc.UntypedServiceImplementation {
|
|
28
|
+
health: grpc.handleUnaryCall<health_v1_service_pb.HealthRequest, health_v1_service_pb.HealthResponse>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface IHealthServiceClient {
|
|
32
|
+
health(request: health_v1_service_pb.HealthRequest, callback: (error: grpc.ServiceError | null, response: health_v1_service_pb.HealthResponse) => void): grpc.ClientUnaryCall;
|
|
33
|
+
health(request: health_v1_service_pb.HealthRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: health_v1_service_pb.HealthResponse) => void): grpc.ClientUnaryCall;
|
|
34
|
+
health(request: health_v1_service_pb.HealthRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: health_v1_service_pb.HealthResponse) => void): grpc.ClientUnaryCall;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export class HealthServiceClient extends grpc.Client implements IHealthServiceClient {
|
|
38
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
|
39
|
+
public health(request: health_v1_service_pb.HealthRequest, callback: (error: grpc.ServiceError | null, response: health_v1_service_pb.HealthResponse) => void): grpc.ClientUnaryCall;
|
|
40
|
+
public health(request: health_v1_service_pb.HealthRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: health_v1_service_pb.HealthResponse) => void): grpc.ClientUnaryCall;
|
|
41
|
+
public health(request: health_v1_service_pb.HealthRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: health_v1_service_pb.HealthResponse) => void): grpc.ClientUnaryCall;
|
|
42
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var health_v1_service_pb = require('../../health/v1/service_pb');
|
|
6
|
+
var google_api_annotations_pb = require('../../google/api/annotations_pb');
|
|
7
|
+
var protoc$gen$openapiv2_options_annotations_pb = require('../../protoc-gen-openapiv2/options/annotations_pb');
|
|
8
|
+
|
|
9
|
+
function serialize_health_v1_HealthRequest(arg) {
|
|
10
|
+
if (!(arg instanceof health_v1_service_pb.HealthRequest)) {
|
|
11
|
+
throw new Error('Expected argument of type health.v1.HealthRequest');
|
|
12
|
+
}
|
|
13
|
+
return Buffer.from(arg.serializeBinary());
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function deserialize_health_v1_HealthRequest(buffer_arg) {
|
|
17
|
+
return health_v1_service_pb.HealthRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function serialize_health_v1_HealthResponse(arg) {
|
|
21
|
+
if (!(arg instanceof health_v1_service_pb.HealthResponse)) {
|
|
22
|
+
throw new Error('Expected argument of type health.v1.HealthResponse');
|
|
23
|
+
}
|
|
24
|
+
return Buffer.from(arg.serializeBinary());
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function deserialize_health_v1_HealthResponse(buffer_arg) {
|
|
28
|
+
return health_v1_service_pb.HealthResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
var HealthServiceService = exports.HealthServiceService = {
|
|
33
|
+
health: {
|
|
34
|
+
path: '/health.v1.HealthService/Health',
|
|
35
|
+
requestStream: false,
|
|
36
|
+
responseStream: false,
|
|
37
|
+
requestType: health_v1_service_pb.HealthRequest,
|
|
38
|
+
responseType: health_v1_service_pb.HealthResponse,
|
|
39
|
+
requestSerialize: serialize_health_v1_HealthRequest,
|
|
40
|
+
requestDeserialize: deserialize_health_v1_HealthRequest,
|
|
41
|
+
responseSerialize: serialize_health_v1_HealthResponse,
|
|
42
|
+
responseDeserialize: deserialize_health_v1_HealthResponse,
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
exports.HealthServiceClient = grpc.makeGenericClientConstructor(HealthServiceService);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// package: health.v1
|
|
2
|
+
// file: health/v1/service.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
import * as protoc_gen_openapiv2_options_annotations_pb from "../../protoc-gen-openapiv2/options/annotations_pb";
|
|
9
|
+
|
|
10
|
+
export class HealthRequest extends jspb.Message {
|
|
11
|
+
|
|
12
|
+
serializeBinary(): Uint8Array;
|
|
13
|
+
toObject(includeInstance?: boolean): HealthRequest.AsObject;
|
|
14
|
+
static toObject(includeInstance: boolean, msg: HealthRequest): HealthRequest.AsObject;
|
|
15
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
16
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
17
|
+
static serializeBinaryToWriter(message: HealthRequest, writer: jspb.BinaryWriter): void;
|
|
18
|
+
static deserializeBinary(bytes: Uint8Array): HealthRequest;
|
|
19
|
+
static deserializeBinaryFromReader(message: HealthRequest, reader: jspb.BinaryReader): HealthRequest;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export namespace HealthRequest {
|
|
23
|
+
export type AsObject = {
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export class HealthResponse extends jspb.Message {
|
|
28
|
+
getMessage(): string;
|
|
29
|
+
setMessage(value: string): HealthResponse;
|
|
30
|
+
getUptime(): number;
|
|
31
|
+
setUptime(value: number): HealthResponse;
|
|
32
|
+
getVersion(): string;
|
|
33
|
+
setVersion(value: string): HealthResponse;
|
|
34
|
+
|
|
35
|
+
serializeBinary(): Uint8Array;
|
|
36
|
+
toObject(includeInstance?: boolean): HealthResponse.AsObject;
|
|
37
|
+
static toObject(includeInstance: boolean, msg: HealthResponse): HealthResponse.AsObject;
|
|
38
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
39
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
40
|
+
static serializeBinaryToWriter(message: HealthResponse, writer: jspb.BinaryWriter): void;
|
|
41
|
+
static deserializeBinary(bytes: Uint8Array): HealthResponse;
|
|
42
|
+
static deserializeBinaryFromReader(message: HealthResponse, reader: jspb.BinaryReader): HealthResponse;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export namespace HealthResponse {
|
|
46
|
+
export type AsObject = {
|
|
47
|
+
message: string,
|
|
48
|
+
uptime: number,
|
|
49
|
+
version: string,
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
// source: health/v1/service.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = globalThis;
|
|
17
|
+
|
|
18
|
+
var google_api_annotations_pb = require('../../google/api/annotations_pb');
|
|
19
|
+
goog.object.extend(proto, google_api_annotations_pb);
|
|
20
|
+
var protoc$gen$openapiv2_options_annotations_pb = require('../../protoc-gen-openapiv2/options/annotations_pb');
|
|
21
|
+
goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
|
|
22
|
+
goog.exportSymbol('proto.health.v1.HealthRequest', null, global);
|
|
23
|
+
goog.exportSymbol('proto.health.v1.HealthResponse', null, global);
|
|
24
|
+
/**
|
|
25
|
+
* Generated by JsPbCodeGenerator.
|
|
26
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
27
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
28
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
29
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
30
|
+
* valid.
|
|
31
|
+
* @extends {jspb.Message}
|
|
32
|
+
* @constructor
|
|
33
|
+
*/
|
|
34
|
+
proto.health.v1.HealthRequest = function(opt_data) {
|
|
35
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
36
|
+
};
|
|
37
|
+
goog.inherits(proto.health.v1.HealthRequest, jspb.Message);
|
|
38
|
+
if (goog.DEBUG && !COMPILED) {
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
* @override
|
|
42
|
+
*/
|
|
43
|
+
proto.health.v1.HealthRequest.displayName = 'proto.health.v1.HealthRequest';
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Generated by JsPbCodeGenerator.
|
|
47
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
48
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
49
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
50
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
51
|
+
* valid.
|
|
52
|
+
* @extends {jspb.Message}
|
|
53
|
+
* @constructor
|
|
54
|
+
*/
|
|
55
|
+
proto.health.v1.HealthResponse = function(opt_data) {
|
|
56
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
57
|
+
};
|
|
58
|
+
goog.inherits(proto.health.v1.HealthResponse, jspb.Message);
|
|
59
|
+
if (goog.DEBUG && !COMPILED) {
|
|
60
|
+
/**
|
|
61
|
+
* @public
|
|
62
|
+
* @override
|
|
63
|
+
*/
|
|
64
|
+
proto.health.v1.HealthResponse.displayName = 'proto.health.v1.HealthResponse';
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
70
|
+
/**
|
|
71
|
+
* Creates an object representation of this proto.
|
|
72
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
73
|
+
* Optional fields that are not set will be set to undefined.
|
|
74
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
75
|
+
* For the list of reserved names please see:
|
|
76
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
77
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
78
|
+
* JSPB instance for transitional soy proto support:
|
|
79
|
+
* http://goto/soy-param-migration
|
|
80
|
+
* @return {!Object}
|
|
81
|
+
*/
|
|
82
|
+
proto.health.v1.HealthRequest.prototype.toObject = function(opt_includeInstance) {
|
|
83
|
+
return proto.health.v1.HealthRequest.toObject(opt_includeInstance, this);
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Static version of the {@see toObject} method.
|
|
89
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
90
|
+
* the JSPB instance for transitional soy proto support:
|
|
91
|
+
* http://goto/soy-param-migration
|
|
92
|
+
* @param {!proto.health.v1.HealthRequest} msg The msg instance to transform.
|
|
93
|
+
* @return {!Object}
|
|
94
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
95
|
+
*/
|
|
96
|
+
proto.health.v1.HealthRequest.toObject = function(includeInstance, msg) {
|
|
97
|
+
var f, obj = {
|
|
98
|
+
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
if (includeInstance) {
|
|
102
|
+
obj.$jspbMessageInstance = msg;
|
|
103
|
+
}
|
|
104
|
+
return obj;
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Deserializes binary data (in protobuf wire format).
|
|
111
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
112
|
+
* @return {!proto.health.v1.HealthRequest}
|
|
113
|
+
*/
|
|
114
|
+
proto.health.v1.HealthRequest.deserializeBinary = function(bytes) {
|
|
115
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
116
|
+
var msg = new proto.health.v1.HealthRequest;
|
|
117
|
+
return proto.health.v1.HealthRequest.deserializeBinaryFromReader(msg, reader);
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
123
|
+
* given reader into the given message object.
|
|
124
|
+
* @param {!proto.health.v1.HealthRequest} msg The message object to deserialize into.
|
|
125
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
126
|
+
* @return {!proto.health.v1.HealthRequest}
|
|
127
|
+
*/
|
|
128
|
+
proto.health.v1.HealthRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
129
|
+
while (reader.nextField()) {
|
|
130
|
+
if (reader.isEndGroup()) {
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
var field = reader.getFieldNumber();
|
|
134
|
+
switch (field) {
|
|
135
|
+
default:
|
|
136
|
+
reader.skipField();
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return msg;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
146
|
+
* @return {!Uint8Array}
|
|
147
|
+
*/
|
|
148
|
+
proto.health.v1.HealthRequest.prototype.serializeBinary = function() {
|
|
149
|
+
var writer = new jspb.BinaryWriter();
|
|
150
|
+
proto.health.v1.HealthRequest.serializeBinaryToWriter(this, writer);
|
|
151
|
+
return writer.getResultBuffer();
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
157
|
+
* format), writing to the given BinaryWriter.
|
|
158
|
+
* @param {!proto.health.v1.HealthRequest} message
|
|
159
|
+
* @param {!jspb.BinaryWriter} writer
|
|
160
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
161
|
+
*/
|
|
162
|
+
proto.health.v1.HealthRequest.serializeBinaryToWriter = function(message, writer) {
|
|
163
|
+
var f = undefined;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
171
|
+
/**
|
|
172
|
+
* Creates an object representation of this proto.
|
|
173
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
174
|
+
* Optional fields that are not set will be set to undefined.
|
|
175
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
176
|
+
* For the list of reserved names please see:
|
|
177
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
178
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
179
|
+
* JSPB instance for transitional soy proto support:
|
|
180
|
+
* http://goto/soy-param-migration
|
|
181
|
+
* @return {!Object}
|
|
182
|
+
*/
|
|
183
|
+
proto.health.v1.HealthResponse.prototype.toObject = function(opt_includeInstance) {
|
|
184
|
+
return proto.health.v1.HealthResponse.toObject(opt_includeInstance, this);
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Static version of the {@see toObject} method.
|
|
190
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
191
|
+
* the JSPB instance for transitional soy proto support:
|
|
192
|
+
* http://goto/soy-param-migration
|
|
193
|
+
* @param {!proto.health.v1.HealthResponse} msg The msg instance to transform.
|
|
194
|
+
* @return {!Object}
|
|
195
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
196
|
+
*/
|
|
197
|
+
proto.health.v1.HealthResponse.toObject = function(includeInstance, msg) {
|
|
198
|
+
var f, obj = {
|
|
199
|
+
message: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
200
|
+
uptime: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
201
|
+
version: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
if (includeInstance) {
|
|
205
|
+
obj.$jspbMessageInstance = msg;
|
|
206
|
+
}
|
|
207
|
+
return obj;
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Deserializes binary data (in protobuf wire format).
|
|
214
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
215
|
+
* @return {!proto.health.v1.HealthResponse}
|
|
216
|
+
*/
|
|
217
|
+
proto.health.v1.HealthResponse.deserializeBinary = function(bytes) {
|
|
218
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
219
|
+
var msg = new proto.health.v1.HealthResponse;
|
|
220
|
+
return proto.health.v1.HealthResponse.deserializeBinaryFromReader(msg, reader);
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
226
|
+
* given reader into the given message object.
|
|
227
|
+
* @param {!proto.health.v1.HealthResponse} msg The message object to deserialize into.
|
|
228
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
229
|
+
* @return {!proto.health.v1.HealthResponse}
|
|
230
|
+
*/
|
|
231
|
+
proto.health.v1.HealthResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
232
|
+
while (reader.nextField()) {
|
|
233
|
+
if (reader.isEndGroup()) {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
var field = reader.getFieldNumber();
|
|
237
|
+
switch (field) {
|
|
238
|
+
case 1:
|
|
239
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
240
|
+
msg.setMessage(value);
|
|
241
|
+
break;
|
|
242
|
+
case 2:
|
|
243
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
244
|
+
msg.setUptime(value);
|
|
245
|
+
break;
|
|
246
|
+
case 3:
|
|
247
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
248
|
+
msg.setVersion(value);
|
|
249
|
+
break;
|
|
250
|
+
default:
|
|
251
|
+
reader.skipField();
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return msg;
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
261
|
+
* @return {!Uint8Array}
|
|
262
|
+
*/
|
|
263
|
+
proto.health.v1.HealthResponse.prototype.serializeBinary = function() {
|
|
264
|
+
var writer = new jspb.BinaryWriter();
|
|
265
|
+
proto.health.v1.HealthResponse.serializeBinaryToWriter(this, writer);
|
|
266
|
+
return writer.getResultBuffer();
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
272
|
+
* format), writing to the given BinaryWriter.
|
|
273
|
+
* @param {!proto.health.v1.HealthResponse} message
|
|
274
|
+
* @param {!jspb.BinaryWriter} writer
|
|
275
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
276
|
+
*/
|
|
277
|
+
proto.health.v1.HealthResponse.serializeBinaryToWriter = function(message, writer) {
|
|
278
|
+
var f = undefined;
|
|
279
|
+
f = message.getMessage();
|
|
280
|
+
if (f.length > 0) {
|
|
281
|
+
writer.writeString(
|
|
282
|
+
1,
|
|
283
|
+
f
|
|
284
|
+
);
|
|
285
|
+
}
|
|
286
|
+
f = message.getUptime();
|
|
287
|
+
if (f !== 0) {
|
|
288
|
+
writer.writeInt64(
|
|
289
|
+
2,
|
|
290
|
+
f
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
f = message.getVersion();
|
|
294
|
+
if (f.length > 0) {
|
|
295
|
+
writer.writeString(
|
|
296
|
+
3,
|
|
297
|
+
f
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* optional string message = 1;
|
|
305
|
+
* @return {string}
|
|
306
|
+
*/
|
|
307
|
+
proto.health.v1.HealthResponse.prototype.getMessage = function() {
|
|
308
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* @param {string} value
|
|
314
|
+
* @return {!proto.health.v1.HealthResponse} returns this
|
|
315
|
+
*/
|
|
316
|
+
proto.health.v1.HealthResponse.prototype.setMessage = function(value) {
|
|
317
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* optional int64 uptime = 2;
|
|
323
|
+
* @return {number}
|
|
324
|
+
*/
|
|
325
|
+
proto.health.v1.HealthResponse.prototype.getUptime = function() {
|
|
326
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* @param {number} value
|
|
332
|
+
* @return {!proto.health.v1.HealthResponse} returns this
|
|
333
|
+
*/
|
|
334
|
+
proto.health.v1.HealthResponse.prototype.setUptime = function(value) {
|
|
335
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* optional string version = 3;
|
|
341
|
+
* @return {string}
|
|
342
|
+
*/
|
|
343
|
+
proto.health.v1.HealthResponse.prototype.getVersion = function() {
|
|
344
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* @param {string} value
|
|
350
|
+
* @return {!proto.health.v1.HealthResponse} returns this
|
|
351
|
+
*/
|
|
352
|
+
proto.health.v1.HealthResponse.prototype.setVersion = function(value) {
|
|
353
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
goog.object.extend(exports, proto.health.v1);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// package: liveedit.v1
|
|
2
|
+
// file: liveedit/v1/service.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as grpc from "@grpc/grpc-js";
|
|
8
|
+
import * as liveedit_v1_service_pb from "../../liveedit/v1/service_pb";
|
|
9
|
+
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
10
|
+
import * as protoc_gen_openapiv2_options_annotations_pb from "../../protoc-gen-openapiv2/options/annotations_pb";
|
|
11
|
+
|
|
12
|
+
interface ILiveEditServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
13
|
+
createLiveEdit: ILiveEditServiceService_ICreateLiveEdit;
|
|
14
|
+
terminateLiveEdit: ILiveEditServiceService_ITerminateLiveEdit;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface ILiveEditServiceService_ICreateLiveEdit extends grpc.MethodDefinition<liveedit_v1_service_pb.CreateLiveEditRequest, liveedit_v1_service_pb.CreateLiveEditResponse> {
|
|
18
|
+
path: "/liveedit.v1.LiveEditService/CreateLiveEdit";
|
|
19
|
+
requestStream: false;
|
|
20
|
+
responseStream: false;
|
|
21
|
+
requestSerialize: grpc.serialize<liveedit_v1_service_pb.CreateLiveEditRequest>;
|
|
22
|
+
requestDeserialize: grpc.deserialize<liveedit_v1_service_pb.CreateLiveEditRequest>;
|
|
23
|
+
responseSerialize: grpc.serialize<liveedit_v1_service_pb.CreateLiveEditResponse>;
|
|
24
|
+
responseDeserialize: grpc.deserialize<liveedit_v1_service_pb.CreateLiveEditResponse>;
|
|
25
|
+
}
|
|
26
|
+
interface ILiveEditServiceService_ITerminateLiveEdit extends grpc.MethodDefinition<liveedit_v1_service_pb.TerminateLiveEditRequest, liveedit_v1_service_pb.TerminateLiveEditResponse> {
|
|
27
|
+
path: "/liveedit.v1.LiveEditService/TerminateLiveEdit";
|
|
28
|
+
requestStream: false;
|
|
29
|
+
responseStream: false;
|
|
30
|
+
requestSerialize: grpc.serialize<liveedit_v1_service_pb.TerminateLiveEditRequest>;
|
|
31
|
+
requestDeserialize: grpc.deserialize<liveedit_v1_service_pb.TerminateLiveEditRequest>;
|
|
32
|
+
responseSerialize: grpc.serialize<liveedit_v1_service_pb.TerminateLiveEditResponse>;
|
|
33
|
+
responseDeserialize: grpc.deserialize<liveedit_v1_service_pb.TerminateLiveEditResponse>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const LiveEditServiceService: ILiveEditServiceService;
|
|
37
|
+
|
|
38
|
+
export interface ILiveEditServiceServer extends grpc.UntypedServiceImplementation {
|
|
39
|
+
createLiveEdit: grpc.handleUnaryCall<liveedit_v1_service_pb.CreateLiveEditRequest, liveedit_v1_service_pb.CreateLiveEditResponse>;
|
|
40
|
+
terminateLiveEdit: grpc.handleUnaryCall<liveedit_v1_service_pb.TerminateLiveEditRequest, liveedit_v1_service_pb.TerminateLiveEditResponse>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface ILiveEditServiceClient {
|
|
44
|
+
createLiveEdit(request: liveedit_v1_service_pb.CreateLiveEditRequest, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.CreateLiveEditResponse) => void): grpc.ClientUnaryCall;
|
|
45
|
+
createLiveEdit(request: liveedit_v1_service_pb.CreateLiveEditRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.CreateLiveEditResponse) => void): grpc.ClientUnaryCall;
|
|
46
|
+
createLiveEdit(request: liveedit_v1_service_pb.CreateLiveEditRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.CreateLiveEditResponse) => void): grpc.ClientUnaryCall;
|
|
47
|
+
terminateLiveEdit(request: liveedit_v1_service_pb.TerminateLiveEditRequest, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.TerminateLiveEditResponse) => void): grpc.ClientUnaryCall;
|
|
48
|
+
terminateLiveEdit(request: liveedit_v1_service_pb.TerminateLiveEditRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.TerminateLiveEditResponse) => void): grpc.ClientUnaryCall;
|
|
49
|
+
terminateLiveEdit(request: liveedit_v1_service_pb.TerminateLiveEditRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.TerminateLiveEditResponse) => void): grpc.ClientUnaryCall;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export class LiveEditServiceClient extends grpc.Client implements ILiveEditServiceClient {
|
|
53
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
|
54
|
+
public createLiveEdit(request: liveedit_v1_service_pb.CreateLiveEditRequest, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.CreateLiveEditResponse) => void): grpc.ClientUnaryCall;
|
|
55
|
+
public createLiveEdit(request: liveedit_v1_service_pb.CreateLiveEditRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.CreateLiveEditResponse) => void): grpc.ClientUnaryCall;
|
|
56
|
+
public createLiveEdit(request: liveedit_v1_service_pb.CreateLiveEditRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.CreateLiveEditResponse) => void): grpc.ClientUnaryCall;
|
|
57
|
+
public terminateLiveEdit(request: liveedit_v1_service_pb.TerminateLiveEditRequest, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.TerminateLiveEditResponse) => void): grpc.ClientUnaryCall;
|
|
58
|
+
public terminateLiveEdit(request: liveedit_v1_service_pb.TerminateLiveEditRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.TerminateLiveEditResponse) => void): grpc.ClientUnaryCall;
|
|
59
|
+
public terminateLiveEdit(request: liveedit_v1_service_pb.TerminateLiveEditRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.TerminateLiveEditResponse) => void): grpc.ClientUnaryCall;
|
|
60
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var liveedit_v1_service_pb = require('../../liveedit/v1/service_pb');
|
|
6
|
+
var google_api_annotations_pb = require('../../google/api/annotations_pb');
|
|
7
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb');
|
|
8
|
+
var protoc$gen$openapiv2_options_annotations_pb = require('../../protoc-gen-openapiv2/options/annotations_pb');
|
|
9
|
+
|
|
10
|
+
function serialize_liveedit_v1_CreateLiveEditRequest(arg) {
|
|
11
|
+
if (!(arg instanceof liveedit_v1_service_pb.CreateLiveEditRequest)) {
|
|
12
|
+
throw new Error('Expected argument of type liveedit.v1.CreateLiveEditRequest');
|
|
13
|
+
}
|
|
14
|
+
return Buffer.from(arg.serializeBinary());
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function deserialize_liveedit_v1_CreateLiveEditRequest(buffer_arg) {
|
|
18
|
+
return liveedit_v1_service_pb.CreateLiveEditRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function serialize_liveedit_v1_CreateLiveEditResponse(arg) {
|
|
22
|
+
if (!(arg instanceof liveedit_v1_service_pb.CreateLiveEditResponse)) {
|
|
23
|
+
throw new Error('Expected argument of type liveedit.v1.CreateLiveEditResponse');
|
|
24
|
+
}
|
|
25
|
+
return Buffer.from(arg.serializeBinary());
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function deserialize_liveedit_v1_CreateLiveEditResponse(buffer_arg) {
|
|
29
|
+
return liveedit_v1_service_pb.CreateLiveEditResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function serialize_liveedit_v1_TerminateLiveEditRequest(arg) {
|
|
33
|
+
if (!(arg instanceof liveedit_v1_service_pb.TerminateLiveEditRequest)) {
|
|
34
|
+
throw new Error('Expected argument of type liveedit.v1.TerminateLiveEditRequest');
|
|
35
|
+
}
|
|
36
|
+
return Buffer.from(arg.serializeBinary());
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function deserialize_liveedit_v1_TerminateLiveEditRequest(buffer_arg) {
|
|
40
|
+
return liveedit_v1_service_pb.TerminateLiveEditRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function serialize_liveedit_v1_TerminateLiveEditResponse(arg) {
|
|
44
|
+
if (!(arg instanceof liveedit_v1_service_pb.TerminateLiveEditResponse)) {
|
|
45
|
+
throw new Error('Expected argument of type liveedit.v1.TerminateLiveEditResponse');
|
|
46
|
+
}
|
|
47
|
+
return Buffer.from(arg.serializeBinary());
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function deserialize_liveedit_v1_TerminateLiveEditResponse(buffer_arg) {
|
|
51
|
+
return liveedit_v1_service_pb.TerminateLiveEditResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
var LiveEditServiceService = exports.LiveEditServiceService = {
|
|
56
|
+
createLiveEdit: {
|
|
57
|
+
path: '/liveedit.v1.LiveEditService/CreateLiveEdit',
|
|
58
|
+
requestStream: false,
|
|
59
|
+
responseStream: false,
|
|
60
|
+
requestType: liveedit_v1_service_pb.CreateLiveEditRequest,
|
|
61
|
+
responseType: liveedit_v1_service_pb.CreateLiveEditResponse,
|
|
62
|
+
requestSerialize: serialize_liveedit_v1_CreateLiveEditRequest,
|
|
63
|
+
requestDeserialize: deserialize_liveedit_v1_CreateLiveEditRequest,
|
|
64
|
+
responseSerialize: serialize_liveedit_v1_CreateLiveEditResponse,
|
|
65
|
+
responseDeserialize: deserialize_liveedit_v1_CreateLiveEditResponse,
|
|
66
|
+
},
|
|
67
|
+
terminateLiveEdit: {
|
|
68
|
+
path: '/liveedit.v1.LiveEditService/TerminateLiveEdit',
|
|
69
|
+
requestStream: false,
|
|
70
|
+
responseStream: false,
|
|
71
|
+
requestType: liveedit_v1_service_pb.TerminateLiveEditRequest,
|
|
72
|
+
responseType: liveedit_v1_service_pb.TerminateLiveEditResponse,
|
|
73
|
+
requestSerialize: serialize_liveedit_v1_TerminateLiveEditRequest,
|
|
74
|
+
requestDeserialize: deserialize_liveedit_v1_TerminateLiveEditRequest,
|
|
75
|
+
responseSerialize: serialize_liveedit_v1_TerminateLiveEditResponse,
|
|
76
|
+
responseDeserialize: deserialize_liveedit_v1_TerminateLiveEditResponse,
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
exports.LiveEditServiceClient = grpc.makeGenericClientConstructor(LiveEditServiceService);
|