protobuf-platform 1.0.172 → 1.0.174
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/config/config.proto +9 -0
- package/config/config_grpc_pb.js +22 -0
- package/config/config_pb.js +319 -0
- package/package.json +1 -1
package/config/config.proto
CHANGED
@@ -11,6 +11,7 @@ service Config {
|
|
11
11
|
rpc getConfig(ConfigRequest) returns (ConfigDataResponse);
|
12
12
|
//Global settings
|
13
13
|
rpc addError(ErrorRequest) returns (ErrorStatusResponse);
|
14
|
+
rpc changeGlobalData(GlobalDataRequest) returns (ConfigStatusResponse);
|
14
15
|
}
|
15
16
|
|
16
17
|
message PingRequest { string ping = 1; }
|
@@ -48,4 +49,12 @@ message ErrorRequest {
|
|
48
49
|
}
|
49
50
|
message ErrorStatusResponse {
|
50
51
|
string status = 1;
|
52
|
+
}
|
53
|
+
//Global
|
54
|
+
message GlobalDataRequest {
|
55
|
+
string environment = 1;
|
56
|
+
string customer = 2;
|
57
|
+
string key = 3;
|
58
|
+
repeated string string_values = 4;
|
59
|
+
repeated int32 integer_values = 5;
|
51
60
|
}
|
package/config/config_grpc_pb.js
CHANGED
@@ -59,6 +59,17 @@ function deserialize_config_ErrorStatusResponse(buffer_arg) {
|
|
59
59
|
return config_pb.ErrorStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
60
60
|
}
|
61
61
|
|
62
|
+
function serialize_config_GlobalDataRequest(arg) {
|
63
|
+
if (!(arg instanceof config_pb.GlobalDataRequest)) {
|
64
|
+
throw new Error('Expected argument of type config.GlobalDataRequest');
|
65
|
+
}
|
66
|
+
return Buffer.from(arg.serializeBinary());
|
67
|
+
}
|
68
|
+
|
69
|
+
function deserialize_config_GlobalDataRequest(buffer_arg) {
|
70
|
+
return config_pb.GlobalDataRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
71
|
+
}
|
72
|
+
|
62
73
|
function serialize_config_PingRequest(arg) {
|
63
74
|
if (!(arg instanceof config_pb.PingRequest)) {
|
64
75
|
throw new Error('Expected argument of type config.PingRequest');
|
@@ -163,6 +174,17 @@ addError: {
|
|
163
174
|
responseSerialize: serialize_config_ErrorStatusResponse,
|
164
175
|
responseDeserialize: deserialize_config_ErrorStatusResponse,
|
165
176
|
},
|
177
|
+
changeGlobalData: {
|
178
|
+
path: '/config.Config/changeGlobalData',
|
179
|
+
requestStream: false,
|
180
|
+
responseStream: false,
|
181
|
+
requestType: config_pb.GlobalDataRequest,
|
182
|
+
responseType: config_pb.ConfigStatusResponse,
|
183
|
+
requestSerialize: serialize_config_GlobalDataRequest,
|
184
|
+
requestDeserialize: deserialize_config_GlobalDataRequest,
|
185
|
+
responseSerialize: serialize_config_ConfigStatusResponse,
|
186
|
+
responseDeserialize: deserialize_config_ConfigStatusResponse,
|
187
|
+
},
|
166
188
|
};
|
167
189
|
|
168
190
|
exports.ConfigClient = grpc.makeGenericClientConstructor(ConfigService);
|
package/config/config_pb.js
CHANGED
@@ -26,6 +26,7 @@ goog.exportSymbol('proto.config.ConfigRequest', null, global);
|
|
26
26
|
goog.exportSymbol('proto.config.ConfigStatusResponse', null, global);
|
27
27
|
goog.exportSymbol('proto.config.ErrorRequest', null, global);
|
28
28
|
goog.exportSymbol('proto.config.ErrorStatusResponse', null, global);
|
29
|
+
goog.exportSymbol('proto.config.GlobalDataRequest', null, global);
|
29
30
|
goog.exportSymbol('proto.config.PingRequest', null, global);
|
30
31
|
goog.exportSymbol('proto.config.PongResponse', null, global);
|
31
32
|
goog.exportSymbol('proto.config.SettingsRequest', null, global);
|
@@ -219,6 +220,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
219
220
|
*/
|
220
221
|
proto.config.ErrorStatusResponse.displayName = 'proto.config.ErrorStatusResponse';
|
221
222
|
}
|
223
|
+
/**
|
224
|
+
* Generated by JsPbCodeGenerator.
|
225
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
226
|
+
* server response, or constructed directly in Javascript. The array is used
|
227
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
228
|
+
* If no data is provided, the constructed object will be empty, but still
|
229
|
+
* valid.
|
230
|
+
* @extends {jspb.Message}
|
231
|
+
* @constructor
|
232
|
+
*/
|
233
|
+
proto.config.GlobalDataRequest = function(opt_data) {
|
234
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.config.GlobalDataRequest.repeatedFields_, null);
|
235
|
+
};
|
236
|
+
goog.inherits(proto.config.GlobalDataRequest, jspb.Message);
|
237
|
+
if (goog.DEBUG && !COMPILED) {
|
238
|
+
/**
|
239
|
+
* @public
|
240
|
+
* @override
|
241
|
+
*/
|
242
|
+
proto.config.GlobalDataRequest.displayName = 'proto.config.GlobalDataRequest';
|
243
|
+
}
|
222
244
|
|
223
245
|
|
224
246
|
|
@@ -1797,4 +1819,301 @@ proto.config.ErrorStatusResponse.prototype.setStatus = function(value) {
|
|
1797
1819
|
};
|
1798
1820
|
|
1799
1821
|
|
1822
|
+
|
1823
|
+
/**
|
1824
|
+
* List of repeated fields within this message type.
|
1825
|
+
* @private {!Array<number>}
|
1826
|
+
* @const
|
1827
|
+
*/
|
1828
|
+
proto.config.GlobalDataRequest.repeatedFields_ = [4,5];
|
1829
|
+
|
1830
|
+
|
1831
|
+
|
1832
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1833
|
+
/**
|
1834
|
+
* Creates an object representation of this proto.
|
1835
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1836
|
+
* Optional fields that are not set will be set to undefined.
|
1837
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1838
|
+
* For the list of reserved names please see:
|
1839
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1840
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1841
|
+
* JSPB instance for transitional soy proto support:
|
1842
|
+
* http://goto/soy-param-migration
|
1843
|
+
* @return {!Object}
|
1844
|
+
*/
|
1845
|
+
proto.config.GlobalDataRequest.prototype.toObject = function(opt_includeInstance) {
|
1846
|
+
return proto.config.GlobalDataRequest.toObject(opt_includeInstance, this);
|
1847
|
+
};
|
1848
|
+
|
1849
|
+
|
1850
|
+
/**
|
1851
|
+
* Static version of the {@see toObject} method.
|
1852
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1853
|
+
* the JSPB instance for transitional soy proto support:
|
1854
|
+
* http://goto/soy-param-migration
|
1855
|
+
* @param {!proto.config.GlobalDataRequest} msg The msg instance to transform.
|
1856
|
+
* @return {!Object}
|
1857
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1858
|
+
*/
|
1859
|
+
proto.config.GlobalDataRequest.toObject = function(includeInstance, msg) {
|
1860
|
+
var f, obj = {
|
1861
|
+
environment: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1862
|
+
customer: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1863
|
+
key: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1864
|
+
stringValuesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
1865
|
+
integerValuesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
|
1866
|
+
};
|
1867
|
+
|
1868
|
+
if (includeInstance) {
|
1869
|
+
obj.$jspbMessageInstance = msg;
|
1870
|
+
}
|
1871
|
+
return obj;
|
1872
|
+
};
|
1873
|
+
}
|
1874
|
+
|
1875
|
+
|
1876
|
+
/**
|
1877
|
+
* Deserializes binary data (in protobuf wire format).
|
1878
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1879
|
+
* @return {!proto.config.GlobalDataRequest}
|
1880
|
+
*/
|
1881
|
+
proto.config.GlobalDataRequest.deserializeBinary = function(bytes) {
|
1882
|
+
var reader = new jspb.BinaryReader(bytes);
|
1883
|
+
var msg = new proto.config.GlobalDataRequest;
|
1884
|
+
return proto.config.GlobalDataRequest.deserializeBinaryFromReader(msg, reader);
|
1885
|
+
};
|
1886
|
+
|
1887
|
+
|
1888
|
+
/**
|
1889
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1890
|
+
* given reader into the given message object.
|
1891
|
+
* @param {!proto.config.GlobalDataRequest} msg The message object to deserialize into.
|
1892
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1893
|
+
* @return {!proto.config.GlobalDataRequest}
|
1894
|
+
*/
|
1895
|
+
proto.config.GlobalDataRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1896
|
+
while (reader.nextField()) {
|
1897
|
+
if (reader.isEndGroup()) {
|
1898
|
+
break;
|
1899
|
+
}
|
1900
|
+
var field = reader.getFieldNumber();
|
1901
|
+
switch (field) {
|
1902
|
+
case 1:
|
1903
|
+
var value = /** @type {string} */ (reader.readString());
|
1904
|
+
msg.setEnvironment(value);
|
1905
|
+
break;
|
1906
|
+
case 2:
|
1907
|
+
var value = /** @type {string} */ (reader.readString());
|
1908
|
+
msg.setCustomer(value);
|
1909
|
+
break;
|
1910
|
+
case 3:
|
1911
|
+
var value = /** @type {string} */ (reader.readString());
|
1912
|
+
msg.setKey(value);
|
1913
|
+
break;
|
1914
|
+
case 4:
|
1915
|
+
var value = /** @type {string} */ (reader.readString());
|
1916
|
+
msg.addStringValues(value);
|
1917
|
+
break;
|
1918
|
+
case 5:
|
1919
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
1920
|
+
for (var i = 0; i < values.length; i++) {
|
1921
|
+
msg.addIntegerValues(values[i]);
|
1922
|
+
}
|
1923
|
+
break;
|
1924
|
+
default:
|
1925
|
+
reader.skipField();
|
1926
|
+
break;
|
1927
|
+
}
|
1928
|
+
}
|
1929
|
+
return msg;
|
1930
|
+
};
|
1931
|
+
|
1932
|
+
|
1933
|
+
/**
|
1934
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1935
|
+
* @return {!Uint8Array}
|
1936
|
+
*/
|
1937
|
+
proto.config.GlobalDataRequest.prototype.serializeBinary = function() {
|
1938
|
+
var writer = new jspb.BinaryWriter();
|
1939
|
+
proto.config.GlobalDataRequest.serializeBinaryToWriter(this, writer);
|
1940
|
+
return writer.getResultBuffer();
|
1941
|
+
};
|
1942
|
+
|
1943
|
+
|
1944
|
+
/**
|
1945
|
+
* Serializes the given message to binary data (in protobuf wire
|
1946
|
+
* format), writing to the given BinaryWriter.
|
1947
|
+
* @param {!proto.config.GlobalDataRequest} message
|
1948
|
+
* @param {!jspb.BinaryWriter} writer
|
1949
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1950
|
+
*/
|
1951
|
+
proto.config.GlobalDataRequest.serializeBinaryToWriter = function(message, writer) {
|
1952
|
+
var f = undefined;
|
1953
|
+
f = message.getEnvironment();
|
1954
|
+
if (f.length > 0) {
|
1955
|
+
writer.writeString(
|
1956
|
+
1,
|
1957
|
+
f
|
1958
|
+
);
|
1959
|
+
}
|
1960
|
+
f = message.getCustomer();
|
1961
|
+
if (f.length > 0) {
|
1962
|
+
writer.writeString(
|
1963
|
+
2,
|
1964
|
+
f
|
1965
|
+
);
|
1966
|
+
}
|
1967
|
+
f = message.getKey();
|
1968
|
+
if (f.length > 0) {
|
1969
|
+
writer.writeString(
|
1970
|
+
3,
|
1971
|
+
f
|
1972
|
+
);
|
1973
|
+
}
|
1974
|
+
f = message.getStringValuesList();
|
1975
|
+
if (f.length > 0) {
|
1976
|
+
writer.writeRepeatedString(
|
1977
|
+
4,
|
1978
|
+
f
|
1979
|
+
);
|
1980
|
+
}
|
1981
|
+
f = message.getIntegerValuesList();
|
1982
|
+
if (f.length > 0) {
|
1983
|
+
writer.writePackedInt32(
|
1984
|
+
5,
|
1985
|
+
f
|
1986
|
+
);
|
1987
|
+
}
|
1988
|
+
};
|
1989
|
+
|
1990
|
+
|
1991
|
+
/**
|
1992
|
+
* optional string environment = 1;
|
1993
|
+
* @return {string}
|
1994
|
+
*/
|
1995
|
+
proto.config.GlobalDataRequest.prototype.getEnvironment = function() {
|
1996
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
1997
|
+
};
|
1998
|
+
|
1999
|
+
|
2000
|
+
/**
|
2001
|
+
* @param {string} value
|
2002
|
+
* @return {!proto.config.GlobalDataRequest} returns this
|
2003
|
+
*/
|
2004
|
+
proto.config.GlobalDataRequest.prototype.setEnvironment = function(value) {
|
2005
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
2006
|
+
};
|
2007
|
+
|
2008
|
+
|
2009
|
+
/**
|
2010
|
+
* optional string customer = 2;
|
2011
|
+
* @return {string}
|
2012
|
+
*/
|
2013
|
+
proto.config.GlobalDataRequest.prototype.getCustomer = function() {
|
2014
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2015
|
+
};
|
2016
|
+
|
2017
|
+
|
2018
|
+
/**
|
2019
|
+
* @param {string} value
|
2020
|
+
* @return {!proto.config.GlobalDataRequest} returns this
|
2021
|
+
*/
|
2022
|
+
proto.config.GlobalDataRequest.prototype.setCustomer = function(value) {
|
2023
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
2024
|
+
};
|
2025
|
+
|
2026
|
+
|
2027
|
+
/**
|
2028
|
+
* optional string key = 3;
|
2029
|
+
* @return {string}
|
2030
|
+
*/
|
2031
|
+
proto.config.GlobalDataRequest.prototype.getKey = function() {
|
2032
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
2033
|
+
};
|
2034
|
+
|
2035
|
+
|
2036
|
+
/**
|
2037
|
+
* @param {string} value
|
2038
|
+
* @return {!proto.config.GlobalDataRequest} returns this
|
2039
|
+
*/
|
2040
|
+
proto.config.GlobalDataRequest.prototype.setKey = function(value) {
|
2041
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
2042
|
+
};
|
2043
|
+
|
2044
|
+
|
2045
|
+
/**
|
2046
|
+
* repeated string string_values = 4;
|
2047
|
+
* @return {!Array<string>}
|
2048
|
+
*/
|
2049
|
+
proto.config.GlobalDataRequest.prototype.getStringValuesList = function() {
|
2050
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
2051
|
+
};
|
2052
|
+
|
2053
|
+
|
2054
|
+
/**
|
2055
|
+
* @param {!Array<string>} value
|
2056
|
+
* @return {!proto.config.GlobalDataRequest} returns this
|
2057
|
+
*/
|
2058
|
+
proto.config.GlobalDataRequest.prototype.setStringValuesList = function(value) {
|
2059
|
+
return jspb.Message.setField(this, 4, value || []);
|
2060
|
+
};
|
2061
|
+
|
2062
|
+
|
2063
|
+
/**
|
2064
|
+
* @param {string} value
|
2065
|
+
* @param {number=} opt_index
|
2066
|
+
* @return {!proto.config.GlobalDataRequest} returns this
|
2067
|
+
*/
|
2068
|
+
proto.config.GlobalDataRequest.prototype.addStringValues = function(value, opt_index) {
|
2069
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
2070
|
+
};
|
2071
|
+
|
2072
|
+
|
2073
|
+
/**
|
2074
|
+
* Clears the list making it empty but non-null.
|
2075
|
+
* @return {!proto.config.GlobalDataRequest} returns this
|
2076
|
+
*/
|
2077
|
+
proto.config.GlobalDataRequest.prototype.clearStringValuesList = function() {
|
2078
|
+
return this.setStringValuesList([]);
|
2079
|
+
};
|
2080
|
+
|
2081
|
+
|
2082
|
+
/**
|
2083
|
+
* repeated int32 integer_values = 5;
|
2084
|
+
* @return {!Array<number>}
|
2085
|
+
*/
|
2086
|
+
proto.config.GlobalDataRequest.prototype.getIntegerValuesList = function() {
|
2087
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 5));
|
2088
|
+
};
|
2089
|
+
|
2090
|
+
|
2091
|
+
/**
|
2092
|
+
* @param {!Array<number>} value
|
2093
|
+
* @return {!proto.config.GlobalDataRequest} returns this
|
2094
|
+
*/
|
2095
|
+
proto.config.GlobalDataRequest.prototype.setIntegerValuesList = function(value) {
|
2096
|
+
return jspb.Message.setField(this, 5, value || []);
|
2097
|
+
};
|
2098
|
+
|
2099
|
+
|
2100
|
+
/**
|
2101
|
+
* @param {number} value
|
2102
|
+
* @param {number=} opt_index
|
2103
|
+
* @return {!proto.config.GlobalDataRequest} returns this
|
2104
|
+
*/
|
2105
|
+
proto.config.GlobalDataRequest.prototype.addIntegerValues = function(value, opt_index) {
|
2106
|
+
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
2107
|
+
};
|
2108
|
+
|
2109
|
+
|
2110
|
+
/**
|
2111
|
+
* Clears the list making it empty but non-null.
|
2112
|
+
* @return {!proto.config.GlobalDataRequest} returns this
|
2113
|
+
*/
|
2114
|
+
proto.config.GlobalDataRequest.prototype.clearIntegerValuesList = function() {
|
2115
|
+
return this.setIntegerValuesList([]);
|
2116
|
+
};
|
2117
|
+
|
2118
|
+
|
1800
2119
|
goog.object.extend(exports, proto.config);
|