Skip to content

Commit a50837c

Browse files
committed
Add version 2 of Streams and add new Registry proto definitions
1 parent 3096202 commit a50837c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+19619
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// GENERATED CODE -- NO SERVICES IN PROTO
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// package: kurrentdb.protocol.registry.v2
2+
// file: core.proto
3+
4+
/* tslint:disable */
5+
/* eslint-disable */
6+
7+
import * as jspb from "google-protobuf";
8+
9+
export class ErrorDetails extends jspb.Message {
10+
getCode(): string;
11+
setCode(value: string): ErrorDetails;
12+
getMessage(): string;
13+
setMessage(value: string): ErrorDetails;
14+
15+
serializeBinary(): Uint8Array;
16+
toObject(includeInstance?: boolean): ErrorDetails.AsObject;
17+
static toObject(includeInstance: boolean, msg: ErrorDetails): ErrorDetails.AsObject;
18+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
19+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
20+
static serializeBinaryToWriter(message: ErrorDetails, writer: jspb.BinaryWriter): void;
21+
static deserializeBinary(bytes: Uint8Array): ErrorDetails;
22+
static deserializeBinaryFromReader(message: ErrorDetails, reader: jspb.BinaryReader): ErrorDetails;
23+
}
24+
25+
export namespace ErrorDetails {
26+
export type AsObject = {
27+
code: string,
28+
message: string,
29+
}
30+
}
Lines changed: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,206 @@
1+
// source: core.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 = (function() {
17+
if (this) { return this; }
18+
if (typeof window !== 'undefined') { return window; }
19+
if (typeof global !== 'undefined') { return global; }
20+
if (typeof self !== 'undefined') { return self; }
21+
return Function('return this')();
22+
}.call(null));
23+
24+
goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.ErrorDetails', null, global);
25+
/**
26+
* Generated by JsPbCodeGenerator.
27+
* @param {Array=} opt_data Optional initial data array, typically from a
28+
* server response, or constructed directly in Javascript. The array is used
29+
* in place and becomes part of the constructed object. It is not cloned.
30+
* If no data is provided, the constructed object will be empty, but still
31+
* valid.
32+
* @extends {jspb.Message}
33+
* @constructor
34+
*/
35+
proto.kurrentdb.protocol.registry.v2.ErrorDetails = function(opt_data) {
36+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
37+
};
38+
goog.inherits(proto.kurrentdb.protocol.registry.v2.ErrorDetails, jspb.Message);
39+
if (goog.DEBUG && !COMPILED) {
40+
/**
41+
* @public
42+
* @override
43+
*/
44+
proto.kurrentdb.protocol.registry.v2.ErrorDetails.displayName = 'proto.kurrentdb.protocol.registry.v2.ErrorDetails';
45+
}
46+
47+
48+
49+
if (jspb.Message.GENERATE_TO_OBJECT) {
50+
/**
51+
* Creates an object representation of this proto.
52+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
53+
* Optional fields that are not set will be set to undefined.
54+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
55+
* For the list of reserved names please see:
56+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
57+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
58+
* JSPB instance for transitional soy proto support:
59+
* http://goto/soy-param-migration
60+
* @return {!Object}
61+
*/
62+
proto.kurrentdb.protocol.registry.v2.ErrorDetails.prototype.toObject = function(opt_includeInstance) {
63+
return proto.kurrentdb.protocol.registry.v2.ErrorDetails.toObject(opt_includeInstance, this);
64+
};
65+
66+
67+
/**
68+
* Static version of the {@see toObject} method.
69+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
70+
* the JSPB instance for transitional soy proto support:
71+
* http://goto/soy-param-migration
72+
* @param {!proto.kurrentdb.protocol.registry.v2.ErrorDetails} msg The msg instance to transform.
73+
* @return {!Object}
74+
* @suppress {unusedLocalVariables} f is only used for nested messages
75+
*/
76+
proto.kurrentdb.protocol.registry.v2.ErrorDetails.toObject = function(includeInstance, msg) {
77+
var f, obj = {
78+
code: jspb.Message.getFieldWithDefault(msg, 1, ""),
79+
message: jspb.Message.getFieldWithDefault(msg, 2, "")
80+
};
81+
82+
if (includeInstance) {
83+
obj.$jspbMessageInstance = msg;
84+
}
85+
return obj;
86+
};
87+
}
88+
89+
90+
/**
91+
* Deserializes binary data (in protobuf wire format).
92+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
93+
* @return {!proto.kurrentdb.protocol.registry.v2.ErrorDetails}
94+
*/
95+
proto.kurrentdb.protocol.registry.v2.ErrorDetails.deserializeBinary = function(bytes) {
96+
var reader = new jspb.BinaryReader(bytes);
97+
var msg = new proto.kurrentdb.protocol.registry.v2.ErrorDetails;
98+
return proto.kurrentdb.protocol.registry.v2.ErrorDetails.deserializeBinaryFromReader(msg, reader);
99+
};
100+
101+
102+
/**
103+
* Deserializes binary data (in protobuf wire format) from the
104+
* given reader into the given message object.
105+
* @param {!proto.kurrentdb.protocol.registry.v2.ErrorDetails} msg The message object to deserialize into.
106+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
107+
* @return {!proto.kurrentdb.protocol.registry.v2.ErrorDetails}
108+
*/
109+
proto.kurrentdb.protocol.registry.v2.ErrorDetails.deserializeBinaryFromReader = function(msg, reader) {
110+
while (reader.nextField()) {
111+
if (reader.isEndGroup()) {
112+
break;
113+
}
114+
var field = reader.getFieldNumber();
115+
switch (field) {
116+
case 1:
117+
var value = /** @type {string} */ (reader.readString());
118+
msg.setCode(value);
119+
break;
120+
case 2:
121+
var value = /** @type {string} */ (reader.readString());
122+
msg.setMessage(value);
123+
break;
124+
default:
125+
reader.skipField();
126+
break;
127+
}
128+
}
129+
return msg;
130+
};
131+
132+
133+
/**
134+
* Serializes the message to binary data (in protobuf wire format).
135+
* @return {!Uint8Array}
136+
*/
137+
proto.kurrentdb.protocol.registry.v2.ErrorDetails.prototype.serializeBinary = function() {
138+
var writer = new jspb.BinaryWriter();
139+
proto.kurrentdb.protocol.registry.v2.ErrorDetails.serializeBinaryToWriter(this, writer);
140+
return writer.getResultBuffer();
141+
};
142+
143+
144+
/**
145+
* Serializes the given message to binary data (in protobuf wire
146+
* format), writing to the given BinaryWriter.
147+
* @param {!proto.kurrentdb.protocol.registry.v2.ErrorDetails} message
148+
* @param {!jspb.BinaryWriter} writer
149+
* @suppress {unusedLocalVariables} f is only used for nested messages
150+
*/
151+
proto.kurrentdb.protocol.registry.v2.ErrorDetails.serializeBinaryToWriter = function(message, writer) {
152+
var f = undefined;
153+
f = message.getCode();
154+
if (f.length > 0) {
155+
writer.writeString(
156+
1,
157+
f
158+
);
159+
}
160+
f = message.getMessage();
161+
if (f.length > 0) {
162+
writer.writeString(
163+
2,
164+
f
165+
);
166+
}
167+
};
168+
169+
170+
/**
171+
* optional string code = 1;
172+
* @return {string}
173+
*/
174+
proto.kurrentdb.protocol.registry.v2.ErrorDetails.prototype.getCode = function() {
175+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
176+
};
177+
178+
179+
/**
180+
* @param {string} value
181+
* @return {!proto.kurrentdb.protocol.registry.v2.ErrorDetails} returns this
182+
*/
183+
proto.kurrentdb.protocol.registry.v2.ErrorDetails.prototype.setCode = function(value) {
184+
return jspb.Message.setProto3StringField(this, 1, value);
185+
};
186+
187+
188+
/**
189+
* optional string message = 2;
190+
* @return {string}
191+
*/
192+
proto.kurrentdb.protocol.registry.v2.ErrorDetails.prototype.getMessage = function() {
193+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
194+
};
195+
196+
197+
/**
198+
* @param {string} value
199+
* @return {!proto.kurrentdb.protocol.registry.v2.ErrorDetails} returns this
200+
*/
201+
proto.kurrentdb.protocol.registry.v2.ErrorDetails.prototype.setMessage = function(value) {
202+
return jspb.Message.setProto3StringField(this, 2, value);
203+
};
204+
205+
206+
goog.object.extend(exports, proto.kurrentdb.protocol.registry.v2);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// GENERATED CODE -- NO SERVICES IN PROTO

0 commit comments

Comments
 (0)