@rapidaai/nodejs 1.0.18 → 1.0.20
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/README.md +201 -1
- package/dist/index.d.mts +191 -65
- package/dist/index.d.ts +191 -65
- package/dist/index.js +862 -313
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +862 -313
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -84,7 +84,6 @@ var require_common_pb = __commonJS({
|
|
|
84
84
|
goog.exportSymbol("proto.Source", null, global);
|
|
85
85
|
goog.exportSymbol("proto.SystemMessage", null, global);
|
|
86
86
|
goog.exportSymbol("proto.Tag", null, global);
|
|
87
|
-
goog.exportSymbol("proto.Telemetry", null, global);
|
|
88
87
|
goog.exportSymbol("proto.TextChatCompletePrompt", null, global);
|
|
89
88
|
goog.exportSymbol("proto.TextPrompt", null, global);
|
|
90
89
|
goog.exportSymbol("proto.ToolCall", null, global);
|
|
@@ -254,13 +253,6 @@ var require_common_pb = __commonJS({
|
|
|
254
253
|
if (goog.DEBUG && !COMPILED) {
|
|
255
254
|
proto.FunctionCall.displayName = "proto.FunctionCall";
|
|
256
255
|
}
|
|
257
|
-
proto.Telemetry = function(opt_data) {
|
|
258
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
259
|
-
};
|
|
260
|
-
goog.inherits(proto.Telemetry, jspb.Message);
|
|
261
|
-
if (goog.DEBUG && !COMPILED) {
|
|
262
|
-
proto.Telemetry.displayName = "proto.Telemetry";
|
|
263
|
-
}
|
|
264
256
|
proto.Knowledge = function(opt_data) {
|
|
265
257
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.Knowledge.repeatedFields_, null);
|
|
266
258
|
};
|
|
@@ -2892,226 +2884,6 @@ var require_common_pb = __commonJS({
|
|
|
2892
2884
|
proto.FunctionCall.prototype.setArguments = function(value) {
|
|
2893
2885
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2894
2886
|
};
|
|
2895
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2896
|
-
proto.Telemetry.prototype.toObject = function(opt_includeInstance) {
|
|
2897
|
-
return proto.Telemetry.toObject(opt_includeInstance, this);
|
|
2898
|
-
};
|
|
2899
|
-
proto.Telemetry.toObject = function(includeInstance, msg) {
|
|
2900
|
-
var f, obj = {
|
|
2901
|
-
stagename: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2902
|
-
starttime: (f = msg.getStarttime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
2903
|
-
endtime: (f = msg.getEndtime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
2904
|
-
duration: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
2905
|
-
attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, void 0) : [],
|
|
2906
|
-
spanid: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
2907
|
-
parentid: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
2908
|
-
};
|
|
2909
|
-
if (includeInstance) {
|
|
2910
|
-
obj.$jspbMessageInstance = msg;
|
|
2911
|
-
}
|
|
2912
|
-
return obj;
|
|
2913
|
-
};
|
|
2914
|
-
}
|
|
2915
|
-
proto.Telemetry.deserializeBinary = function(bytes) {
|
|
2916
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2917
|
-
var msg = new proto.Telemetry();
|
|
2918
|
-
return proto.Telemetry.deserializeBinaryFromReader(msg, reader);
|
|
2919
|
-
};
|
|
2920
|
-
proto.Telemetry.deserializeBinaryFromReader = function(msg, reader) {
|
|
2921
|
-
while (reader.nextField()) {
|
|
2922
|
-
if (reader.isEndGroup()) {
|
|
2923
|
-
break;
|
|
2924
|
-
}
|
|
2925
|
-
var field = reader.getFieldNumber();
|
|
2926
|
-
switch (field) {
|
|
2927
|
-
case 1:
|
|
2928
|
-
var value = (
|
|
2929
|
-
/** @type {string} */
|
|
2930
|
-
reader.readString()
|
|
2931
|
-
);
|
|
2932
|
-
msg.setStagename(value);
|
|
2933
|
-
break;
|
|
2934
|
-
case 2:
|
|
2935
|
-
var value = new google_protobuf_timestamp_pb.Timestamp();
|
|
2936
|
-
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
2937
|
-
msg.setStarttime(value);
|
|
2938
|
-
break;
|
|
2939
|
-
case 3:
|
|
2940
|
-
var value = new google_protobuf_timestamp_pb.Timestamp();
|
|
2941
|
-
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
2942
|
-
msg.setEndtime(value);
|
|
2943
|
-
break;
|
|
2944
|
-
case 4:
|
|
2945
|
-
var value = (
|
|
2946
|
-
/** @type {number} */
|
|
2947
|
-
reader.readUint64()
|
|
2948
|
-
);
|
|
2949
|
-
msg.setDuration(value);
|
|
2950
|
-
break;
|
|
2951
|
-
case 5:
|
|
2952
|
-
var value = msg.getAttributesMap();
|
|
2953
|
-
reader.readMessage(value, function(message, reader2) {
|
|
2954
|
-
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
2955
|
-
});
|
|
2956
|
-
break;
|
|
2957
|
-
case 6:
|
|
2958
|
-
var value = (
|
|
2959
|
-
/** @type {string} */
|
|
2960
|
-
reader.readString()
|
|
2961
|
-
);
|
|
2962
|
-
msg.setSpanid(value);
|
|
2963
|
-
break;
|
|
2964
|
-
case 7:
|
|
2965
|
-
var value = (
|
|
2966
|
-
/** @type {string} */
|
|
2967
|
-
reader.readString()
|
|
2968
|
-
);
|
|
2969
|
-
msg.setParentid(value);
|
|
2970
|
-
break;
|
|
2971
|
-
default:
|
|
2972
|
-
reader.skipField();
|
|
2973
|
-
break;
|
|
2974
|
-
}
|
|
2975
|
-
}
|
|
2976
|
-
return msg;
|
|
2977
|
-
};
|
|
2978
|
-
proto.Telemetry.prototype.serializeBinary = function() {
|
|
2979
|
-
var writer = new jspb.BinaryWriter();
|
|
2980
|
-
proto.Telemetry.serializeBinaryToWriter(this, writer);
|
|
2981
|
-
return writer.getResultBuffer();
|
|
2982
|
-
};
|
|
2983
|
-
proto.Telemetry.serializeBinaryToWriter = function(message, writer) {
|
|
2984
|
-
var f = void 0;
|
|
2985
|
-
f = message.getStagename();
|
|
2986
|
-
if (f.length > 0) {
|
|
2987
|
-
writer.writeString(
|
|
2988
|
-
1,
|
|
2989
|
-
f
|
|
2990
|
-
);
|
|
2991
|
-
}
|
|
2992
|
-
f = message.getStarttime();
|
|
2993
|
-
if (f != null) {
|
|
2994
|
-
writer.writeMessage(
|
|
2995
|
-
2,
|
|
2996
|
-
f,
|
|
2997
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
2998
|
-
);
|
|
2999
|
-
}
|
|
3000
|
-
f = message.getEndtime();
|
|
3001
|
-
if (f != null) {
|
|
3002
|
-
writer.writeMessage(
|
|
3003
|
-
3,
|
|
3004
|
-
f,
|
|
3005
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3006
|
-
);
|
|
3007
|
-
}
|
|
3008
|
-
f = message.getDuration();
|
|
3009
|
-
if (f !== 0) {
|
|
3010
|
-
writer.writeUint64(
|
|
3011
|
-
4,
|
|
3012
|
-
f
|
|
3013
|
-
);
|
|
3014
|
-
}
|
|
3015
|
-
f = message.getAttributesMap(true);
|
|
3016
|
-
if (f && f.getLength() > 0) {
|
|
3017
|
-
f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
3018
|
-
}
|
|
3019
|
-
f = message.getSpanid();
|
|
3020
|
-
if (f.length > 0) {
|
|
3021
|
-
writer.writeString(
|
|
3022
|
-
6,
|
|
3023
|
-
f
|
|
3024
|
-
);
|
|
3025
|
-
}
|
|
3026
|
-
f = message.getParentid();
|
|
3027
|
-
if (f.length > 0) {
|
|
3028
|
-
writer.writeString(
|
|
3029
|
-
7,
|
|
3030
|
-
f
|
|
3031
|
-
);
|
|
3032
|
-
}
|
|
3033
|
-
};
|
|
3034
|
-
proto.Telemetry.prototype.getStagename = function() {
|
|
3035
|
-
return (
|
|
3036
|
-
/** @type {string} */
|
|
3037
|
-
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
3038
|
-
);
|
|
3039
|
-
};
|
|
3040
|
-
proto.Telemetry.prototype.setStagename = function(value) {
|
|
3041
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3042
|
-
};
|
|
3043
|
-
proto.Telemetry.prototype.getStarttime = function() {
|
|
3044
|
-
return (
|
|
3045
|
-
/** @type{?proto.google.protobuf.Timestamp} */
|
|
3046
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)
|
|
3047
|
-
);
|
|
3048
|
-
};
|
|
3049
|
-
proto.Telemetry.prototype.setStarttime = function(value) {
|
|
3050
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
3051
|
-
};
|
|
3052
|
-
proto.Telemetry.prototype.clearStarttime = function() {
|
|
3053
|
-
return this.setStarttime(void 0);
|
|
3054
|
-
};
|
|
3055
|
-
proto.Telemetry.prototype.hasStarttime = function() {
|
|
3056
|
-
return jspb.Message.getField(this, 2) != null;
|
|
3057
|
-
};
|
|
3058
|
-
proto.Telemetry.prototype.getEndtime = function() {
|
|
3059
|
-
return (
|
|
3060
|
-
/** @type{?proto.google.protobuf.Timestamp} */
|
|
3061
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)
|
|
3062
|
-
);
|
|
3063
|
-
};
|
|
3064
|
-
proto.Telemetry.prototype.setEndtime = function(value) {
|
|
3065
|
-
return jspb.Message.setWrapperField(this, 3, value);
|
|
3066
|
-
};
|
|
3067
|
-
proto.Telemetry.prototype.clearEndtime = function() {
|
|
3068
|
-
return this.setEndtime(void 0);
|
|
3069
|
-
};
|
|
3070
|
-
proto.Telemetry.prototype.hasEndtime = function() {
|
|
3071
|
-
return jspb.Message.getField(this, 3) != null;
|
|
3072
|
-
};
|
|
3073
|
-
proto.Telemetry.prototype.getDuration = function() {
|
|
3074
|
-
return (
|
|
3075
|
-
/** @type {number} */
|
|
3076
|
-
jspb.Message.getFieldWithDefault(this, 4, 0)
|
|
3077
|
-
);
|
|
3078
|
-
};
|
|
3079
|
-
proto.Telemetry.prototype.setDuration = function(value) {
|
|
3080
|
-
return jspb.Message.setProto3IntField(this, 4, value);
|
|
3081
|
-
};
|
|
3082
|
-
proto.Telemetry.prototype.getAttributesMap = function(opt_noLazyCreate) {
|
|
3083
|
-
return (
|
|
3084
|
-
/** @type {!jspb.Map<string,string>} */
|
|
3085
|
-
jspb.Message.getMapField(
|
|
3086
|
-
this,
|
|
3087
|
-
5,
|
|
3088
|
-
opt_noLazyCreate,
|
|
3089
|
-
null
|
|
3090
|
-
)
|
|
3091
|
-
);
|
|
3092
|
-
};
|
|
3093
|
-
proto.Telemetry.prototype.clearAttributesMap = function() {
|
|
3094
|
-
this.getAttributesMap().clear();
|
|
3095
|
-
return this;
|
|
3096
|
-
};
|
|
3097
|
-
proto.Telemetry.prototype.getSpanid = function() {
|
|
3098
|
-
return (
|
|
3099
|
-
/** @type {string} */
|
|
3100
|
-
jspb.Message.getFieldWithDefault(this, 6, "")
|
|
3101
|
-
);
|
|
3102
|
-
};
|
|
3103
|
-
proto.Telemetry.prototype.setSpanid = function(value) {
|
|
3104
|
-
return jspb.Message.setProto3StringField(this, 6, value);
|
|
3105
|
-
};
|
|
3106
|
-
proto.Telemetry.prototype.getParentid = function() {
|
|
3107
|
-
return (
|
|
3108
|
-
/** @type {string} */
|
|
3109
|
-
jspb.Message.getFieldWithDefault(this, 7, "")
|
|
3110
|
-
);
|
|
3111
|
-
};
|
|
3112
|
-
proto.Telemetry.prototype.setParentid = function(value) {
|
|
3113
|
-
return jspb.Message.setProto3StringField(this, 7, value);
|
|
3114
|
-
};
|
|
3115
2887
|
proto.Knowledge.repeatedFields_ = [8];
|
|
3116
2888
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3117
2889
|
proto.Knowledge.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -6301,6 +6073,7 @@ var require_talk_api_pb = __commonJS({
|
|
|
6301
6073
|
goog.exportSymbol("proto.talk_api.ConversationDisconnection", null, global);
|
|
6302
6074
|
goog.exportSymbol("proto.talk_api.ConversationDisconnection.DisconnectionType", null, global);
|
|
6303
6075
|
goog.exportSymbol("proto.talk_api.ConversationError", null, global);
|
|
6076
|
+
goog.exportSymbol("proto.talk_api.ConversationEvent", null, global);
|
|
6304
6077
|
goog.exportSymbol("proto.talk_api.ConversationInitialization", null, global);
|
|
6305
6078
|
goog.exportSymbol("proto.talk_api.ConversationInitialization.UseridentityCase", null, global);
|
|
6306
6079
|
goog.exportSymbol("proto.talk_api.ConversationInterruption", null, global);
|
|
@@ -6368,6 +6141,13 @@ var require_talk_api_pb = __commonJS({
|
|
|
6368
6141
|
if (goog.DEBUG && !COMPILED) {
|
|
6369
6142
|
proto.talk_api.ConversationError.displayName = "proto.talk_api.ConversationError";
|
|
6370
6143
|
}
|
|
6144
|
+
proto.talk_api.ConversationEvent = function(opt_data) {
|
|
6145
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
6146
|
+
};
|
|
6147
|
+
goog.inherits(proto.talk_api.ConversationEvent, jspb.Message);
|
|
6148
|
+
if (goog.DEBUG && !COMPILED) {
|
|
6149
|
+
proto.talk_api.ConversationEvent.displayName = "proto.talk_api.ConversationEvent";
|
|
6150
|
+
}
|
|
6371
6151
|
proto.talk_api.AudioConfig = function(opt_data) {
|
|
6372
6152
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
6373
6153
|
};
|
|
@@ -7338,6 +7118,149 @@ var require_talk_api_pb = __commonJS({
|
|
|
7338
7118
|
this.getDetailsMap().clear();
|
|
7339
7119
|
return this;
|
|
7340
7120
|
};
|
|
7121
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7122
|
+
proto.talk_api.ConversationEvent.prototype.toObject = function(opt_includeInstance) {
|
|
7123
|
+
return proto.talk_api.ConversationEvent.toObject(opt_includeInstance, this);
|
|
7124
|
+
};
|
|
7125
|
+
proto.talk_api.ConversationEvent.toObject = function(includeInstance, msg) {
|
|
7126
|
+
var f, obj = {
|
|
7127
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7128
|
+
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7129
|
+
dataMap: (f = msg.getDataMap()) ? f.toObject(includeInstance, void 0) : [],
|
|
7130
|
+
time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
7131
|
+
};
|
|
7132
|
+
if (includeInstance) {
|
|
7133
|
+
obj.$jspbMessageInstance = msg;
|
|
7134
|
+
}
|
|
7135
|
+
return obj;
|
|
7136
|
+
};
|
|
7137
|
+
}
|
|
7138
|
+
proto.talk_api.ConversationEvent.deserializeBinary = function(bytes) {
|
|
7139
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7140
|
+
var msg = new proto.talk_api.ConversationEvent();
|
|
7141
|
+
return proto.talk_api.ConversationEvent.deserializeBinaryFromReader(msg, reader);
|
|
7142
|
+
};
|
|
7143
|
+
proto.talk_api.ConversationEvent.deserializeBinaryFromReader = function(msg, reader) {
|
|
7144
|
+
while (reader.nextField()) {
|
|
7145
|
+
if (reader.isEndGroup()) {
|
|
7146
|
+
break;
|
|
7147
|
+
}
|
|
7148
|
+
var field = reader.getFieldNumber();
|
|
7149
|
+
switch (field) {
|
|
7150
|
+
case 1:
|
|
7151
|
+
var value = (
|
|
7152
|
+
/** @type {string} */
|
|
7153
|
+
reader.readString()
|
|
7154
|
+
);
|
|
7155
|
+
msg.setId(value);
|
|
7156
|
+
break;
|
|
7157
|
+
case 2:
|
|
7158
|
+
var value = (
|
|
7159
|
+
/** @type {string} */
|
|
7160
|
+
reader.readString()
|
|
7161
|
+
);
|
|
7162
|
+
msg.setName(value);
|
|
7163
|
+
break;
|
|
7164
|
+
case 3:
|
|
7165
|
+
var value = msg.getDataMap();
|
|
7166
|
+
reader.readMessage(value, function(message, reader2) {
|
|
7167
|
+
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
7168
|
+
});
|
|
7169
|
+
break;
|
|
7170
|
+
case 4:
|
|
7171
|
+
var value = new google_protobuf_timestamp_pb.Timestamp();
|
|
7172
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
7173
|
+
msg.setTime(value);
|
|
7174
|
+
break;
|
|
7175
|
+
default:
|
|
7176
|
+
reader.skipField();
|
|
7177
|
+
break;
|
|
7178
|
+
}
|
|
7179
|
+
}
|
|
7180
|
+
return msg;
|
|
7181
|
+
};
|
|
7182
|
+
proto.talk_api.ConversationEvent.prototype.serializeBinary = function() {
|
|
7183
|
+
var writer = new jspb.BinaryWriter();
|
|
7184
|
+
proto.talk_api.ConversationEvent.serializeBinaryToWriter(this, writer);
|
|
7185
|
+
return writer.getResultBuffer();
|
|
7186
|
+
};
|
|
7187
|
+
proto.talk_api.ConversationEvent.serializeBinaryToWriter = function(message, writer) {
|
|
7188
|
+
var f = void 0;
|
|
7189
|
+
f = message.getId();
|
|
7190
|
+
if (f.length > 0) {
|
|
7191
|
+
writer.writeString(
|
|
7192
|
+
1,
|
|
7193
|
+
f
|
|
7194
|
+
);
|
|
7195
|
+
}
|
|
7196
|
+
f = message.getName();
|
|
7197
|
+
if (f.length > 0) {
|
|
7198
|
+
writer.writeString(
|
|
7199
|
+
2,
|
|
7200
|
+
f
|
|
7201
|
+
);
|
|
7202
|
+
}
|
|
7203
|
+
f = message.getDataMap(true);
|
|
7204
|
+
if (f && f.getLength() > 0) {
|
|
7205
|
+
f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
7206
|
+
}
|
|
7207
|
+
f = message.getTime();
|
|
7208
|
+
if (f != null) {
|
|
7209
|
+
writer.writeMessage(
|
|
7210
|
+
4,
|
|
7211
|
+
f,
|
|
7212
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
7213
|
+
);
|
|
7214
|
+
}
|
|
7215
|
+
};
|
|
7216
|
+
proto.talk_api.ConversationEvent.prototype.getId = function() {
|
|
7217
|
+
return (
|
|
7218
|
+
/** @type {string} */
|
|
7219
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
7220
|
+
);
|
|
7221
|
+
};
|
|
7222
|
+
proto.talk_api.ConversationEvent.prototype.setId = function(value) {
|
|
7223
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7224
|
+
};
|
|
7225
|
+
proto.talk_api.ConversationEvent.prototype.getName = function() {
|
|
7226
|
+
return (
|
|
7227
|
+
/** @type {string} */
|
|
7228
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
7229
|
+
);
|
|
7230
|
+
};
|
|
7231
|
+
proto.talk_api.ConversationEvent.prototype.setName = function(value) {
|
|
7232
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7233
|
+
};
|
|
7234
|
+
proto.talk_api.ConversationEvent.prototype.getDataMap = function(opt_noLazyCreate) {
|
|
7235
|
+
return (
|
|
7236
|
+
/** @type {!jspb.Map<string,string>} */
|
|
7237
|
+
jspb.Message.getMapField(
|
|
7238
|
+
this,
|
|
7239
|
+
3,
|
|
7240
|
+
opt_noLazyCreate,
|
|
7241
|
+
null
|
|
7242
|
+
)
|
|
7243
|
+
);
|
|
7244
|
+
};
|
|
7245
|
+
proto.talk_api.ConversationEvent.prototype.clearDataMap = function() {
|
|
7246
|
+
this.getDataMap().clear();
|
|
7247
|
+
return this;
|
|
7248
|
+
};
|
|
7249
|
+
proto.talk_api.ConversationEvent.prototype.getTime = function() {
|
|
7250
|
+
return (
|
|
7251
|
+
/** @type{?proto.google.protobuf.Timestamp} */
|
|
7252
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)
|
|
7253
|
+
);
|
|
7254
|
+
};
|
|
7255
|
+
proto.talk_api.ConversationEvent.prototype.setTime = function(value) {
|
|
7256
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
7257
|
+
};
|
|
7258
|
+
proto.talk_api.ConversationEvent.prototype.clearTime = function() {
|
|
7259
|
+
return this.setTime(void 0);
|
|
7260
|
+
};
|
|
7261
|
+
proto.talk_api.ConversationEvent.prototype.hasTime = function() {
|
|
7262
|
+
return jspb.Message.getField(this, 4) != null;
|
|
7263
|
+
};
|
|
7341
7264
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7342
7265
|
proto.talk_api.AudioConfig.prototype.toObject = function(opt_includeInstance) {
|
|
7343
7266
|
return proto.talk_api.AudioConfig.toObject(opt_includeInstance, this);
|
|
@@ -9064,7 +8987,7 @@ var require_talk_api_pb = __commonJS({
|
|
|
9064
8987
|
proto.talk_api.AssistantTalkRequest.prototype.hasDisconnection = function() {
|
|
9065
8988
|
return jspb.Message.getField(this, 6) != null;
|
|
9066
8989
|
};
|
|
9067
|
-
proto.talk_api.AssistantTalkResponse.oneofGroups_ = [[8, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 15]];
|
|
8990
|
+
proto.talk_api.AssistantTalkResponse.oneofGroups_ = [[8, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 15]];
|
|
9068
8991
|
proto.talk_api.AssistantTalkResponse.DataCase = {
|
|
9069
8992
|
DATA_NOT_SET: 0,
|
|
9070
8993
|
INITIALIZATION: 8,
|
|
@@ -9078,6 +9001,7 @@ var require_talk_api_pb = __commonJS({
|
|
|
9078
9001
|
METADATA: 17,
|
|
9079
9002
|
METRIC: 18,
|
|
9080
9003
|
DISCONNECTION: 19,
|
|
9004
|
+
EVENT: 20,
|
|
9081
9005
|
ERROR: 15
|
|
9082
9006
|
};
|
|
9083
9007
|
proto.talk_api.AssistantTalkResponse.prototype.getDataCase = function() {
|
|
@@ -9105,6 +9029,7 @@ var require_talk_api_pb = __commonJS({
|
|
|
9105
9029
|
metadata: (f = msg.getMetadata()) && proto.talk_api.ConversationMetadata.toObject(includeInstance, f),
|
|
9106
9030
|
metric: (f = msg.getMetric()) && proto.talk_api.ConversationMetric.toObject(includeInstance, f),
|
|
9107
9031
|
disconnection: (f = msg.getDisconnection()) && proto.talk_api.ConversationDisconnection.toObject(includeInstance, f),
|
|
9032
|
+
event: (f = msg.getEvent()) && proto.talk_api.ConversationEvent.toObject(includeInstance, f),
|
|
9108
9033
|
error: (f = msg.getError()) && proto.talk_api.ConversationError.toObject(includeInstance, f)
|
|
9109
9034
|
};
|
|
9110
9035
|
if (includeInstance) {
|
|
@@ -9194,6 +9119,11 @@ var require_talk_api_pb = __commonJS({
|
|
|
9194
9119
|
reader.readMessage(value, proto.talk_api.ConversationDisconnection.deserializeBinaryFromReader);
|
|
9195
9120
|
msg.setDisconnection(value);
|
|
9196
9121
|
break;
|
|
9122
|
+
case 20:
|
|
9123
|
+
var value = new proto.talk_api.ConversationEvent();
|
|
9124
|
+
reader.readMessage(value, proto.talk_api.ConversationEvent.deserializeBinaryFromReader);
|
|
9125
|
+
msg.setEvent(value);
|
|
9126
|
+
break;
|
|
9197
9127
|
case 15:
|
|
9198
9128
|
var value = new proto.talk_api.ConversationError();
|
|
9199
9129
|
reader.readMessage(value, proto.talk_api.ConversationError.deserializeBinaryFromReader);
|
|
@@ -9315,6 +9245,14 @@ var require_talk_api_pb = __commonJS({
|
|
|
9315
9245
|
proto.talk_api.ConversationDisconnection.serializeBinaryToWriter
|
|
9316
9246
|
);
|
|
9317
9247
|
}
|
|
9248
|
+
f = message.getEvent();
|
|
9249
|
+
if (f != null) {
|
|
9250
|
+
writer.writeMessage(
|
|
9251
|
+
20,
|
|
9252
|
+
f,
|
|
9253
|
+
proto.talk_api.ConversationEvent.serializeBinaryToWriter
|
|
9254
|
+
);
|
|
9255
|
+
}
|
|
9318
9256
|
f = message.getError();
|
|
9319
9257
|
if (f != null) {
|
|
9320
9258
|
writer.writeMessage(
|
|
@@ -9507,6 +9445,21 @@ var require_talk_api_pb = __commonJS({
|
|
|
9507
9445
|
proto.talk_api.AssistantTalkResponse.prototype.hasDisconnection = function() {
|
|
9508
9446
|
return jspb.Message.getField(this, 19) != null;
|
|
9509
9447
|
};
|
|
9448
|
+
proto.talk_api.AssistantTalkResponse.prototype.getEvent = function() {
|
|
9449
|
+
return (
|
|
9450
|
+
/** @type{?proto.talk_api.ConversationEvent} */
|
|
9451
|
+
jspb.Message.getWrapperField(this, proto.talk_api.ConversationEvent, 20)
|
|
9452
|
+
);
|
|
9453
|
+
};
|
|
9454
|
+
proto.talk_api.AssistantTalkResponse.prototype.setEvent = function(value) {
|
|
9455
|
+
return jspb.Message.setOneofWrapperField(this, 20, proto.talk_api.AssistantTalkResponse.oneofGroups_[0], value);
|
|
9456
|
+
};
|
|
9457
|
+
proto.talk_api.AssistantTalkResponse.prototype.clearEvent = function() {
|
|
9458
|
+
return this.setEvent(void 0);
|
|
9459
|
+
};
|
|
9460
|
+
proto.talk_api.AssistantTalkResponse.prototype.hasEvent = function() {
|
|
9461
|
+
return jspb.Message.getField(this, 20) != null;
|
|
9462
|
+
};
|
|
9510
9463
|
proto.talk_api.AssistantTalkResponse.prototype.getError = function() {
|
|
9511
9464
|
return (
|
|
9512
9465
|
/** @type{?proto.talk_api.ConversationError} */
|
|
@@ -16512,11 +16465,9 @@ var require_assistant_tool_pb = __commonJS({
|
|
|
16512
16465
|
assistantconversationid: jspb.Message.getFieldWithDefault(msg, 11, "0"),
|
|
16513
16466
|
assistantconversationmessageid: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
16514
16467
|
assetprefix: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
16515
|
-
executionmethod: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
16516
16468
|
timetaken: jspb.Message.getFieldWithDefault(msg, 16, "0"),
|
|
16517
|
-
assistanttoolid: jspb.Message.getFieldWithDefault(msg, 13, "0"),
|
|
16518
16469
|
assistanttoolname: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
16519
|
-
|
|
16470
|
+
toolcallid: jspb.Message.getFieldWithDefault(msg, 19, "")
|
|
16520
16471
|
};
|
|
16521
16472
|
if (includeInstance) {
|
|
16522
16473
|
obj.$jspbMessageInstance = msg;
|
|
@@ -16617,13 +16568,6 @@ var require_assistant_tool_pb = __commonJS({
|
|
|
16617
16568
|
);
|
|
16618
16569
|
msg.setAssetprefix(value);
|
|
16619
16570
|
break;
|
|
16620
|
-
case 15:
|
|
16621
|
-
var value = (
|
|
16622
|
-
/** @type {string} */
|
|
16623
|
-
reader.readString()
|
|
16624
|
-
);
|
|
16625
|
-
msg.setExecutionmethod(value);
|
|
16626
|
-
break;
|
|
16627
16571
|
case 16:
|
|
16628
16572
|
var value = (
|
|
16629
16573
|
/** @type {string} */
|
|
@@ -16631,24 +16575,19 @@ var require_assistant_tool_pb = __commonJS({
|
|
|
16631
16575
|
);
|
|
16632
16576
|
msg.setTimetaken(value);
|
|
16633
16577
|
break;
|
|
16634
|
-
case
|
|
16578
|
+
case 17:
|
|
16635
16579
|
var value = (
|
|
16636
16580
|
/** @type {string} */
|
|
16637
|
-
reader.
|
|
16581
|
+
reader.readString()
|
|
16638
16582
|
);
|
|
16639
|
-
msg.
|
|
16583
|
+
msg.setAssistanttoolname(value);
|
|
16640
16584
|
break;
|
|
16641
|
-
case
|
|
16585
|
+
case 19:
|
|
16642
16586
|
var value = (
|
|
16643
16587
|
/** @type {string} */
|
|
16644
16588
|
reader.readString()
|
|
16645
16589
|
);
|
|
16646
|
-
msg.
|
|
16647
|
-
break;
|
|
16648
|
-
case 18:
|
|
16649
|
-
var value = new proto.assistant_api.AssistantTool();
|
|
16650
|
-
reader.readMessage(value, proto.assistant_api.AssistantTool.deserializeBinaryFromReader);
|
|
16651
|
-
msg.setAssistanttool(value);
|
|
16590
|
+
msg.setToolcallid(value);
|
|
16652
16591
|
break;
|
|
16653
16592
|
default:
|
|
16654
16593
|
reader.skipField();
|
|
@@ -16760,13 +16699,6 @@ var require_assistant_tool_pb = __commonJS({
|
|
|
16760
16699
|
f
|
|
16761
16700
|
);
|
|
16762
16701
|
}
|
|
16763
|
-
f = message.getExecutionmethod();
|
|
16764
|
-
if (f.length > 0) {
|
|
16765
|
-
writer.writeString(
|
|
16766
|
-
15,
|
|
16767
|
-
f
|
|
16768
|
-
);
|
|
16769
|
-
}
|
|
16770
16702
|
f = message.getTimetaken();
|
|
16771
16703
|
if (parseInt(f, 10) !== 0) {
|
|
16772
16704
|
writer.writeUint64String(
|
|
@@ -16774,13 +16706,6 @@ var require_assistant_tool_pb = __commonJS({
|
|
|
16774
16706
|
f
|
|
16775
16707
|
);
|
|
16776
16708
|
}
|
|
16777
|
-
f = message.getAssistanttoolid();
|
|
16778
|
-
if (parseInt(f, 10) !== 0) {
|
|
16779
|
-
writer.writeUint64String(
|
|
16780
|
-
13,
|
|
16781
|
-
f
|
|
16782
|
-
);
|
|
16783
|
-
}
|
|
16784
16709
|
f = message.getAssistanttoolname();
|
|
16785
16710
|
if (f.length > 0) {
|
|
16786
16711
|
writer.writeString(
|
|
@@ -16788,12 +16713,11 @@ var require_assistant_tool_pb = __commonJS({
|
|
|
16788
16713
|
f
|
|
16789
16714
|
);
|
|
16790
16715
|
}
|
|
16791
|
-
f = message.
|
|
16792
|
-
if (f
|
|
16793
|
-
writer.
|
|
16794
|
-
|
|
16795
|
-
f
|
|
16796
|
-
proto.assistant_api.AssistantTool.serializeBinaryToWriter
|
|
16716
|
+
f = message.getToolcallid();
|
|
16717
|
+
if (f.length > 0) {
|
|
16718
|
+
writer.writeString(
|
|
16719
|
+
19,
|
|
16720
|
+
f
|
|
16797
16721
|
);
|
|
16798
16722
|
}
|
|
16799
16723
|
};
|
|
@@ -16944,15 +16868,6 @@ var require_assistant_tool_pb = __commonJS({
|
|
|
16944
16868
|
proto.assistant_api.AssistantToolLog.prototype.setAssetprefix = function(value) {
|
|
16945
16869
|
return jspb.Message.setProto3StringField(this, 14, value);
|
|
16946
16870
|
};
|
|
16947
|
-
proto.assistant_api.AssistantToolLog.prototype.getExecutionmethod = function() {
|
|
16948
|
-
return (
|
|
16949
|
-
/** @type {string} */
|
|
16950
|
-
jspb.Message.getFieldWithDefault(this, 15, "")
|
|
16951
|
-
);
|
|
16952
|
-
};
|
|
16953
|
-
proto.assistant_api.AssistantToolLog.prototype.setExecutionmethod = function(value) {
|
|
16954
|
-
return jspb.Message.setProto3StringField(this, 15, value);
|
|
16955
|
-
};
|
|
16956
16871
|
proto.assistant_api.AssistantToolLog.prototype.getTimetaken = function() {
|
|
16957
16872
|
return (
|
|
16958
16873
|
/** @type {string} */
|
|
@@ -16962,15 +16877,6 @@ var require_assistant_tool_pb = __commonJS({
|
|
|
16962
16877
|
proto.assistant_api.AssistantToolLog.prototype.setTimetaken = function(value) {
|
|
16963
16878
|
return jspb.Message.setProto3StringIntField(this, 16, value);
|
|
16964
16879
|
};
|
|
16965
|
-
proto.assistant_api.AssistantToolLog.prototype.getAssistanttoolid = function() {
|
|
16966
|
-
return (
|
|
16967
|
-
/** @type {string} */
|
|
16968
|
-
jspb.Message.getFieldWithDefault(this, 13, "0")
|
|
16969
|
-
);
|
|
16970
|
-
};
|
|
16971
|
-
proto.assistant_api.AssistantToolLog.prototype.setAssistanttoolid = function(value) {
|
|
16972
|
-
return jspb.Message.setProto3StringIntField(this, 13, value);
|
|
16973
|
-
};
|
|
16974
16880
|
proto.assistant_api.AssistantToolLog.prototype.getAssistanttoolname = function() {
|
|
16975
16881
|
return (
|
|
16976
16882
|
/** @type {string} */
|
|
@@ -16980,20 +16886,14 @@ var require_assistant_tool_pb = __commonJS({
|
|
|
16980
16886
|
proto.assistant_api.AssistantToolLog.prototype.setAssistanttoolname = function(value) {
|
|
16981
16887
|
return jspb.Message.setProto3StringField(this, 17, value);
|
|
16982
16888
|
};
|
|
16983
|
-
proto.assistant_api.AssistantToolLog.prototype.
|
|
16889
|
+
proto.assistant_api.AssistantToolLog.prototype.getToolcallid = function() {
|
|
16984
16890
|
return (
|
|
16985
|
-
/** @type{
|
|
16986
|
-
jspb.Message.
|
|
16891
|
+
/** @type {string} */
|
|
16892
|
+
jspb.Message.getFieldWithDefault(this, 19, "")
|
|
16987
16893
|
);
|
|
16988
16894
|
};
|
|
16989
|
-
proto.assistant_api.AssistantToolLog.prototype.
|
|
16990
|
-
return jspb.Message.
|
|
16991
|
-
};
|
|
16992
|
-
proto.assistant_api.AssistantToolLog.prototype.clearAssistanttool = function() {
|
|
16993
|
-
return this.setAssistanttool(void 0);
|
|
16994
|
-
};
|
|
16995
|
-
proto.assistant_api.AssistantToolLog.prototype.hasAssistanttool = function() {
|
|
16996
|
-
return jspb.Message.getField(this, 18) != null;
|
|
16895
|
+
proto.assistant_api.AssistantToolLog.prototype.setToolcallid = function(value) {
|
|
16896
|
+
return jspb.Message.setProto3StringField(this, 19, value);
|
|
16997
16897
|
};
|
|
16998
16898
|
goog.object.extend(exports, proto.assistant_api);
|
|
16999
16899
|
}
|
|
@@ -25930,6 +25830,10 @@ var require_assistant_api_pb = __commonJS({
|
|
|
25930
25830
|
goog.exportSymbol("proto.assistant_api.GetAssistantConversationResponse", null, global);
|
|
25931
25831
|
goog.exportSymbol("proto.assistant_api.GetAssistantRequest", null, global);
|
|
25932
25832
|
goog.exportSymbol("proto.assistant_api.GetAssistantResponse", null, global);
|
|
25833
|
+
goog.exportSymbol("proto.assistant_api.TelemetryEvent", null, global);
|
|
25834
|
+
goog.exportSymbol("proto.assistant_api.TelemetryMetric", null, global);
|
|
25835
|
+
goog.exportSymbol("proto.assistant_api.TelemetryRecord", null, global);
|
|
25836
|
+
goog.exportSymbol("proto.assistant_api.TelemetryRecord.RecordCase", null, global);
|
|
25933
25837
|
goog.exportSymbol("proto.assistant_api.UpdateAssistantDetailRequest", null, global);
|
|
25934
25838
|
proto.assistant_api.Assistant = function(opt_data) {
|
|
25935
25839
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.Assistant.repeatedFields_, null);
|
|
@@ -25987,6 +25891,27 @@ var require_assistant_api_pb = __commonJS({
|
|
|
25987
25891
|
if (goog.DEBUG && !COMPILED) {
|
|
25988
25892
|
proto.assistant_api.GetAllAssistantTelemetryRequest.displayName = "proto.assistant_api.GetAllAssistantTelemetryRequest";
|
|
25989
25893
|
}
|
|
25894
|
+
proto.assistant_api.TelemetryEvent = function(opt_data) {
|
|
25895
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
25896
|
+
};
|
|
25897
|
+
goog.inherits(proto.assistant_api.TelemetryEvent, jspb.Message);
|
|
25898
|
+
if (goog.DEBUG && !COMPILED) {
|
|
25899
|
+
proto.assistant_api.TelemetryEvent.displayName = "proto.assistant_api.TelemetryEvent";
|
|
25900
|
+
}
|
|
25901
|
+
proto.assistant_api.TelemetryMetric = function(opt_data) {
|
|
25902
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.TelemetryMetric.repeatedFields_, null);
|
|
25903
|
+
};
|
|
25904
|
+
goog.inherits(proto.assistant_api.TelemetryMetric, jspb.Message);
|
|
25905
|
+
if (goog.DEBUG && !COMPILED) {
|
|
25906
|
+
proto.assistant_api.TelemetryMetric.displayName = "proto.assistant_api.TelemetryMetric";
|
|
25907
|
+
}
|
|
25908
|
+
proto.assistant_api.TelemetryRecord = function(opt_data) {
|
|
25909
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.assistant_api.TelemetryRecord.oneofGroups_);
|
|
25910
|
+
};
|
|
25911
|
+
goog.inherits(proto.assistant_api.TelemetryRecord, jspb.Message);
|
|
25912
|
+
if (goog.DEBUG && !COMPILED) {
|
|
25913
|
+
proto.assistant_api.TelemetryRecord.displayName = "proto.assistant_api.TelemetryRecord";
|
|
25914
|
+
}
|
|
25990
25915
|
proto.assistant_api.GetAllAssistantTelemetryResponse = function(opt_data) {
|
|
25991
25916
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantTelemetryResponse.repeatedFields_, null);
|
|
25992
25917
|
};
|
|
@@ -27798,6 +27723,602 @@ var require_assistant_api_pb = __commonJS({
|
|
|
27798
27723
|
proto.assistant_api.GetAllAssistantTelemetryRequest.prototype.hasAssistant = function() {
|
|
27799
27724
|
return jspb.Message.getField(this, 3) != null;
|
|
27800
27725
|
};
|
|
27726
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
27727
|
+
proto.assistant_api.TelemetryEvent.prototype.toObject = function(opt_includeInstance) {
|
|
27728
|
+
return proto.assistant_api.TelemetryEvent.toObject(opt_includeInstance, this);
|
|
27729
|
+
};
|
|
27730
|
+
proto.assistant_api.TelemetryEvent.toObject = function(includeInstance, msg) {
|
|
27731
|
+
var f, obj = {
|
|
27732
|
+
messageid: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
27733
|
+
assistantid: jspb.Message.getFieldWithDefault(msg, 2, "0"),
|
|
27734
|
+
assistantconversationid: jspb.Message.getFieldWithDefault(msg, 3, "0"),
|
|
27735
|
+
projectid: jspb.Message.getFieldWithDefault(msg, 4, "0"),
|
|
27736
|
+
organizationid: jspb.Message.getFieldWithDefault(msg, 5, "0"),
|
|
27737
|
+
name: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
27738
|
+
dataMap: (f = msg.getDataMap()) ? f.toObject(includeInstance, void 0) : [],
|
|
27739
|
+
time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
27740
|
+
};
|
|
27741
|
+
if (includeInstance) {
|
|
27742
|
+
obj.$jspbMessageInstance = msg;
|
|
27743
|
+
}
|
|
27744
|
+
return obj;
|
|
27745
|
+
};
|
|
27746
|
+
}
|
|
27747
|
+
proto.assistant_api.TelemetryEvent.deserializeBinary = function(bytes) {
|
|
27748
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
27749
|
+
var msg = new proto.assistant_api.TelemetryEvent();
|
|
27750
|
+
return proto.assistant_api.TelemetryEvent.deserializeBinaryFromReader(msg, reader);
|
|
27751
|
+
};
|
|
27752
|
+
proto.assistant_api.TelemetryEvent.deserializeBinaryFromReader = function(msg, reader) {
|
|
27753
|
+
while (reader.nextField()) {
|
|
27754
|
+
if (reader.isEndGroup()) {
|
|
27755
|
+
break;
|
|
27756
|
+
}
|
|
27757
|
+
var field = reader.getFieldNumber();
|
|
27758
|
+
switch (field) {
|
|
27759
|
+
case 1:
|
|
27760
|
+
var value = (
|
|
27761
|
+
/** @type {string} */
|
|
27762
|
+
reader.readString()
|
|
27763
|
+
);
|
|
27764
|
+
msg.setMessageid(value);
|
|
27765
|
+
break;
|
|
27766
|
+
case 2:
|
|
27767
|
+
var value = (
|
|
27768
|
+
/** @type {string} */
|
|
27769
|
+
reader.readUint64String()
|
|
27770
|
+
);
|
|
27771
|
+
msg.setAssistantid(value);
|
|
27772
|
+
break;
|
|
27773
|
+
case 3:
|
|
27774
|
+
var value = (
|
|
27775
|
+
/** @type {string} */
|
|
27776
|
+
reader.readUint64String()
|
|
27777
|
+
);
|
|
27778
|
+
msg.setAssistantconversationid(value);
|
|
27779
|
+
break;
|
|
27780
|
+
case 4:
|
|
27781
|
+
var value = (
|
|
27782
|
+
/** @type {string} */
|
|
27783
|
+
reader.readUint64String()
|
|
27784
|
+
);
|
|
27785
|
+
msg.setProjectid(value);
|
|
27786
|
+
break;
|
|
27787
|
+
case 5:
|
|
27788
|
+
var value = (
|
|
27789
|
+
/** @type {string} */
|
|
27790
|
+
reader.readUint64String()
|
|
27791
|
+
);
|
|
27792
|
+
msg.setOrganizationid(value);
|
|
27793
|
+
break;
|
|
27794
|
+
case 6:
|
|
27795
|
+
var value = (
|
|
27796
|
+
/** @type {string} */
|
|
27797
|
+
reader.readString()
|
|
27798
|
+
);
|
|
27799
|
+
msg.setName(value);
|
|
27800
|
+
break;
|
|
27801
|
+
case 7:
|
|
27802
|
+
var value = msg.getDataMap();
|
|
27803
|
+
reader.readMessage(value, function(message, reader2) {
|
|
27804
|
+
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
27805
|
+
});
|
|
27806
|
+
break;
|
|
27807
|
+
case 8:
|
|
27808
|
+
var value = new google_protobuf_timestamp_pb.Timestamp();
|
|
27809
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
27810
|
+
msg.setTime(value);
|
|
27811
|
+
break;
|
|
27812
|
+
default:
|
|
27813
|
+
reader.skipField();
|
|
27814
|
+
break;
|
|
27815
|
+
}
|
|
27816
|
+
}
|
|
27817
|
+
return msg;
|
|
27818
|
+
};
|
|
27819
|
+
proto.assistant_api.TelemetryEvent.prototype.serializeBinary = function() {
|
|
27820
|
+
var writer = new jspb.BinaryWriter();
|
|
27821
|
+
proto.assistant_api.TelemetryEvent.serializeBinaryToWriter(this, writer);
|
|
27822
|
+
return writer.getResultBuffer();
|
|
27823
|
+
};
|
|
27824
|
+
proto.assistant_api.TelemetryEvent.serializeBinaryToWriter = function(message, writer) {
|
|
27825
|
+
var f = void 0;
|
|
27826
|
+
f = message.getMessageid();
|
|
27827
|
+
if (f.length > 0) {
|
|
27828
|
+
writer.writeString(
|
|
27829
|
+
1,
|
|
27830
|
+
f
|
|
27831
|
+
);
|
|
27832
|
+
}
|
|
27833
|
+
f = message.getAssistantid();
|
|
27834
|
+
if (parseInt(f, 10) !== 0) {
|
|
27835
|
+
writer.writeUint64String(
|
|
27836
|
+
2,
|
|
27837
|
+
f
|
|
27838
|
+
);
|
|
27839
|
+
}
|
|
27840
|
+
f = message.getAssistantconversationid();
|
|
27841
|
+
if (parseInt(f, 10) !== 0) {
|
|
27842
|
+
writer.writeUint64String(
|
|
27843
|
+
3,
|
|
27844
|
+
f
|
|
27845
|
+
);
|
|
27846
|
+
}
|
|
27847
|
+
f = message.getProjectid();
|
|
27848
|
+
if (parseInt(f, 10) !== 0) {
|
|
27849
|
+
writer.writeUint64String(
|
|
27850
|
+
4,
|
|
27851
|
+
f
|
|
27852
|
+
);
|
|
27853
|
+
}
|
|
27854
|
+
f = message.getOrganizationid();
|
|
27855
|
+
if (parseInt(f, 10) !== 0) {
|
|
27856
|
+
writer.writeUint64String(
|
|
27857
|
+
5,
|
|
27858
|
+
f
|
|
27859
|
+
);
|
|
27860
|
+
}
|
|
27861
|
+
f = message.getName();
|
|
27862
|
+
if (f.length > 0) {
|
|
27863
|
+
writer.writeString(
|
|
27864
|
+
6,
|
|
27865
|
+
f
|
|
27866
|
+
);
|
|
27867
|
+
}
|
|
27868
|
+
f = message.getDataMap(true);
|
|
27869
|
+
if (f && f.getLength() > 0) {
|
|
27870
|
+
f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
27871
|
+
}
|
|
27872
|
+
f = message.getTime();
|
|
27873
|
+
if (f != null) {
|
|
27874
|
+
writer.writeMessage(
|
|
27875
|
+
8,
|
|
27876
|
+
f,
|
|
27877
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
27878
|
+
);
|
|
27879
|
+
}
|
|
27880
|
+
};
|
|
27881
|
+
proto.assistant_api.TelemetryEvent.prototype.getMessageid = function() {
|
|
27882
|
+
return (
|
|
27883
|
+
/** @type {string} */
|
|
27884
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
27885
|
+
);
|
|
27886
|
+
};
|
|
27887
|
+
proto.assistant_api.TelemetryEvent.prototype.setMessageid = function(value) {
|
|
27888
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
27889
|
+
};
|
|
27890
|
+
proto.assistant_api.TelemetryEvent.prototype.getAssistantid = function() {
|
|
27891
|
+
return (
|
|
27892
|
+
/** @type {string} */
|
|
27893
|
+
jspb.Message.getFieldWithDefault(this, 2, "0")
|
|
27894
|
+
);
|
|
27895
|
+
};
|
|
27896
|
+
proto.assistant_api.TelemetryEvent.prototype.setAssistantid = function(value) {
|
|
27897
|
+
return jspb.Message.setProto3StringIntField(this, 2, value);
|
|
27898
|
+
};
|
|
27899
|
+
proto.assistant_api.TelemetryEvent.prototype.getAssistantconversationid = function() {
|
|
27900
|
+
return (
|
|
27901
|
+
/** @type {string} */
|
|
27902
|
+
jspb.Message.getFieldWithDefault(this, 3, "0")
|
|
27903
|
+
);
|
|
27904
|
+
};
|
|
27905
|
+
proto.assistant_api.TelemetryEvent.prototype.setAssistantconversationid = function(value) {
|
|
27906
|
+
return jspb.Message.setProto3StringIntField(this, 3, value);
|
|
27907
|
+
};
|
|
27908
|
+
proto.assistant_api.TelemetryEvent.prototype.getProjectid = function() {
|
|
27909
|
+
return (
|
|
27910
|
+
/** @type {string} */
|
|
27911
|
+
jspb.Message.getFieldWithDefault(this, 4, "0")
|
|
27912
|
+
);
|
|
27913
|
+
};
|
|
27914
|
+
proto.assistant_api.TelemetryEvent.prototype.setProjectid = function(value) {
|
|
27915
|
+
return jspb.Message.setProto3StringIntField(this, 4, value);
|
|
27916
|
+
};
|
|
27917
|
+
proto.assistant_api.TelemetryEvent.prototype.getOrganizationid = function() {
|
|
27918
|
+
return (
|
|
27919
|
+
/** @type {string} */
|
|
27920
|
+
jspb.Message.getFieldWithDefault(this, 5, "0")
|
|
27921
|
+
);
|
|
27922
|
+
};
|
|
27923
|
+
proto.assistant_api.TelemetryEvent.prototype.setOrganizationid = function(value) {
|
|
27924
|
+
return jspb.Message.setProto3StringIntField(this, 5, value);
|
|
27925
|
+
};
|
|
27926
|
+
proto.assistant_api.TelemetryEvent.prototype.getName = function() {
|
|
27927
|
+
return (
|
|
27928
|
+
/** @type {string} */
|
|
27929
|
+
jspb.Message.getFieldWithDefault(this, 6, "")
|
|
27930
|
+
);
|
|
27931
|
+
};
|
|
27932
|
+
proto.assistant_api.TelemetryEvent.prototype.setName = function(value) {
|
|
27933
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
27934
|
+
};
|
|
27935
|
+
proto.assistant_api.TelemetryEvent.prototype.getDataMap = function(opt_noLazyCreate) {
|
|
27936
|
+
return (
|
|
27937
|
+
/** @type {!jspb.Map<string,string>} */
|
|
27938
|
+
jspb.Message.getMapField(
|
|
27939
|
+
this,
|
|
27940
|
+
7,
|
|
27941
|
+
opt_noLazyCreate,
|
|
27942
|
+
null
|
|
27943
|
+
)
|
|
27944
|
+
);
|
|
27945
|
+
};
|
|
27946
|
+
proto.assistant_api.TelemetryEvent.prototype.clearDataMap = function() {
|
|
27947
|
+
this.getDataMap().clear();
|
|
27948
|
+
return this;
|
|
27949
|
+
};
|
|
27950
|
+
proto.assistant_api.TelemetryEvent.prototype.getTime = function() {
|
|
27951
|
+
return (
|
|
27952
|
+
/** @type{?proto.google.protobuf.Timestamp} */
|
|
27953
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)
|
|
27954
|
+
);
|
|
27955
|
+
};
|
|
27956
|
+
proto.assistant_api.TelemetryEvent.prototype.setTime = function(value) {
|
|
27957
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
27958
|
+
};
|
|
27959
|
+
proto.assistant_api.TelemetryEvent.prototype.clearTime = function() {
|
|
27960
|
+
return this.setTime(void 0);
|
|
27961
|
+
};
|
|
27962
|
+
proto.assistant_api.TelemetryEvent.prototype.hasTime = function() {
|
|
27963
|
+
return jspb.Message.getField(this, 8) != null;
|
|
27964
|
+
};
|
|
27965
|
+
proto.assistant_api.TelemetryMetric.repeatedFields_ = [7];
|
|
27966
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
27967
|
+
proto.assistant_api.TelemetryMetric.prototype.toObject = function(opt_includeInstance) {
|
|
27968
|
+
return proto.assistant_api.TelemetryMetric.toObject(opt_includeInstance, this);
|
|
27969
|
+
};
|
|
27970
|
+
proto.assistant_api.TelemetryMetric.toObject = function(includeInstance, msg) {
|
|
27971
|
+
var f, obj = {
|
|
27972
|
+
contextid: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
27973
|
+
assistantid: jspb.Message.getFieldWithDefault(msg, 2, "0"),
|
|
27974
|
+
assistantconversationid: jspb.Message.getFieldWithDefault(msg, 3, "0"),
|
|
27975
|
+
projectid: jspb.Message.getFieldWithDefault(msg, 4, "0"),
|
|
27976
|
+
organizationid: jspb.Message.getFieldWithDefault(msg, 5, "0"),
|
|
27977
|
+
scope: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
27978
|
+
metricsList: jspb.Message.toObjectList(
|
|
27979
|
+
msg.getMetricsList(),
|
|
27980
|
+
common_pb.Metric.toObject,
|
|
27981
|
+
includeInstance
|
|
27982
|
+
),
|
|
27983
|
+
time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
27984
|
+
};
|
|
27985
|
+
if (includeInstance) {
|
|
27986
|
+
obj.$jspbMessageInstance = msg;
|
|
27987
|
+
}
|
|
27988
|
+
return obj;
|
|
27989
|
+
};
|
|
27990
|
+
}
|
|
27991
|
+
proto.assistant_api.TelemetryMetric.deserializeBinary = function(bytes) {
|
|
27992
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
27993
|
+
var msg = new proto.assistant_api.TelemetryMetric();
|
|
27994
|
+
return proto.assistant_api.TelemetryMetric.deserializeBinaryFromReader(msg, reader);
|
|
27995
|
+
};
|
|
27996
|
+
proto.assistant_api.TelemetryMetric.deserializeBinaryFromReader = function(msg, reader) {
|
|
27997
|
+
while (reader.nextField()) {
|
|
27998
|
+
if (reader.isEndGroup()) {
|
|
27999
|
+
break;
|
|
28000
|
+
}
|
|
28001
|
+
var field = reader.getFieldNumber();
|
|
28002
|
+
switch (field) {
|
|
28003
|
+
case 1:
|
|
28004
|
+
var value = (
|
|
28005
|
+
/** @type {string} */
|
|
28006
|
+
reader.readString()
|
|
28007
|
+
);
|
|
28008
|
+
msg.setContextid(value);
|
|
28009
|
+
break;
|
|
28010
|
+
case 2:
|
|
28011
|
+
var value = (
|
|
28012
|
+
/** @type {string} */
|
|
28013
|
+
reader.readUint64String()
|
|
28014
|
+
);
|
|
28015
|
+
msg.setAssistantid(value);
|
|
28016
|
+
break;
|
|
28017
|
+
case 3:
|
|
28018
|
+
var value = (
|
|
28019
|
+
/** @type {string} */
|
|
28020
|
+
reader.readUint64String()
|
|
28021
|
+
);
|
|
28022
|
+
msg.setAssistantconversationid(value);
|
|
28023
|
+
break;
|
|
28024
|
+
case 4:
|
|
28025
|
+
var value = (
|
|
28026
|
+
/** @type {string} */
|
|
28027
|
+
reader.readUint64String()
|
|
28028
|
+
);
|
|
28029
|
+
msg.setProjectid(value);
|
|
28030
|
+
break;
|
|
28031
|
+
case 5:
|
|
28032
|
+
var value = (
|
|
28033
|
+
/** @type {string} */
|
|
28034
|
+
reader.readUint64String()
|
|
28035
|
+
);
|
|
28036
|
+
msg.setOrganizationid(value);
|
|
28037
|
+
break;
|
|
28038
|
+
case 6:
|
|
28039
|
+
var value = (
|
|
28040
|
+
/** @type {string} */
|
|
28041
|
+
reader.readString()
|
|
28042
|
+
);
|
|
28043
|
+
msg.setScope(value);
|
|
28044
|
+
break;
|
|
28045
|
+
case 7:
|
|
28046
|
+
var value = new common_pb.Metric();
|
|
28047
|
+
reader.readMessage(value, common_pb.Metric.deserializeBinaryFromReader);
|
|
28048
|
+
msg.addMetrics(value);
|
|
28049
|
+
break;
|
|
28050
|
+
case 8:
|
|
28051
|
+
var value = new google_protobuf_timestamp_pb.Timestamp();
|
|
28052
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
28053
|
+
msg.setTime(value);
|
|
28054
|
+
break;
|
|
28055
|
+
default:
|
|
28056
|
+
reader.skipField();
|
|
28057
|
+
break;
|
|
28058
|
+
}
|
|
28059
|
+
}
|
|
28060
|
+
return msg;
|
|
28061
|
+
};
|
|
28062
|
+
proto.assistant_api.TelemetryMetric.prototype.serializeBinary = function() {
|
|
28063
|
+
var writer = new jspb.BinaryWriter();
|
|
28064
|
+
proto.assistant_api.TelemetryMetric.serializeBinaryToWriter(this, writer);
|
|
28065
|
+
return writer.getResultBuffer();
|
|
28066
|
+
};
|
|
28067
|
+
proto.assistant_api.TelemetryMetric.serializeBinaryToWriter = function(message, writer) {
|
|
28068
|
+
var f = void 0;
|
|
28069
|
+
f = message.getContextid();
|
|
28070
|
+
if (f.length > 0) {
|
|
28071
|
+
writer.writeString(
|
|
28072
|
+
1,
|
|
28073
|
+
f
|
|
28074
|
+
);
|
|
28075
|
+
}
|
|
28076
|
+
f = message.getAssistantid();
|
|
28077
|
+
if (parseInt(f, 10) !== 0) {
|
|
28078
|
+
writer.writeUint64String(
|
|
28079
|
+
2,
|
|
28080
|
+
f
|
|
28081
|
+
);
|
|
28082
|
+
}
|
|
28083
|
+
f = message.getAssistantconversationid();
|
|
28084
|
+
if (parseInt(f, 10) !== 0) {
|
|
28085
|
+
writer.writeUint64String(
|
|
28086
|
+
3,
|
|
28087
|
+
f
|
|
28088
|
+
);
|
|
28089
|
+
}
|
|
28090
|
+
f = message.getProjectid();
|
|
28091
|
+
if (parseInt(f, 10) !== 0) {
|
|
28092
|
+
writer.writeUint64String(
|
|
28093
|
+
4,
|
|
28094
|
+
f
|
|
28095
|
+
);
|
|
28096
|
+
}
|
|
28097
|
+
f = message.getOrganizationid();
|
|
28098
|
+
if (parseInt(f, 10) !== 0) {
|
|
28099
|
+
writer.writeUint64String(
|
|
28100
|
+
5,
|
|
28101
|
+
f
|
|
28102
|
+
);
|
|
28103
|
+
}
|
|
28104
|
+
f = message.getScope();
|
|
28105
|
+
if (f.length > 0) {
|
|
28106
|
+
writer.writeString(
|
|
28107
|
+
6,
|
|
28108
|
+
f
|
|
28109
|
+
);
|
|
28110
|
+
}
|
|
28111
|
+
f = message.getMetricsList();
|
|
28112
|
+
if (f.length > 0) {
|
|
28113
|
+
writer.writeRepeatedMessage(
|
|
28114
|
+
7,
|
|
28115
|
+
f,
|
|
28116
|
+
common_pb.Metric.serializeBinaryToWriter
|
|
28117
|
+
);
|
|
28118
|
+
}
|
|
28119
|
+
f = message.getTime();
|
|
28120
|
+
if (f != null) {
|
|
28121
|
+
writer.writeMessage(
|
|
28122
|
+
8,
|
|
28123
|
+
f,
|
|
28124
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
28125
|
+
);
|
|
28126
|
+
}
|
|
28127
|
+
};
|
|
28128
|
+
proto.assistant_api.TelemetryMetric.prototype.getContextid = function() {
|
|
28129
|
+
return (
|
|
28130
|
+
/** @type {string} */
|
|
28131
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
28132
|
+
);
|
|
28133
|
+
};
|
|
28134
|
+
proto.assistant_api.TelemetryMetric.prototype.setContextid = function(value) {
|
|
28135
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
28136
|
+
};
|
|
28137
|
+
proto.assistant_api.TelemetryMetric.prototype.getAssistantid = function() {
|
|
28138
|
+
return (
|
|
28139
|
+
/** @type {string} */
|
|
28140
|
+
jspb.Message.getFieldWithDefault(this, 2, "0")
|
|
28141
|
+
);
|
|
28142
|
+
};
|
|
28143
|
+
proto.assistant_api.TelemetryMetric.prototype.setAssistantid = function(value) {
|
|
28144
|
+
return jspb.Message.setProto3StringIntField(this, 2, value);
|
|
28145
|
+
};
|
|
28146
|
+
proto.assistant_api.TelemetryMetric.prototype.getAssistantconversationid = function() {
|
|
28147
|
+
return (
|
|
28148
|
+
/** @type {string} */
|
|
28149
|
+
jspb.Message.getFieldWithDefault(this, 3, "0")
|
|
28150
|
+
);
|
|
28151
|
+
};
|
|
28152
|
+
proto.assistant_api.TelemetryMetric.prototype.setAssistantconversationid = function(value) {
|
|
28153
|
+
return jspb.Message.setProto3StringIntField(this, 3, value);
|
|
28154
|
+
};
|
|
28155
|
+
proto.assistant_api.TelemetryMetric.prototype.getProjectid = function() {
|
|
28156
|
+
return (
|
|
28157
|
+
/** @type {string} */
|
|
28158
|
+
jspb.Message.getFieldWithDefault(this, 4, "0")
|
|
28159
|
+
);
|
|
28160
|
+
};
|
|
28161
|
+
proto.assistant_api.TelemetryMetric.prototype.setProjectid = function(value) {
|
|
28162
|
+
return jspb.Message.setProto3StringIntField(this, 4, value);
|
|
28163
|
+
};
|
|
28164
|
+
proto.assistant_api.TelemetryMetric.prototype.getOrganizationid = function() {
|
|
28165
|
+
return (
|
|
28166
|
+
/** @type {string} */
|
|
28167
|
+
jspb.Message.getFieldWithDefault(this, 5, "0")
|
|
28168
|
+
);
|
|
28169
|
+
};
|
|
28170
|
+
proto.assistant_api.TelemetryMetric.prototype.setOrganizationid = function(value) {
|
|
28171
|
+
return jspb.Message.setProto3StringIntField(this, 5, value);
|
|
28172
|
+
};
|
|
28173
|
+
proto.assistant_api.TelemetryMetric.prototype.getScope = function() {
|
|
28174
|
+
return (
|
|
28175
|
+
/** @type {string} */
|
|
28176
|
+
jspb.Message.getFieldWithDefault(this, 6, "")
|
|
28177
|
+
);
|
|
28178
|
+
};
|
|
28179
|
+
proto.assistant_api.TelemetryMetric.prototype.setScope = function(value) {
|
|
28180
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
28181
|
+
};
|
|
28182
|
+
proto.assistant_api.TelemetryMetric.prototype.getMetricsList = function() {
|
|
28183
|
+
return (
|
|
28184
|
+
/** @type{!Array<!proto.Metric>} */
|
|
28185
|
+
jspb.Message.getRepeatedWrapperField(this, common_pb.Metric, 7)
|
|
28186
|
+
);
|
|
28187
|
+
};
|
|
28188
|
+
proto.assistant_api.TelemetryMetric.prototype.setMetricsList = function(value) {
|
|
28189
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
|
28190
|
+
};
|
|
28191
|
+
proto.assistant_api.TelemetryMetric.prototype.addMetrics = function(opt_value, opt_index) {
|
|
28192
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.Metric, opt_index);
|
|
28193
|
+
};
|
|
28194
|
+
proto.assistant_api.TelemetryMetric.prototype.clearMetricsList = function() {
|
|
28195
|
+
return this.setMetricsList([]);
|
|
28196
|
+
};
|
|
28197
|
+
proto.assistant_api.TelemetryMetric.prototype.getTime = function() {
|
|
28198
|
+
return (
|
|
28199
|
+
/** @type{?proto.google.protobuf.Timestamp} */
|
|
28200
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)
|
|
28201
|
+
);
|
|
28202
|
+
};
|
|
28203
|
+
proto.assistant_api.TelemetryMetric.prototype.setTime = function(value) {
|
|
28204
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
28205
|
+
};
|
|
28206
|
+
proto.assistant_api.TelemetryMetric.prototype.clearTime = function() {
|
|
28207
|
+
return this.setTime(void 0);
|
|
28208
|
+
};
|
|
28209
|
+
proto.assistant_api.TelemetryMetric.prototype.hasTime = function() {
|
|
28210
|
+
return jspb.Message.getField(this, 8) != null;
|
|
28211
|
+
};
|
|
28212
|
+
proto.assistant_api.TelemetryRecord.oneofGroups_ = [[1, 2]];
|
|
28213
|
+
proto.assistant_api.TelemetryRecord.RecordCase = {
|
|
28214
|
+
RECORD_NOT_SET: 0,
|
|
28215
|
+
EVENT: 1,
|
|
28216
|
+
METRIC: 2
|
|
28217
|
+
};
|
|
28218
|
+
proto.assistant_api.TelemetryRecord.prototype.getRecordCase = function() {
|
|
28219
|
+
return (
|
|
28220
|
+
/** @type {proto.assistant_api.TelemetryRecord.RecordCase} */
|
|
28221
|
+
jspb.Message.computeOneofCase(this, proto.assistant_api.TelemetryRecord.oneofGroups_[0])
|
|
28222
|
+
);
|
|
28223
|
+
};
|
|
28224
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
28225
|
+
proto.assistant_api.TelemetryRecord.prototype.toObject = function(opt_includeInstance) {
|
|
28226
|
+
return proto.assistant_api.TelemetryRecord.toObject(opt_includeInstance, this);
|
|
28227
|
+
};
|
|
28228
|
+
proto.assistant_api.TelemetryRecord.toObject = function(includeInstance, msg) {
|
|
28229
|
+
var f, obj = {
|
|
28230
|
+
event: (f = msg.getEvent()) && proto.assistant_api.TelemetryEvent.toObject(includeInstance, f),
|
|
28231
|
+
metric: (f = msg.getMetric()) && proto.assistant_api.TelemetryMetric.toObject(includeInstance, f)
|
|
28232
|
+
};
|
|
28233
|
+
if (includeInstance) {
|
|
28234
|
+
obj.$jspbMessageInstance = msg;
|
|
28235
|
+
}
|
|
28236
|
+
return obj;
|
|
28237
|
+
};
|
|
28238
|
+
}
|
|
28239
|
+
proto.assistant_api.TelemetryRecord.deserializeBinary = function(bytes) {
|
|
28240
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
28241
|
+
var msg = new proto.assistant_api.TelemetryRecord();
|
|
28242
|
+
return proto.assistant_api.TelemetryRecord.deserializeBinaryFromReader(msg, reader);
|
|
28243
|
+
};
|
|
28244
|
+
proto.assistant_api.TelemetryRecord.deserializeBinaryFromReader = function(msg, reader) {
|
|
28245
|
+
while (reader.nextField()) {
|
|
28246
|
+
if (reader.isEndGroup()) {
|
|
28247
|
+
break;
|
|
28248
|
+
}
|
|
28249
|
+
var field = reader.getFieldNumber();
|
|
28250
|
+
switch (field) {
|
|
28251
|
+
case 1:
|
|
28252
|
+
var value = new proto.assistant_api.TelemetryEvent();
|
|
28253
|
+
reader.readMessage(value, proto.assistant_api.TelemetryEvent.deserializeBinaryFromReader);
|
|
28254
|
+
msg.setEvent(value);
|
|
28255
|
+
break;
|
|
28256
|
+
case 2:
|
|
28257
|
+
var value = new proto.assistant_api.TelemetryMetric();
|
|
28258
|
+
reader.readMessage(value, proto.assistant_api.TelemetryMetric.deserializeBinaryFromReader);
|
|
28259
|
+
msg.setMetric(value);
|
|
28260
|
+
break;
|
|
28261
|
+
default:
|
|
28262
|
+
reader.skipField();
|
|
28263
|
+
break;
|
|
28264
|
+
}
|
|
28265
|
+
}
|
|
28266
|
+
return msg;
|
|
28267
|
+
};
|
|
28268
|
+
proto.assistant_api.TelemetryRecord.prototype.serializeBinary = function() {
|
|
28269
|
+
var writer = new jspb.BinaryWriter();
|
|
28270
|
+
proto.assistant_api.TelemetryRecord.serializeBinaryToWriter(this, writer);
|
|
28271
|
+
return writer.getResultBuffer();
|
|
28272
|
+
};
|
|
28273
|
+
proto.assistant_api.TelemetryRecord.serializeBinaryToWriter = function(message, writer) {
|
|
28274
|
+
var f = void 0;
|
|
28275
|
+
f = message.getEvent();
|
|
28276
|
+
if (f != null) {
|
|
28277
|
+
writer.writeMessage(
|
|
28278
|
+
1,
|
|
28279
|
+
f,
|
|
28280
|
+
proto.assistant_api.TelemetryEvent.serializeBinaryToWriter
|
|
28281
|
+
);
|
|
28282
|
+
}
|
|
28283
|
+
f = message.getMetric();
|
|
28284
|
+
if (f != null) {
|
|
28285
|
+
writer.writeMessage(
|
|
28286
|
+
2,
|
|
28287
|
+
f,
|
|
28288
|
+
proto.assistant_api.TelemetryMetric.serializeBinaryToWriter
|
|
28289
|
+
);
|
|
28290
|
+
}
|
|
28291
|
+
};
|
|
28292
|
+
proto.assistant_api.TelemetryRecord.prototype.getEvent = function() {
|
|
28293
|
+
return (
|
|
28294
|
+
/** @type{?proto.assistant_api.TelemetryEvent} */
|
|
28295
|
+
jspb.Message.getWrapperField(this, proto.assistant_api.TelemetryEvent, 1)
|
|
28296
|
+
);
|
|
28297
|
+
};
|
|
28298
|
+
proto.assistant_api.TelemetryRecord.prototype.setEvent = function(value) {
|
|
28299
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.assistant_api.TelemetryRecord.oneofGroups_[0], value);
|
|
28300
|
+
};
|
|
28301
|
+
proto.assistant_api.TelemetryRecord.prototype.clearEvent = function() {
|
|
28302
|
+
return this.setEvent(void 0);
|
|
28303
|
+
};
|
|
28304
|
+
proto.assistant_api.TelemetryRecord.prototype.hasEvent = function() {
|
|
28305
|
+
return jspb.Message.getField(this, 1) != null;
|
|
28306
|
+
};
|
|
28307
|
+
proto.assistant_api.TelemetryRecord.prototype.getMetric = function() {
|
|
28308
|
+
return (
|
|
28309
|
+
/** @type{?proto.assistant_api.TelemetryMetric} */
|
|
28310
|
+
jspb.Message.getWrapperField(this, proto.assistant_api.TelemetryMetric, 2)
|
|
28311
|
+
);
|
|
28312
|
+
};
|
|
28313
|
+
proto.assistant_api.TelemetryRecord.prototype.setMetric = function(value) {
|
|
28314
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.assistant_api.TelemetryRecord.oneofGroups_[0], value);
|
|
28315
|
+
};
|
|
28316
|
+
proto.assistant_api.TelemetryRecord.prototype.clearMetric = function() {
|
|
28317
|
+
return this.setMetric(void 0);
|
|
28318
|
+
};
|
|
28319
|
+
proto.assistant_api.TelemetryRecord.prototype.hasMetric = function() {
|
|
28320
|
+
return jspb.Message.getField(this, 2) != null;
|
|
28321
|
+
};
|
|
27801
28322
|
proto.assistant_api.GetAllAssistantTelemetryResponse.repeatedFields_ = [3];
|
|
27802
28323
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
27803
28324
|
proto.assistant_api.GetAllAssistantTelemetryResponse.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -27809,7 +28330,7 @@ var require_assistant_api_pb = __commonJS({
|
|
|
27809
28330
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
27810
28331
|
dataList: jspb.Message.toObjectList(
|
|
27811
28332
|
msg.getDataList(),
|
|
27812
|
-
|
|
28333
|
+
proto.assistant_api.TelemetryRecord.toObject,
|
|
27813
28334
|
includeInstance
|
|
27814
28335
|
),
|
|
27815
28336
|
error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f),
|
|
@@ -27848,8 +28369,8 @@ var require_assistant_api_pb = __commonJS({
|
|
|
27848
28369
|
msg.setSuccess(value);
|
|
27849
28370
|
break;
|
|
27850
28371
|
case 3:
|
|
27851
|
-
var value = new
|
|
27852
|
-
reader.readMessage(value,
|
|
28372
|
+
var value = new proto.assistant_api.TelemetryRecord();
|
|
28373
|
+
reader.readMessage(value, proto.assistant_api.TelemetryRecord.deserializeBinaryFromReader);
|
|
27853
28374
|
msg.addData(value);
|
|
27854
28375
|
break;
|
|
27855
28376
|
case 4:
|
|
@@ -27895,7 +28416,7 @@ var require_assistant_api_pb = __commonJS({
|
|
|
27895
28416
|
writer.writeRepeatedMessage(
|
|
27896
28417
|
3,
|
|
27897
28418
|
f,
|
|
27898
|
-
|
|
28419
|
+
proto.assistant_api.TelemetryRecord.serializeBinaryToWriter
|
|
27899
28420
|
);
|
|
27900
28421
|
}
|
|
27901
28422
|
f = message.getError();
|
|
@@ -27935,15 +28456,15 @@ var require_assistant_api_pb = __commonJS({
|
|
|
27935
28456
|
};
|
|
27936
28457
|
proto.assistant_api.GetAllAssistantTelemetryResponse.prototype.getDataList = function() {
|
|
27937
28458
|
return (
|
|
27938
|
-
/** @type{!Array<!proto.
|
|
27939
|
-
jspb.Message.getRepeatedWrapperField(this,
|
|
28459
|
+
/** @type{!Array<!proto.assistant_api.TelemetryRecord>} */
|
|
28460
|
+
jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.TelemetryRecord, 3)
|
|
27940
28461
|
);
|
|
27941
28462
|
};
|
|
27942
28463
|
proto.assistant_api.GetAllAssistantTelemetryResponse.prototype.setDataList = function(value) {
|
|
27943
28464
|
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
27944
28465
|
};
|
|
27945
28466
|
proto.assistant_api.GetAllAssistantTelemetryResponse.prototype.addData = function(opt_value, opt_index) {
|
|
27946
|
-
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.
|
|
28467
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.assistant_api.TelemetryRecord, opt_index);
|
|
27947
28468
|
};
|
|
27948
28469
|
proto.assistant_api.GetAllAssistantTelemetryResponse.prototype.clearDataList = function() {
|
|
27949
28470
|
return this.setDataList([]);
|
|
@@ -59927,7 +60448,7 @@ var require_webrtc_pb = __commonJS({
|
|
|
59927
60448
|
proto.talk_api.WebTalkRequest.prototype.hasDisconnection = function() {
|
|
59928
60449
|
return jspb.Message.getField(this, 7) != null;
|
|
59929
60450
|
};
|
|
59930
|
-
proto.talk_api.WebTalkResponse.oneofGroups_ = [[8, 9, 10, 11, 12, 13, 14, 16, 15, 17, 19, 20, 21]];
|
|
60451
|
+
proto.talk_api.WebTalkResponse.oneofGroups_ = [[8, 9, 10, 11, 12, 13, 14, 16, 15, 17, 19, 20, 21, 22]];
|
|
59931
60452
|
proto.talk_api.WebTalkResponse.DataCase = {
|
|
59932
60453
|
DATA_NOT_SET: 0,
|
|
59933
60454
|
INITIALIZATION: 8,
|
|
@@ -59942,7 +60463,8 @@ var require_webrtc_pb = __commonJS({
|
|
|
59942
60463
|
SIGNALING: 17,
|
|
59943
60464
|
METADATA: 19,
|
|
59944
60465
|
METRIC: 20,
|
|
59945
|
-
DISCONNECTION: 21
|
|
60466
|
+
DISCONNECTION: 21,
|
|
60467
|
+
EVENT: 22
|
|
59946
60468
|
};
|
|
59947
60469
|
proto.talk_api.WebTalkResponse.prototype.getDataCase = function() {
|
|
59948
60470
|
return (
|
|
@@ -59970,7 +60492,8 @@ var require_webrtc_pb = __commonJS({
|
|
|
59970
60492
|
signaling: (f = msg.getSignaling()) && proto.talk_api.ServerSignaling.toObject(includeInstance, f),
|
|
59971
60493
|
metadata: (f = msg.getMetadata()) && talk$api_pb.ConversationMetadata.toObject(includeInstance, f),
|
|
59972
60494
|
metric: (f = msg.getMetric()) && talk$api_pb.ConversationMetric.toObject(includeInstance, f),
|
|
59973
|
-
disconnection: (f = msg.getDisconnection()) && talk$api_pb.ConversationDisconnection.toObject(includeInstance, f)
|
|
60495
|
+
disconnection: (f = msg.getDisconnection()) && talk$api_pb.ConversationDisconnection.toObject(includeInstance, f),
|
|
60496
|
+
event: (f = msg.getEvent()) && talk$api_pb.ConversationEvent.toObject(includeInstance, f)
|
|
59974
60497
|
};
|
|
59975
60498
|
if (includeInstance) {
|
|
59976
60499
|
obj.$jspbMessageInstance = msg;
|
|
@@ -60069,6 +60592,11 @@ var require_webrtc_pb = __commonJS({
|
|
|
60069
60592
|
reader.readMessage(value, talk$api_pb.ConversationDisconnection.deserializeBinaryFromReader);
|
|
60070
60593
|
msg.setDisconnection(value);
|
|
60071
60594
|
break;
|
|
60595
|
+
case 22:
|
|
60596
|
+
var value = new talk$api_pb.ConversationEvent();
|
|
60597
|
+
reader.readMessage(value, talk$api_pb.ConversationEvent.deserializeBinaryFromReader);
|
|
60598
|
+
msg.setEvent(value);
|
|
60599
|
+
break;
|
|
60072
60600
|
default:
|
|
60073
60601
|
reader.skipField();
|
|
60074
60602
|
break;
|
|
@@ -60201,6 +60729,14 @@ var require_webrtc_pb = __commonJS({
|
|
|
60201
60729
|
talk$api_pb.ConversationDisconnection.serializeBinaryToWriter
|
|
60202
60730
|
);
|
|
60203
60731
|
}
|
|
60732
|
+
f = message.getEvent();
|
|
60733
|
+
if (f != null) {
|
|
60734
|
+
writer.writeMessage(
|
|
60735
|
+
22,
|
|
60736
|
+
f,
|
|
60737
|
+
talk$api_pb.ConversationEvent.serializeBinaryToWriter
|
|
60738
|
+
);
|
|
60739
|
+
}
|
|
60204
60740
|
};
|
|
60205
60741
|
proto.talk_api.WebTalkResponse.prototype.getCode = function() {
|
|
60206
60742
|
return (
|
|
@@ -60415,6 +60951,21 @@ var require_webrtc_pb = __commonJS({
|
|
|
60415
60951
|
proto.talk_api.WebTalkResponse.prototype.hasDisconnection = function() {
|
|
60416
60952
|
return jspb.Message.getField(this, 21) != null;
|
|
60417
60953
|
};
|
|
60954
|
+
proto.talk_api.WebTalkResponse.prototype.getEvent = function() {
|
|
60955
|
+
return (
|
|
60956
|
+
/** @type{?proto.talk_api.ConversationEvent} */
|
|
60957
|
+
jspb.Message.getWrapperField(this, talk$api_pb.ConversationEvent, 22)
|
|
60958
|
+
);
|
|
60959
|
+
};
|
|
60960
|
+
proto.talk_api.WebTalkResponse.prototype.setEvent = function(value) {
|
|
60961
|
+
return jspb.Message.setOneofWrapperField(this, 22, proto.talk_api.WebTalkResponse.oneofGroups_[0], value);
|
|
60962
|
+
};
|
|
60963
|
+
proto.talk_api.WebTalkResponse.prototype.clearEvent = function() {
|
|
60964
|
+
return this.setEvent(void 0);
|
|
60965
|
+
};
|
|
60966
|
+
proto.talk_api.WebTalkResponse.prototype.hasEvent = function() {
|
|
60967
|
+
return jspb.Message.getField(this, 22) != null;
|
|
60968
|
+
};
|
|
60418
60969
|
goog.object.extend(exports, proto.talk_api);
|
|
60419
60970
|
}
|
|
60420
60971
|
});
|
|
@@ -60719,9 +61270,9 @@ var ToContentText = (cnt) => {
|
|
|
60719
61270
|
};
|
|
60720
61271
|
|
|
60721
61272
|
// src/configs/index.ts
|
|
60722
|
-
var ASSISTANT_API = "
|
|
60723
|
-
var ENDPOINT_API = "endpoint-01.rapida.ai";
|
|
60724
|
-
var WEB_API = "
|
|
61273
|
+
var ASSISTANT_API = "assistant-01.in.rapida.ai";
|
|
61274
|
+
var ENDPOINT_API = "endpoint-01.in.rapida.ai";
|
|
61275
|
+
var WEB_API = "api-01.in.rapida.ai";
|
|
60725
61276
|
var LOCAL_ASSISTANT_API = "localhost:9007";
|
|
60726
61277
|
var LOCAL_ENDPOINT_API = "localhost:9005";
|
|
60727
61278
|
var LOCAL_WEB_API = "localhost:9001";
|
|
@@ -62729,7 +63280,6 @@ var export_SystemMessage = import_common_pb9.SystemMessage;
|
|
|
62729
63280
|
var export_Tag = import_common_pb9.Tag;
|
|
62730
63281
|
var export_TalkInput = import_agentkit_pb.TalkInput;
|
|
62731
63282
|
var export_TalkOutput = import_agentkit_pb.TalkOutput;
|
|
62732
|
-
var export_Telemetry = import_common_pb9.Telemetry;
|
|
62733
63283
|
var export_TextChatCompletePrompt = import_common_pb9.TextChatCompletePrompt;
|
|
62734
63284
|
var export_TextConfig = import_talk_api_pb3.TextConfig;
|
|
62735
63285
|
var export_TextPrompt = import_common_pb9.TextPrompt;
|
|
@@ -63153,7 +63703,6 @@ export {
|
|
|
63153
63703
|
export_Tag as Tag,
|
|
63154
63704
|
export_TalkInput as TalkInput,
|
|
63155
63705
|
export_TalkOutput as TalkOutput,
|
|
63156
|
-
export_Telemetry as Telemetry,
|
|
63157
63706
|
export_TextChatCompletePrompt as TextChatCompletePrompt,
|
|
63158
63707
|
export_TextConfig as TextConfig,
|
|
63159
63708
|
export_TextPrompt as TextPrompt,
|