@miradorlabs/web-grpc 4.35.0 → 4.36.0
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/package.json +1 -1
- package/proto/gateway/web/v1/ai_gateway.ts +125 -1
- package/proto/gateway/web/v1/ai_gateway_pb.js +237 -2
- package/proto/gateway/web/v1/ai_insights_gateway.ts +470 -1
- package/proto/gateway/web/v1/ai_insights_gateway_grpc_pb.js +36 -0
- package/proto/gateway/web/v1/ai_insights_gateway_pb.js +904 -0
|
@@ -32,6 +32,8 @@ goog.exportSymbol('proto.gateway.web.v1.BatchGetInsightRatingsRequest', null, gl
|
|
|
32
32
|
goog.exportSymbol('proto.gateway.web.v1.BatchGetInsightRatingsResponse', null, global);
|
|
33
33
|
goog.exportSymbol('proto.gateway.web.v1.DeleteInsightRatingRequest', null, global);
|
|
34
34
|
goog.exportSymbol('proto.gateway.web.v1.DeleteInsightRatingResponse', null, global);
|
|
35
|
+
goog.exportSymbol('proto.gateway.web.v1.GetInsightsOverviewRequest', null, global);
|
|
36
|
+
goog.exportSymbol('proto.gateway.web.v1.GetInsightsOverviewResponse', null, global);
|
|
35
37
|
goog.exportSymbol('proto.gateway.web.v1.InsightRating', null, global);
|
|
36
38
|
goog.exportSymbol('proto.gateway.web.v1.InsightRef', null, global);
|
|
37
39
|
goog.exportSymbol('proto.gateway.web.v1.InsightRef.InsightCase', null, global);
|
|
@@ -39,9 +41,11 @@ goog.exportSymbol('proto.gateway.web.v1.ListProjectInsightCardsRequest', null, g
|
|
|
39
41
|
goog.exportSymbol('proto.gateway.web.v1.ListProjectInsightCardsResponse', null, global);
|
|
40
42
|
goog.exportSymbol('proto.gateway.web.v1.ListSessionInsightsRequest', null, global);
|
|
41
43
|
goog.exportSymbol('proto.gateway.web.v1.ListSessionInsightsResponse', null, global);
|
|
44
|
+
goog.exportSymbol('proto.gateway.web.v1.ProjectInsightKindCount', null, global);
|
|
42
45
|
goog.exportSymbol('proto.gateway.web.v1.SessionInsightEntry', null, global);
|
|
43
46
|
goog.exportSymbol('proto.gateway.web.v1.SessionInsightFilter', null, global);
|
|
44
47
|
goog.exportSymbol('proto.gateway.web.v1.SessionInsightSort', null, global);
|
|
48
|
+
goog.exportSymbol('proto.gateway.web.v1.SessionInsightTopicCount', null, global);
|
|
45
49
|
goog.exportSymbol('proto.gateway.web.v1.SetInsightRatingRequest', null, global);
|
|
46
50
|
goog.exportSymbol('proto.gateway.web.v1.SetInsightRatingResponse', null, global);
|
|
47
51
|
/**
|
|
@@ -170,6 +174,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
170
174
|
*/
|
|
171
175
|
proto.gateway.web.v1.ListProjectInsightCardsResponse.displayName = 'proto.gateway.web.v1.ListProjectInsightCardsResponse';
|
|
172
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* Generated by JsPbCodeGenerator.
|
|
179
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
180
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
181
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
182
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
183
|
+
* valid.
|
|
184
|
+
* @extends {jspb.Message}
|
|
185
|
+
* @constructor
|
|
186
|
+
*/
|
|
187
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest = function(opt_data) {
|
|
188
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
189
|
+
};
|
|
190
|
+
goog.inherits(proto.gateway.web.v1.GetInsightsOverviewRequest, jspb.Message);
|
|
191
|
+
if (goog.DEBUG && !COMPILED) {
|
|
192
|
+
/**
|
|
193
|
+
* @public
|
|
194
|
+
* @override
|
|
195
|
+
*/
|
|
196
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest.displayName = 'proto.gateway.web.v1.GetInsightsOverviewRequest';
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Generated by JsPbCodeGenerator.
|
|
200
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
201
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
202
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
203
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
204
|
+
* valid.
|
|
205
|
+
* @extends {jspb.Message}
|
|
206
|
+
* @constructor
|
|
207
|
+
*/
|
|
208
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse = function(opt_data) {
|
|
209
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.GetInsightsOverviewResponse.repeatedFields_, null);
|
|
210
|
+
};
|
|
211
|
+
goog.inherits(proto.gateway.web.v1.GetInsightsOverviewResponse, jspb.Message);
|
|
212
|
+
if (goog.DEBUG && !COMPILED) {
|
|
213
|
+
/**
|
|
214
|
+
* @public
|
|
215
|
+
* @override
|
|
216
|
+
*/
|
|
217
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.displayName = 'proto.gateway.web.v1.GetInsightsOverviewResponse';
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Generated by JsPbCodeGenerator.
|
|
221
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
222
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
223
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
224
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
225
|
+
* valid.
|
|
226
|
+
* @extends {jspb.Message}
|
|
227
|
+
* @constructor
|
|
228
|
+
*/
|
|
229
|
+
proto.gateway.web.v1.SessionInsightTopicCount = function(opt_data) {
|
|
230
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
231
|
+
};
|
|
232
|
+
goog.inherits(proto.gateway.web.v1.SessionInsightTopicCount, jspb.Message);
|
|
233
|
+
if (goog.DEBUG && !COMPILED) {
|
|
234
|
+
/**
|
|
235
|
+
* @public
|
|
236
|
+
* @override
|
|
237
|
+
*/
|
|
238
|
+
proto.gateway.web.v1.SessionInsightTopicCount.displayName = 'proto.gateway.web.v1.SessionInsightTopicCount';
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Generated by JsPbCodeGenerator.
|
|
242
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
243
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
244
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
245
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
246
|
+
* valid.
|
|
247
|
+
* @extends {jspb.Message}
|
|
248
|
+
* @constructor
|
|
249
|
+
*/
|
|
250
|
+
proto.gateway.web.v1.ProjectInsightKindCount = function(opt_data) {
|
|
251
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
252
|
+
};
|
|
253
|
+
goog.inherits(proto.gateway.web.v1.ProjectInsightKindCount, jspb.Message);
|
|
254
|
+
if (goog.DEBUG && !COMPILED) {
|
|
255
|
+
/**
|
|
256
|
+
* @public
|
|
257
|
+
* @override
|
|
258
|
+
*/
|
|
259
|
+
proto.gateway.web.v1.ProjectInsightKindCount.displayName = 'proto.gateway.web.v1.ProjectInsightKindCount';
|
|
260
|
+
}
|
|
173
261
|
/**
|
|
174
262
|
* Generated by JsPbCodeGenerator.
|
|
175
263
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1923,6 +2011,822 @@ proto.gateway.web.v1.ListProjectInsightCardsResponse.prototype.setNextPageToken
|
|
|
1923
2011
|
|
|
1924
2012
|
|
|
1925
2013
|
|
|
2014
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2015
|
+
/**
|
|
2016
|
+
* Creates an object representation of this proto.
|
|
2017
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2018
|
+
* Optional fields that are not set will be set to undefined.
|
|
2019
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2020
|
+
* For the list of reserved names please see:
|
|
2021
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2022
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2023
|
+
* JSPB instance for transitional soy proto support:
|
|
2024
|
+
* http://goto/soy-param-migration
|
|
2025
|
+
* @return {!Object}
|
|
2026
|
+
*/
|
|
2027
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2028
|
+
return proto.gateway.web.v1.GetInsightsOverviewRequest.toObject(opt_includeInstance, this);
|
|
2029
|
+
};
|
|
2030
|
+
|
|
2031
|
+
|
|
2032
|
+
/**
|
|
2033
|
+
* Static version of the {@see toObject} method.
|
|
2034
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2035
|
+
* the JSPB instance for transitional soy proto support:
|
|
2036
|
+
* http://goto/soy-param-migration
|
|
2037
|
+
* @param {!proto.gateway.web.v1.GetInsightsOverviewRequest} msg The msg instance to transform.
|
|
2038
|
+
* @return {!Object}
|
|
2039
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2040
|
+
*/
|
|
2041
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest.toObject = function(includeInstance, msg) {
|
|
2042
|
+
var f, obj = {
|
|
2043
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2044
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2045
|
+
analyzedAfter: (f = msg.getAnalyzedAfter()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
2046
|
+
};
|
|
2047
|
+
|
|
2048
|
+
if (includeInstance) {
|
|
2049
|
+
obj.$jspbMessageInstance = msg;
|
|
2050
|
+
}
|
|
2051
|
+
return obj;
|
|
2052
|
+
};
|
|
2053
|
+
}
|
|
2054
|
+
|
|
2055
|
+
|
|
2056
|
+
/**
|
|
2057
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2058
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
2059
|
+
* @return {!proto.gateway.web.v1.GetInsightsOverviewRequest}
|
|
2060
|
+
*/
|
|
2061
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest.deserializeBinary = function(bytes) {
|
|
2062
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2063
|
+
var msg = new proto.gateway.web.v1.GetInsightsOverviewRequest;
|
|
2064
|
+
return proto.gateway.web.v1.GetInsightsOverviewRequest.deserializeBinaryFromReader(msg, reader);
|
|
2065
|
+
};
|
|
2066
|
+
|
|
2067
|
+
|
|
2068
|
+
/**
|
|
2069
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2070
|
+
* given reader into the given message object.
|
|
2071
|
+
* @param {!proto.gateway.web.v1.GetInsightsOverviewRequest} msg The message object to deserialize into.
|
|
2072
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2073
|
+
* @return {!proto.gateway.web.v1.GetInsightsOverviewRequest}
|
|
2074
|
+
*/
|
|
2075
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2076
|
+
while (reader.nextField()) {
|
|
2077
|
+
if (reader.isEndGroup()) {
|
|
2078
|
+
break;
|
|
2079
|
+
}
|
|
2080
|
+
var field = reader.getFieldNumber();
|
|
2081
|
+
switch (field) {
|
|
2082
|
+
case 1:
|
|
2083
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2084
|
+
msg.setOrganizationId(value);
|
|
2085
|
+
break;
|
|
2086
|
+
case 2:
|
|
2087
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2088
|
+
msg.setProjectId(value);
|
|
2089
|
+
break;
|
|
2090
|
+
case 3:
|
|
2091
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
2092
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
2093
|
+
msg.setAnalyzedAfter(value);
|
|
2094
|
+
break;
|
|
2095
|
+
default:
|
|
2096
|
+
reader.skipField();
|
|
2097
|
+
break;
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
return msg;
|
|
2101
|
+
};
|
|
2102
|
+
|
|
2103
|
+
|
|
2104
|
+
/**
|
|
2105
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2106
|
+
* @return {!Uint8Array}
|
|
2107
|
+
*/
|
|
2108
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest.prototype.serializeBinary = function() {
|
|
2109
|
+
var writer = new jspb.BinaryWriter();
|
|
2110
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest.serializeBinaryToWriter(this, writer);
|
|
2111
|
+
return writer.getResultBuffer();
|
|
2112
|
+
};
|
|
2113
|
+
|
|
2114
|
+
|
|
2115
|
+
/**
|
|
2116
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2117
|
+
* format), writing to the given BinaryWriter.
|
|
2118
|
+
* @param {!proto.gateway.web.v1.GetInsightsOverviewRequest} message
|
|
2119
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2120
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2121
|
+
*/
|
|
2122
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2123
|
+
var f = undefined;
|
|
2124
|
+
f = message.getOrganizationId();
|
|
2125
|
+
if (f.length > 0) {
|
|
2126
|
+
writer.writeString(
|
|
2127
|
+
1,
|
|
2128
|
+
f
|
|
2129
|
+
);
|
|
2130
|
+
}
|
|
2131
|
+
f = message.getProjectId();
|
|
2132
|
+
if (f.length > 0) {
|
|
2133
|
+
writer.writeString(
|
|
2134
|
+
2,
|
|
2135
|
+
f
|
|
2136
|
+
);
|
|
2137
|
+
}
|
|
2138
|
+
f = message.getAnalyzedAfter();
|
|
2139
|
+
if (f != null) {
|
|
2140
|
+
writer.writeMessage(
|
|
2141
|
+
3,
|
|
2142
|
+
f,
|
|
2143
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
2144
|
+
);
|
|
2145
|
+
}
|
|
2146
|
+
};
|
|
2147
|
+
|
|
2148
|
+
|
|
2149
|
+
/**
|
|
2150
|
+
* optional string organization_id = 1;
|
|
2151
|
+
* @return {string}
|
|
2152
|
+
*/
|
|
2153
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest.prototype.getOrganizationId = function() {
|
|
2154
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2155
|
+
};
|
|
2156
|
+
|
|
2157
|
+
|
|
2158
|
+
/**
|
|
2159
|
+
* @param {string} value
|
|
2160
|
+
* @return {!proto.gateway.web.v1.GetInsightsOverviewRequest} returns this
|
|
2161
|
+
*/
|
|
2162
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest.prototype.setOrganizationId = function(value) {
|
|
2163
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2164
|
+
};
|
|
2165
|
+
|
|
2166
|
+
|
|
2167
|
+
/**
|
|
2168
|
+
* optional string project_id = 2;
|
|
2169
|
+
* @return {string}
|
|
2170
|
+
*/
|
|
2171
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest.prototype.getProjectId = function() {
|
|
2172
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2173
|
+
};
|
|
2174
|
+
|
|
2175
|
+
|
|
2176
|
+
/**
|
|
2177
|
+
* @param {string} value
|
|
2178
|
+
* @return {!proto.gateway.web.v1.GetInsightsOverviewRequest} returns this
|
|
2179
|
+
*/
|
|
2180
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest.prototype.setProjectId = function(value) {
|
|
2181
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2182
|
+
};
|
|
2183
|
+
|
|
2184
|
+
|
|
2185
|
+
/**
|
|
2186
|
+
* optional google.protobuf.Timestamp analyzed_after = 3;
|
|
2187
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
2188
|
+
*/
|
|
2189
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest.prototype.getAnalyzedAfter = function() {
|
|
2190
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
2191
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
2192
|
+
};
|
|
2193
|
+
|
|
2194
|
+
|
|
2195
|
+
/**
|
|
2196
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
2197
|
+
* @return {!proto.gateway.web.v1.GetInsightsOverviewRequest} returns this
|
|
2198
|
+
*/
|
|
2199
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest.prototype.setAnalyzedAfter = function(value) {
|
|
2200
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
2201
|
+
};
|
|
2202
|
+
|
|
2203
|
+
|
|
2204
|
+
/**
|
|
2205
|
+
* Clears the message field making it undefined.
|
|
2206
|
+
* @return {!proto.gateway.web.v1.GetInsightsOverviewRequest} returns this
|
|
2207
|
+
*/
|
|
2208
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest.prototype.clearAnalyzedAfter = function() {
|
|
2209
|
+
return this.setAnalyzedAfter(undefined);
|
|
2210
|
+
};
|
|
2211
|
+
|
|
2212
|
+
|
|
2213
|
+
/**
|
|
2214
|
+
* Returns whether this field is set.
|
|
2215
|
+
* @return {boolean}
|
|
2216
|
+
*/
|
|
2217
|
+
proto.gateway.web.v1.GetInsightsOverviewRequest.prototype.hasAnalyzedAfter = function() {
|
|
2218
|
+
return jspb.Message.getField(this, 3) != null;
|
|
2219
|
+
};
|
|
2220
|
+
|
|
2221
|
+
|
|
2222
|
+
|
|
2223
|
+
/**
|
|
2224
|
+
* List of repeated fields within this message type.
|
|
2225
|
+
* @private {!Array<number>}
|
|
2226
|
+
* @const
|
|
2227
|
+
*/
|
|
2228
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.repeatedFields_ = [2,3];
|
|
2229
|
+
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2233
|
+
/**
|
|
2234
|
+
* Creates an object representation of this proto.
|
|
2235
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2236
|
+
* Optional fields that are not set will be set to undefined.
|
|
2237
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2238
|
+
* For the list of reserved names please see:
|
|
2239
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2240
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2241
|
+
* JSPB instance for transitional soy proto support:
|
|
2242
|
+
* http://goto/soy-param-migration
|
|
2243
|
+
* @return {!Object}
|
|
2244
|
+
*/
|
|
2245
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2246
|
+
return proto.gateway.web.v1.GetInsightsOverviewResponse.toObject(opt_includeInstance, this);
|
|
2247
|
+
};
|
|
2248
|
+
|
|
2249
|
+
|
|
2250
|
+
/**
|
|
2251
|
+
* Static version of the {@see toObject} method.
|
|
2252
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2253
|
+
* the JSPB instance for transitional soy proto support:
|
|
2254
|
+
* http://goto/soy-param-migration
|
|
2255
|
+
* @param {!proto.gateway.web.v1.GetInsightsOverviewResponse} msg The msg instance to transform.
|
|
2256
|
+
* @return {!Object}
|
|
2257
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2258
|
+
*/
|
|
2259
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.toObject = function(includeInstance, msg) {
|
|
2260
|
+
var f, obj = {
|
|
2261
|
+
status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
2262
|
+
sessionInsightTopicCountsList: jspb.Message.toObjectList(msg.getSessionInsightTopicCountsList(),
|
|
2263
|
+
proto.gateway.web.v1.SessionInsightTopicCount.toObject, includeInstance),
|
|
2264
|
+
projectInsightKindCountsList: jspb.Message.toObjectList(msg.getProjectInsightKindCountsList(),
|
|
2265
|
+
proto.gateway.web.v1.ProjectInsightKindCount.toObject, includeInstance)
|
|
2266
|
+
};
|
|
2267
|
+
|
|
2268
|
+
if (includeInstance) {
|
|
2269
|
+
obj.$jspbMessageInstance = msg;
|
|
2270
|
+
}
|
|
2271
|
+
return obj;
|
|
2272
|
+
};
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
|
|
2276
|
+
/**
|
|
2277
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2278
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
2279
|
+
* @return {!proto.gateway.web.v1.GetInsightsOverviewResponse}
|
|
2280
|
+
*/
|
|
2281
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.deserializeBinary = function(bytes) {
|
|
2282
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2283
|
+
var msg = new proto.gateway.web.v1.GetInsightsOverviewResponse;
|
|
2284
|
+
return proto.gateway.web.v1.GetInsightsOverviewResponse.deserializeBinaryFromReader(msg, reader);
|
|
2285
|
+
};
|
|
2286
|
+
|
|
2287
|
+
|
|
2288
|
+
/**
|
|
2289
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2290
|
+
* given reader into the given message object.
|
|
2291
|
+
* @param {!proto.gateway.web.v1.GetInsightsOverviewResponse} msg The message object to deserialize into.
|
|
2292
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2293
|
+
* @return {!proto.gateway.web.v1.GetInsightsOverviewResponse}
|
|
2294
|
+
*/
|
|
2295
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2296
|
+
while (reader.nextField()) {
|
|
2297
|
+
if (reader.isEndGroup()) {
|
|
2298
|
+
break;
|
|
2299
|
+
}
|
|
2300
|
+
var field = reader.getFieldNumber();
|
|
2301
|
+
switch (field) {
|
|
2302
|
+
case 1:
|
|
2303
|
+
var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
|
|
2304
|
+
reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
2305
|
+
msg.setStatus(value);
|
|
2306
|
+
break;
|
|
2307
|
+
case 2:
|
|
2308
|
+
var value = new proto.gateway.web.v1.SessionInsightTopicCount;
|
|
2309
|
+
reader.readMessage(value,proto.gateway.web.v1.SessionInsightTopicCount.deserializeBinaryFromReader);
|
|
2310
|
+
msg.addSessionInsightTopicCounts(value);
|
|
2311
|
+
break;
|
|
2312
|
+
case 3:
|
|
2313
|
+
var value = new proto.gateway.web.v1.ProjectInsightKindCount;
|
|
2314
|
+
reader.readMessage(value,proto.gateway.web.v1.ProjectInsightKindCount.deserializeBinaryFromReader);
|
|
2315
|
+
msg.addProjectInsightKindCounts(value);
|
|
2316
|
+
break;
|
|
2317
|
+
default:
|
|
2318
|
+
reader.skipField();
|
|
2319
|
+
break;
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
2322
|
+
return msg;
|
|
2323
|
+
};
|
|
2324
|
+
|
|
2325
|
+
|
|
2326
|
+
/**
|
|
2327
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2328
|
+
* @return {!Uint8Array}
|
|
2329
|
+
*/
|
|
2330
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.prototype.serializeBinary = function() {
|
|
2331
|
+
var writer = new jspb.BinaryWriter();
|
|
2332
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.serializeBinaryToWriter(this, writer);
|
|
2333
|
+
return writer.getResultBuffer();
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
|
|
2337
|
+
/**
|
|
2338
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2339
|
+
* format), writing to the given BinaryWriter.
|
|
2340
|
+
* @param {!proto.gateway.web.v1.GetInsightsOverviewResponse} message
|
|
2341
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2342
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2343
|
+
*/
|
|
2344
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2345
|
+
var f = undefined;
|
|
2346
|
+
f = message.getStatus();
|
|
2347
|
+
if (f != null) {
|
|
2348
|
+
writer.writeMessage(
|
|
2349
|
+
1,
|
|
2350
|
+
f,
|
|
2351
|
+
proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
2352
|
+
);
|
|
2353
|
+
}
|
|
2354
|
+
f = message.getSessionInsightTopicCountsList();
|
|
2355
|
+
if (f.length > 0) {
|
|
2356
|
+
writer.writeRepeatedMessage(
|
|
2357
|
+
2,
|
|
2358
|
+
f,
|
|
2359
|
+
proto.gateway.web.v1.SessionInsightTopicCount.serializeBinaryToWriter
|
|
2360
|
+
);
|
|
2361
|
+
}
|
|
2362
|
+
f = message.getProjectInsightKindCountsList();
|
|
2363
|
+
if (f.length > 0) {
|
|
2364
|
+
writer.writeRepeatedMessage(
|
|
2365
|
+
3,
|
|
2366
|
+
f,
|
|
2367
|
+
proto.gateway.web.v1.ProjectInsightKindCount.serializeBinaryToWriter
|
|
2368
|
+
);
|
|
2369
|
+
}
|
|
2370
|
+
};
|
|
2371
|
+
|
|
2372
|
+
|
|
2373
|
+
/**
|
|
2374
|
+
* optional gateway.common.v1.ResponseStatus status = 1;
|
|
2375
|
+
* @return {?proto.gateway.common.v1.ResponseStatus}
|
|
2376
|
+
*/
|
|
2377
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.prototype.getStatus = function() {
|
|
2378
|
+
return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
|
|
2379
|
+
jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
|
|
2380
|
+
};
|
|
2381
|
+
|
|
2382
|
+
|
|
2383
|
+
/**
|
|
2384
|
+
* @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
|
|
2385
|
+
* @return {!proto.gateway.web.v1.GetInsightsOverviewResponse} returns this
|
|
2386
|
+
*/
|
|
2387
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.prototype.setStatus = function(value) {
|
|
2388
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2389
|
+
};
|
|
2390
|
+
|
|
2391
|
+
|
|
2392
|
+
/**
|
|
2393
|
+
* Clears the message field making it undefined.
|
|
2394
|
+
* @return {!proto.gateway.web.v1.GetInsightsOverviewResponse} returns this
|
|
2395
|
+
*/
|
|
2396
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.prototype.clearStatus = function() {
|
|
2397
|
+
return this.setStatus(undefined);
|
|
2398
|
+
};
|
|
2399
|
+
|
|
2400
|
+
|
|
2401
|
+
/**
|
|
2402
|
+
* Returns whether this field is set.
|
|
2403
|
+
* @return {boolean}
|
|
2404
|
+
*/
|
|
2405
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.prototype.hasStatus = function() {
|
|
2406
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2407
|
+
};
|
|
2408
|
+
|
|
2409
|
+
|
|
2410
|
+
/**
|
|
2411
|
+
* repeated SessionInsightTopicCount session_insight_topic_counts = 2;
|
|
2412
|
+
* @return {!Array<!proto.gateway.web.v1.SessionInsightTopicCount>}
|
|
2413
|
+
*/
|
|
2414
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.prototype.getSessionInsightTopicCountsList = function() {
|
|
2415
|
+
return /** @type{!Array<!proto.gateway.web.v1.SessionInsightTopicCount>} */ (
|
|
2416
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SessionInsightTopicCount, 2));
|
|
2417
|
+
};
|
|
2418
|
+
|
|
2419
|
+
|
|
2420
|
+
/**
|
|
2421
|
+
* @param {!Array<!proto.gateway.web.v1.SessionInsightTopicCount>} value
|
|
2422
|
+
* @return {!proto.gateway.web.v1.GetInsightsOverviewResponse} returns this
|
|
2423
|
+
*/
|
|
2424
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.prototype.setSessionInsightTopicCountsList = function(value) {
|
|
2425
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
2426
|
+
};
|
|
2427
|
+
|
|
2428
|
+
|
|
2429
|
+
/**
|
|
2430
|
+
* @param {!proto.gateway.web.v1.SessionInsightTopicCount=} opt_value
|
|
2431
|
+
* @param {number=} opt_index
|
|
2432
|
+
* @return {!proto.gateway.web.v1.SessionInsightTopicCount}
|
|
2433
|
+
*/
|
|
2434
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.prototype.addSessionInsightTopicCounts = function(opt_value, opt_index) {
|
|
2435
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.SessionInsightTopicCount, opt_index);
|
|
2436
|
+
};
|
|
2437
|
+
|
|
2438
|
+
|
|
2439
|
+
/**
|
|
2440
|
+
* Clears the list making it empty but non-null.
|
|
2441
|
+
* @return {!proto.gateway.web.v1.GetInsightsOverviewResponse} returns this
|
|
2442
|
+
*/
|
|
2443
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.prototype.clearSessionInsightTopicCountsList = function() {
|
|
2444
|
+
return this.setSessionInsightTopicCountsList([]);
|
|
2445
|
+
};
|
|
2446
|
+
|
|
2447
|
+
|
|
2448
|
+
/**
|
|
2449
|
+
* repeated ProjectInsightKindCount project_insight_kind_counts = 3;
|
|
2450
|
+
* @return {!Array<!proto.gateway.web.v1.ProjectInsightKindCount>}
|
|
2451
|
+
*/
|
|
2452
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.prototype.getProjectInsightKindCountsList = function() {
|
|
2453
|
+
return /** @type{!Array<!proto.gateway.web.v1.ProjectInsightKindCount>} */ (
|
|
2454
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ProjectInsightKindCount, 3));
|
|
2455
|
+
};
|
|
2456
|
+
|
|
2457
|
+
|
|
2458
|
+
/**
|
|
2459
|
+
* @param {!Array<!proto.gateway.web.v1.ProjectInsightKindCount>} value
|
|
2460
|
+
* @return {!proto.gateway.web.v1.GetInsightsOverviewResponse} returns this
|
|
2461
|
+
*/
|
|
2462
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.prototype.setProjectInsightKindCountsList = function(value) {
|
|
2463
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
2464
|
+
};
|
|
2465
|
+
|
|
2466
|
+
|
|
2467
|
+
/**
|
|
2468
|
+
* @param {!proto.gateway.web.v1.ProjectInsightKindCount=} opt_value
|
|
2469
|
+
* @param {number=} opt_index
|
|
2470
|
+
* @return {!proto.gateway.web.v1.ProjectInsightKindCount}
|
|
2471
|
+
*/
|
|
2472
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.prototype.addProjectInsightKindCounts = function(opt_value, opt_index) {
|
|
2473
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gateway.web.v1.ProjectInsightKindCount, opt_index);
|
|
2474
|
+
};
|
|
2475
|
+
|
|
2476
|
+
|
|
2477
|
+
/**
|
|
2478
|
+
* Clears the list making it empty but non-null.
|
|
2479
|
+
* @return {!proto.gateway.web.v1.GetInsightsOverviewResponse} returns this
|
|
2480
|
+
*/
|
|
2481
|
+
proto.gateway.web.v1.GetInsightsOverviewResponse.prototype.clearProjectInsightKindCountsList = function() {
|
|
2482
|
+
return this.setProjectInsightKindCountsList([]);
|
|
2483
|
+
};
|
|
2484
|
+
|
|
2485
|
+
|
|
2486
|
+
|
|
2487
|
+
|
|
2488
|
+
|
|
2489
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2490
|
+
/**
|
|
2491
|
+
* Creates an object representation of this proto.
|
|
2492
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2493
|
+
* Optional fields that are not set will be set to undefined.
|
|
2494
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2495
|
+
* For the list of reserved names please see:
|
|
2496
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2497
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2498
|
+
* JSPB instance for transitional soy proto support:
|
|
2499
|
+
* http://goto/soy-param-migration
|
|
2500
|
+
* @return {!Object}
|
|
2501
|
+
*/
|
|
2502
|
+
proto.gateway.web.v1.SessionInsightTopicCount.prototype.toObject = function(opt_includeInstance) {
|
|
2503
|
+
return proto.gateway.web.v1.SessionInsightTopicCount.toObject(opt_includeInstance, this);
|
|
2504
|
+
};
|
|
2505
|
+
|
|
2506
|
+
|
|
2507
|
+
/**
|
|
2508
|
+
* Static version of the {@see toObject} method.
|
|
2509
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2510
|
+
* the JSPB instance for transitional soy proto support:
|
|
2511
|
+
* http://goto/soy-param-migration
|
|
2512
|
+
* @param {!proto.gateway.web.v1.SessionInsightTopicCount} msg The msg instance to transform.
|
|
2513
|
+
* @return {!Object}
|
|
2514
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2515
|
+
*/
|
|
2516
|
+
proto.gateway.web.v1.SessionInsightTopicCount.toObject = function(includeInstance, msg) {
|
|
2517
|
+
var f, obj = {
|
|
2518
|
+
topic: (f = msg.getTopic()) && proto_gateway_web_v1_ai_gateway_pb.AISessionInsightTopic.toObject(includeInstance, f),
|
|
2519
|
+
insights: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
2520
|
+
};
|
|
2521
|
+
|
|
2522
|
+
if (includeInstance) {
|
|
2523
|
+
obj.$jspbMessageInstance = msg;
|
|
2524
|
+
}
|
|
2525
|
+
return obj;
|
|
2526
|
+
};
|
|
2527
|
+
}
|
|
2528
|
+
|
|
2529
|
+
|
|
2530
|
+
/**
|
|
2531
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2532
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
2533
|
+
* @return {!proto.gateway.web.v1.SessionInsightTopicCount}
|
|
2534
|
+
*/
|
|
2535
|
+
proto.gateway.web.v1.SessionInsightTopicCount.deserializeBinary = function(bytes) {
|
|
2536
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2537
|
+
var msg = new proto.gateway.web.v1.SessionInsightTopicCount;
|
|
2538
|
+
return proto.gateway.web.v1.SessionInsightTopicCount.deserializeBinaryFromReader(msg, reader);
|
|
2539
|
+
};
|
|
2540
|
+
|
|
2541
|
+
|
|
2542
|
+
/**
|
|
2543
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2544
|
+
* given reader into the given message object.
|
|
2545
|
+
* @param {!proto.gateway.web.v1.SessionInsightTopicCount} msg The message object to deserialize into.
|
|
2546
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2547
|
+
* @return {!proto.gateway.web.v1.SessionInsightTopicCount}
|
|
2548
|
+
*/
|
|
2549
|
+
proto.gateway.web.v1.SessionInsightTopicCount.deserializeBinaryFromReader = function(msg, reader) {
|
|
2550
|
+
while (reader.nextField()) {
|
|
2551
|
+
if (reader.isEndGroup()) {
|
|
2552
|
+
break;
|
|
2553
|
+
}
|
|
2554
|
+
var field = reader.getFieldNumber();
|
|
2555
|
+
switch (field) {
|
|
2556
|
+
case 1:
|
|
2557
|
+
var value = new proto_gateway_web_v1_ai_gateway_pb.AISessionInsightTopic;
|
|
2558
|
+
reader.readMessage(value,proto_gateway_web_v1_ai_gateway_pb.AISessionInsightTopic.deserializeBinaryFromReader);
|
|
2559
|
+
msg.setTopic(value);
|
|
2560
|
+
break;
|
|
2561
|
+
case 2:
|
|
2562
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
2563
|
+
msg.setInsights(value);
|
|
2564
|
+
break;
|
|
2565
|
+
default:
|
|
2566
|
+
reader.skipField();
|
|
2567
|
+
break;
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2570
|
+
return msg;
|
|
2571
|
+
};
|
|
2572
|
+
|
|
2573
|
+
|
|
2574
|
+
/**
|
|
2575
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2576
|
+
* @return {!Uint8Array}
|
|
2577
|
+
*/
|
|
2578
|
+
proto.gateway.web.v1.SessionInsightTopicCount.prototype.serializeBinary = function() {
|
|
2579
|
+
var writer = new jspb.BinaryWriter();
|
|
2580
|
+
proto.gateway.web.v1.SessionInsightTopicCount.serializeBinaryToWriter(this, writer);
|
|
2581
|
+
return writer.getResultBuffer();
|
|
2582
|
+
};
|
|
2583
|
+
|
|
2584
|
+
|
|
2585
|
+
/**
|
|
2586
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2587
|
+
* format), writing to the given BinaryWriter.
|
|
2588
|
+
* @param {!proto.gateway.web.v1.SessionInsightTopicCount} message
|
|
2589
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2590
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2591
|
+
*/
|
|
2592
|
+
proto.gateway.web.v1.SessionInsightTopicCount.serializeBinaryToWriter = function(message, writer) {
|
|
2593
|
+
var f = undefined;
|
|
2594
|
+
f = message.getTopic();
|
|
2595
|
+
if (f != null) {
|
|
2596
|
+
writer.writeMessage(
|
|
2597
|
+
1,
|
|
2598
|
+
f,
|
|
2599
|
+
proto_gateway_web_v1_ai_gateway_pb.AISessionInsightTopic.serializeBinaryToWriter
|
|
2600
|
+
);
|
|
2601
|
+
}
|
|
2602
|
+
f = message.getInsights();
|
|
2603
|
+
if (f !== 0) {
|
|
2604
|
+
writer.writeUint64(
|
|
2605
|
+
2,
|
|
2606
|
+
f
|
|
2607
|
+
);
|
|
2608
|
+
}
|
|
2609
|
+
};
|
|
2610
|
+
|
|
2611
|
+
|
|
2612
|
+
/**
|
|
2613
|
+
* optional AISessionInsightTopic topic = 1;
|
|
2614
|
+
* @return {?proto.gateway.web.v1.AISessionInsightTopic}
|
|
2615
|
+
*/
|
|
2616
|
+
proto.gateway.web.v1.SessionInsightTopicCount.prototype.getTopic = function() {
|
|
2617
|
+
return /** @type{?proto.gateway.web.v1.AISessionInsightTopic} */ (
|
|
2618
|
+
jspb.Message.getWrapperField(this, proto_gateway_web_v1_ai_gateway_pb.AISessionInsightTopic, 1));
|
|
2619
|
+
};
|
|
2620
|
+
|
|
2621
|
+
|
|
2622
|
+
/**
|
|
2623
|
+
* @param {?proto.gateway.web.v1.AISessionInsightTopic|undefined} value
|
|
2624
|
+
* @return {!proto.gateway.web.v1.SessionInsightTopicCount} returns this
|
|
2625
|
+
*/
|
|
2626
|
+
proto.gateway.web.v1.SessionInsightTopicCount.prototype.setTopic = function(value) {
|
|
2627
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2628
|
+
};
|
|
2629
|
+
|
|
2630
|
+
|
|
2631
|
+
/**
|
|
2632
|
+
* Clears the message field making it undefined.
|
|
2633
|
+
* @return {!proto.gateway.web.v1.SessionInsightTopicCount} returns this
|
|
2634
|
+
*/
|
|
2635
|
+
proto.gateway.web.v1.SessionInsightTopicCount.prototype.clearTopic = function() {
|
|
2636
|
+
return this.setTopic(undefined);
|
|
2637
|
+
};
|
|
2638
|
+
|
|
2639
|
+
|
|
2640
|
+
/**
|
|
2641
|
+
* Returns whether this field is set.
|
|
2642
|
+
* @return {boolean}
|
|
2643
|
+
*/
|
|
2644
|
+
proto.gateway.web.v1.SessionInsightTopicCount.prototype.hasTopic = function() {
|
|
2645
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2646
|
+
};
|
|
2647
|
+
|
|
2648
|
+
|
|
2649
|
+
/**
|
|
2650
|
+
* optional uint64 insights = 2;
|
|
2651
|
+
* @return {number}
|
|
2652
|
+
*/
|
|
2653
|
+
proto.gateway.web.v1.SessionInsightTopicCount.prototype.getInsights = function() {
|
|
2654
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2655
|
+
};
|
|
2656
|
+
|
|
2657
|
+
|
|
2658
|
+
/**
|
|
2659
|
+
* @param {number} value
|
|
2660
|
+
* @return {!proto.gateway.web.v1.SessionInsightTopicCount} returns this
|
|
2661
|
+
*/
|
|
2662
|
+
proto.gateway.web.v1.SessionInsightTopicCount.prototype.setInsights = function(value) {
|
|
2663
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
2664
|
+
};
|
|
2665
|
+
|
|
2666
|
+
|
|
2667
|
+
|
|
2668
|
+
|
|
2669
|
+
|
|
2670
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2671
|
+
/**
|
|
2672
|
+
* Creates an object representation of this proto.
|
|
2673
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2674
|
+
* Optional fields that are not set will be set to undefined.
|
|
2675
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2676
|
+
* For the list of reserved names please see:
|
|
2677
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2678
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2679
|
+
* JSPB instance for transitional soy proto support:
|
|
2680
|
+
* http://goto/soy-param-migration
|
|
2681
|
+
* @return {!Object}
|
|
2682
|
+
*/
|
|
2683
|
+
proto.gateway.web.v1.ProjectInsightKindCount.prototype.toObject = function(opt_includeInstance) {
|
|
2684
|
+
return proto.gateway.web.v1.ProjectInsightKindCount.toObject(opt_includeInstance, this);
|
|
2685
|
+
};
|
|
2686
|
+
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* Static version of the {@see toObject} method.
|
|
2690
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2691
|
+
* the JSPB instance for transitional soy proto support:
|
|
2692
|
+
* http://goto/soy-param-migration
|
|
2693
|
+
* @param {!proto.gateway.web.v1.ProjectInsightKindCount} msg The msg instance to transform.
|
|
2694
|
+
* @return {!Object}
|
|
2695
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2696
|
+
*/
|
|
2697
|
+
proto.gateway.web.v1.ProjectInsightKindCount.toObject = function(includeInstance, msg) {
|
|
2698
|
+
var f, obj = {
|
|
2699
|
+
kind: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2700
|
+
cards: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
2701
|
+
};
|
|
2702
|
+
|
|
2703
|
+
if (includeInstance) {
|
|
2704
|
+
obj.$jspbMessageInstance = msg;
|
|
2705
|
+
}
|
|
2706
|
+
return obj;
|
|
2707
|
+
};
|
|
2708
|
+
}
|
|
2709
|
+
|
|
2710
|
+
|
|
2711
|
+
/**
|
|
2712
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2713
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
2714
|
+
* @return {!proto.gateway.web.v1.ProjectInsightKindCount}
|
|
2715
|
+
*/
|
|
2716
|
+
proto.gateway.web.v1.ProjectInsightKindCount.deserializeBinary = function(bytes) {
|
|
2717
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2718
|
+
var msg = new proto.gateway.web.v1.ProjectInsightKindCount;
|
|
2719
|
+
return proto.gateway.web.v1.ProjectInsightKindCount.deserializeBinaryFromReader(msg, reader);
|
|
2720
|
+
};
|
|
2721
|
+
|
|
2722
|
+
|
|
2723
|
+
/**
|
|
2724
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2725
|
+
* given reader into the given message object.
|
|
2726
|
+
* @param {!proto.gateway.web.v1.ProjectInsightKindCount} msg The message object to deserialize into.
|
|
2727
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2728
|
+
* @return {!proto.gateway.web.v1.ProjectInsightKindCount}
|
|
2729
|
+
*/
|
|
2730
|
+
proto.gateway.web.v1.ProjectInsightKindCount.deserializeBinaryFromReader = function(msg, reader) {
|
|
2731
|
+
while (reader.nextField()) {
|
|
2732
|
+
if (reader.isEndGroup()) {
|
|
2733
|
+
break;
|
|
2734
|
+
}
|
|
2735
|
+
var field = reader.getFieldNumber();
|
|
2736
|
+
switch (field) {
|
|
2737
|
+
case 1:
|
|
2738
|
+
var value = /** @type {!proto.gateway.web.v1.AIProjectInsightKind} */ (reader.readEnum());
|
|
2739
|
+
msg.setKind(value);
|
|
2740
|
+
break;
|
|
2741
|
+
case 2:
|
|
2742
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
2743
|
+
msg.setCards(value);
|
|
2744
|
+
break;
|
|
2745
|
+
default:
|
|
2746
|
+
reader.skipField();
|
|
2747
|
+
break;
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
return msg;
|
|
2751
|
+
};
|
|
2752
|
+
|
|
2753
|
+
|
|
2754
|
+
/**
|
|
2755
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2756
|
+
* @return {!Uint8Array}
|
|
2757
|
+
*/
|
|
2758
|
+
proto.gateway.web.v1.ProjectInsightKindCount.prototype.serializeBinary = function() {
|
|
2759
|
+
var writer = new jspb.BinaryWriter();
|
|
2760
|
+
proto.gateway.web.v1.ProjectInsightKindCount.serializeBinaryToWriter(this, writer);
|
|
2761
|
+
return writer.getResultBuffer();
|
|
2762
|
+
};
|
|
2763
|
+
|
|
2764
|
+
|
|
2765
|
+
/**
|
|
2766
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2767
|
+
* format), writing to the given BinaryWriter.
|
|
2768
|
+
* @param {!proto.gateway.web.v1.ProjectInsightKindCount} message
|
|
2769
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2770
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2771
|
+
*/
|
|
2772
|
+
proto.gateway.web.v1.ProjectInsightKindCount.serializeBinaryToWriter = function(message, writer) {
|
|
2773
|
+
var f = undefined;
|
|
2774
|
+
f = message.getKind();
|
|
2775
|
+
if (f !== 0.0) {
|
|
2776
|
+
writer.writeEnum(
|
|
2777
|
+
1,
|
|
2778
|
+
f
|
|
2779
|
+
);
|
|
2780
|
+
}
|
|
2781
|
+
f = message.getCards();
|
|
2782
|
+
if (f !== 0) {
|
|
2783
|
+
writer.writeUint64(
|
|
2784
|
+
2,
|
|
2785
|
+
f
|
|
2786
|
+
);
|
|
2787
|
+
}
|
|
2788
|
+
};
|
|
2789
|
+
|
|
2790
|
+
|
|
2791
|
+
/**
|
|
2792
|
+
* optional AIProjectInsightKind kind = 1;
|
|
2793
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightKind}
|
|
2794
|
+
*/
|
|
2795
|
+
proto.gateway.web.v1.ProjectInsightKindCount.prototype.getKind = function() {
|
|
2796
|
+
return /** @type {!proto.gateway.web.v1.AIProjectInsightKind} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2797
|
+
};
|
|
2798
|
+
|
|
2799
|
+
|
|
2800
|
+
/**
|
|
2801
|
+
* @param {!proto.gateway.web.v1.AIProjectInsightKind} value
|
|
2802
|
+
* @return {!proto.gateway.web.v1.ProjectInsightKindCount} returns this
|
|
2803
|
+
*/
|
|
2804
|
+
proto.gateway.web.v1.ProjectInsightKindCount.prototype.setKind = function(value) {
|
|
2805
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
2806
|
+
};
|
|
2807
|
+
|
|
2808
|
+
|
|
2809
|
+
/**
|
|
2810
|
+
* optional uint64 cards = 2;
|
|
2811
|
+
* @return {number}
|
|
2812
|
+
*/
|
|
2813
|
+
proto.gateway.web.v1.ProjectInsightKindCount.prototype.getCards = function() {
|
|
2814
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2815
|
+
};
|
|
2816
|
+
|
|
2817
|
+
|
|
2818
|
+
/**
|
|
2819
|
+
* @param {number} value
|
|
2820
|
+
* @return {!proto.gateway.web.v1.ProjectInsightKindCount} returns this
|
|
2821
|
+
*/
|
|
2822
|
+
proto.gateway.web.v1.ProjectInsightKindCount.prototype.setCards = function(value) {
|
|
2823
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
2824
|
+
};
|
|
2825
|
+
|
|
2826
|
+
|
|
2827
|
+
|
|
2828
|
+
|
|
2829
|
+
|
|
1926
2830
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1927
2831
|
/**
|
|
1928
2832
|
* Creates an object representation of this proto.
|