@formant/realtime-sdk 1.3.0 → 1.4.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/dist/client/AuthClient.d.ts +42 -0
- package/dist/client/Credentials.d.ts +10 -0
- package/dist/client/LanAgentClient.d.ts +7 -0
- package/dist/client/RtcSignalingClient.d.ts +20 -0
- package/dist/common/BaseClient.d.ts +43 -0
- package/dist/common/ConnectionError.d.ts +6 -0
- package/dist/common/FormantBaseClient.d.ts +13 -0
- package/dist/common/LogApiTransport.d.ts +11 -0
- package/dist/common/LogClient.d.ts +6 -0
- package/dist/common/LogReporter.d.ts +6 -0
- package/dist/common/LruCache.d.ts +20 -0
- package/dist/common/PromiseLruCache.d.ts +11 -0
- package/dist/common/ResponseError.d.ts +11 -0
- package/dist/common/ResponseHeadersError.d.ts +7 -0
- package/dist/common/StatsManager.d.ts +39 -0
- package/dist/common/StatsReporter.d.ts +17 -0
- package/dist/common/assertUnreachable.d.ts +1 -0
- package/dist/common/browser.d.ts +2 -0
- package/dist/common/collectErrors.d.ts +1 -0
- package/dist/common/config/index.d.ts +23 -0
- package/dist/common/defined.d.ts +6 -0
- package/dist/common/delay.d.ts +1 -0
- package/dist/common/errorToObject.d.ts +16 -0
- package/dist/common/errorToString.d.ts +6 -0
- package/dist/common/filterIceServers.d.ts +8 -0
- package/dist/common/instanceId.d.ts +1 -0
- package/dist/common/isErrorType.d.ts +1 -0
- package/dist/common/isObject.d.ts +1 -0
- package/dist/common/isValidTagString.d.ts +1 -0
- package/dist/common/logger.d.ts +4 -0
- package/dist/common/narrowError.d.ts +1 -0
- package/dist/common/objectMapValues.d.ts +9 -0
- package/dist/common/redact.d.ts +5 -0
- package/dist/common/setPromiseInterval.d.ts +16 -0
- package/dist/common/stats.d.ts +2 -0
- package/dist/common/toStringSafe.d.ts +8 -0
- package/dist/date-fns/parseIsoDate.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +19 -0
- package/dist/model/AnnotationAreaType.d.ts +2 -0
- package/dist/model/AuditLogActionType.d.ts +5 -0
- package/dist/model/CognitoRegion.d.ts +2 -0
- package/dist/model/Feature.d.ts +3 -0
- package/dist/model/HealthStatus.d.ts +2 -0
- package/dist/model/HexRgbColor.d.ts +1 -0
- package/dist/model/IAdminSignupRequest.d.ts +14 -0
- package/dist/model/IAnnotationAreaTypeMap.d.ts +4 -0
- package/dist/model/IAudioChunk.d.ts +5 -0
- package/dist/model/IAuditLog.d.ts +14 -0
- package/dist/model/IAuthentication.d.ts +8 -0
- package/dist/model/IBaseEntity.d.ts +7 -0
- package/dist/model/IBattery.d.ts +6 -0
- package/dist/model/IBitset.d.ts +4 -0
- package/dist/model/IBoundingBox.d.ts +6 -0
- package/dist/model/IChallenge.d.ts +7 -0
- package/dist/model/ICheckSsoResult.d.ts +5 -0
- package/dist/model/IColorRGBA.d.ts +6 -0
- package/dist/model/ICompressedImage.d.ts +3 -0
- package/dist/model/ICreateServiceAccountResponse.d.ts +5 -0
- package/dist/model/IDeviceCredentials.d.ts +9 -0
- package/dist/model/IDictionary.d.ts +3 -0
- package/dist/model/IFile.d.ts +6 -0
- package/dist/model/IFilter.d.ts +11 -0
- package/dist/model/IGetFeaturesResponse.d.ts +4 -0
- package/dist/model/IGoal.d.ts +5 -0
- package/dist/model/IGoalID.d.ts +3 -0
- package/dist/model/IGoogleLoginRequest.d.ts +4 -0
- package/dist/model/IH264VideoFrame.d.ts +5 -0
- package/dist/model/IHealth.d.ts +5 -0
- package/dist/model/IImage.d.ts +6 -0
- package/dist/model/IImageAnnotation.d.ts +9 -0
- package/dist/model/IJointState.d.ts +8 -0
- package/dist/model/IJoy.d.ts +4 -0
- package/dist/model/IJsonString.d.ts +3 -0
- package/dist/model/IListResponse.d.ts +3 -0
- package/dist/model/ILocalization.d.ts +14 -0
- package/dist/model/ILocation.d.ts +6 -0
- package/dist/model/ILogLine.d.ts +9 -0
- package/dist/model/ILoginRequest.d.ts +7 -0
- package/dist/model/ILoginResult.d.ts +7 -0
- package/dist/model/IMap.d.ts +10 -0
- package/dist/model/IMarker3D.d.ts +23 -0
- package/dist/model/IMarker3DArray.d.ts +4 -0
- package/dist/model/IMetric.d.ts +7 -0
- package/dist/model/INumericSetEntry.d.ts +5 -0
- package/dist/model/IOdometry.d.ts +7 -0
- package/dist/model/IPath.d.ts +5 -0
- package/dist/model/IPoint.d.ts +2 -0
- package/dist/model/IPointCloud.d.ts +6 -0
- package/dist/model/IPoseWithCovariance.d.ts +5 -0
- package/dist/model/IPostLanRtcOfferRequest.d.ts +3 -0
- package/dist/model/IPostLanRtcOfferResponse.d.ts +3 -0
- package/dist/model/IQuaternion.d.ts +6 -0
- package/dist/model/IRtcAddSignalsRequest.d.ts +4 -0
- package/dist/model/IRtcCapabilitySet.d.ts +6 -0
- package/dist/model/IRtcCreatePeerRequest.d.ts +6 -0
- package/dist/model/IRtcCreateSessionRequest.d.ts +5 -0
- package/dist/model/IRtcIceServer.d.ts +5 -0
- package/dist/model/IRtcInfo.d.ts +7 -0
- package/dist/model/IRtcPeer.d.ts +11 -0
- package/dist/model/IRtcPeerDescription.d.ts +6 -0
- package/dist/model/IRtcPortForwardingConfiguration.d.ts +3 -0
- package/dist/model/IRtcSession.d.ts +12 -0
- package/dist/model/IRtcSignal.d.ts +3 -0
- package/dist/model/IRtcStream.d.ts +9 -0
- package/dist/model/IRtcStreamCapability.d.ts +6 -0
- package/dist/model/IRtcStreamingConfiguration.d.ts +4 -0
- package/dist/model/IScopeFilter.d.ts +6 -0
- package/dist/model/IStat.d.ts +21 -0
- package/dist/model/IStreamTypeMap.d.ts +27 -0
- package/dist/model/ITagFilter.d.ts +4 -0
- package/dist/model/ITagSets.d.ts +3 -0
- package/dist/model/ITaggedEntity.d.ts +5 -0
- package/dist/model/ITags.d.ts +2 -0
- package/dist/model/ITransform.d.ts +6 -0
- package/dist/model/ITransformNode.d.ts +8 -0
- package/dist/model/ITwist.d.ts +5 -0
- package/dist/model/IUser.d.ts +36 -0
- package/dist/model/IUserScope.d.ts +16 -0
- package/dist/model/IValidation.d.ts +3 -0
- package/dist/model/IVector3.d.ts +5 -0
- package/dist/model/IVideo.d.ts +7 -0
- package/dist/model/IsoDate.d.ts +1 -0
- package/dist/model/LanguageType.d.ts +2 -0
- package/dist/model/LogLevel.d.ts +2 -0
- package/dist/model/Marker3DAction.d.ts +2 -0
- package/dist/model/Marker3DType.d.ts +2 -0
- package/dist/model/OrganizationPlan.d.ts +2 -0
- package/dist/model/RequireKeys.d.ts +3 -0
- package/dist/model/RtcConnectionStatus.d.ts +2 -0
- package/dist/model/RtcIceServerProtocol.d.ts +2 -0
- package/dist/model/RtcIceTransportPolicy.d.ts +2 -0
- package/dist/model/RtcSessionType.d.ts +2 -0
- package/dist/model/RtcStreamType.d.ts +3 -0
- package/dist/model/SmsOptInStatus.d.ts +2 -0
- package/dist/model/StreamType.d.ts +2 -0
- package/dist/model/Timeout.d.ts +1 -0
- package/dist/model/Timestamp.d.ts +1 -0
- package/dist/model/Uuid.d.ts +1 -0
- package/dist/model/VideoMimeType.d.ts +2 -0
- package/dist/model/auditLogActionTypes.d.ts +1 -0
- package/dist/model/bytes.d.ts +9 -0
- package/dist/model/cognitoRegions.d.ts +1 -0
- package/dist/model/duration.d.ts +10 -0
- package/dist/model/features.d.ts +2 -0
- package/dist/model/healthStatuses.d.ts +5 -0
- package/dist/model/languageTypes.d.ts +1 -0
- package/dist/model/logLevels.d.ts +1 -0
- package/dist/model/marker3DActions.d.ts +1 -0
- package/dist/model/marker3DTypes.d.ts +1 -0
- package/dist/model/organizationPlans.d.ts +1 -0
- package/dist/model/rtcConnectionStatuses.d.ts +1 -0
- package/dist/model/rtcIceServerProtocols.d.ts +1 -0
- package/dist/model/rtcIceTransportPolicies.d.ts +1 -0
- package/dist/model/rtcSessionTypes.d.ts +1 -0
- package/dist/model/rtcStreamTypes.d.ts +28 -0
- package/dist/model/smsOptInStatuses.d.ts +1 -0
- package/dist/model/videoMimeTypes.d.ts +1 -0
- package/dist/protos/api/signaling/v1/signaling_grpc_web_pb.d.ts +125 -0
- package/dist/protos/api/signaling/v1/signaling_grpc_web_pb.js +626 -0
- package/dist/protos/api/signaling/v1/signaling_pb.d.ts +458 -0
- package/dist/protos/api/signaling/v1/signaling_pb.js +3854 -0
- package/dist/realtime-sdk/src/config/index.d.ts +2 -0
- package/dist/realtime-sdk/src/index.d.ts +18 -0
- package/dist/rtc-client/DeadlineEnforcer.d.ts +4 -0
- package/dist/rtc-client/DeadlineReachedError.d.ts +3 -0
- package/dist/rtc-client/IHasPeerConnection.d.ts +3 -0
- package/dist/rtc-client/IHasRemoteDeviceId.d.ts +4 -0
- package/dist/rtc-client/RtcClient.d.ts +71 -0
- package/dist/rtc-client/RtcClientV1.d.ts +52 -0
- package/dist/rtc-client/RtcConnection.d.ts +95 -0
- package/dist/rtc-client/RtcConnectionV1.d.ts +73 -0
- package/dist/rtc-client/RtcSessionMetrics.d.ts +17 -0
- package/dist/rtc-client/RtcSessionMetricsV1.d.ts +14 -0
- package/dist/rtc-client/config/index.d.ts +11 -0
- package/dist/rtc-client/gatherPingMetrics.d.ts +17 -0
- package/dist/rtc-client/models/IIceMode.d.ts +1 -0
- package/dist/rtc-client/models/IPingInfo.d.ts +10 -0
- package/dist/rtc-client/models/IPingPayload.d.ts +6 -0
- package/dist/rtc-client/models/IRTCStatsIceCandidate.d.ts +9 -0
- package/dist/rtc-client/models/IRTCStatsIceCandidatePair.d.ts +9 -0
- package/dist/rtc-client/models/IRTCStatsTransport.d.ts +8 -0
- package/dist/rtc-client/models/IRtcAgentInfo.d.ts +3 -0
- package/dist/rtc-client/models/IRtcClientConfiguration.d.ts +18 -0
- package/dist/rtc-client/models/IRtcConnectionBaseConfiguration.d.ts +16 -0
- package/dist/rtc-client/models/IRtcConnectionConfiguration.d.ts +6 -0
- package/dist/rtc-client/models/IRtcConnectionRemoteConfiguration.d.ts +6 -0
- package/dist/rtc-client/models/IRtcConnectionStatsInfo.d.ts +9 -0
- package/dist/rtc-client/models/IRtcPointCloud.d.ts +5 -0
- package/dist/rtc-client/models/IRtcSendConfiguration.d.ts +4 -0
- package/dist/rtc-client/models/IRtcSessionMetricsMessageCounts.d.ts +6 -0
- package/dist/rtc-client/models/IRtcStreamCommunication.d.ts +4 -0
- package/dist/rtc-client/models/IRtcStreamMessage.d.ts +7 -0
- package/dist/rtc-client/models/IRtcStreamMessageChunk.d.ts +7 -0
- package/dist/rtc-client/models/IRtcStreamMessageHeader.d.ts +7 -0
- package/dist/rtc-client/models/IRtcStreamPayload.d.ts +55 -0
- package/dist/rtc-client/models/IRtcStreamsInfo.d.ts +9 -0
- package/dist/rtc-client/models/IStreamControl.d.ts +23 -0
- package/dist/rtc-client/models/RtcChannelLabel.d.ts +2 -0
- package/dist/rtc-client/models/RtcCommunicationType.d.ts +1 -0
- package/dist/rtc-client/models/rtcChannelLabels.d.ts +1 -0
- package/dist/rtc-client/models-v1/IRtcClientConfigurationV1.d.ts +11 -0
- package/dist/rtc-client/models-v1/IRtcConnectionConfigurationV1.d.ts +12 -0
- package/dist/rtc-client/utils/assertHasPeerConnection.d.ts +1 -0
- package/dist/rtc-client/utils/createRtcStreamMessage.d.ts +4 -0
- package/dist/rtc-client/utils/encodeStreamId.d.ts +3 -0
- package/dist/rtc-client/utils/garbageCollect.d.ts +1 -0
- package/dist/rtc-client/utils/getErrorMessage.d.ts +1 -0
- package/dist/rtc-client/utils/iceModeFromRtcConnectionInfo.d.ts +3 -0
- package/dist/rtc-client/utils/isInactive.d.ts +1 -0
- package/dist/rtc-client/utils/partition.d.ts +1 -0
- package/dist/rtc-client/utils/peerToRtcPeer.d.ts +3 -0
- package/dist/rtc-client/utils/reassembleMessageChunks.d.ts +3 -0
- package/dist/rtc-client/utils/reifyZeroValues.d.ts +2 -0
- package/dist/rtc-client/utils/streamIsEqual.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,3854 @@
|
|
|
1
|
+
// source: signaling.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
23
|
+
|
|
24
|
+
var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
|
|
25
|
+
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
26
|
+
goog.exportSymbol('proto.v1.signaling.api.CreatePeerRequest', null, global);
|
|
27
|
+
goog.exportSymbol('proto.v1.signaling.api.CreatePeerResponse', null, global);
|
|
28
|
+
goog.exportSymbol('proto.v1.signaling.api.DeletePeerRequest', null, global);
|
|
29
|
+
goog.exportSymbol('proto.v1.signaling.api.DeletePeerResponse', null, global);
|
|
30
|
+
goog.exportSymbol('proto.v1.signaling.api.GetHealthRequest', null, global);
|
|
31
|
+
goog.exportSymbol('proto.v1.signaling.api.GetHealthResponse', null, global);
|
|
32
|
+
goog.exportSymbol('proto.v1.signaling.api.GetIceServersRequest', null, global);
|
|
33
|
+
goog.exportSymbol('proto.v1.signaling.api.GetIceServersResponse', null, global);
|
|
34
|
+
goog.exportSymbol('proto.v1.signaling.api.GetPeersRequest', null, global);
|
|
35
|
+
goog.exportSymbol('proto.v1.signaling.api.GetPeersResponse', null, global);
|
|
36
|
+
goog.exportSymbol('proto.v1.signaling.api.GetSessionsRequest', null, global);
|
|
37
|
+
goog.exportSymbol('proto.v1.signaling.api.GetSessionsResponse', null, global);
|
|
38
|
+
goog.exportSymbol('proto.v1.signaling.api.Peer', null, global);
|
|
39
|
+
goog.exportSymbol('proto.v1.signaling.api.ReceiveSignalStreamRequest', null, global);
|
|
40
|
+
goog.exportSymbol('proto.v1.signaling.api.ReceiveSignalStreamResponse', null, global);
|
|
41
|
+
goog.exportSymbol('proto.v1.signaling.api.RefreshPeerRequest', null, global);
|
|
42
|
+
goog.exportSymbol('proto.v1.signaling.api.RefreshPeerResponse', null, global);
|
|
43
|
+
goog.exportSymbol('proto.v1.signaling.api.RtcSession', null, global);
|
|
44
|
+
goog.exportSymbol('proto.v1.signaling.api.SendSignalRequest', null, global);
|
|
45
|
+
goog.exportSymbol('proto.v1.signaling.api.SendSignalResponse', null, global);
|
|
46
|
+
goog.exportSymbol('proto.v1.signaling.api.SessionType', null, global);
|
|
47
|
+
goog.exportSymbol('proto.v1.signaling.api.Signal', null, global);
|
|
48
|
+
/**
|
|
49
|
+
* Generated by JsPbCodeGenerator.
|
|
50
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
51
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
52
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
53
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
54
|
+
* valid.
|
|
55
|
+
* @extends {jspb.Message}
|
|
56
|
+
* @constructor
|
|
57
|
+
*/
|
|
58
|
+
proto.v1.signaling.api.Peer = function(opt_data) {
|
|
59
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.signaling.api.Peer.repeatedFields_, null);
|
|
60
|
+
};
|
|
61
|
+
goog.inherits(proto.v1.signaling.api.Peer, jspb.Message);
|
|
62
|
+
if (goog.DEBUG && !COMPILED) {
|
|
63
|
+
/**
|
|
64
|
+
* @public
|
|
65
|
+
* @override
|
|
66
|
+
*/
|
|
67
|
+
proto.v1.signaling.api.Peer.displayName = 'proto.v1.signaling.api.Peer';
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Generated by JsPbCodeGenerator.
|
|
71
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
72
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
73
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
74
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
75
|
+
* valid.
|
|
76
|
+
* @extends {jspb.Message}
|
|
77
|
+
* @constructor
|
|
78
|
+
*/
|
|
79
|
+
proto.v1.signaling.api.Signal = function(opt_data) {
|
|
80
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
81
|
+
};
|
|
82
|
+
goog.inherits(proto.v1.signaling.api.Signal, jspb.Message);
|
|
83
|
+
if (goog.DEBUG && !COMPILED) {
|
|
84
|
+
/**
|
|
85
|
+
* @public
|
|
86
|
+
* @override
|
|
87
|
+
*/
|
|
88
|
+
proto.v1.signaling.api.Signal.displayName = 'proto.v1.signaling.api.Signal';
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Generated by JsPbCodeGenerator.
|
|
92
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
93
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
94
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
95
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
96
|
+
* valid.
|
|
97
|
+
* @extends {jspb.Message}
|
|
98
|
+
* @constructor
|
|
99
|
+
*/
|
|
100
|
+
proto.v1.signaling.api.RtcSession = function(opt_data) {
|
|
101
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
102
|
+
};
|
|
103
|
+
goog.inherits(proto.v1.signaling.api.RtcSession, jspb.Message);
|
|
104
|
+
if (goog.DEBUG && !COMPILED) {
|
|
105
|
+
/**
|
|
106
|
+
* @public
|
|
107
|
+
* @override
|
|
108
|
+
*/
|
|
109
|
+
proto.v1.signaling.api.RtcSession.displayName = 'proto.v1.signaling.api.RtcSession';
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Generated by JsPbCodeGenerator.
|
|
113
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
114
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
115
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
116
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
117
|
+
* valid.
|
|
118
|
+
* @extends {jspb.Message}
|
|
119
|
+
* @constructor
|
|
120
|
+
*/
|
|
121
|
+
proto.v1.signaling.api.GetSessionsRequest = function(opt_data) {
|
|
122
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
123
|
+
};
|
|
124
|
+
goog.inherits(proto.v1.signaling.api.GetSessionsRequest, jspb.Message);
|
|
125
|
+
if (goog.DEBUG && !COMPILED) {
|
|
126
|
+
/**
|
|
127
|
+
* @public
|
|
128
|
+
* @override
|
|
129
|
+
*/
|
|
130
|
+
proto.v1.signaling.api.GetSessionsRequest.displayName = 'proto.v1.signaling.api.GetSessionsRequest';
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Generated by JsPbCodeGenerator.
|
|
134
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
135
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
136
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
137
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
138
|
+
* valid.
|
|
139
|
+
* @extends {jspb.Message}
|
|
140
|
+
* @constructor
|
|
141
|
+
*/
|
|
142
|
+
proto.v1.signaling.api.GetSessionsResponse = function(opt_data) {
|
|
143
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.signaling.api.GetSessionsResponse.repeatedFields_, null);
|
|
144
|
+
};
|
|
145
|
+
goog.inherits(proto.v1.signaling.api.GetSessionsResponse, jspb.Message);
|
|
146
|
+
if (goog.DEBUG && !COMPILED) {
|
|
147
|
+
/**
|
|
148
|
+
* @public
|
|
149
|
+
* @override
|
|
150
|
+
*/
|
|
151
|
+
proto.v1.signaling.api.GetSessionsResponse.displayName = 'proto.v1.signaling.api.GetSessionsResponse';
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Generated by JsPbCodeGenerator.
|
|
155
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
156
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
157
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
158
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
159
|
+
* valid.
|
|
160
|
+
* @extends {jspb.Message}
|
|
161
|
+
* @constructor
|
|
162
|
+
*/
|
|
163
|
+
proto.v1.signaling.api.GetHealthRequest = function(opt_data) {
|
|
164
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
165
|
+
};
|
|
166
|
+
goog.inherits(proto.v1.signaling.api.GetHealthRequest, jspb.Message);
|
|
167
|
+
if (goog.DEBUG && !COMPILED) {
|
|
168
|
+
/**
|
|
169
|
+
* @public
|
|
170
|
+
* @override
|
|
171
|
+
*/
|
|
172
|
+
proto.v1.signaling.api.GetHealthRequest.displayName = 'proto.v1.signaling.api.GetHealthRequest';
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Generated by JsPbCodeGenerator.
|
|
176
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
177
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
178
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
179
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
180
|
+
* valid.
|
|
181
|
+
* @extends {jspb.Message}
|
|
182
|
+
* @constructor
|
|
183
|
+
*/
|
|
184
|
+
proto.v1.signaling.api.GetHealthResponse = function(opt_data) {
|
|
185
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
186
|
+
};
|
|
187
|
+
goog.inherits(proto.v1.signaling.api.GetHealthResponse, jspb.Message);
|
|
188
|
+
if (goog.DEBUG && !COMPILED) {
|
|
189
|
+
/**
|
|
190
|
+
* @public
|
|
191
|
+
* @override
|
|
192
|
+
*/
|
|
193
|
+
proto.v1.signaling.api.GetHealthResponse.displayName = 'proto.v1.signaling.api.GetHealthResponse';
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Generated by JsPbCodeGenerator.
|
|
197
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
198
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
199
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
200
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
201
|
+
* valid.
|
|
202
|
+
* @extends {jspb.Message}
|
|
203
|
+
* @constructor
|
|
204
|
+
*/
|
|
205
|
+
proto.v1.signaling.api.CreatePeerRequest = function(opt_data) {
|
|
206
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
207
|
+
};
|
|
208
|
+
goog.inherits(proto.v1.signaling.api.CreatePeerRequest, jspb.Message);
|
|
209
|
+
if (goog.DEBUG && !COMPILED) {
|
|
210
|
+
/**
|
|
211
|
+
* @public
|
|
212
|
+
* @override
|
|
213
|
+
*/
|
|
214
|
+
proto.v1.signaling.api.CreatePeerRequest.displayName = 'proto.v1.signaling.api.CreatePeerRequest';
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Generated by JsPbCodeGenerator.
|
|
218
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
219
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
220
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
221
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
222
|
+
* valid.
|
|
223
|
+
* @extends {jspb.Message}
|
|
224
|
+
* @constructor
|
|
225
|
+
*/
|
|
226
|
+
proto.v1.signaling.api.CreatePeerResponse = function(opt_data) {
|
|
227
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
228
|
+
};
|
|
229
|
+
goog.inherits(proto.v1.signaling.api.CreatePeerResponse, jspb.Message);
|
|
230
|
+
if (goog.DEBUG && !COMPILED) {
|
|
231
|
+
/**
|
|
232
|
+
* @public
|
|
233
|
+
* @override
|
|
234
|
+
*/
|
|
235
|
+
proto.v1.signaling.api.CreatePeerResponse.displayName = 'proto.v1.signaling.api.CreatePeerResponse';
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Generated by JsPbCodeGenerator.
|
|
239
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
240
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
241
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
242
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
243
|
+
* valid.
|
|
244
|
+
* @extends {jspb.Message}
|
|
245
|
+
* @constructor
|
|
246
|
+
*/
|
|
247
|
+
proto.v1.signaling.api.DeletePeerRequest = function(opt_data) {
|
|
248
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
249
|
+
};
|
|
250
|
+
goog.inherits(proto.v1.signaling.api.DeletePeerRequest, jspb.Message);
|
|
251
|
+
if (goog.DEBUG && !COMPILED) {
|
|
252
|
+
/**
|
|
253
|
+
* @public
|
|
254
|
+
* @override
|
|
255
|
+
*/
|
|
256
|
+
proto.v1.signaling.api.DeletePeerRequest.displayName = 'proto.v1.signaling.api.DeletePeerRequest';
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Generated by JsPbCodeGenerator.
|
|
260
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
261
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
262
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
263
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
264
|
+
* valid.
|
|
265
|
+
* @extends {jspb.Message}
|
|
266
|
+
* @constructor
|
|
267
|
+
*/
|
|
268
|
+
proto.v1.signaling.api.DeletePeerResponse = function(opt_data) {
|
|
269
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
270
|
+
};
|
|
271
|
+
goog.inherits(proto.v1.signaling.api.DeletePeerResponse, jspb.Message);
|
|
272
|
+
if (goog.DEBUG && !COMPILED) {
|
|
273
|
+
/**
|
|
274
|
+
* @public
|
|
275
|
+
* @override
|
|
276
|
+
*/
|
|
277
|
+
proto.v1.signaling.api.DeletePeerResponse.displayName = 'proto.v1.signaling.api.DeletePeerResponse';
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Generated by JsPbCodeGenerator.
|
|
281
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
282
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
283
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
284
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
285
|
+
* valid.
|
|
286
|
+
* @extends {jspb.Message}
|
|
287
|
+
* @constructor
|
|
288
|
+
*/
|
|
289
|
+
proto.v1.signaling.api.RefreshPeerRequest = function(opt_data) {
|
|
290
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
291
|
+
};
|
|
292
|
+
goog.inherits(proto.v1.signaling.api.RefreshPeerRequest, jspb.Message);
|
|
293
|
+
if (goog.DEBUG && !COMPILED) {
|
|
294
|
+
/**
|
|
295
|
+
* @public
|
|
296
|
+
* @override
|
|
297
|
+
*/
|
|
298
|
+
proto.v1.signaling.api.RefreshPeerRequest.displayName = 'proto.v1.signaling.api.RefreshPeerRequest';
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Generated by JsPbCodeGenerator.
|
|
302
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
303
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
304
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
305
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
306
|
+
* valid.
|
|
307
|
+
* @extends {jspb.Message}
|
|
308
|
+
* @constructor
|
|
309
|
+
*/
|
|
310
|
+
proto.v1.signaling.api.RefreshPeerResponse = function(opt_data) {
|
|
311
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
312
|
+
};
|
|
313
|
+
goog.inherits(proto.v1.signaling.api.RefreshPeerResponse, jspb.Message);
|
|
314
|
+
if (goog.DEBUG && !COMPILED) {
|
|
315
|
+
/**
|
|
316
|
+
* @public
|
|
317
|
+
* @override
|
|
318
|
+
*/
|
|
319
|
+
proto.v1.signaling.api.RefreshPeerResponse.displayName = 'proto.v1.signaling.api.RefreshPeerResponse';
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Generated by JsPbCodeGenerator.
|
|
323
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
324
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
325
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
326
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
327
|
+
* valid.
|
|
328
|
+
* @extends {jspb.Message}
|
|
329
|
+
* @constructor
|
|
330
|
+
*/
|
|
331
|
+
proto.v1.signaling.api.GetPeersRequest = function(opt_data) {
|
|
332
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
333
|
+
};
|
|
334
|
+
goog.inherits(proto.v1.signaling.api.GetPeersRequest, jspb.Message);
|
|
335
|
+
if (goog.DEBUG && !COMPILED) {
|
|
336
|
+
/**
|
|
337
|
+
* @public
|
|
338
|
+
* @override
|
|
339
|
+
*/
|
|
340
|
+
proto.v1.signaling.api.GetPeersRequest.displayName = 'proto.v1.signaling.api.GetPeersRequest';
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Generated by JsPbCodeGenerator.
|
|
344
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
345
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
346
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
347
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
348
|
+
* valid.
|
|
349
|
+
* @extends {jspb.Message}
|
|
350
|
+
* @constructor
|
|
351
|
+
*/
|
|
352
|
+
proto.v1.signaling.api.GetPeersResponse = function(opt_data) {
|
|
353
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.signaling.api.GetPeersResponse.repeatedFields_, null);
|
|
354
|
+
};
|
|
355
|
+
goog.inherits(proto.v1.signaling.api.GetPeersResponse, jspb.Message);
|
|
356
|
+
if (goog.DEBUG && !COMPILED) {
|
|
357
|
+
/**
|
|
358
|
+
* @public
|
|
359
|
+
* @override
|
|
360
|
+
*/
|
|
361
|
+
proto.v1.signaling.api.GetPeersResponse.displayName = 'proto.v1.signaling.api.GetPeersResponse';
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Generated by JsPbCodeGenerator.
|
|
365
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
366
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
367
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
368
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
369
|
+
* valid.
|
|
370
|
+
* @extends {jspb.Message}
|
|
371
|
+
* @constructor
|
|
372
|
+
*/
|
|
373
|
+
proto.v1.signaling.api.GetIceServersRequest = function(opt_data) {
|
|
374
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
375
|
+
};
|
|
376
|
+
goog.inherits(proto.v1.signaling.api.GetIceServersRequest, jspb.Message);
|
|
377
|
+
if (goog.DEBUG && !COMPILED) {
|
|
378
|
+
/**
|
|
379
|
+
* @public
|
|
380
|
+
* @override
|
|
381
|
+
*/
|
|
382
|
+
proto.v1.signaling.api.GetIceServersRequest.displayName = 'proto.v1.signaling.api.GetIceServersRequest';
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Generated by JsPbCodeGenerator.
|
|
386
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
387
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
388
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
389
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
390
|
+
* valid.
|
|
391
|
+
* @extends {jspb.Message}
|
|
392
|
+
* @constructor
|
|
393
|
+
*/
|
|
394
|
+
proto.v1.signaling.api.GetIceServersResponse = function(opt_data) {
|
|
395
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
396
|
+
};
|
|
397
|
+
goog.inherits(proto.v1.signaling.api.GetIceServersResponse, jspb.Message);
|
|
398
|
+
if (goog.DEBUG && !COMPILED) {
|
|
399
|
+
/**
|
|
400
|
+
* @public
|
|
401
|
+
* @override
|
|
402
|
+
*/
|
|
403
|
+
proto.v1.signaling.api.GetIceServersResponse.displayName = 'proto.v1.signaling.api.GetIceServersResponse';
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Generated by JsPbCodeGenerator.
|
|
407
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
408
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
409
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
410
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
411
|
+
* valid.
|
|
412
|
+
* @extends {jspb.Message}
|
|
413
|
+
* @constructor
|
|
414
|
+
*/
|
|
415
|
+
proto.v1.signaling.api.SendSignalRequest = function(opt_data) {
|
|
416
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
417
|
+
};
|
|
418
|
+
goog.inherits(proto.v1.signaling.api.SendSignalRequest, jspb.Message);
|
|
419
|
+
if (goog.DEBUG && !COMPILED) {
|
|
420
|
+
/**
|
|
421
|
+
* @public
|
|
422
|
+
* @override
|
|
423
|
+
*/
|
|
424
|
+
proto.v1.signaling.api.SendSignalRequest.displayName = 'proto.v1.signaling.api.SendSignalRequest';
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* Generated by JsPbCodeGenerator.
|
|
428
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
429
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
430
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
431
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
432
|
+
* valid.
|
|
433
|
+
* @extends {jspb.Message}
|
|
434
|
+
* @constructor
|
|
435
|
+
*/
|
|
436
|
+
proto.v1.signaling.api.SendSignalResponse = function(opt_data) {
|
|
437
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
438
|
+
};
|
|
439
|
+
goog.inherits(proto.v1.signaling.api.SendSignalResponse, jspb.Message);
|
|
440
|
+
if (goog.DEBUG && !COMPILED) {
|
|
441
|
+
/**
|
|
442
|
+
* @public
|
|
443
|
+
* @override
|
|
444
|
+
*/
|
|
445
|
+
proto.v1.signaling.api.SendSignalResponse.displayName = 'proto.v1.signaling.api.SendSignalResponse';
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Generated by JsPbCodeGenerator.
|
|
449
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
450
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
451
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
452
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
453
|
+
* valid.
|
|
454
|
+
* @extends {jspb.Message}
|
|
455
|
+
* @constructor
|
|
456
|
+
*/
|
|
457
|
+
proto.v1.signaling.api.ReceiveSignalStreamRequest = function(opt_data) {
|
|
458
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
459
|
+
};
|
|
460
|
+
goog.inherits(proto.v1.signaling.api.ReceiveSignalStreamRequest, jspb.Message);
|
|
461
|
+
if (goog.DEBUG && !COMPILED) {
|
|
462
|
+
/**
|
|
463
|
+
* @public
|
|
464
|
+
* @override
|
|
465
|
+
*/
|
|
466
|
+
proto.v1.signaling.api.ReceiveSignalStreamRequest.displayName = 'proto.v1.signaling.api.ReceiveSignalStreamRequest';
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Generated by JsPbCodeGenerator.
|
|
470
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
471
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
472
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
473
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
474
|
+
* valid.
|
|
475
|
+
* @extends {jspb.Message}
|
|
476
|
+
* @constructor
|
|
477
|
+
*/
|
|
478
|
+
proto.v1.signaling.api.ReceiveSignalStreamResponse = function(opt_data) {
|
|
479
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
480
|
+
};
|
|
481
|
+
goog.inherits(proto.v1.signaling.api.ReceiveSignalStreamResponse, jspb.Message);
|
|
482
|
+
if (goog.DEBUG && !COMPILED) {
|
|
483
|
+
/**
|
|
484
|
+
* @public
|
|
485
|
+
* @override
|
|
486
|
+
*/
|
|
487
|
+
proto.v1.signaling.api.ReceiveSignalStreamResponse.displayName = 'proto.v1.signaling.api.ReceiveSignalStreamResponse';
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* List of repeated fields within this message type.
|
|
492
|
+
* @private {!Array<number>}
|
|
493
|
+
* @const
|
|
494
|
+
*/
|
|
495
|
+
proto.v1.signaling.api.Peer.repeatedFields_ = [5];
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
500
|
+
/**
|
|
501
|
+
* Creates an object representation of this proto.
|
|
502
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
503
|
+
* Optional fields that are not set will be set to undefined.
|
|
504
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
505
|
+
* For the list of reserved names please see:
|
|
506
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
507
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
508
|
+
* JSPB instance for transitional soy proto support:
|
|
509
|
+
* http://goto/soy-param-migration
|
|
510
|
+
* @return {!Object}
|
|
511
|
+
*/
|
|
512
|
+
proto.v1.signaling.api.Peer.prototype.toObject = function(opt_includeInstance) {
|
|
513
|
+
return proto.v1.signaling.api.Peer.toObject(opt_includeInstance, this);
|
|
514
|
+
};
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Static version of the {@see toObject} method.
|
|
519
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
520
|
+
* the JSPB instance for transitional soy proto support:
|
|
521
|
+
* http://goto/soy-param-migration
|
|
522
|
+
* @param {!proto.v1.signaling.api.Peer} msg The msg instance to transform.
|
|
523
|
+
* @return {!Object}
|
|
524
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
525
|
+
*/
|
|
526
|
+
proto.v1.signaling.api.Peer.toObject = function(includeInstance, msg) {
|
|
527
|
+
var f, obj = {
|
|
528
|
+
peerId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
529
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
530
|
+
userId: (f = msg.getUserId()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
531
|
+
deviceId: (f = msg.getDeviceId()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
532
|
+
sessionIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
533
|
+
peerCreatedTimestamp: (f = msg.getPeerCreatedTimestamp()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f)
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
if (includeInstance) {
|
|
537
|
+
obj.$jspbMessageInstance = msg;
|
|
538
|
+
}
|
|
539
|
+
return obj;
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Deserializes binary data (in protobuf wire format).
|
|
546
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
547
|
+
* @return {!proto.v1.signaling.api.Peer}
|
|
548
|
+
*/
|
|
549
|
+
proto.v1.signaling.api.Peer.deserializeBinary = function(bytes) {
|
|
550
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
551
|
+
var msg = new proto.v1.signaling.api.Peer;
|
|
552
|
+
return proto.v1.signaling.api.Peer.deserializeBinaryFromReader(msg, reader);
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
558
|
+
* given reader into the given message object.
|
|
559
|
+
* @param {!proto.v1.signaling.api.Peer} msg The message object to deserialize into.
|
|
560
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
561
|
+
* @return {!proto.v1.signaling.api.Peer}
|
|
562
|
+
*/
|
|
563
|
+
proto.v1.signaling.api.Peer.deserializeBinaryFromReader = function(msg, reader) {
|
|
564
|
+
while (reader.nextField()) {
|
|
565
|
+
if (reader.isEndGroup()) {
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
568
|
+
var field = reader.getFieldNumber();
|
|
569
|
+
switch (field) {
|
|
570
|
+
case 1:
|
|
571
|
+
var value = /** @type {string} */ (reader.readString());
|
|
572
|
+
msg.setPeerId(value);
|
|
573
|
+
break;
|
|
574
|
+
case 2:
|
|
575
|
+
var value = /** @type {string} */ (reader.readString());
|
|
576
|
+
msg.setOrganizationId(value);
|
|
577
|
+
break;
|
|
578
|
+
case 3:
|
|
579
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
580
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
581
|
+
msg.setUserId(value);
|
|
582
|
+
break;
|
|
583
|
+
case 4:
|
|
584
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
585
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
586
|
+
msg.setDeviceId(value);
|
|
587
|
+
break;
|
|
588
|
+
case 5:
|
|
589
|
+
var value = /** @type {string} */ (reader.readString());
|
|
590
|
+
msg.addSessionIds(value);
|
|
591
|
+
break;
|
|
592
|
+
case 6:
|
|
593
|
+
var value = new google_protobuf_wrappers_pb.Int64Value;
|
|
594
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
|
|
595
|
+
msg.setPeerCreatedTimestamp(value);
|
|
596
|
+
break;
|
|
597
|
+
default:
|
|
598
|
+
reader.skipField();
|
|
599
|
+
break;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
return msg;
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
608
|
+
* @return {!Uint8Array}
|
|
609
|
+
*/
|
|
610
|
+
proto.v1.signaling.api.Peer.prototype.serializeBinary = function() {
|
|
611
|
+
var writer = new jspb.BinaryWriter();
|
|
612
|
+
proto.v1.signaling.api.Peer.serializeBinaryToWriter(this, writer);
|
|
613
|
+
return writer.getResultBuffer();
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
619
|
+
* format), writing to the given BinaryWriter.
|
|
620
|
+
* @param {!proto.v1.signaling.api.Peer} message
|
|
621
|
+
* @param {!jspb.BinaryWriter} writer
|
|
622
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
623
|
+
*/
|
|
624
|
+
proto.v1.signaling.api.Peer.serializeBinaryToWriter = function(message, writer) {
|
|
625
|
+
var f = undefined;
|
|
626
|
+
f = message.getPeerId();
|
|
627
|
+
if (f.length > 0) {
|
|
628
|
+
writer.writeString(
|
|
629
|
+
1,
|
|
630
|
+
f
|
|
631
|
+
);
|
|
632
|
+
}
|
|
633
|
+
f = message.getOrganizationId();
|
|
634
|
+
if (f.length > 0) {
|
|
635
|
+
writer.writeString(
|
|
636
|
+
2,
|
|
637
|
+
f
|
|
638
|
+
);
|
|
639
|
+
}
|
|
640
|
+
f = message.getUserId();
|
|
641
|
+
if (f != null) {
|
|
642
|
+
writer.writeMessage(
|
|
643
|
+
3,
|
|
644
|
+
f,
|
|
645
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
646
|
+
);
|
|
647
|
+
}
|
|
648
|
+
f = message.getDeviceId();
|
|
649
|
+
if (f != null) {
|
|
650
|
+
writer.writeMessage(
|
|
651
|
+
4,
|
|
652
|
+
f,
|
|
653
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
654
|
+
);
|
|
655
|
+
}
|
|
656
|
+
f = message.getSessionIdsList();
|
|
657
|
+
if (f.length > 0) {
|
|
658
|
+
writer.writeRepeatedString(
|
|
659
|
+
5,
|
|
660
|
+
f
|
|
661
|
+
);
|
|
662
|
+
}
|
|
663
|
+
f = message.getPeerCreatedTimestamp();
|
|
664
|
+
if (f != null) {
|
|
665
|
+
writer.writeMessage(
|
|
666
|
+
6,
|
|
667
|
+
f,
|
|
668
|
+
google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
|
|
669
|
+
);
|
|
670
|
+
}
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* optional string peer_id = 1;
|
|
676
|
+
* @return {string}
|
|
677
|
+
*/
|
|
678
|
+
proto.v1.signaling.api.Peer.prototype.getPeerId = function() {
|
|
679
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* @param {string} value
|
|
685
|
+
* @return {!proto.v1.signaling.api.Peer} returns this
|
|
686
|
+
*/
|
|
687
|
+
proto.v1.signaling.api.Peer.prototype.setPeerId = function(value) {
|
|
688
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
689
|
+
};
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* optional string organization_id = 2;
|
|
694
|
+
* @return {string}
|
|
695
|
+
*/
|
|
696
|
+
proto.v1.signaling.api.Peer.prototype.getOrganizationId = function() {
|
|
697
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
698
|
+
};
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* @param {string} value
|
|
703
|
+
* @return {!proto.v1.signaling.api.Peer} returns this
|
|
704
|
+
*/
|
|
705
|
+
proto.v1.signaling.api.Peer.prototype.setOrganizationId = function(value) {
|
|
706
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* optional google.protobuf.StringValue user_id = 3;
|
|
712
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
713
|
+
*/
|
|
714
|
+
proto.v1.signaling.api.Peer.prototype.getUserId = function() {
|
|
715
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
716
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3));
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
722
|
+
* @return {!proto.v1.signaling.api.Peer} returns this
|
|
723
|
+
*/
|
|
724
|
+
proto.v1.signaling.api.Peer.prototype.setUserId = function(value) {
|
|
725
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
726
|
+
};
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* Clears the message field making it undefined.
|
|
731
|
+
* @return {!proto.v1.signaling.api.Peer} returns this
|
|
732
|
+
*/
|
|
733
|
+
proto.v1.signaling.api.Peer.prototype.clearUserId = function() {
|
|
734
|
+
return this.setUserId(undefined);
|
|
735
|
+
};
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Returns whether this field is set.
|
|
740
|
+
* @return {boolean}
|
|
741
|
+
*/
|
|
742
|
+
proto.v1.signaling.api.Peer.prototype.hasUserId = function() {
|
|
743
|
+
return jspb.Message.getField(this, 3) != null;
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* optional google.protobuf.StringValue device_id = 4;
|
|
749
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
750
|
+
*/
|
|
751
|
+
proto.v1.signaling.api.Peer.prototype.getDeviceId = function() {
|
|
752
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
753
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 4));
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
759
|
+
* @return {!proto.v1.signaling.api.Peer} returns this
|
|
760
|
+
*/
|
|
761
|
+
proto.v1.signaling.api.Peer.prototype.setDeviceId = function(value) {
|
|
762
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
763
|
+
};
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Clears the message field making it undefined.
|
|
768
|
+
* @return {!proto.v1.signaling.api.Peer} returns this
|
|
769
|
+
*/
|
|
770
|
+
proto.v1.signaling.api.Peer.prototype.clearDeviceId = function() {
|
|
771
|
+
return this.setDeviceId(undefined);
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* Returns whether this field is set.
|
|
777
|
+
* @return {boolean}
|
|
778
|
+
*/
|
|
779
|
+
proto.v1.signaling.api.Peer.prototype.hasDeviceId = function() {
|
|
780
|
+
return jspb.Message.getField(this, 4) != null;
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* repeated string session_ids = 5;
|
|
786
|
+
* @return {!Array<string>}
|
|
787
|
+
*/
|
|
788
|
+
proto.v1.signaling.api.Peer.prototype.getSessionIdsList = function() {
|
|
789
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* @param {!Array<string>} value
|
|
795
|
+
* @return {!proto.v1.signaling.api.Peer} returns this
|
|
796
|
+
*/
|
|
797
|
+
proto.v1.signaling.api.Peer.prototype.setSessionIdsList = function(value) {
|
|
798
|
+
return jspb.Message.setField(this, 5, value || []);
|
|
799
|
+
};
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* @param {string} value
|
|
804
|
+
* @param {number=} opt_index
|
|
805
|
+
* @return {!proto.v1.signaling.api.Peer} returns this
|
|
806
|
+
*/
|
|
807
|
+
proto.v1.signaling.api.Peer.prototype.addSessionIds = function(value, opt_index) {
|
|
808
|
+
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
|
809
|
+
};
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Clears the list making it empty but non-null.
|
|
814
|
+
* @return {!proto.v1.signaling.api.Peer} returns this
|
|
815
|
+
*/
|
|
816
|
+
proto.v1.signaling.api.Peer.prototype.clearSessionIdsList = function() {
|
|
817
|
+
return this.setSessionIdsList([]);
|
|
818
|
+
};
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* optional google.protobuf.Int64Value peer_created_timestamp = 6;
|
|
823
|
+
* @return {?proto.google.protobuf.Int64Value}
|
|
824
|
+
*/
|
|
825
|
+
proto.v1.signaling.api.Peer.prototype.getPeerCreatedTimestamp = function() {
|
|
826
|
+
return /** @type{?proto.google.protobuf.Int64Value} */ (
|
|
827
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 6));
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* @param {?proto.google.protobuf.Int64Value|undefined} value
|
|
833
|
+
* @return {!proto.v1.signaling.api.Peer} returns this
|
|
834
|
+
*/
|
|
835
|
+
proto.v1.signaling.api.Peer.prototype.setPeerCreatedTimestamp = function(value) {
|
|
836
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
837
|
+
};
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* Clears the message field making it undefined.
|
|
842
|
+
* @return {!proto.v1.signaling.api.Peer} returns this
|
|
843
|
+
*/
|
|
844
|
+
proto.v1.signaling.api.Peer.prototype.clearPeerCreatedTimestamp = function() {
|
|
845
|
+
return this.setPeerCreatedTimestamp(undefined);
|
|
846
|
+
};
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Returns whether this field is set.
|
|
851
|
+
* @return {boolean}
|
|
852
|
+
*/
|
|
853
|
+
proto.v1.signaling.api.Peer.prototype.hasPeerCreatedTimestamp = function() {
|
|
854
|
+
return jspb.Message.getField(this, 6) != null;
|
|
855
|
+
};
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
862
|
+
/**
|
|
863
|
+
* Creates an object representation of this proto.
|
|
864
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
865
|
+
* Optional fields that are not set will be set to undefined.
|
|
866
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
867
|
+
* For the list of reserved names please see:
|
|
868
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
869
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
870
|
+
* JSPB instance for transitional soy proto support:
|
|
871
|
+
* http://goto/soy-param-migration
|
|
872
|
+
* @return {!Object}
|
|
873
|
+
*/
|
|
874
|
+
proto.v1.signaling.api.Signal.prototype.toObject = function(opt_includeInstance) {
|
|
875
|
+
return proto.v1.signaling.api.Signal.toObject(opt_includeInstance, this);
|
|
876
|
+
};
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Static version of the {@see toObject} method.
|
|
881
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
882
|
+
* the JSPB instance for transitional soy proto support:
|
|
883
|
+
* http://goto/soy-param-migration
|
|
884
|
+
* @param {!proto.v1.signaling.api.Signal} msg The msg instance to transform.
|
|
885
|
+
* @return {!Object}
|
|
886
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
887
|
+
*/
|
|
888
|
+
proto.v1.signaling.api.Signal.toObject = function(includeInstance, msg) {
|
|
889
|
+
var f, obj = {
|
|
890
|
+
sessionId: (f = msg.getSessionId()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
891
|
+
sessionCreatedTimestamp: (f = msg.getSessionCreatedTimestamp()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f),
|
|
892
|
+
senderId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
893
|
+
receiverId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
894
|
+
payload: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
895
|
+
iceServers: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
896
|
+
iceTransportPolicy: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
897
|
+
sessionType: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
if (includeInstance) {
|
|
901
|
+
obj.$jspbMessageInstance = msg;
|
|
902
|
+
}
|
|
903
|
+
return obj;
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* Deserializes binary data (in protobuf wire format).
|
|
910
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
911
|
+
* @return {!proto.v1.signaling.api.Signal}
|
|
912
|
+
*/
|
|
913
|
+
proto.v1.signaling.api.Signal.deserializeBinary = function(bytes) {
|
|
914
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
915
|
+
var msg = new proto.v1.signaling.api.Signal;
|
|
916
|
+
return proto.v1.signaling.api.Signal.deserializeBinaryFromReader(msg, reader);
|
|
917
|
+
};
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
922
|
+
* given reader into the given message object.
|
|
923
|
+
* @param {!proto.v1.signaling.api.Signal} msg The message object to deserialize into.
|
|
924
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
925
|
+
* @return {!proto.v1.signaling.api.Signal}
|
|
926
|
+
*/
|
|
927
|
+
proto.v1.signaling.api.Signal.deserializeBinaryFromReader = function(msg, reader) {
|
|
928
|
+
while (reader.nextField()) {
|
|
929
|
+
if (reader.isEndGroup()) {
|
|
930
|
+
break;
|
|
931
|
+
}
|
|
932
|
+
var field = reader.getFieldNumber();
|
|
933
|
+
switch (field) {
|
|
934
|
+
case 1:
|
|
935
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
936
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
937
|
+
msg.setSessionId(value);
|
|
938
|
+
break;
|
|
939
|
+
case 2:
|
|
940
|
+
var value = new google_protobuf_wrappers_pb.Int64Value;
|
|
941
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
|
|
942
|
+
msg.setSessionCreatedTimestamp(value);
|
|
943
|
+
break;
|
|
944
|
+
case 3:
|
|
945
|
+
var value = /** @type {string} */ (reader.readString());
|
|
946
|
+
msg.setSenderId(value);
|
|
947
|
+
break;
|
|
948
|
+
case 4:
|
|
949
|
+
var value = /** @type {string} */ (reader.readString());
|
|
950
|
+
msg.setReceiverId(value);
|
|
951
|
+
break;
|
|
952
|
+
case 5:
|
|
953
|
+
var value = /** @type {string} */ (reader.readString());
|
|
954
|
+
msg.setPayload(value);
|
|
955
|
+
break;
|
|
956
|
+
case 6:
|
|
957
|
+
var value = /** @type {string} */ (reader.readString());
|
|
958
|
+
msg.setIceServers(value);
|
|
959
|
+
break;
|
|
960
|
+
case 7:
|
|
961
|
+
var value = /** @type {string} */ (reader.readString());
|
|
962
|
+
msg.setIceTransportPolicy(value);
|
|
963
|
+
break;
|
|
964
|
+
case 8:
|
|
965
|
+
var value = /** @type {!proto.v1.signaling.api.SessionType} */ (reader.readEnum());
|
|
966
|
+
msg.setSessionType(value);
|
|
967
|
+
break;
|
|
968
|
+
default:
|
|
969
|
+
reader.skipField();
|
|
970
|
+
break;
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
return msg;
|
|
974
|
+
};
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
979
|
+
* @return {!Uint8Array}
|
|
980
|
+
*/
|
|
981
|
+
proto.v1.signaling.api.Signal.prototype.serializeBinary = function() {
|
|
982
|
+
var writer = new jspb.BinaryWriter();
|
|
983
|
+
proto.v1.signaling.api.Signal.serializeBinaryToWriter(this, writer);
|
|
984
|
+
return writer.getResultBuffer();
|
|
985
|
+
};
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
990
|
+
* format), writing to the given BinaryWriter.
|
|
991
|
+
* @param {!proto.v1.signaling.api.Signal} message
|
|
992
|
+
* @param {!jspb.BinaryWriter} writer
|
|
993
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
994
|
+
*/
|
|
995
|
+
proto.v1.signaling.api.Signal.serializeBinaryToWriter = function(message, writer) {
|
|
996
|
+
var f = undefined;
|
|
997
|
+
f = message.getSessionId();
|
|
998
|
+
if (f != null) {
|
|
999
|
+
writer.writeMessage(
|
|
1000
|
+
1,
|
|
1001
|
+
f,
|
|
1002
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
1003
|
+
);
|
|
1004
|
+
}
|
|
1005
|
+
f = message.getSessionCreatedTimestamp();
|
|
1006
|
+
if (f != null) {
|
|
1007
|
+
writer.writeMessage(
|
|
1008
|
+
2,
|
|
1009
|
+
f,
|
|
1010
|
+
google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
|
|
1011
|
+
);
|
|
1012
|
+
}
|
|
1013
|
+
f = message.getSenderId();
|
|
1014
|
+
if (f.length > 0) {
|
|
1015
|
+
writer.writeString(
|
|
1016
|
+
3,
|
|
1017
|
+
f
|
|
1018
|
+
);
|
|
1019
|
+
}
|
|
1020
|
+
f = message.getReceiverId();
|
|
1021
|
+
if (f.length > 0) {
|
|
1022
|
+
writer.writeString(
|
|
1023
|
+
4,
|
|
1024
|
+
f
|
|
1025
|
+
);
|
|
1026
|
+
}
|
|
1027
|
+
f = message.getPayload();
|
|
1028
|
+
if (f.length > 0) {
|
|
1029
|
+
writer.writeString(
|
|
1030
|
+
5,
|
|
1031
|
+
f
|
|
1032
|
+
);
|
|
1033
|
+
}
|
|
1034
|
+
f = message.getIceServers();
|
|
1035
|
+
if (f.length > 0) {
|
|
1036
|
+
writer.writeString(
|
|
1037
|
+
6,
|
|
1038
|
+
f
|
|
1039
|
+
);
|
|
1040
|
+
}
|
|
1041
|
+
f = message.getIceTransportPolicy();
|
|
1042
|
+
if (f.length > 0) {
|
|
1043
|
+
writer.writeString(
|
|
1044
|
+
7,
|
|
1045
|
+
f
|
|
1046
|
+
);
|
|
1047
|
+
}
|
|
1048
|
+
f = message.getSessionType();
|
|
1049
|
+
if (f !== 0.0) {
|
|
1050
|
+
writer.writeEnum(
|
|
1051
|
+
8,
|
|
1052
|
+
f
|
|
1053
|
+
);
|
|
1054
|
+
}
|
|
1055
|
+
};
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* optional google.protobuf.StringValue session_id = 1;
|
|
1060
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
1061
|
+
*/
|
|
1062
|
+
proto.v1.signaling.api.Signal.prototype.getSessionId = function() {
|
|
1063
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
1064
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
|
|
1065
|
+
};
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
1070
|
+
* @return {!proto.v1.signaling.api.Signal} returns this
|
|
1071
|
+
*/
|
|
1072
|
+
proto.v1.signaling.api.Signal.prototype.setSessionId = function(value) {
|
|
1073
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1074
|
+
};
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Clears the message field making it undefined.
|
|
1079
|
+
* @return {!proto.v1.signaling.api.Signal} returns this
|
|
1080
|
+
*/
|
|
1081
|
+
proto.v1.signaling.api.Signal.prototype.clearSessionId = function() {
|
|
1082
|
+
return this.setSessionId(undefined);
|
|
1083
|
+
};
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* Returns whether this field is set.
|
|
1088
|
+
* @return {boolean}
|
|
1089
|
+
*/
|
|
1090
|
+
proto.v1.signaling.api.Signal.prototype.hasSessionId = function() {
|
|
1091
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* optional google.protobuf.Int64Value session_created_timestamp = 2;
|
|
1097
|
+
* @return {?proto.google.protobuf.Int64Value}
|
|
1098
|
+
*/
|
|
1099
|
+
proto.v1.signaling.api.Signal.prototype.getSessionCreatedTimestamp = function() {
|
|
1100
|
+
return /** @type{?proto.google.protobuf.Int64Value} */ (
|
|
1101
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 2));
|
|
1102
|
+
};
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* @param {?proto.google.protobuf.Int64Value|undefined} value
|
|
1107
|
+
* @return {!proto.v1.signaling.api.Signal} returns this
|
|
1108
|
+
*/
|
|
1109
|
+
proto.v1.signaling.api.Signal.prototype.setSessionCreatedTimestamp = function(value) {
|
|
1110
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1111
|
+
};
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* Clears the message field making it undefined.
|
|
1116
|
+
* @return {!proto.v1.signaling.api.Signal} returns this
|
|
1117
|
+
*/
|
|
1118
|
+
proto.v1.signaling.api.Signal.prototype.clearSessionCreatedTimestamp = function() {
|
|
1119
|
+
return this.setSessionCreatedTimestamp(undefined);
|
|
1120
|
+
};
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* Returns whether this field is set.
|
|
1125
|
+
* @return {boolean}
|
|
1126
|
+
*/
|
|
1127
|
+
proto.v1.signaling.api.Signal.prototype.hasSessionCreatedTimestamp = function() {
|
|
1128
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1129
|
+
};
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* optional string sender_id = 3;
|
|
1134
|
+
* @return {string}
|
|
1135
|
+
*/
|
|
1136
|
+
proto.v1.signaling.api.Signal.prototype.getSenderId = function() {
|
|
1137
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1138
|
+
};
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* @param {string} value
|
|
1143
|
+
* @return {!proto.v1.signaling.api.Signal} returns this
|
|
1144
|
+
*/
|
|
1145
|
+
proto.v1.signaling.api.Signal.prototype.setSenderId = function(value) {
|
|
1146
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1147
|
+
};
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* optional string receiver_id = 4;
|
|
1152
|
+
* @return {string}
|
|
1153
|
+
*/
|
|
1154
|
+
proto.v1.signaling.api.Signal.prototype.getReceiverId = function() {
|
|
1155
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1156
|
+
};
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
/**
|
|
1160
|
+
* @param {string} value
|
|
1161
|
+
* @return {!proto.v1.signaling.api.Signal} returns this
|
|
1162
|
+
*/
|
|
1163
|
+
proto.v1.signaling.api.Signal.prototype.setReceiverId = function(value) {
|
|
1164
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1165
|
+
};
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* optional string payload = 5;
|
|
1170
|
+
* @return {string}
|
|
1171
|
+
*/
|
|
1172
|
+
proto.v1.signaling.api.Signal.prototype.getPayload = function() {
|
|
1173
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* @param {string} value
|
|
1179
|
+
* @return {!proto.v1.signaling.api.Signal} returns this
|
|
1180
|
+
*/
|
|
1181
|
+
proto.v1.signaling.api.Signal.prototype.setPayload = function(value) {
|
|
1182
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
1183
|
+
};
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* optional string ice_servers = 6;
|
|
1188
|
+
* @return {string}
|
|
1189
|
+
*/
|
|
1190
|
+
proto.v1.signaling.api.Signal.prototype.getIceServers = function() {
|
|
1191
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
1192
|
+
};
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* @param {string} value
|
|
1197
|
+
* @return {!proto.v1.signaling.api.Signal} returns this
|
|
1198
|
+
*/
|
|
1199
|
+
proto.v1.signaling.api.Signal.prototype.setIceServers = function(value) {
|
|
1200
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
1201
|
+
};
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* optional string ice_transport_policy = 7;
|
|
1206
|
+
* @return {string}
|
|
1207
|
+
*/
|
|
1208
|
+
proto.v1.signaling.api.Signal.prototype.getIceTransportPolicy = function() {
|
|
1209
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
1210
|
+
};
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* @param {string} value
|
|
1215
|
+
* @return {!proto.v1.signaling.api.Signal} returns this
|
|
1216
|
+
*/
|
|
1217
|
+
proto.v1.signaling.api.Signal.prototype.setIceTransportPolicy = function(value) {
|
|
1218
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
1219
|
+
};
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* optional SessionType session_type = 8;
|
|
1224
|
+
* @return {!proto.v1.signaling.api.SessionType}
|
|
1225
|
+
*/
|
|
1226
|
+
proto.v1.signaling.api.Signal.prototype.getSessionType = function() {
|
|
1227
|
+
return /** @type {!proto.v1.signaling.api.SessionType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
1228
|
+
};
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* @param {!proto.v1.signaling.api.SessionType} value
|
|
1233
|
+
* @return {!proto.v1.signaling.api.Signal} returns this
|
|
1234
|
+
*/
|
|
1235
|
+
proto.v1.signaling.api.Signal.prototype.setSessionType = function(value) {
|
|
1236
|
+
return jspb.Message.setProto3EnumField(this, 8, value);
|
|
1237
|
+
};
|
|
1238
|
+
|
|
1239
|
+
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1244
|
+
/**
|
|
1245
|
+
* Creates an object representation of this proto.
|
|
1246
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1247
|
+
* Optional fields that are not set will be set to undefined.
|
|
1248
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1249
|
+
* For the list of reserved names please see:
|
|
1250
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1251
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1252
|
+
* JSPB instance for transitional soy proto support:
|
|
1253
|
+
* http://goto/soy-param-migration
|
|
1254
|
+
* @return {!Object}
|
|
1255
|
+
*/
|
|
1256
|
+
proto.v1.signaling.api.RtcSession.prototype.toObject = function(opt_includeInstance) {
|
|
1257
|
+
return proto.v1.signaling.api.RtcSession.toObject(opt_includeInstance, this);
|
|
1258
|
+
};
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* Static version of the {@see toObject} method.
|
|
1263
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1264
|
+
* the JSPB instance for transitional soy proto support:
|
|
1265
|
+
* http://goto/soy-param-migration
|
|
1266
|
+
* @param {!proto.v1.signaling.api.RtcSession} msg The msg instance to transform.
|
|
1267
|
+
* @return {!Object}
|
|
1268
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1269
|
+
*/
|
|
1270
|
+
proto.v1.signaling.api.RtcSession.toObject = function(includeInstance, msg) {
|
|
1271
|
+
var f, obj = {
|
|
1272
|
+
sessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1273
|
+
offerPeerId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1274
|
+
answerPeerId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1275
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
1276
|
+
sessionType: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
1277
|
+
};
|
|
1278
|
+
|
|
1279
|
+
if (includeInstance) {
|
|
1280
|
+
obj.$jspbMessageInstance = msg;
|
|
1281
|
+
}
|
|
1282
|
+
return obj;
|
|
1283
|
+
};
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1289
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1290
|
+
* @return {!proto.v1.signaling.api.RtcSession}
|
|
1291
|
+
*/
|
|
1292
|
+
proto.v1.signaling.api.RtcSession.deserializeBinary = function(bytes) {
|
|
1293
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1294
|
+
var msg = new proto.v1.signaling.api.RtcSession;
|
|
1295
|
+
return proto.v1.signaling.api.RtcSession.deserializeBinaryFromReader(msg, reader);
|
|
1296
|
+
};
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1301
|
+
* given reader into the given message object.
|
|
1302
|
+
* @param {!proto.v1.signaling.api.RtcSession} msg The message object to deserialize into.
|
|
1303
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1304
|
+
* @return {!proto.v1.signaling.api.RtcSession}
|
|
1305
|
+
*/
|
|
1306
|
+
proto.v1.signaling.api.RtcSession.deserializeBinaryFromReader = function(msg, reader) {
|
|
1307
|
+
while (reader.nextField()) {
|
|
1308
|
+
if (reader.isEndGroup()) {
|
|
1309
|
+
break;
|
|
1310
|
+
}
|
|
1311
|
+
var field = reader.getFieldNumber();
|
|
1312
|
+
switch (field) {
|
|
1313
|
+
case 1:
|
|
1314
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1315
|
+
msg.setSessionId(value);
|
|
1316
|
+
break;
|
|
1317
|
+
case 2:
|
|
1318
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1319
|
+
msg.setOfferPeerId(value);
|
|
1320
|
+
break;
|
|
1321
|
+
case 3:
|
|
1322
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1323
|
+
msg.setAnswerPeerId(value);
|
|
1324
|
+
break;
|
|
1325
|
+
case 4:
|
|
1326
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1327
|
+
msg.setOrganizationId(value);
|
|
1328
|
+
break;
|
|
1329
|
+
case 5:
|
|
1330
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1331
|
+
msg.setSessionType(value);
|
|
1332
|
+
break;
|
|
1333
|
+
default:
|
|
1334
|
+
reader.skipField();
|
|
1335
|
+
break;
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
return msg;
|
|
1339
|
+
};
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1344
|
+
* @return {!Uint8Array}
|
|
1345
|
+
*/
|
|
1346
|
+
proto.v1.signaling.api.RtcSession.prototype.serializeBinary = function() {
|
|
1347
|
+
var writer = new jspb.BinaryWriter();
|
|
1348
|
+
proto.v1.signaling.api.RtcSession.serializeBinaryToWriter(this, writer);
|
|
1349
|
+
return writer.getResultBuffer();
|
|
1350
|
+
};
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1355
|
+
* format), writing to the given BinaryWriter.
|
|
1356
|
+
* @param {!proto.v1.signaling.api.RtcSession} message
|
|
1357
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1358
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1359
|
+
*/
|
|
1360
|
+
proto.v1.signaling.api.RtcSession.serializeBinaryToWriter = function(message, writer) {
|
|
1361
|
+
var f = undefined;
|
|
1362
|
+
f = message.getSessionId();
|
|
1363
|
+
if (f.length > 0) {
|
|
1364
|
+
writer.writeString(
|
|
1365
|
+
1,
|
|
1366
|
+
f
|
|
1367
|
+
);
|
|
1368
|
+
}
|
|
1369
|
+
f = message.getOfferPeerId();
|
|
1370
|
+
if (f.length > 0) {
|
|
1371
|
+
writer.writeString(
|
|
1372
|
+
2,
|
|
1373
|
+
f
|
|
1374
|
+
);
|
|
1375
|
+
}
|
|
1376
|
+
f = message.getAnswerPeerId();
|
|
1377
|
+
if (f.length > 0) {
|
|
1378
|
+
writer.writeString(
|
|
1379
|
+
3,
|
|
1380
|
+
f
|
|
1381
|
+
);
|
|
1382
|
+
}
|
|
1383
|
+
f = message.getOrganizationId();
|
|
1384
|
+
if (f.length > 0) {
|
|
1385
|
+
writer.writeString(
|
|
1386
|
+
4,
|
|
1387
|
+
f
|
|
1388
|
+
);
|
|
1389
|
+
}
|
|
1390
|
+
f = message.getSessionType();
|
|
1391
|
+
if (f.length > 0) {
|
|
1392
|
+
writer.writeString(
|
|
1393
|
+
5,
|
|
1394
|
+
f
|
|
1395
|
+
);
|
|
1396
|
+
}
|
|
1397
|
+
};
|
|
1398
|
+
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* optional string session_id = 1;
|
|
1402
|
+
* @return {string}
|
|
1403
|
+
*/
|
|
1404
|
+
proto.v1.signaling.api.RtcSession.prototype.getSessionId = function() {
|
|
1405
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1406
|
+
};
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
* @param {string} value
|
|
1411
|
+
* @return {!proto.v1.signaling.api.RtcSession} returns this
|
|
1412
|
+
*/
|
|
1413
|
+
proto.v1.signaling.api.RtcSession.prototype.setSessionId = function(value) {
|
|
1414
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1415
|
+
};
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
* optional string offer_peer_id = 2;
|
|
1420
|
+
* @return {string}
|
|
1421
|
+
*/
|
|
1422
|
+
proto.v1.signaling.api.RtcSession.prototype.getOfferPeerId = function() {
|
|
1423
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1424
|
+
};
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
* @param {string} value
|
|
1429
|
+
* @return {!proto.v1.signaling.api.RtcSession} returns this
|
|
1430
|
+
*/
|
|
1431
|
+
proto.v1.signaling.api.RtcSession.prototype.setOfferPeerId = function(value) {
|
|
1432
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1433
|
+
};
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* optional string answer_peer_id = 3;
|
|
1438
|
+
* @return {string}
|
|
1439
|
+
*/
|
|
1440
|
+
proto.v1.signaling.api.RtcSession.prototype.getAnswerPeerId = function() {
|
|
1441
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
/**
|
|
1446
|
+
* @param {string} value
|
|
1447
|
+
* @return {!proto.v1.signaling.api.RtcSession} returns this
|
|
1448
|
+
*/
|
|
1449
|
+
proto.v1.signaling.api.RtcSession.prototype.setAnswerPeerId = function(value) {
|
|
1450
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1451
|
+
};
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* optional string organization_id = 4;
|
|
1456
|
+
* @return {string}
|
|
1457
|
+
*/
|
|
1458
|
+
proto.v1.signaling.api.RtcSession.prototype.getOrganizationId = function() {
|
|
1459
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1462
|
+
|
|
1463
|
+
/**
|
|
1464
|
+
* @param {string} value
|
|
1465
|
+
* @return {!proto.v1.signaling.api.RtcSession} returns this
|
|
1466
|
+
*/
|
|
1467
|
+
proto.v1.signaling.api.RtcSession.prototype.setOrganizationId = function(value) {
|
|
1468
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1469
|
+
};
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* optional string session_type = 5;
|
|
1474
|
+
* @return {string}
|
|
1475
|
+
*/
|
|
1476
|
+
proto.v1.signaling.api.RtcSession.prototype.getSessionType = function() {
|
|
1477
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1480
|
+
|
|
1481
|
+
/**
|
|
1482
|
+
* @param {string} value
|
|
1483
|
+
* @return {!proto.v1.signaling.api.RtcSession} returns this
|
|
1484
|
+
*/
|
|
1485
|
+
proto.v1.signaling.api.RtcSession.prototype.setSessionType = function(value) {
|
|
1486
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
1487
|
+
};
|
|
1488
|
+
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1494
|
+
/**
|
|
1495
|
+
* Creates an object representation of this proto.
|
|
1496
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1497
|
+
* Optional fields that are not set will be set to undefined.
|
|
1498
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1499
|
+
* For the list of reserved names please see:
|
|
1500
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1501
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1502
|
+
* JSPB instance for transitional soy proto support:
|
|
1503
|
+
* http://goto/soy-param-migration
|
|
1504
|
+
* @return {!Object}
|
|
1505
|
+
*/
|
|
1506
|
+
proto.v1.signaling.api.GetSessionsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1507
|
+
return proto.v1.signaling.api.GetSessionsRequest.toObject(opt_includeInstance, this);
|
|
1508
|
+
};
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* Static version of the {@see toObject} method.
|
|
1513
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1514
|
+
* the JSPB instance for transitional soy proto support:
|
|
1515
|
+
* http://goto/soy-param-migration
|
|
1516
|
+
* @param {!proto.v1.signaling.api.GetSessionsRequest} msg The msg instance to transform.
|
|
1517
|
+
* @return {!Object}
|
|
1518
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1519
|
+
*/
|
|
1520
|
+
proto.v1.signaling.api.GetSessionsRequest.toObject = function(includeInstance, msg) {
|
|
1521
|
+
var f, obj = {
|
|
1522
|
+
|
|
1523
|
+
};
|
|
1524
|
+
|
|
1525
|
+
if (includeInstance) {
|
|
1526
|
+
obj.$jspbMessageInstance = msg;
|
|
1527
|
+
}
|
|
1528
|
+
return obj;
|
|
1529
|
+
};
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
/**
|
|
1534
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1535
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1536
|
+
* @return {!proto.v1.signaling.api.GetSessionsRequest}
|
|
1537
|
+
*/
|
|
1538
|
+
proto.v1.signaling.api.GetSessionsRequest.deserializeBinary = function(bytes) {
|
|
1539
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1540
|
+
var msg = new proto.v1.signaling.api.GetSessionsRequest;
|
|
1541
|
+
return proto.v1.signaling.api.GetSessionsRequest.deserializeBinaryFromReader(msg, reader);
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1547
|
+
* given reader into the given message object.
|
|
1548
|
+
* @param {!proto.v1.signaling.api.GetSessionsRequest} msg The message object to deserialize into.
|
|
1549
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1550
|
+
* @return {!proto.v1.signaling.api.GetSessionsRequest}
|
|
1551
|
+
*/
|
|
1552
|
+
proto.v1.signaling.api.GetSessionsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1553
|
+
while (reader.nextField()) {
|
|
1554
|
+
if (reader.isEndGroup()) {
|
|
1555
|
+
break;
|
|
1556
|
+
}
|
|
1557
|
+
var field = reader.getFieldNumber();
|
|
1558
|
+
switch (field) {
|
|
1559
|
+
default:
|
|
1560
|
+
reader.skipField();
|
|
1561
|
+
break;
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
return msg;
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1570
|
+
* @return {!Uint8Array}
|
|
1571
|
+
*/
|
|
1572
|
+
proto.v1.signaling.api.GetSessionsRequest.prototype.serializeBinary = function() {
|
|
1573
|
+
var writer = new jspb.BinaryWriter();
|
|
1574
|
+
proto.v1.signaling.api.GetSessionsRequest.serializeBinaryToWriter(this, writer);
|
|
1575
|
+
return writer.getResultBuffer();
|
|
1576
|
+
};
|
|
1577
|
+
|
|
1578
|
+
|
|
1579
|
+
/**
|
|
1580
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1581
|
+
* format), writing to the given BinaryWriter.
|
|
1582
|
+
* @param {!proto.v1.signaling.api.GetSessionsRequest} message
|
|
1583
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1584
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1585
|
+
*/
|
|
1586
|
+
proto.v1.signaling.api.GetSessionsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1587
|
+
var f = undefined;
|
|
1588
|
+
};
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* List of repeated fields within this message type.
|
|
1594
|
+
* @private {!Array<number>}
|
|
1595
|
+
* @const
|
|
1596
|
+
*/
|
|
1597
|
+
proto.v1.signaling.api.GetSessionsResponse.repeatedFields_ = [1];
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
|
|
1601
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1602
|
+
/**
|
|
1603
|
+
* Creates an object representation of this proto.
|
|
1604
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1605
|
+
* Optional fields that are not set will be set to undefined.
|
|
1606
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1607
|
+
* For the list of reserved names please see:
|
|
1608
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1609
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1610
|
+
* JSPB instance for transitional soy proto support:
|
|
1611
|
+
* http://goto/soy-param-migration
|
|
1612
|
+
* @return {!Object}
|
|
1613
|
+
*/
|
|
1614
|
+
proto.v1.signaling.api.GetSessionsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1615
|
+
return proto.v1.signaling.api.GetSessionsResponse.toObject(opt_includeInstance, this);
|
|
1616
|
+
};
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
/**
|
|
1620
|
+
* Static version of the {@see toObject} method.
|
|
1621
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1622
|
+
* the JSPB instance for transitional soy proto support:
|
|
1623
|
+
* http://goto/soy-param-migration
|
|
1624
|
+
* @param {!proto.v1.signaling.api.GetSessionsResponse} msg The msg instance to transform.
|
|
1625
|
+
* @return {!Object}
|
|
1626
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1627
|
+
*/
|
|
1628
|
+
proto.v1.signaling.api.GetSessionsResponse.toObject = function(includeInstance, msg) {
|
|
1629
|
+
var f, obj = {
|
|
1630
|
+
sessionsList: jspb.Message.toObjectList(msg.getSessionsList(),
|
|
1631
|
+
proto.v1.signaling.api.RtcSession.toObject, includeInstance)
|
|
1632
|
+
};
|
|
1633
|
+
|
|
1634
|
+
if (includeInstance) {
|
|
1635
|
+
obj.$jspbMessageInstance = msg;
|
|
1636
|
+
}
|
|
1637
|
+
return obj;
|
|
1638
|
+
};
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
/**
|
|
1643
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1644
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1645
|
+
* @return {!proto.v1.signaling.api.GetSessionsResponse}
|
|
1646
|
+
*/
|
|
1647
|
+
proto.v1.signaling.api.GetSessionsResponse.deserializeBinary = function(bytes) {
|
|
1648
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1649
|
+
var msg = new proto.v1.signaling.api.GetSessionsResponse;
|
|
1650
|
+
return proto.v1.signaling.api.GetSessionsResponse.deserializeBinaryFromReader(msg, reader);
|
|
1651
|
+
};
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
/**
|
|
1655
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1656
|
+
* given reader into the given message object.
|
|
1657
|
+
* @param {!proto.v1.signaling.api.GetSessionsResponse} msg The message object to deserialize into.
|
|
1658
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1659
|
+
* @return {!proto.v1.signaling.api.GetSessionsResponse}
|
|
1660
|
+
*/
|
|
1661
|
+
proto.v1.signaling.api.GetSessionsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1662
|
+
while (reader.nextField()) {
|
|
1663
|
+
if (reader.isEndGroup()) {
|
|
1664
|
+
break;
|
|
1665
|
+
}
|
|
1666
|
+
var field = reader.getFieldNumber();
|
|
1667
|
+
switch (field) {
|
|
1668
|
+
case 1:
|
|
1669
|
+
var value = new proto.v1.signaling.api.RtcSession;
|
|
1670
|
+
reader.readMessage(value,proto.v1.signaling.api.RtcSession.deserializeBinaryFromReader);
|
|
1671
|
+
msg.addSessions(value);
|
|
1672
|
+
break;
|
|
1673
|
+
default:
|
|
1674
|
+
reader.skipField();
|
|
1675
|
+
break;
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
return msg;
|
|
1679
|
+
};
|
|
1680
|
+
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1684
|
+
* @return {!Uint8Array}
|
|
1685
|
+
*/
|
|
1686
|
+
proto.v1.signaling.api.GetSessionsResponse.prototype.serializeBinary = function() {
|
|
1687
|
+
var writer = new jspb.BinaryWriter();
|
|
1688
|
+
proto.v1.signaling.api.GetSessionsResponse.serializeBinaryToWriter(this, writer);
|
|
1689
|
+
return writer.getResultBuffer();
|
|
1690
|
+
};
|
|
1691
|
+
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1695
|
+
* format), writing to the given BinaryWriter.
|
|
1696
|
+
* @param {!proto.v1.signaling.api.GetSessionsResponse} message
|
|
1697
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1698
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1699
|
+
*/
|
|
1700
|
+
proto.v1.signaling.api.GetSessionsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1701
|
+
var f = undefined;
|
|
1702
|
+
f = message.getSessionsList();
|
|
1703
|
+
if (f.length > 0) {
|
|
1704
|
+
writer.writeRepeatedMessage(
|
|
1705
|
+
1,
|
|
1706
|
+
f,
|
|
1707
|
+
proto.v1.signaling.api.RtcSession.serializeBinaryToWriter
|
|
1708
|
+
);
|
|
1709
|
+
}
|
|
1710
|
+
};
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* repeated RtcSession sessions = 1;
|
|
1715
|
+
* @return {!Array<!proto.v1.signaling.api.RtcSession>}
|
|
1716
|
+
*/
|
|
1717
|
+
proto.v1.signaling.api.GetSessionsResponse.prototype.getSessionsList = function() {
|
|
1718
|
+
return /** @type{!Array<!proto.v1.signaling.api.RtcSession>} */ (
|
|
1719
|
+
jspb.Message.getRepeatedWrapperField(this, proto.v1.signaling.api.RtcSession, 1));
|
|
1720
|
+
};
|
|
1721
|
+
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* @param {!Array<!proto.v1.signaling.api.RtcSession>} value
|
|
1725
|
+
* @return {!proto.v1.signaling.api.GetSessionsResponse} returns this
|
|
1726
|
+
*/
|
|
1727
|
+
proto.v1.signaling.api.GetSessionsResponse.prototype.setSessionsList = function(value) {
|
|
1728
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1729
|
+
};
|
|
1730
|
+
|
|
1731
|
+
|
|
1732
|
+
/**
|
|
1733
|
+
* @param {!proto.v1.signaling.api.RtcSession=} opt_value
|
|
1734
|
+
* @param {number=} opt_index
|
|
1735
|
+
* @return {!proto.v1.signaling.api.RtcSession}
|
|
1736
|
+
*/
|
|
1737
|
+
proto.v1.signaling.api.GetSessionsResponse.prototype.addSessions = function(opt_value, opt_index) {
|
|
1738
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.v1.signaling.api.RtcSession, opt_index);
|
|
1739
|
+
};
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
/**
|
|
1743
|
+
* Clears the list making it empty but non-null.
|
|
1744
|
+
* @return {!proto.v1.signaling.api.GetSessionsResponse} returns this
|
|
1745
|
+
*/
|
|
1746
|
+
proto.v1.signaling.api.GetSessionsResponse.prototype.clearSessionsList = function() {
|
|
1747
|
+
return this.setSessionsList([]);
|
|
1748
|
+
};
|
|
1749
|
+
|
|
1750
|
+
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
|
|
1754
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1755
|
+
/**
|
|
1756
|
+
* Creates an object representation of this proto.
|
|
1757
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1758
|
+
* Optional fields that are not set will be set to undefined.
|
|
1759
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1760
|
+
* For the list of reserved names please see:
|
|
1761
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1762
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1763
|
+
* JSPB instance for transitional soy proto support:
|
|
1764
|
+
* http://goto/soy-param-migration
|
|
1765
|
+
* @return {!Object}
|
|
1766
|
+
*/
|
|
1767
|
+
proto.v1.signaling.api.GetHealthRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1768
|
+
return proto.v1.signaling.api.GetHealthRequest.toObject(opt_includeInstance, this);
|
|
1769
|
+
};
|
|
1770
|
+
|
|
1771
|
+
|
|
1772
|
+
/**
|
|
1773
|
+
* Static version of the {@see toObject} method.
|
|
1774
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1775
|
+
* the JSPB instance for transitional soy proto support:
|
|
1776
|
+
* http://goto/soy-param-migration
|
|
1777
|
+
* @param {!proto.v1.signaling.api.GetHealthRequest} msg The msg instance to transform.
|
|
1778
|
+
* @return {!Object}
|
|
1779
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1780
|
+
*/
|
|
1781
|
+
proto.v1.signaling.api.GetHealthRequest.toObject = function(includeInstance, msg) {
|
|
1782
|
+
var f, obj = {
|
|
1783
|
+
|
|
1784
|
+
};
|
|
1785
|
+
|
|
1786
|
+
if (includeInstance) {
|
|
1787
|
+
obj.$jspbMessageInstance = msg;
|
|
1788
|
+
}
|
|
1789
|
+
return obj;
|
|
1790
|
+
};
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
/**
|
|
1795
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1796
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1797
|
+
* @return {!proto.v1.signaling.api.GetHealthRequest}
|
|
1798
|
+
*/
|
|
1799
|
+
proto.v1.signaling.api.GetHealthRequest.deserializeBinary = function(bytes) {
|
|
1800
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1801
|
+
var msg = new proto.v1.signaling.api.GetHealthRequest;
|
|
1802
|
+
return proto.v1.signaling.api.GetHealthRequest.deserializeBinaryFromReader(msg, reader);
|
|
1803
|
+
};
|
|
1804
|
+
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1808
|
+
* given reader into the given message object.
|
|
1809
|
+
* @param {!proto.v1.signaling.api.GetHealthRequest} msg The message object to deserialize into.
|
|
1810
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1811
|
+
* @return {!proto.v1.signaling.api.GetHealthRequest}
|
|
1812
|
+
*/
|
|
1813
|
+
proto.v1.signaling.api.GetHealthRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1814
|
+
while (reader.nextField()) {
|
|
1815
|
+
if (reader.isEndGroup()) {
|
|
1816
|
+
break;
|
|
1817
|
+
}
|
|
1818
|
+
var field = reader.getFieldNumber();
|
|
1819
|
+
switch (field) {
|
|
1820
|
+
default:
|
|
1821
|
+
reader.skipField();
|
|
1822
|
+
break;
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
return msg;
|
|
1826
|
+
};
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1831
|
+
* @return {!Uint8Array}
|
|
1832
|
+
*/
|
|
1833
|
+
proto.v1.signaling.api.GetHealthRequest.prototype.serializeBinary = function() {
|
|
1834
|
+
var writer = new jspb.BinaryWriter();
|
|
1835
|
+
proto.v1.signaling.api.GetHealthRequest.serializeBinaryToWriter(this, writer);
|
|
1836
|
+
return writer.getResultBuffer();
|
|
1837
|
+
};
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1842
|
+
* format), writing to the given BinaryWriter.
|
|
1843
|
+
* @param {!proto.v1.signaling.api.GetHealthRequest} message
|
|
1844
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1845
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1846
|
+
*/
|
|
1847
|
+
proto.v1.signaling.api.GetHealthRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1848
|
+
var f = undefined;
|
|
1849
|
+
};
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1856
|
+
/**
|
|
1857
|
+
* Creates an object representation of this proto.
|
|
1858
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1859
|
+
* Optional fields that are not set will be set to undefined.
|
|
1860
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1861
|
+
* For the list of reserved names please see:
|
|
1862
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1863
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1864
|
+
* JSPB instance for transitional soy proto support:
|
|
1865
|
+
* http://goto/soy-param-migration
|
|
1866
|
+
* @return {!Object}
|
|
1867
|
+
*/
|
|
1868
|
+
proto.v1.signaling.api.GetHealthResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1869
|
+
return proto.v1.signaling.api.GetHealthResponse.toObject(opt_includeInstance, this);
|
|
1870
|
+
};
|
|
1871
|
+
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* Static version of the {@see toObject} method.
|
|
1875
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1876
|
+
* the JSPB instance for transitional soy proto support:
|
|
1877
|
+
* http://goto/soy-param-migration
|
|
1878
|
+
* @param {!proto.v1.signaling.api.GetHealthResponse} msg The msg instance to transform.
|
|
1879
|
+
* @return {!Object}
|
|
1880
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1881
|
+
*/
|
|
1882
|
+
proto.v1.signaling.api.GetHealthResponse.toObject = function(includeInstance, msg) {
|
|
1883
|
+
var f, obj = {
|
|
1884
|
+
version: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1885
|
+
};
|
|
1886
|
+
|
|
1887
|
+
if (includeInstance) {
|
|
1888
|
+
obj.$jspbMessageInstance = msg;
|
|
1889
|
+
}
|
|
1890
|
+
return obj;
|
|
1891
|
+
};
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
|
|
1895
|
+
/**
|
|
1896
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1897
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1898
|
+
* @return {!proto.v1.signaling.api.GetHealthResponse}
|
|
1899
|
+
*/
|
|
1900
|
+
proto.v1.signaling.api.GetHealthResponse.deserializeBinary = function(bytes) {
|
|
1901
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1902
|
+
var msg = new proto.v1.signaling.api.GetHealthResponse;
|
|
1903
|
+
return proto.v1.signaling.api.GetHealthResponse.deserializeBinaryFromReader(msg, reader);
|
|
1904
|
+
};
|
|
1905
|
+
|
|
1906
|
+
|
|
1907
|
+
/**
|
|
1908
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1909
|
+
* given reader into the given message object.
|
|
1910
|
+
* @param {!proto.v1.signaling.api.GetHealthResponse} msg The message object to deserialize into.
|
|
1911
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1912
|
+
* @return {!proto.v1.signaling.api.GetHealthResponse}
|
|
1913
|
+
*/
|
|
1914
|
+
proto.v1.signaling.api.GetHealthResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1915
|
+
while (reader.nextField()) {
|
|
1916
|
+
if (reader.isEndGroup()) {
|
|
1917
|
+
break;
|
|
1918
|
+
}
|
|
1919
|
+
var field = reader.getFieldNumber();
|
|
1920
|
+
switch (field) {
|
|
1921
|
+
case 1:
|
|
1922
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1923
|
+
msg.setVersion(value);
|
|
1924
|
+
break;
|
|
1925
|
+
default:
|
|
1926
|
+
reader.skipField();
|
|
1927
|
+
break;
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
return msg;
|
|
1931
|
+
};
|
|
1932
|
+
|
|
1933
|
+
|
|
1934
|
+
/**
|
|
1935
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1936
|
+
* @return {!Uint8Array}
|
|
1937
|
+
*/
|
|
1938
|
+
proto.v1.signaling.api.GetHealthResponse.prototype.serializeBinary = function() {
|
|
1939
|
+
var writer = new jspb.BinaryWriter();
|
|
1940
|
+
proto.v1.signaling.api.GetHealthResponse.serializeBinaryToWriter(this, writer);
|
|
1941
|
+
return writer.getResultBuffer();
|
|
1942
|
+
};
|
|
1943
|
+
|
|
1944
|
+
|
|
1945
|
+
/**
|
|
1946
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1947
|
+
* format), writing to the given BinaryWriter.
|
|
1948
|
+
* @param {!proto.v1.signaling.api.GetHealthResponse} message
|
|
1949
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1950
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1951
|
+
*/
|
|
1952
|
+
proto.v1.signaling.api.GetHealthResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1953
|
+
var f = undefined;
|
|
1954
|
+
f = message.getVersion();
|
|
1955
|
+
if (f.length > 0) {
|
|
1956
|
+
writer.writeString(
|
|
1957
|
+
1,
|
|
1958
|
+
f
|
|
1959
|
+
);
|
|
1960
|
+
}
|
|
1961
|
+
};
|
|
1962
|
+
|
|
1963
|
+
|
|
1964
|
+
/**
|
|
1965
|
+
* optional string version = 1;
|
|
1966
|
+
* @return {string}
|
|
1967
|
+
*/
|
|
1968
|
+
proto.v1.signaling.api.GetHealthResponse.prototype.getVersion = function() {
|
|
1969
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1970
|
+
};
|
|
1971
|
+
|
|
1972
|
+
|
|
1973
|
+
/**
|
|
1974
|
+
* @param {string} value
|
|
1975
|
+
* @return {!proto.v1.signaling.api.GetHealthResponse} returns this
|
|
1976
|
+
*/
|
|
1977
|
+
proto.v1.signaling.api.GetHealthResponse.prototype.setVersion = function(value) {
|
|
1978
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1979
|
+
};
|
|
1980
|
+
|
|
1981
|
+
|
|
1982
|
+
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1986
|
+
/**
|
|
1987
|
+
* Creates an object representation of this proto.
|
|
1988
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1989
|
+
* Optional fields that are not set will be set to undefined.
|
|
1990
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1991
|
+
* For the list of reserved names please see:
|
|
1992
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1993
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1994
|
+
* JSPB instance for transitional soy proto support:
|
|
1995
|
+
* http://goto/soy-param-migration
|
|
1996
|
+
* @return {!Object}
|
|
1997
|
+
*/
|
|
1998
|
+
proto.v1.signaling.api.CreatePeerRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1999
|
+
return proto.v1.signaling.api.CreatePeerRequest.toObject(opt_includeInstance, this);
|
|
2000
|
+
};
|
|
2001
|
+
|
|
2002
|
+
|
|
2003
|
+
/**
|
|
2004
|
+
* Static version of the {@see toObject} method.
|
|
2005
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2006
|
+
* the JSPB instance for transitional soy proto support:
|
|
2007
|
+
* http://goto/soy-param-migration
|
|
2008
|
+
* @param {!proto.v1.signaling.api.CreatePeerRequest} msg The msg instance to transform.
|
|
2009
|
+
* @return {!Object}
|
|
2010
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2011
|
+
*/
|
|
2012
|
+
proto.v1.signaling.api.CreatePeerRequest.toObject = function(includeInstance, msg) {
|
|
2013
|
+
var f, obj = {
|
|
2014
|
+
|
|
2015
|
+
};
|
|
2016
|
+
|
|
2017
|
+
if (includeInstance) {
|
|
2018
|
+
obj.$jspbMessageInstance = msg;
|
|
2019
|
+
}
|
|
2020
|
+
return obj;
|
|
2021
|
+
};
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2027
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2028
|
+
* @return {!proto.v1.signaling.api.CreatePeerRequest}
|
|
2029
|
+
*/
|
|
2030
|
+
proto.v1.signaling.api.CreatePeerRequest.deserializeBinary = function(bytes) {
|
|
2031
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2032
|
+
var msg = new proto.v1.signaling.api.CreatePeerRequest;
|
|
2033
|
+
return proto.v1.signaling.api.CreatePeerRequest.deserializeBinaryFromReader(msg, reader);
|
|
2034
|
+
};
|
|
2035
|
+
|
|
2036
|
+
|
|
2037
|
+
/**
|
|
2038
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2039
|
+
* given reader into the given message object.
|
|
2040
|
+
* @param {!proto.v1.signaling.api.CreatePeerRequest} msg The message object to deserialize into.
|
|
2041
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2042
|
+
* @return {!proto.v1.signaling.api.CreatePeerRequest}
|
|
2043
|
+
*/
|
|
2044
|
+
proto.v1.signaling.api.CreatePeerRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2045
|
+
while (reader.nextField()) {
|
|
2046
|
+
if (reader.isEndGroup()) {
|
|
2047
|
+
break;
|
|
2048
|
+
}
|
|
2049
|
+
var field = reader.getFieldNumber();
|
|
2050
|
+
switch (field) {
|
|
2051
|
+
default:
|
|
2052
|
+
reader.skipField();
|
|
2053
|
+
break;
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
return msg;
|
|
2057
|
+
};
|
|
2058
|
+
|
|
2059
|
+
|
|
2060
|
+
/**
|
|
2061
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2062
|
+
* @return {!Uint8Array}
|
|
2063
|
+
*/
|
|
2064
|
+
proto.v1.signaling.api.CreatePeerRequest.prototype.serializeBinary = function() {
|
|
2065
|
+
var writer = new jspb.BinaryWriter();
|
|
2066
|
+
proto.v1.signaling.api.CreatePeerRequest.serializeBinaryToWriter(this, writer);
|
|
2067
|
+
return writer.getResultBuffer();
|
|
2068
|
+
};
|
|
2069
|
+
|
|
2070
|
+
|
|
2071
|
+
/**
|
|
2072
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2073
|
+
* format), writing to the given BinaryWriter.
|
|
2074
|
+
* @param {!proto.v1.signaling.api.CreatePeerRequest} message
|
|
2075
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2076
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2077
|
+
*/
|
|
2078
|
+
proto.v1.signaling.api.CreatePeerRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2079
|
+
var f = undefined;
|
|
2080
|
+
};
|
|
2081
|
+
|
|
2082
|
+
|
|
2083
|
+
|
|
2084
|
+
|
|
2085
|
+
|
|
2086
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2087
|
+
/**
|
|
2088
|
+
* Creates an object representation of this proto.
|
|
2089
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2090
|
+
* Optional fields that are not set will be set to undefined.
|
|
2091
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2092
|
+
* For the list of reserved names please see:
|
|
2093
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2094
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2095
|
+
* JSPB instance for transitional soy proto support:
|
|
2096
|
+
* http://goto/soy-param-migration
|
|
2097
|
+
* @return {!Object}
|
|
2098
|
+
*/
|
|
2099
|
+
proto.v1.signaling.api.CreatePeerResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2100
|
+
return proto.v1.signaling.api.CreatePeerResponse.toObject(opt_includeInstance, this);
|
|
2101
|
+
};
|
|
2102
|
+
|
|
2103
|
+
|
|
2104
|
+
/**
|
|
2105
|
+
* Static version of the {@see toObject} method.
|
|
2106
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2107
|
+
* the JSPB instance for transitional soy proto support:
|
|
2108
|
+
* http://goto/soy-param-migration
|
|
2109
|
+
* @param {!proto.v1.signaling.api.CreatePeerResponse} msg The msg instance to transform.
|
|
2110
|
+
* @return {!Object}
|
|
2111
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2112
|
+
*/
|
|
2113
|
+
proto.v1.signaling.api.CreatePeerResponse.toObject = function(includeInstance, msg) {
|
|
2114
|
+
var f, obj = {
|
|
2115
|
+
peer: (f = msg.getPeer()) && proto.v1.signaling.api.Peer.toObject(includeInstance, f)
|
|
2116
|
+
};
|
|
2117
|
+
|
|
2118
|
+
if (includeInstance) {
|
|
2119
|
+
obj.$jspbMessageInstance = msg;
|
|
2120
|
+
}
|
|
2121
|
+
return obj;
|
|
2122
|
+
};
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
|
|
2126
|
+
/**
|
|
2127
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2128
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2129
|
+
* @return {!proto.v1.signaling.api.CreatePeerResponse}
|
|
2130
|
+
*/
|
|
2131
|
+
proto.v1.signaling.api.CreatePeerResponse.deserializeBinary = function(bytes) {
|
|
2132
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2133
|
+
var msg = new proto.v1.signaling.api.CreatePeerResponse;
|
|
2134
|
+
return proto.v1.signaling.api.CreatePeerResponse.deserializeBinaryFromReader(msg, reader);
|
|
2135
|
+
};
|
|
2136
|
+
|
|
2137
|
+
|
|
2138
|
+
/**
|
|
2139
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2140
|
+
* given reader into the given message object.
|
|
2141
|
+
* @param {!proto.v1.signaling.api.CreatePeerResponse} msg The message object to deserialize into.
|
|
2142
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2143
|
+
* @return {!proto.v1.signaling.api.CreatePeerResponse}
|
|
2144
|
+
*/
|
|
2145
|
+
proto.v1.signaling.api.CreatePeerResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2146
|
+
while (reader.nextField()) {
|
|
2147
|
+
if (reader.isEndGroup()) {
|
|
2148
|
+
break;
|
|
2149
|
+
}
|
|
2150
|
+
var field = reader.getFieldNumber();
|
|
2151
|
+
switch (field) {
|
|
2152
|
+
case 1:
|
|
2153
|
+
var value = new proto.v1.signaling.api.Peer;
|
|
2154
|
+
reader.readMessage(value,proto.v1.signaling.api.Peer.deserializeBinaryFromReader);
|
|
2155
|
+
msg.setPeer(value);
|
|
2156
|
+
break;
|
|
2157
|
+
default:
|
|
2158
|
+
reader.skipField();
|
|
2159
|
+
break;
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
return msg;
|
|
2163
|
+
};
|
|
2164
|
+
|
|
2165
|
+
|
|
2166
|
+
/**
|
|
2167
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2168
|
+
* @return {!Uint8Array}
|
|
2169
|
+
*/
|
|
2170
|
+
proto.v1.signaling.api.CreatePeerResponse.prototype.serializeBinary = function() {
|
|
2171
|
+
var writer = new jspb.BinaryWriter();
|
|
2172
|
+
proto.v1.signaling.api.CreatePeerResponse.serializeBinaryToWriter(this, writer);
|
|
2173
|
+
return writer.getResultBuffer();
|
|
2174
|
+
};
|
|
2175
|
+
|
|
2176
|
+
|
|
2177
|
+
/**
|
|
2178
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2179
|
+
* format), writing to the given BinaryWriter.
|
|
2180
|
+
* @param {!proto.v1.signaling.api.CreatePeerResponse} message
|
|
2181
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2182
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2183
|
+
*/
|
|
2184
|
+
proto.v1.signaling.api.CreatePeerResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2185
|
+
var f = undefined;
|
|
2186
|
+
f = message.getPeer();
|
|
2187
|
+
if (f != null) {
|
|
2188
|
+
writer.writeMessage(
|
|
2189
|
+
1,
|
|
2190
|
+
f,
|
|
2191
|
+
proto.v1.signaling.api.Peer.serializeBinaryToWriter
|
|
2192
|
+
);
|
|
2193
|
+
}
|
|
2194
|
+
};
|
|
2195
|
+
|
|
2196
|
+
|
|
2197
|
+
/**
|
|
2198
|
+
* optional Peer peer = 1;
|
|
2199
|
+
* @return {?proto.v1.signaling.api.Peer}
|
|
2200
|
+
*/
|
|
2201
|
+
proto.v1.signaling.api.CreatePeerResponse.prototype.getPeer = function() {
|
|
2202
|
+
return /** @type{?proto.v1.signaling.api.Peer} */ (
|
|
2203
|
+
jspb.Message.getWrapperField(this, proto.v1.signaling.api.Peer, 1));
|
|
2204
|
+
};
|
|
2205
|
+
|
|
2206
|
+
|
|
2207
|
+
/**
|
|
2208
|
+
* @param {?proto.v1.signaling.api.Peer|undefined} value
|
|
2209
|
+
* @return {!proto.v1.signaling.api.CreatePeerResponse} returns this
|
|
2210
|
+
*/
|
|
2211
|
+
proto.v1.signaling.api.CreatePeerResponse.prototype.setPeer = function(value) {
|
|
2212
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2213
|
+
};
|
|
2214
|
+
|
|
2215
|
+
|
|
2216
|
+
/**
|
|
2217
|
+
* Clears the message field making it undefined.
|
|
2218
|
+
* @return {!proto.v1.signaling.api.CreatePeerResponse} returns this
|
|
2219
|
+
*/
|
|
2220
|
+
proto.v1.signaling.api.CreatePeerResponse.prototype.clearPeer = function() {
|
|
2221
|
+
return this.setPeer(undefined);
|
|
2222
|
+
};
|
|
2223
|
+
|
|
2224
|
+
|
|
2225
|
+
/**
|
|
2226
|
+
* Returns whether this field is set.
|
|
2227
|
+
* @return {boolean}
|
|
2228
|
+
*/
|
|
2229
|
+
proto.v1.signaling.api.CreatePeerResponse.prototype.hasPeer = function() {
|
|
2230
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2231
|
+
};
|
|
2232
|
+
|
|
2233
|
+
|
|
2234
|
+
|
|
2235
|
+
|
|
2236
|
+
|
|
2237
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2238
|
+
/**
|
|
2239
|
+
* Creates an object representation of this proto.
|
|
2240
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2241
|
+
* Optional fields that are not set will be set to undefined.
|
|
2242
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2243
|
+
* For the list of reserved names please see:
|
|
2244
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2245
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2246
|
+
* JSPB instance for transitional soy proto support:
|
|
2247
|
+
* http://goto/soy-param-migration
|
|
2248
|
+
* @return {!Object}
|
|
2249
|
+
*/
|
|
2250
|
+
proto.v1.signaling.api.DeletePeerRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2251
|
+
return proto.v1.signaling.api.DeletePeerRequest.toObject(opt_includeInstance, this);
|
|
2252
|
+
};
|
|
2253
|
+
|
|
2254
|
+
|
|
2255
|
+
/**
|
|
2256
|
+
* Static version of the {@see toObject} method.
|
|
2257
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2258
|
+
* the JSPB instance for transitional soy proto support:
|
|
2259
|
+
* http://goto/soy-param-migration
|
|
2260
|
+
* @param {!proto.v1.signaling.api.DeletePeerRequest} msg The msg instance to transform.
|
|
2261
|
+
* @return {!Object}
|
|
2262
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2263
|
+
*/
|
|
2264
|
+
proto.v1.signaling.api.DeletePeerRequest.toObject = function(includeInstance, msg) {
|
|
2265
|
+
var f, obj = {
|
|
2266
|
+
peerId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
2267
|
+
};
|
|
2268
|
+
|
|
2269
|
+
if (includeInstance) {
|
|
2270
|
+
obj.$jspbMessageInstance = msg;
|
|
2271
|
+
}
|
|
2272
|
+
return obj;
|
|
2273
|
+
};
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
|
|
2277
|
+
/**
|
|
2278
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2279
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2280
|
+
* @return {!proto.v1.signaling.api.DeletePeerRequest}
|
|
2281
|
+
*/
|
|
2282
|
+
proto.v1.signaling.api.DeletePeerRequest.deserializeBinary = function(bytes) {
|
|
2283
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2284
|
+
var msg = new proto.v1.signaling.api.DeletePeerRequest;
|
|
2285
|
+
return proto.v1.signaling.api.DeletePeerRequest.deserializeBinaryFromReader(msg, reader);
|
|
2286
|
+
};
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2291
|
+
* given reader into the given message object.
|
|
2292
|
+
* @param {!proto.v1.signaling.api.DeletePeerRequest} msg The message object to deserialize into.
|
|
2293
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2294
|
+
* @return {!proto.v1.signaling.api.DeletePeerRequest}
|
|
2295
|
+
*/
|
|
2296
|
+
proto.v1.signaling.api.DeletePeerRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2297
|
+
while (reader.nextField()) {
|
|
2298
|
+
if (reader.isEndGroup()) {
|
|
2299
|
+
break;
|
|
2300
|
+
}
|
|
2301
|
+
var field = reader.getFieldNumber();
|
|
2302
|
+
switch (field) {
|
|
2303
|
+
case 1:
|
|
2304
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2305
|
+
msg.setPeerId(value);
|
|
2306
|
+
break;
|
|
2307
|
+
default:
|
|
2308
|
+
reader.skipField();
|
|
2309
|
+
break;
|
|
2310
|
+
}
|
|
2311
|
+
}
|
|
2312
|
+
return msg;
|
|
2313
|
+
};
|
|
2314
|
+
|
|
2315
|
+
|
|
2316
|
+
/**
|
|
2317
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2318
|
+
* @return {!Uint8Array}
|
|
2319
|
+
*/
|
|
2320
|
+
proto.v1.signaling.api.DeletePeerRequest.prototype.serializeBinary = function() {
|
|
2321
|
+
var writer = new jspb.BinaryWriter();
|
|
2322
|
+
proto.v1.signaling.api.DeletePeerRequest.serializeBinaryToWriter(this, writer);
|
|
2323
|
+
return writer.getResultBuffer();
|
|
2324
|
+
};
|
|
2325
|
+
|
|
2326
|
+
|
|
2327
|
+
/**
|
|
2328
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2329
|
+
* format), writing to the given BinaryWriter.
|
|
2330
|
+
* @param {!proto.v1.signaling.api.DeletePeerRequest} message
|
|
2331
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2332
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2333
|
+
*/
|
|
2334
|
+
proto.v1.signaling.api.DeletePeerRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2335
|
+
var f = undefined;
|
|
2336
|
+
f = message.getPeerId();
|
|
2337
|
+
if (f.length > 0) {
|
|
2338
|
+
writer.writeString(
|
|
2339
|
+
1,
|
|
2340
|
+
f
|
|
2341
|
+
);
|
|
2342
|
+
}
|
|
2343
|
+
};
|
|
2344
|
+
|
|
2345
|
+
|
|
2346
|
+
/**
|
|
2347
|
+
* optional string peer_id = 1;
|
|
2348
|
+
* @return {string}
|
|
2349
|
+
*/
|
|
2350
|
+
proto.v1.signaling.api.DeletePeerRequest.prototype.getPeerId = function() {
|
|
2351
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2352
|
+
};
|
|
2353
|
+
|
|
2354
|
+
|
|
2355
|
+
/**
|
|
2356
|
+
* @param {string} value
|
|
2357
|
+
* @return {!proto.v1.signaling.api.DeletePeerRequest} returns this
|
|
2358
|
+
*/
|
|
2359
|
+
proto.v1.signaling.api.DeletePeerRequest.prototype.setPeerId = function(value) {
|
|
2360
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2361
|
+
};
|
|
2362
|
+
|
|
2363
|
+
|
|
2364
|
+
|
|
2365
|
+
|
|
2366
|
+
|
|
2367
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2368
|
+
/**
|
|
2369
|
+
* Creates an object representation of this proto.
|
|
2370
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2371
|
+
* Optional fields that are not set will be set to undefined.
|
|
2372
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2373
|
+
* For the list of reserved names please see:
|
|
2374
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2375
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2376
|
+
* JSPB instance for transitional soy proto support:
|
|
2377
|
+
* http://goto/soy-param-migration
|
|
2378
|
+
* @return {!Object}
|
|
2379
|
+
*/
|
|
2380
|
+
proto.v1.signaling.api.DeletePeerResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2381
|
+
return proto.v1.signaling.api.DeletePeerResponse.toObject(opt_includeInstance, this);
|
|
2382
|
+
};
|
|
2383
|
+
|
|
2384
|
+
|
|
2385
|
+
/**
|
|
2386
|
+
* Static version of the {@see toObject} method.
|
|
2387
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2388
|
+
* the JSPB instance for transitional soy proto support:
|
|
2389
|
+
* http://goto/soy-param-migration
|
|
2390
|
+
* @param {!proto.v1.signaling.api.DeletePeerResponse} msg The msg instance to transform.
|
|
2391
|
+
* @return {!Object}
|
|
2392
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2393
|
+
*/
|
|
2394
|
+
proto.v1.signaling.api.DeletePeerResponse.toObject = function(includeInstance, msg) {
|
|
2395
|
+
var f, obj = {
|
|
2396
|
+
|
|
2397
|
+
};
|
|
2398
|
+
|
|
2399
|
+
if (includeInstance) {
|
|
2400
|
+
obj.$jspbMessageInstance = msg;
|
|
2401
|
+
}
|
|
2402
|
+
return obj;
|
|
2403
|
+
};
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
|
|
2407
|
+
/**
|
|
2408
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2409
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2410
|
+
* @return {!proto.v1.signaling.api.DeletePeerResponse}
|
|
2411
|
+
*/
|
|
2412
|
+
proto.v1.signaling.api.DeletePeerResponse.deserializeBinary = function(bytes) {
|
|
2413
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2414
|
+
var msg = new proto.v1.signaling.api.DeletePeerResponse;
|
|
2415
|
+
return proto.v1.signaling.api.DeletePeerResponse.deserializeBinaryFromReader(msg, reader);
|
|
2416
|
+
};
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
/**
|
|
2420
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2421
|
+
* given reader into the given message object.
|
|
2422
|
+
* @param {!proto.v1.signaling.api.DeletePeerResponse} msg The message object to deserialize into.
|
|
2423
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2424
|
+
* @return {!proto.v1.signaling.api.DeletePeerResponse}
|
|
2425
|
+
*/
|
|
2426
|
+
proto.v1.signaling.api.DeletePeerResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2427
|
+
while (reader.nextField()) {
|
|
2428
|
+
if (reader.isEndGroup()) {
|
|
2429
|
+
break;
|
|
2430
|
+
}
|
|
2431
|
+
var field = reader.getFieldNumber();
|
|
2432
|
+
switch (field) {
|
|
2433
|
+
default:
|
|
2434
|
+
reader.skipField();
|
|
2435
|
+
break;
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
return msg;
|
|
2439
|
+
};
|
|
2440
|
+
|
|
2441
|
+
|
|
2442
|
+
/**
|
|
2443
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2444
|
+
* @return {!Uint8Array}
|
|
2445
|
+
*/
|
|
2446
|
+
proto.v1.signaling.api.DeletePeerResponse.prototype.serializeBinary = function() {
|
|
2447
|
+
var writer = new jspb.BinaryWriter();
|
|
2448
|
+
proto.v1.signaling.api.DeletePeerResponse.serializeBinaryToWriter(this, writer);
|
|
2449
|
+
return writer.getResultBuffer();
|
|
2450
|
+
};
|
|
2451
|
+
|
|
2452
|
+
|
|
2453
|
+
/**
|
|
2454
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2455
|
+
* format), writing to the given BinaryWriter.
|
|
2456
|
+
* @param {!proto.v1.signaling.api.DeletePeerResponse} message
|
|
2457
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2458
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2459
|
+
*/
|
|
2460
|
+
proto.v1.signaling.api.DeletePeerResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2461
|
+
var f = undefined;
|
|
2462
|
+
};
|
|
2463
|
+
|
|
2464
|
+
|
|
2465
|
+
|
|
2466
|
+
|
|
2467
|
+
|
|
2468
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2469
|
+
/**
|
|
2470
|
+
* Creates an object representation of this proto.
|
|
2471
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2472
|
+
* Optional fields that are not set will be set to undefined.
|
|
2473
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2474
|
+
* For the list of reserved names please see:
|
|
2475
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2476
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2477
|
+
* JSPB instance for transitional soy proto support:
|
|
2478
|
+
* http://goto/soy-param-migration
|
|
2479
|
+
* @return {!Object}
|
|
2480
|
+
*/
|
|
2481
|
+
proto.v1.signaling.api.RefreshPeerRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2482
|
+
return proto.v1.signaling.api.RefreshPeerRequest.toObject(opt_includeInstance, this);
|
|
2483
|
+
};
|
|
2484
|
+
|
|
2485
|
+
|
|
2486
|
+
/**
|
|
2487
|
+
* Static version of the {@see toObject} method.
|
|
2488
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2489
|
+
* the JSPB instance for transitional soy proto support:
|
|
2490
|
+
* http://goto/soy-param-migration
|
|
2491
|
+
* @param {!proto.v1.signaling.api.RefreshPeerRequest} msg The msg instance to transform.
|
|
2492
|
+
* @return {!Object}
|
|
2493
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2494
|
+
*/
|
|
2495
|
+
proto.v1.signaling.api.RefreshPeerRequest.toObject = function(includeInstance, msg) {
|
|
2496
|
+
var f, obj = {
|
|
2497
|
+
peer: (f = msg.getPeer()) && proto.v1.signaling.api.Peer.toObject(includeInstance, f)
|
|
2498
|
+
};
|
|
2499
|
+
|
|
2500
|
+
if (includeInstance) {
|
|
2501
|
+
obj.$jspbMessageInstance = msg;
|
|
2502
|
+
}
|
|
2503
|
+
return obj;
|
|
2504
|
+
};
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
|
|
2508
|
+
/**
|
|
2509
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2510
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2511
|
+
* @return {!proto.v1.signaling.api.RefreshPeerRequest}
|
|
2512
|
+
*/
|
|
2513
|
+
proto.v1.signaling.api.RefreshPeerRequest.deserializeBinary = function(bytes) {
|
|
2514
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2515
|
+
var msg = new proto.v1.signaling.api.RefreshPeerRequest;
|
|
2516
|
+
return proto.v1.signaling.api.RefreshPeerRequest.deserializeBinaryFromReader(msg, reader);
|
|
2517
|
+
};
|
|
2518
|
+
|
|
2519
|
+
|
|
2520
|
+
/**
|
|
2521
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2522
|
+
* given reader into the given message object.
|
|
2523
|
+
* @param {!proto.v1.signaling.api.RefreshPeerRequest} msg The message object to deserialize into.
|
|
2524
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2525
|
+
* @return {!proto.v1.signaling.api.RefreshPeerRequest}
|
|
2526
|
+
*/
|
|
2527
|
+
proto.v1.signaling.api.RefreshPeerRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2528
|
+
while (reader.nextField()) {
|
|
2529
|
+
if (reader.isEndGroup()) {
|
|
2530
|
+
break;
|
|
2531
|
+
}
|
|
2532
|
+
var field = reader.getFieldNumber();
|
|
2533
|
+
switch (field) {
|
|
2534
|
+
case 1:
|
|
2535
|
+
var value = new proto.v1.signaling.api.Peer;
|
|
2536
|
+
reader.readMessage(value,proto.v1.signaling.api.Peer.deserializeBinaryFromReader);
|
|
2537
|
+
msg.setPeer(value);
|
|
2538
|
+
break;
|
|
2539
|
+
default:
|
|
2540
|
+
reader.skipField();
|
|
2541
|
+
break;
|
|
2542
|
+
}
|
|
2543
|
+
}
|
|
2544
|
+
return msg;
|
|
2545
|
+
};
|
|
2546
|
+
|
|
2547
|
+
|
|
2548
|
+
/**
|
|
2549
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2550
|
+
* @return {!Uint8Array}
|
|
2551
|
+
*/
|
|
2552
|
+
proto.v1.signaling.api.RefreshPeerRequest.prototype.serializeBinary = function() {
|
|
2553
|
+
var writer = new jspb.BinaryWriter();
|
|
2554
|
+
proto.v1.signaling.api.RefreshPeerRequest.serializeBinaryToWriter(this, writer);
|
|
2555
|
+
return writer.getResultBuffer();
|
|
2556
|
+
};
|
|
2557
|
+
|
|
2558
|
+
|
|
2559
|
+
/**
|
|
2560
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2561
|
+
* format), writing to the given BinaryWriter.
|
|
2562
|
+
* @param {!proto.v1.signaling.api.RefreshPeerRequest} message
|
|
2563
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2564
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2565
|
+
*/
|
|
2566
|
+
proto.v1.signaling.api.RefreshPeerRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2567
|
+
var f = undefined;
|
|
2568
|
+
f = message.getPeer();
|
|
2569
|
+
if (f != null) {
|
|
2570
|
+
writer.writeMessage(
|
|
2571
|
+
1,
|
|
2572
|
+
f,
|
|
2573
|
+
proto.v1.signaling.api.Peer.serializeBinaryToWriter
|
|
2574
|
+
);
|
|
2575
|
+
}
|
|
2576
|
+
};
|
|
2577
|
+
|
|
2578
|
+
|
|
2579
|
+
/**
|
|
2580
|
+
* optional Peer peer = 1;
|
|
2581
|
+
* @return {?proto.v1.signaling.api.Peer}
|
|
2582
|
+
*/
|
|
2583
|
+
proto.v1.signaling.api.RefreshPeerRequest.prototype.getPeer = function() {
|
|
2584
|
+
return /** @type{?proto.v1.signaling.api.Peer} */ (
|
|
2585
|
+
jspb.Message.getWrapperField(this, proto.v1.signaling.api.Peer, 1));
|
|
2586
|
+
};
|
|
2587
|
+
|
|
2588
|
+
|
|
2589
|
+
/**
|
|
2590
|
+
* @param {?proto.v1.signaling.api.Peer|undefined} value
|
|
2591
|
+
* @return {!proto.v1.signaling.api.RefreshPeerRequest} returns this
|
|
2592
|
+
*/
|
|
2593
|
+
proto.v1.signaling.api.RefreshPeerRequest.prototype.setPeer = function(value) {
|
|
2594
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2595
|
+
};
|
|
2596
|
+
|
|
2597
|
+
|
|
2598
|
+
/**
|
|
2599
|
+
* Clears the message field making it undefined.
|
|
2600
|
+
* @return {!proto.v1.signaling.api.RefreshPeerRequest} returns this
|
|
2601
|
+
*/
|
|
2602
|
+
proto.v1.signaling.api.RefreshPeerRequest.prototype.clearPeer = function() {
|
|
2603
|
+
return this.setPeer(undefined);
|
|
2604
|
+
};
|
|
2605
|
+
|
|
2606
|
+
|
|
2607
|
+
/**
|
|
2608
|
+
* Returns whether this field is set.
|
|
2609
|
+
* @return {boolean}
|
|
2610
|
+
*/
|
|
2611
|
+
proto.v1.signaling.api.RefreshPeerRequest.prototype.hasPeer = function() {
|
|
2612
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2613
|
+
};
|
|
2614
|
+
|
|
2615
|
+
|
|
2616
|
+
|
|
2617
|
+
|
|
2618
|
+
|
|
2619
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2620
|
+
/**
|
|
2621
|
+
* Creates an object representation of this proto.
|
|
2622
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2623
|
+
* Optional fields that are not set will be set to undefined.
|
|
2624
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2625
|
+
* For the list of reserved names please see:
|
|
2626
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2627
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2628
|
+
* JSPB instance for transitional soy proto support:
|
|
2629
|
+
* http://goto/soy-param-migration
|
|
2630
|
+
* @return {!Object}
|
|
2631
|
+
*/
|
|
2632
|
+
proto.v1.signaling.api.RefreshPeerResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2633
|
+
return proto.v1.signaling.api.RefreshPeerResponse.toObject(opt_includeInstance, this);
|
|
2634
|
+
};
|
|
2635
|
+
|
|
2636
|
+
|
|
2637
|
+
/**
|
|
2638
|
+
* Static version of the {@see toObject} method.
|
|
2639
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2640
|
+
* the JSPB instance for transitional soy proto support:
|
|
2641
|
+
* http://goto/soy-param-migration
|
|
2642
|
+
* @param {!proto.v1.signaling.api.RefreshPeerResponse} msg The msg instance to transform.
|
|
2643
|
+
* @return {!Object}
|
|
2644
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2645
|
+
*/
|
|
2646
|
+
proto.v1.signaling.api.RefreshPeerResponse.toObject = function(includeInstance, msg) {
|
|
2647
|
+
var f, obj = {
|
|
2648
|
+
|
|
2649
|
+
};
|
|
2650
|
+
|
|
2651
|
+
if (includeInstance) {
|
|
2652
|
+
obj.$jspbMessageInstance = msg;
|
|
2653
|
+
}
|
|
2654
|
+
return obj;
|
|
2655
|
+
};
|
|
2656
|
+
}
|
|
2657
|
+
|
|
2658
|
+
|
|
2659
|
+
/**
|
|
2660
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2661
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2662
|
+
* @return {!proto.v1.signaling.api.RefreshPeerResponse}
|
|
2663
|
+
*/
|
|
2664
|
+
proto.v1.signaling.api.RefreshPeerResponse.deserializeBinary = function(bytes) {
|
|
2665
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2666
|
+
var msg = new proto.v1.signaling.api.RefreshPeerResponse;
|
|
2667
|
+
return proto.v1.signaling.api.RefreshPeerResponse.deserializeBinaryFromReader(msg, reader);
|
|
2668
|
+
};
|
|
2669
|
+
|
|
2670
|
+
|
|
2671
|
+
/**
|
|
2672
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2673
|
+
* given reader into the given message object.
|
|
2674
|
+
* @param {!proto.v1.signaling.api.RefreshPeerResponse} msg The message object to deserialize into.
|
|
2675
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2676
|
+
* @return {!proto.v1.signaling.api.RefreshPeerResponse}
|
|
2677
|
+
*/
|
|
2678
|
+
proto.v1.signaling.api.RefreshPeerResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2679
|
+
while (reader.nextField()) {
|
|
2680
|
+
if (reader.isEndGroup()) {
|
|
2681
|
+
break;
|
|
2682
|
+
}
|
|
2683
|
+
var field = reader.getFieldNumber();
|
|
2684
|
+
switch (field) {
|
|
2685
|
+
default:
|
|
2686
|
+
reader.skipField();
|
|
2687
|
+
break;
|
|
2688
|
+
}
|
|
2689
|
+
}
|
|
2690
|
+
return msg;
|
|
2691
|
+
};
|
|
2692
|
+
|
|
2693
|
+
|
|
2694
|
+
/**
|
|
2695
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2696
|
+
* @return {!Uint8Array}
|
|
2697
|
+
*/
|
|
2698
|
+
proto.v1.signaling.api.RefreshPeerResponse.prototype.serializeBinary = function() {
|
|
2699
|
+
var writer = new jspb.BinaryWriter();
|
|
2700
|
+
proto.v1.signaling.api.RefreshPeerResponse.serializeBinaryToWriter(this, writer);
|
|
2701
|
+
return writer.getResultBuffer();
|
|
2702
|
+
};
|
|
2703
|
+
|
|
2704
|
+
|
|
2705
|
+
/**
|
|
2706
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2707
|
+
* format), writing to the given BinaryWriter.
|
|
2708
|
+
* @param {!proto.v1.signaling.api.RefreshPeerResponse} message
|
|
2709
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2710
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2711
|
+
*/
|
|
2712
|
+
proto.v1.signaling.api.RefreshPeerResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2713
|
+
var f = undefined;
|
|
2714
|
+
};
|
|
2715
|
+
|
|
2716
|
+
|
|
2717
|
+
|
|
2718
|
+
|
|
2719
|
+
|
|
2720
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2721
|
+
/**
|
|
2722
|
+
* Creates an object representation of this proto.
|
|
2723
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2724
|
+
* Optional fields that are not set will be set to undefined.
|
|
2725
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2726
|
+
* For the list of reserved names please see:
|
|
2727
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2728
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2729
|
+
* JSPB instance for transitional soy proto support:
|
|
2730
|
+
* http://goto/soy-param-migration
|
|
2731
|
+
* @return {!Object}
|
|
2732
|
+
*/
|
|
2733
|
+
proto.v1.signaling.api.GetPeersRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2734
|
+
return proto.v1.signaling.api.GetPeersRequest.toObject(opt_includeInstance, this);
|
|
2735
|
+
};
|
|
2736
|
+
|
|
2737
|
+
|
|
2738
|
+
/**
|
|
2739
|
+
* Static version of the {@see toObject} method.
|
|
2740
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2741
|
+
* the JSPB instance for transitional soy proto support:
|
|
2742
|
+
* http://goto/soy-param-migration
|
|
2743
|
+
* @param {!proto.v1.signaling.api.GetPeersRequest} msg The msg instance to transform.
|
|
2744
|
+
* @return {!Object}
|
|
2745
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2746
|
+
*/
|
|
2747
|
+
proto.v1.signaling.api.GetPeersRequest.toObject = function(includeInstance, msg) {
|
|
2748
|
+
var f, obj = {
|
|
2749
|
+
|
|
2750
|
+
};
|
|
2751
|
+
|
|
2752
|
+
if (includeInstance) {
|
|
2753
|
+
obj.$jspbMessageInstance = msg;
|
|
2754
|
+
}
|
|
2755
|
+
return obj;
|
|
2756
|
+
};
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2759
|
+
|
|
2760
|
+
/**
|
|
2761
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2762
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2763
|
+
* @return {!proto.v1.signaling.api.GetPeersRequest}
|
|
2764
|
+
*/
|
|
2765
|
+
proto.v1.signaling.api.GetPeersRequest.deserializeBinary = function(bytes) {
|
|
2766
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2767
|
+
var msg = new proto.v1.signaling.api.GetPeersRequest;
|
|
2768
|
+
return proto.v1.signaling.api.GetPeersRequest.deserializeBinaryFromReader(msg, reader);
|
|
2769
|
+
};
|
|
2770
|
+
|
|
2771
|
+
|
|
2772
|
+
/**
|
|
2773
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2774
|
+
* given reader into the given message object.
|
|
2775
|
+
* @param {!proto.v1.signaling.api.GetPeersRequest} msg The message object to deserialize into.
|
|
2776
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2777
|
+
* @return {!proto.v1.signaling.api.GetPeersRequest}
|
|
2778
|
+
*/
|
|
2779
|
+
proto.v1.signaling.api.GetPeersRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2780
|
+
while (reader.nextField()) {
|
|
2781
|
+
if (reader.isEndGroup()) {
|
|
2782
|
+
break;
|
|
2783
|
+
}
|
|
2784
|
+
var field = reader.getFieldNumber();
|
|
2785
|
+
switch (field) {
|
|
2786
|
+
default:
|
|
2787
|
+
reader.skipField();
|
|
2788
|
+
break;
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
return msg;
|
|
2792
|
+
};
|
|
2793
|
+
|
|
2794
|
+
|
|
2795
|
+
/**
|
|
2796
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2797
|
+
* @return {!Uint8Array}
|
|
2798
|
+
*/
|
|
2799
|
+
proto.v1.signaling.api.GetPeersRequest.prototype.serializeBinary = function() {
|
|
2800
|
+
var writer = new jspb.BinaryWriter();
|
|
2801
|
+
proto.v1.signaling.api.GetPeersRequest.serializeBinaryToWriter(this, writer);
|
|
2802
|
+
return writer.getResultBuffer();
|
|
2803
|
+
};
|
|
2804
|
+
|
|
2805
|
+
|
|
2806
|
+
/**
|
|
2807
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2808
|
+
* format), writing to the given BinaryWriter.
|
|
2809
|
+
* @param {!proto.v1.signaling.api.GetPeersRequest} message
|
|
2810
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2811
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2812
|
+
*/
|
|
2813
|
+
proto.v1.signaling.api.GetPeersRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2814
|
+
var f = undefined;
|
|
2815
|
+
};
|
|
2816
|
+
|
|
2817
|
+
|
|
2818
|
+
|
|
2819
|
+
/**
|
|
2820
|
+
* List of repeated fields within this message type.
|
|
2821
|
+
* @private {!Array<number>}
|
|
2822
|
+
* @const
|
|
2823
|
+
*/
|
|
2824
|
+
proto.v1.signaling.api.GetPeersResponse.repeatedFields_ = [1];
|
|
2825
|
+
|
|
2826
|
+
|
|
2827
|
+
|
|
2828
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2829
|
+
/**
|
|
2830
|
+
* Creates an object representation of this proto.
|
|
2831
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2832
|
+
* Optional fields that are not set will be set to undefined.
|
|
2833
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2834
|
+
* For the list of reserved names please see:
|
|
2835
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2836
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2837
|
+
* JSPB instance for transitional soy proto support:
|
|
2838
|
+
* http://goto/soy-param-migration
|
|
2839
|
+
* @return {!Object}
|
|
2840
|
+
*/
|
|
2841
|
+
proto.v1.signaling.api.GetPeersResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2842
|
+
return proto.v1.signaling.api.GetPeersResponse.toObject(opt_includeInstance, this);
|
|
2843
|
+
};
|
|
2844
|
+
|
|
2845
|
+
|
|
2846
|
+
/**
|
|
2847
|
+
* Static version of the {@see toObject} method.
|
|
2848
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2849
|
+
* the JSPB instance for transitional soy proto support:
|
|
2850
|
+
* http://goto/soy-param-migration
|
|
2851
|
+
* @param {!proto.v1.signaling.api.GetPeersResponse} msg The msg instance to transform.
|
|
2852
|
+
* @return {!Object}
|
|
2853
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2854
|
+
*/
|
|
2855
|
+
proto.v1.signaling.api.GetPeersResponse.toObject = function(includeInstance, msg) {
|
|
2856
|
+
var f, obj = {
|
|
2857
|
+
peersList: jspb.Message.toObjectList(msg.getPeersList(),
|
|
2858
|
+
proto.v1.signaling.api.Peer.toObject, includeInstance)
|
|
2859
|
+
};
|
|
2860
|
+
|
|
2861
|
+
if (includeInstance) {
|
|
2862
|
+
obj.$jspbMessageInstance = msg;
|
|
2863
|
+
}
|
|
2864
|
+
return obj;
|
|
2865
|
+
};
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2868
|
+
|
|
2869
|
+
/**
|
|
2870
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2871
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2872
|
+
* @return {!proto.v1.signaling.api.GetPeersResponse}
|
|
2873
|
+
*/
|
|
2874
|
+
proto.v1.signaling.api.GetPeersResponse.deserializeBinary = function(bytes) {
|
|
2875
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2876
|
+
var msg = new proto.v1.signaling.api.GetPeersResponse;
|
|
2877
|
+
return proto.v1.signaling.api.GetPeersResponse.deserializeBinaryFromReader(msg, reader);
|
|
2878
|
+
};
|
|
2879
|
+
|
|
2880
|
+
|
|
2881
|
+
/**
|
|
2882
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2883
|
+
* given reader into the given message object.
|
|
2884
|
+
* @param {!proto.v1.signaling.api.GetPeersResponse} msg The message object to deserialize into.
|
|
2885
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2886
|
+
* @return {!proto.v1.signaling.api.GetPeersResponse}
|
|
2887
|
+
*/
|
|
2888
|
+
proto.v1.signaling.api.GetPeersResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2889
|
+
while (reader.nextField()) {
|
|
2890
|
+
if (reader.isEndGroup()) {
|
|
2891
|
+
break;
|
|
2892
|
+
}
|
|
2893
|
+
var field = reader.getFieldNumber();
|
|
2894
|
+
switch (field) {
|
|
2895
|
+
case 1:
|
|
2896
|
+
var value = new proto.v1.signaling.api.Peer;
|
|
2897
|
+
reader.readMessage(value,proto.v1.signaling.api.Peer.deserializeBinaryFromReader);
|
|
2898
|
+
msg.addPeers(value);
|
|
2899
|
+
break;
|
|
2900
|
+
default:
|
|
2901
|
+
reader.skipField();
|
|
2902
|
+
break;
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
return msg;
|
|
2906
|
+
};
|
|
2907
|
+
|
|
2908
|
+
|
|
2909
|
+
/**
|
|
2910
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2911
|
+
* @return {!Uint8Array}
|
|
2912
|
+
*/
|
|
2913
|
+
proto.v1.signaling.api.GetPeersResponse.prototype.serializeBinary = function() {
|
|
2914
|
+
var writer = new jspb.BinaryWriter();
|
|
2915
|
+
proto.v1.signaling.api.GetPeersResponse.serializeBinaryToWriter(this, writer);
|
|
2916
|
+
return writer.getResultBuffer();
|
|
2917
|
+
};
|
|
2918
|
+
|
|
2919
|
+
|
|
2920
|
+
/**
|
|
2921
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2922
|
+
* format), writing to the given BinaryWriter.
|
|
2923
|
+
* @param {!proto.v1.signaling.api.GetPeersResponse} message
|
|
2924
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2925
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2926
|
+
*/
|
|
2927
|
+
proto.v1.signaling.api.GetPeersResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2928
|
+
var f = undefined;
|
|
2929
|
+
f = message.getPeersList();
|
|
2930
|
+
if (f.length > 0) {
|
|
2931
|
+
writer.writeRepeatedMessage(
|
|
2932
|
+
1,
|
|
2933
|
+
f,
|
|
2934
|
+
proto.v1.signaling.api.Peer.serializeBinaryToWriter
|
|
2935
|
+
);
|
|
2936
|
+
}
|
|
2937
|
+
};
|
|
2938
|
+
|
|
2939
|
+
|
|
2940
|
+
/**
|
|
2941
|
+
* repeated Peer peers = 1;
|
|
2942
|
+
* @return {!Array<!proto.v1.signaling.api.Peer>}
|
|
2943
|
+
*/
|
|
2944
|
+
proto.v1.signaling.api.GetPeersResponse.prototype.getPeersList = function() {
|
|
2945
|
+
return /** @type{!Array<!proto.v1.signaling.api.Peer>} */ (
|
|
2946
|
+
jspb.Message.getRepeatedWrapperField(this, proto.v1.signaling.api.Peer, 1));
|
|
2947
|
+
};
|
|
2948
|
+
|
|
2949
|
+
|
|
2950
|
+
/**
|
|
2951
|
+
* @param {!Array<!proto.v1.signaling.api.Peer>} value
|
|
2952
|
+
* @return {!proto.v1.signaling.api.GetPeersResponse} returns this
|
|
2953
|
+
*/
|
|
2954
|
+
proto.v1.signaling.api.GetPeersResponse.prototype.setPeersList = function(value) {
|
|
2955
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
2956
|
+
};
|
|
2957
|
+
|
|
2958
|
+
|
|
2959
|
+
/**
|
|
2960
|
+
* @param {!proto.v1.signaling.api.Peer=} opt_value
|
|
2961
|
+
* @param {number=} opt_index
|
|
2962
|
+
* @return {!proto.v1.signaling.api.Peer}
|
|
2963
|
+
*/
|
|
2964
|
+
proto.v1.signaling.api.GetPeersResponse.prototype.addPeers = function(opt_value, opt_index) {
|
|
2965
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.v1.signaling.api.Peer, opt_index);
|
|
2966
|
+
};
|
|
2967
|
+
|
|
2968
|
+
|
|
2969
|
+
/**
|
|
2970
|
+
* Clears the list making it empty but non-null.
|
|
2971
|
+
* @return {!proto.v1.signaling.api.GetPeersResponse} returns this
|
|
2972
|
+
*/
|
|
2973
|
+
proto.v1.signaling.api.GetPeersResponse.prototype.clearPeersList = function() {
|
|
2974
|
+
return this.setPeersList([]);
|
|
2975
|
+
};
|
|
2976
|
+
|
|
2977
|
+
|
|
2978
|
+
|
|
2979
|
+
|
|
2980
|
+
|
|
2981
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2982
|
+
/**
|
|
2983
|
+
* Creates an object representation of this proto.
|
|
2984
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2985
|
+
* Optional fields that are not set will be set to undefined.
|
|
2986
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2987
|
+
* For the list of reserved names please see:
|
|
2988
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2989
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2990
|
+
* JSPB instance for transitional soy proto support:
|
|
2991
|
+
* http://goto/soy-param-migration
|
|
2992
|
+
* @return {!Object}
|
|
2993
|
+
*/
|
|
2994
|
+
proto.v1.signaling.api.GetIceServersRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2995
|
+
return proto.v1.signaling.api.GetIceServersRequest.toObject(opt_includeInstance, this);
|
|
2996
|
+
};
|
|
2997
|
+
|
|
2998
|
+
|
|
2999
|
+
/**
|
|
3000
|
+
* Static version of the {@see toObject} method.
|
|
3001
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3002
|
+
* the JSPB instance for transitional soy proto support:
|
|
3003
|
+
* http://goto/soy-param-migration
|
|
3004
|
+
* @param {!proto.v1.signaling.api.GetIceServersRequest} msg The msg instance to transform.
|
|
3005
|
+
* @return {!Object}
|
|
3006
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3007
|
+
*/
|
|
3008
|
+
proto.v1.signaling.api.GetIceServersRequest.toObject = function(includeInstance, msg) {
|
|
3009
|
+
var f, obj = {
|
|
3010
|
+
|
|
3011
|
+
};
|
|
3012
|
+
|
|
3013
|
+
if (includeInstance) {
|
|
3014
|
+
obj.$jspbMessageInstance = msg;
|
|
3015
|
+
}
|
|
3016
|
+
return obj;
|
|
3017
|
+
};
|
|
3018
|
+
}
|
|
3019
|
+
|
|
3020
|
+
|
|
3021
|
+
/**
|
|
3022
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3023
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3024
|
+
* @return {!proto.v1.signaling.api.GetIceServersRequest}
|
|
3025
|
+
*/
|
|
3026
|
+
proto.v1.signaling.api.GetIceServersRequest.deserializeBinary = function(bytes) {
|
|
3027
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3028
|
+
var msg = new proto.v1.signaling.api.GetIceServersRequest;
|
|
3029
|
+
return proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader(msg, reader);
|
|
3030
|
+
};
|
|
3031
|
+
|
|
3032
|
+
|
|
3033
|
+
/**
|
|
3034
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3035
|
+
* given reader into the given message object.
|
|
3036
|
+
* @param {!proto.v1.signaling.api.GetIceServersRequest} msg The message object to deserialize into.
|
|
3037
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3038
|
+
* @return {!proto.v1.signaling.api.GetIceServersRequest}
|
|
3039
|
+
*/
|
|
3040
|
+
proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3041
|
+
while (reader.nextField()) {
|
|
3042
|
+
if (reader.isEndGroup()) {
|
|
3043
|
+
break;
|
|
3044
|
+
}
|
|
3045
|
+
var field = reader.getFieldNumber();
|
|
3046
|
+
switch (field) {
|
|
3047
|
+
default:
|
|
3048
|
+
reader.skipField();
|
|
3049
|
+
break;
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3052
|
+
return msg;
|
|
3053
|
+
};
|
|
3054
|
+
|
|
3055
|
+
|
|
3056
|
+
/**
|
|
3057
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3058
|
+
* @return {!Uint8Array}
|
|
3059
|
+
*/
|
|
3060
|
+
proto.v1.signaling.api.GetIceServersRequest.prototype.serializeBinary = function() {
|
|
3061
|
+
var writer = new jspb.BinaryWriter();
|
|
3062
|
+
proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter(this, writer);
|
|
3063
|
+
return writer.getResultBuffer();
|
|
3064
|
+
};
|
|
3065
|
+
|
|
3066
|
+
|
|
3067
|
+
/**
|
|
3068
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3069
|
+
* format), writing to the given BinaryWriter.
|
|
3070
|
+
* @param {!proto.v1.signaling.api.GetIceServersRequest} message
|
|
3071
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3072
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3073
|
+
*/
|
|
3074
|
+
proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3075
|
+
var f = undefined;
|
|
3076
|
+
};
|
|
3077
|
+
|
|
3078
|
+
|
|
3079
|
+
|
|
3080
|
+
|
|
3081
|
+
|
|
3082
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3083
|
+
/**
|
|
3084
|
+
* Creates an object representation of this proto.
|
|
3085
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3086
|
+
* Optional fields that are not set will be set to undefined.
|
|
3087
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3088
|
+
* For the list of reserved names please see:
|
|
3089
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3090
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3091
|
+
* JSPB instance for transitional soy proto support:
|
|
3092
|
+
* http://goto/soy-param-migration
|
|
3093
|
+
* @return {!Object}
|
|
3094
|
+
*/
|
|
3095
|
+
proto.v1.signaling.api.GetIceServersResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3096
|
+
return proto.v1.signaling.api.GetIceServersResponse.toObject(opt_includeInstance, this);
|
|
3097
|
+
};
|
|
3098
|
+
|
|
3099
|
+
|
|
3100
|
+
/**
|
|
3101
|
+
* Static version of the {@see toObject} method.
|
|
3102
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3103
|
+
* the JSPB instance for transitional soy proto support:
|
|
3104
|
+
* http://goto/soy-param-migration
|
|
3105
|
+
* @param {!proto.v1.signaling.api.GetIceServersResponse} msg The msg instance to transform.
|
|
3106
|
+
* @return {!Object}
|
|
3107
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3108
|
+
*/
|
|
3109
|
+
proto.v1.signaling.api.GetIceServersResponse.toObject = function(includeInstance, msg) {
|
|
3110
|
+
var f, obj = {
|
|
3111
|
+
iceServers: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
3112
|
+
};
|
|
3113
|
+
|
|
3114
|
+
if (includeInstance) {
|
|
3115
|
+
obj.$jspbMessageInstance = msg;
|
|
3116
|
+
}
|
|
3117
|
+
return obj;
|
|
3118
|
+
};
|
|
3119
|
+
}
|
|
3120
|
+
|
|
3121
|
+
|
|
3122
|
+
/**
|
|
3123
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3124
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3125
|
+
* @return {!proto.v1.signaling.api.GetIceServersResponse}
|
|
3126
|
+
*/
|
|
3127
|
+
proto.v1.signaling.api.GetIceServersResponse.deserializeBinary = function(bytes) {
|
|
3128
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3129
|
+
var msg = new proto.v1.signaling.api.GetIceServersResponse;
|
|
3130
|
+
return proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader(msg, reader);
|
|
3131
|
+
};
|
|
3132
|
+
|
|
3133
|
+
|
|
3134
|
+
/**
|
|
3135
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3136
|
+
* given reader into the given message object.
|
|
3137
|
+
* @param {!proto.v1.signaling.api.GetIceServersResponse} msg The message object to deserialize into.
|
|
3138
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3139
|
+
* @return {!proto.v1.signaling.api.GetIceServersResponse}
|
|
3140
|
+
*/
|
|
3141
|
+
proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3142
|
+
while (reader.nextField()) {
|
|
3143
|
+
if (reader.isEndGroup()) {
|
|
3144
|
+
break;
|
|
3145
|
+
}
|
|
3146
|
+
var field = reader.getFieldNumber();
|
|
3147
|
+
switch (field) {
|
|
3148
|
+
case 1:
|
|
3149
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3150
|
+
msg.setIceServers(value);
|
|
3151
|
+
break;
|
|
3152
|
+
default:
|
|
3153
|
+
reader.skipField();
|
|
3154
|
+
break;
|
|
3155
|
+
}
|
|
3156
|
+
}
|
|
3157
|
+
return msg;
|
|
3158
|
+
};
|
|
3159
|
+
|
|
3160
|
+
|
|
3161
|
+
/**
|
|
3162
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3163
|
+
* @return {!Uint8Array}
|
|
3164
|
+
*/
|
|
3165
|
+
proto.v1.signaling.api.GetIceServersResponse.prototype.serializeBinary = function() {
|
|
3166
|
+
var writer = new jspb.BinaryWriter();
|
|
3167
|
+
proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter(this, writer);
|
|
3168
|
+
return writer.getResultBuffer();
|
|
3169
|
+
};
|
|
3170
|
+
|
|
3171
|
+
|
|
3172
|
+
/**
|
|
3173
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3174
|
+
* format), writing to the given BinaryWriter.
|
|
3175
|
+
* @param {!proto.v1.signaling.api.GetIceServersResponse} message
|
|
3176
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3177
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3178
|
+
*/
|
|
3179
|
+
proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3180
|
+
var f = undefined;
|
|
3181
|
+
f = message.getIceServers();
|
|
3182
|
+
if (f.length > 0) {
|
|
3183
|
+
writer.writeString(
|
|
3184
|
+
1,
|
|
3185
|
+
f
|
|
3186
|
+
);
|
|
3187
|
+
}
|
|
3188
|
+
};
|
|
3189
|
+
|
|
3190
|
+
|
|
3191
|
+
/**
|
|
3192
|
+
* optional string ice_servers = 1;
|
|
3193
|
+
* @return {string}
|
|
3194
|
+
*/
|
|
3195
|
+
proto.v1.signaling.api.GetIceServersResponse.prototype.getIceServers = function() {
|
|
3196
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3197
|
+
};
|
|
3198
|
+
|
|
3199
|
+
|
|
3200
|
+
/**
|
|
3201
|
+
* @param {string} value
|
|
3202
|
+
* @return {!proto.v1.signaling.api.GetIceServersResponse} returns this
|
|
3203
|
+
*/
|
|
3204
|
+
proto.v1.signaling.api.GetIceServersResponse.prototype.setIceServers = function(value) {
|
|
3205
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3206
|
+
};
|
|
3207
|
+
|
|
3208
|
+
|
|
3209
|
+
|
|
3210
|
+
|
|
3211
|
+
|
|
3212
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3213
|
+
/**
|
|
3214
|
+
* Creates an object representation of this proto.
|
|
3215
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3216
|
+
* Optional fields that are not set will be set to undefined.
|
|
3217
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3218
|
+
* For the list of reserved names please see:
|
|
3219
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3220
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3221
|
+
* JSPB instance for transitional soy proto support:
|
|
3222
|
+
* http://goto/soy-param-migration
|
|
3223
|
+
* @return {!Object}
|
|
3224
|
+
*/
|
|
3225
|
+
proto.v1.signaling.api.SendSignalRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3226
|
+
return proto.v1.signaling.api.SendSignalRequest.toObject(opt_includeInstance, this);
|
|
3227
|
+
};
|
|
3228
|
+
|
|
3229
|
+
|
|
3230
|
+
/**
|
|
3231
|
+
* Static version of the {@see toObject} method.
|
|
3232
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3233
|
+
* the JSPB instance for transitional soy proto support:
|
|
3234
|
+
* http://goto/soy-param-migration
|
|
3235
|
+
* @param {!proto.v1.signaling.api.SendSignalRequest} msg The msg instance to transform.
|
|
3236
|
+
* @return {!Object}
|
|
3237
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3238
|
+
*/
|
|
3239
|
+
proto.v1.signaling.api.SendSignalRequest.toObject = function(includeInstance, msg) {
|
|
3240
|
+
var f, obj = {
|
|
3241
|
+
signal: (f = msg.getSignal()) && proto.v1.signaling.api.Signal.toObject(includeInstance, f)
|
|
3242
|
+
};
|
|
3243
|
+
|
|
3244
|
+
if (includeInstance) {
|
|
3245
|
+
obj.$jspbMessageInstance = msg;
|
|
3246
|
+
}
|
|
3247
|
+
return obj;
|
|
3248
|
+
};
|
|
3249
|
+
}
|
|
3250
|
+
|
|
3251
|
+
|
|
3252
|
+
/**
|
|
3253
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3254
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3255
|
+
* @return {!proto.v1.signaling.api.SendSignalRequest}
|
|
3256
|
+
*/
|
|
3257
|
+
proto.v1.signaling.api.SendSignalRequest.deserializeBinary = function(bytes) {
|
|
3258
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3259
|
+
var msg = new proto.v1.signaling.api.SendSignalRequest;
|
|
3260
|
+
return proto.v1.signaling.api.SendSignalRequest.deserializeBinaryFromReader(msg, reader);
|
|
3261
|
+
};
|
|
3262
|
+
|
|
3263
|
+
|
|
3264
|
+
/**
|
|
3265
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3266
|
+
* given reader into the given message object.
|
|
3267
|
+
* @param {!proto.v1.signaling.api.SendSignalRequest} msg The message object to deserialize into.
|
|
3268
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3269
|
+
* @return {!proto.v1.signaling.api.SendSignalRequest}
|
|
3270
|
+
*/
|
|
3271
|
+
proto.v1.signaling.api.SendSignalRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3272
|
+
while (reader.nextField()) {
|
|
3273
|
+
if (reader.isEndGroup()) {
|
|
3274
|
+
break;
|
|
3275
|
+
}
|
|
3276
|
+
var field = reader.getFieldNumber();
|
|
3277
|
+
switch (field) {
|
|
3278
|
+
case 1:
|
|
3279
|
+
var value = new proto.v1.signaling.api.Signal;
|
|
3280
|
+
reader.readMessage(value,proto.v1.signaling.api.Signal.deserializeBinaryFromReader);
|
|
3281
|
+
msg.setSignal(value);
|
|
3282
|
+
break;
|
|
3283
|
+
default:
|
|
3284
|
+
reader.skipField();
|
|
3285
|
+
break;
|
|
3286
|
+
}
|
|
3287
|
+
}
|
|
3288
|
+
return msg;
|
|
3289
|
+
};
|
|
3290
|
+
|
|
3291
|
+
|
|
3292
|
+
/**
|
|
3293
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3294
|
+
* @return {!Uint8Array}
|
|
3295
|
+
*/
|
|
3296
|
+
proto.v1.signaling.api.SendSignalRequest.prototype.serializeBinary = function() {
|
|
3297
|
+
var writer = new jspb.BinaryWriter();
|
|
3298
|
+
proto.v1.signaling.api.SendSignalRequest.serializeBinaryToWriter(this, writer);
|
|
3299
|
+
return writer.getResultBuffer();
|
|
3300
|
+
};
|
|
3301
|
+
|
|
3302
|
+
|
|
3303
|
+
/**
|
|
3304
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3305
|
+
* format), writing to the given BinaryWriter.
|
|
3306
|
+
* @param {!proto.v1.signaling.api.SendSignalRequest} message
|
|
3307
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3308
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3309
|
+
*/
|
|
3310
|
+
proto.v1.signaling.api.SendSignalRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3311
|
+
var f = undefined;
|
|
3312
|
+
f = message.getSignal();
|
|
3313
|
+
if (f != null) {
|
|
3314
|
+
writer.writeMessage(
|
|
3315
|
+
1,
|
|
3316
|
+
f,
|
|
3317
|
+
proto.v1.signaling.api.Signal.serializeBinaryToWriter
|
|
3318
|
+
);
|
|
3319
|
+
}
|
|
3320
|
+
};
|
|
3321
|
+
|
|
3322
|
+
|
|
3323
|
+
/**
|
|
3324
|
+
* optional Signal signal = 1;
|
|
3325
|
+
* @return {?proto.v1.signaling.api.Signal}
|
|
3326
|
+
*/
|
|
3327
|
+
proto.v1.signaling.api.SendSignalRequest.prototype.getSignal = function() {
|
|
3328
|
+
return /** @type{?proto.v1.signaling.api.Signal} */ (
|
|
3329
|
+
jspb.Message.getWrapperField(this, proto.v1.signaling.api.Signal, 1));
|
|
3330
|
+
};
|
|
3331
|
+
|
|
3332
|
+
|
|
3333
|
+
/**
|
|
3334
|
+
* @param {?proto.v1.signaling.api.Signal|undefined} value
|
|
3335
|
+
* @return {!proto.v1.signaling.api.SendSignalRequest} returns this
|
|
3336
|
+
*/
|
|
3337
|
+
proto.v1.signaling.api.SendSignalRequest.prototype.setSignal = function(value) {
|
|
3338
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3339
|
+
};
|
|
3340
|
+
|
|
3341
|
+
|
|
3342
|
+
/**
|
|
3343
|
+
* Clears the message field making it undefined.
|
|
3344
|
+
* @return {!proto.v1.signaling.api.SendSignalRequest} returns this
|
|
3345
|
+
*/
|
|
3346
|
+
proto.v1.signaling.api.SendSignalRequest.prototype.clearSignal = function() {
|
|
3347
|
+
return this.setSignal(undefined);
|
|
3348
|
+
};
|
|
3349
|
+
|
|
3350
|
+
|
|
3351
|
+
/**
|
|
3352
|
+
* Returns whether this field is set.
|
|
3353
|
+
* @return {boolean}
|
|
3354
|
+
*/
|
|
3355
|
+
proto.v1.signaling.api.SendSignalRequest.prototype.hasSignal = function() {
|
|
3356
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3357
|
+
};
|
|
3358
|
+
|
|
3359
|
+
|
|
3360
|
+
|
|
3361
|
+
|
|
3362
|
+
|
|
3363
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3364
|
+
/**
|
|
3365
|
+
* Creates an object representation of this proto.
|
|
3366
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3367
|
+
* Optional fields that are not set will be set to undefined.
|
|
3368
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3369
|
+
* For the list of reserved names please see:
|
|
3370
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3371
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3372
|
+
* JSPB instance for transitional soy proto support:
|
|
3373
|
+
* http://goto/soy-param-migration
|
|
3374
|
+
* @return {!Object}
|
|
3375
|
+
*/
|
|
3376
|
+
proto.v1.signaling.api.SendSignalResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3377
|
+
return proto.v1.signaling.api.SendSignalResponse.toObject(opt_includeInstance, this);
|
|
3378
|
+
};
|
|
3379
|
+
|
|
3380
|
+
|
|
3381
|
+
/**
|
|
3382
|
+
* Static version of the {@see toObject} method.
|
|
3383
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3384
|
+
* the JSPB instance for transitional soy proto support:
|
|
3385
|
+
* http://goto/soy-param-migration
|
|
3386
|
+
* @param {!proto.v1.signaling.api.SendSignalResponse} msg The msg instance to transform.
|
|
3387
|
+
* @return {!Object}
|
|
3388
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3389
|
+
*/
|
|
3390
|
+
proto.v1.signaling.api.SendSignalResponse.toObject = function(includeInstance, msg) {
|
|
3391
|
+
var f, obj = {
|
|
3392
|
+
sessionId: (f = msg.getSessionId()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
3393
|
+
sessionCreatedTimestamp: (f = msg.getSessionCreatedTimestamp()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f)
|
|
3394
|
+
};
|
|
3395
|
+
|
|
3396
|
+
if (includeInstance) {
|
|
3397
|
+
obj.$jspbMessageInstance = msg;
|
|
3398
|
+
}
|
|
3399
|
+
return obj;
|
|
3400
|
+
};
|
|
3401
|
+
}
|
|
3402
|
+
|
|
3403
|
+
|
|
3404
|
+
/**
|
|
3405
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3406
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3407
|
+
* @return {!proto.v1.signaling.api.SendSignalResponse}
|
|
3408
|
+
*/
|
|
3409
|
+
proto.v1.signaling.api.SendSignalResponse.deserializeBinary = function(bytes) {
|
|
3410
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3411
|
+
var msg = new proto.v1.signaling.api.SendSignalResponse;
|
|
3412
|
+
return proto.v1.signaling.api.SendSignalResponse.deserializeBinaryFromReader(msg, reader);
|
|
3413
|
+
};
|
|
3414
|
+
|
|
3415
|
+
|
|
3416
|
+
/**
|
|
3417
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3418
|
+
* given reader into the given message object.
|
|
3419
|
+
* @param {!proto.v1.signaling.api.SendSignalResponse} msg The message object to deserialize into.
|
|
3420
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3421
|
+
* @return {!proto.v1.signaling.api.SendSignalResponse}
|
|
3422
|
+
*/
|
|
3423
|
+
proto.v1.signaling.api.SendSignalResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3424
|
+
while (reader.nextField()) {
|
|
3425
|
+
if (reader.isEndGroup()) {
|
|
3426
|
+
break;
|
|
3427
|
+
}
|
|
3428
|
+
var field = reader.getFieldNumber();
|
|
3429
|
+
switch (field) {
|
|
3430
|
+
case 1:
|
|
3431
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
3432
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
3433
|
+
msg.setSessionId(value);
|
|
3434
|
+
break;
|
|
3435
|
+
case 2:
|
|
3436
|
+
var value = new google_protobuf_wrappers_pb.Int64Value;
|
|
3437
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
|
|
3438
|
+
msg.setSessionCreatedTimestamp(value);
|
|
3439
|
+
break;
|
|
3440
|
+
default:
|
|
3441
|
+
reader.skipField();
|
|
3442
|
+
break;
|
|
3443
|
+
}
|
|
3444
|
+
}
|
|
3445
|
+
return msg;
|
|
3446
|
+
};
|
|
3447
|
+
|
|
3448
|
+
|
|
3449
|
+
/**
|
|
3450
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3451
|
+
* @return {!Uint8Array}
|
|
3452
|
+
*/
|
|
3453
|
+
proto.v1.signaling.api.SendSignalResponse.prototype.serializeBinary = function() {
|
|
3454
|
+
var writer = new jspb.BinaryWriter();
|
|
3455
|
+
proto.v1.signaling.api.SendSignalResponse.serializeBinaryToWriter(this, writer);
|
|
3456
|
+
return writer.getResultBuffer();
|
|
3457
|
+
};
|
|
3458
|
+
|
|
3459
|
+
|
|
3460
|
+
/**
|
|
3461
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3462
|
+
* format), writing to the given BinaryWriter.
|
|
3463
|
+
* @param {!proto.v1.signaling.api.SendSignalResponse} message
|
|
3464
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3465
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3466
|
+
*/
|
|
3467
|
+
proto.v1.signaling.api.SendSignalResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3468
|
+
var f = undefined;
|
|
3469
|
+
f = message.getSessionId();
|
|
3470
|
+
if (f != null) {
|
|
3471
|
+
writer.writeMessage(
|
|
3472
|
+
1,
|
|
3473
|
+
f,
|
|
3474
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
3475
|
+
);
|
|
3476
|
+
}
|
|
3477
|
+
f = message.getSessionCreatedTimestamp();
|
|
3478
|
+
if (f != null) {
|
|
3479
|
+
writer.writeMessage(
|
|
3480
|
+
2,
|
|
3481
|
+
f,
|
|
3482
|
+
google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
|
|
3483
|
+
);
|
|
3484
|
+
}
|
|
3485
|
+
};
|
|
3486
|
+
|
|
3487
|
+
|
|
3488
|
+
/**
|
|
3489
|
+
* optional google.protobuf.StringValue session_id = 1;
|
|
3490
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
3491
|
+
*/
|
|
3492
|
+
proto.v1.signaling.api.SendSignalResponse.prototype.getSessionId = function() {
|
|
3493
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
3494
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
|
|
3495
|
+
};
|
|
3496
|
+
|
|
3497
|
+
|
|
3498
|
+
/**
|
|
3499
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
3500
|
+
* @return {!proto.v1.signaling.api.SendSignalResponse} returns this
|
|
3501
|
+
*/
|
|
3502
|
+
proto.v1.signaling.api.SendSignalResponse.prototype.setSessionId = function(value) {
|
|
3503
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3504
|
+
};
|
|
3505
|
+
|
|
3506
|
+
|
|
3507
|
+
/**
|
|
3508
|
+
* Clears the message field making it undefined.
|
|
3509
|
+
* @return {!proto.v1.signaling.api.SendSignalResponse} returns this
|
|
3510
|
+
*/
|
|
3511
|
+
proto.v1.signaling.api.SendSignalResponse.prototype.clearSessionId = function() {
|
|
3512
|
+
return this.setSessionId(undefined);
|
|
3513
|
+
};
|
|
3514
|
+
|
|
3515
|
+
|
|
3516
|
+
/**
|
|
3517
|
+
* Returns whether this field is set.
|
|
3518
|
+
* @return {boolean}
|
|
3519
|
+
*/
|
|
3520
|
+
proto.v1.signaling.api.SendSignalResponse.prototype.hasSessionId = function() {
|
|
3521
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3522
|
+
};
|
|
3523
|
+
|
|
3524
|
+
|
|
3525
|
+
/**
|
|
3526
|
+
* optional google.protobuf.Int64Value session_created_timestamp = 2;
|
|
3527
|
+
* @return {?proto.google.protobuf.Int64Value}
|
|
3528
|
+
*/
|
|
3529
|
+
proto.v1.signaling.api.SendSignalResponse.prototype.getSessionCreatedTimestamp = function() {
|
|
3530
|
+
return /** @type{?proto.google.protobuf.Int64Value} */ (
|
|
3531
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 2));
|
|
3532
|
+
};
|
|
3533
|
+
|
|
3534
|
+
|
|
3535
|
+
/**
|
|
3536
|
+
* @param {?proto.google.protobuf.Int64Value|undefined} value
|
|
3537
|
+
* @return {!proto.v1.signaling.api.SendSignalResponse} returns this
|
|
3538
|
+
*/
|
|
3539
|
+
proto.v1.signaling.api.SendSignalResponse.prototype.setSessionCreatedTimestamp = function(value) {
|
|
3540
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
3541
|
+
};
|
|
3542
|
+
|
|
3543
|
+
|
|
3544
|
+
/**
|
|
3545
|
+
* Clears the message field making it undefined.
|
|
3546
|
+
* @return {!proto.v1.signaling.api.SendSignalResponse} returns this
|
|
3547
|
+
*/
|
|
3548
|
+
proto.v1.signaling.api.SendSignalResponse.prototype.clearSessionCreatedTimestamp = function() {
|
|
3549
|
+
return this.setSessionCreatedTimestamp(undefined);
|
|
3550
|
+
};
|
|
3551
|
+
|
|
3552
|
+
|
|
3553
|
+
/**
|
|
3554
|
+
* Returns whether this field is set.
|
|
3555
|
+
* @return {boolean}
|
|
3556
|
+
*/
|
|
3557
|
+
proto.v1.signaling.api.SendSignalResponse.prototype.hasSessionCreatedTimestamp = function() {
|
|
3558
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3559
|
+
};
|
|
3560
|
+
|
|
3561
|
+
|
|
3562
|
+
|
|
3563
|
+
|
|
3564
|
+
|
|
3565
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3566
|
+
/**
|
|
3567
|
+
* Creates an object representation of this proto.
|
|
3568
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3569
|
+
* Optional fields that are not set will be set to undefined.
|
|
3570
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3571
|
+
* For the list of reserved names please see:
|
|
3572
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3573
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3574
|
+
* JSPB instance for transitional soy proto support:
|
|
3575
|
+
* http://goto/soy-param-migration
|
|
3576
|
+
* @return {!Object}
|
|
3577
|
+
*/
|
|
3578
|
+
proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3579
|
+
return proto.v1.signaling.api.ReceiveSignalStreamRequest.toObject(opt_includeInstance, this);
|
|
3580
|
+
};
|
|
3581
|
+
|
|
3582
|
+
|
|
3583
|
+
/**
|
|
3584
|
+
* Static version of the {@see toObject} method.
|
|
3585
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3586
|
+
* the JSPB instance for transitional soy proto support:
|
|
3587
|
+
* http://goto/soy-param-migration
|
|
3588
|
+
* @param {!proto.v1.signaling.api.ReceiveSignalStreamRequest} msg The msg instance to transform.
|
|
3589
|
+
* @return {!Object}
|
|
3590
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3591
|
+
*/
|
|
3592
|
+
proto.v1.signaling.api.ReceiveSignalStreamRequest.toObject = function(includeInstance, msg) {
|
|
3593
|
+
var f, obj = {
|
|
3594
|
+
peerId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
3595
|
+
};
|
|
3596
|
+
|
|
3597
|
+
if (includeInstance) {
|
|
3598
|
+
obj.$jspbMessageInstance = msg;
|
|
3599
|
+
}
|
|
3600
|
+
return obj;
|
|
3601
|
+
};
|
|
3602
|
+
}
|
|
3603
|
+
|
|
3604
|
+
|
|
3605
|
+
/**
|
|
3606
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3607
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3608
|
+
* @return {!proto.v1.signaling.api.ReceiveSignalStreamRequest}
|
|
3609
|
+
*/
|
|
3610
|
+
proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinary = function(bytes) {
|
|
3611
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3612
|
+
var msg = new proto.v1.signaling.api.ReceiveSignalStreamRequest;
|
|
3613
|
+
return proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinaryFromReader(msg, reader);
|
|
3614
|
+
};
|
|
3615
|
+
|
|
3616
|
+
|
|
3617
|
+
/**
|
|
3618
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3619
|
+
* given reader into the given message object.
|
|
3620
|
+
* @param {!proto.v1.signaling.api.ReceiveSignalStreamRequest} msg The message object to deserialize into.
|
|
3621
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3622
|
+
* @return {!proto.v1.signaling.api.ReceiveSignalStreamRequest}
|
|
3623
|
+
*/
|
|
3624
|
+
proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3625
|
+
while (reader.nextField()) {
|
|
3626
|
+
if (reader.isEndGroup()) {
|
|
3627
|
+
break;
|
|
3628
|
+
}
|
|
3629
|
+
var field = reader.getFieldNumber();
|
|
3630
|
+
switch (field) {
|
|
3631
|
+
case 1:
|
|
3632
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3633
|
+
msg.setPeerId(value);
|
|
3634
|
+
break;
|
|
3635
|
+
default:
|
|
3636
|
+
reader.skipField();
|
|
3637
|
+
break;
|
|
3638
|
+
}
|
|
3639
|
+
}
|
|
3640
|
+
return msg;
|
|
3641
|
+
};
|
|
3642
|
+
|
|
3643
|
+
|
|
3644
|
+
/**
|
|
3645
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3646
|
+
* @return {!Uint8Array}
|
|
3647
|
+
*/
|
|
3648
|
+
proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.serializeBinary = function() {
|
|
3649
|
+
var writer = new jspb.BinaryWriter();
|
|
3650
|
+
proto.v1.signaling.api.ReceiveSignalStreamRequest.serializeBinaryToWriter(this, writer);
|
|
3651
|
+
return writer.getResultBuffer();
|
|
3652
|
+
};
|
|
3653
|
+
|
|
3654
|
+
|
|
3655
|
+
/**
|
|
3656
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3657
|
+
* format), writing to the given BinaryWriter.
|
|
3658
|
+
* @param {!proto.v1.signaling.api.ReceiveSignalStreamRequest} message
|
|
3659
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3660
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3661
|
+
*/
|
|
3662
|
+
proto.v1.signaling.api.ReceiveSignalStreamRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3663
|
+
var f = undefined;
|
|
3664
|
+
f = message.getPeerId();
|
|
3665
|
+
if (f.length > 0) {
|
|
3666
|
+
writer.writeString(
|
|
3667
|
+
1,
|
|
3668
|
+
f
|
|
3669
|
+
);
|
|
3670
|
+
}
|
|
3671
|
+
};
|
|
3672
|
+
|
|
3673
|
+
|
|
3674
|
+
/**
|
|
3675
|
+
* optional string peer_id = 1;
|
|
3676
|
+
* @return {string}
|
|
3677
|
+
*/
|
|
3678
|
+
proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.getPeerId = function() {
|
|
3679
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3680
|
+
};
|
|
3681
|
+
|
|
3682
|
+
|
|
3683
|
+
/**
|
|
3684
|
+
* @param {string} value
|
|
3685
|
+
* @return {!proto.v1.signaling.api.ReceiveSignalStreamRequest} returns this
|
|
3686
|
+
*/
|
|
3687
|
+
proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.setPeerId = function(value) {
|
|
3688
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3689
|
+
};
|
|
3690
|
+
|
|
3691
|
+
|
|
3692
|
+
|
|
3693
|
+
|
|
3694
|
+
|
|
3695
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3696
|
+
/**
|
|
3697
|
+
* Creates an object representation of this proto.
|
|
3698
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3699
|
+
* Optional fields that are not set will be set to undefined.
|
|
3700
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3701
|
+
* For the list of reserved names please see:
|
|
3702
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3703
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3704
|
+
* JSPB instance for transitional soy proto support:
|
|
3705
|
+
* http://goto/soy-param-migration
|
|
3706
|
+
* @return {!Object}
|
|
3707
|
+
*/
|
|
3708
|
+
proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3709
|
+
return proto.v1.signaling.api.ReceiveSignalStreamResponse.toObject(opt_includeInstance, this);
|
|
3710
|
+
};
|
|
3711
|
+
|
|
3712
|
+
|
|
3713
|
+
/**
|
|
3714
|
+
* Static version of the {@see toObject} method.
|
|
3715
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3716
|
+
* the JSPB instance for transitional soy proto support:
|
|
3717
|
+
* http://goto/soy-param-migration
|
|
3718
|
+
* @param {!proto.v1.signaling.api.ReceiveSignalStreamResponse} msg The msg instance to transform.
|
|
3719
|
+
* @return {!Object}
|
|
3720
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3721
|
+
*/
|
|
3722
|
+
proto.v1.signaling.api.ReceiveSignalStreamResponse.toObject = function(includeInstance, msg) {
|
|
3723
|
+
var f, obj = {
|
|
3724
|
+
signal: (f = msg.getSignal()) && proto.v1.signaling.api.Signal.toObject(includeInstance, f)
|
|
3725
|
+
};
|
|
3726
|
+
|
|
3727
|
+
if (includeInstance) {
|
|
3728
|
+
obj.$jspbMessageInstance = msg;
|
|
3729
|
+
}
|
|
3730
|
+
return obj;
|
|
3731
|
+
};
|
|
3732
|
+
}
|
|
3733
|
+
|
|
3734
|
+
|
|
3735
|
+
/**
|
|
3736
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3737
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3738
|
+
* @return {!proto.v1.signaling.api.ReceiveSignalStreamResponse}
|
|
3739
|
+
*/
|
|
3740
|
+
proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinary = function(bytes) {
|
|
3741
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3742
|
+
var msg = new proto.v1.signaling.api.ReceiveSignalStreamResponse;
|
|
3743
|
+
return proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinaryFromReader(msg, reader);
|
|
3744
|
+
};
|
|
3745
|
+
|
|
3746
|
+
|
|
3747
|
+
/**
|
|
3748
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3749
|
+
* given reader into the given message object.
|
|
3750
|
+
* @param {!proto.v1.signaling.api.ReceiveSignalStreamResponse} msg The message object to deserialize into.
|
|
3751
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3752
|
+
* @return {!proto.v1.signaling.api.ReceiveSignalStreamResponse}
|
|
3753
|
+
*/
|
|
3754
|
+
proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3755
|
+
while (reader.nextField()) {
|
|
3756
|
+
if (reader.isEndGroup()) {
|
|
3757
|
+
break;
|
|
3758
|
+
}
|
|
3759
|
+
var field = reader.getFieldNumber();
|
|
3760
|
+
switch (field) {
|
|
3761
|
+
case 1:
|
|
3762
|
+
var value = new proto.v1.signaling.api.Signal;
|
|
3763
|
+
reader.readMessage(value,proto.v1.signaling.api.Signal.deserializeBinaryFromReader);
|
|
3764
|
+
msg.setSignal(value);
|
|
3765
|
+
break;
|
|
3766
|
+
default:
|
|
3767
|
+
reader.skipField();
|
|
3768
|
+
break;
|
|
3769
|
+
}
|
|
3770
|
+
}
|
|
3771
|
+
return msg;
|
|
3772
|
+
};
|
|
3773
|
+
|
|
3774
|
+
|
|
3775
|
+
/**
|
|
3776
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3777
|
+
* @return {!Uint8Array}
|
|
3778
|
+
*/
|
|
3779
|
+
proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.serializeBinary = function() {
|
|
3780
|
+
var writer = new jspb.BinaryWriter();
|
|
3781
|
+
proto.v1.signaling.api.ReceiveSignalStreamResponse.serializeBinaryToWriter(this, writer);
|
|
3782
|
+
return writer.getResultBuffer();
|
|
3783
|
+
};
|
|
3784
|
+
|
|
3785
|
+
|
|
3786
|
+
/**
|
|
3787
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3788
|
+
* format), writing to the given BinaryWriter.
|
|
3789
|
+
* @param {!proto.v1.signaling.api.ReceiveSignalStreamResponse} message
|
|
3790
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3791
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3792
|
+
*/
|
|
3793
|
+
proto.v1.signaling.api.ReceiveSignalStreamResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3794
|
+
var f = undefined;
|
|
3795
|
+
f = message.getSignal();
|
|
3796
|
+
if (f != null) {
|
|
3797
|
+
writer.writeMessage(
|
|
3798
|
+
1,
|
|
3799
|
+
f,
|
|
3800
|
+
proto.v1.signaling.api.Signal.serializeBinaryToWriter
|
|
3801
|
+
);
|
|
3802
|
+
}
|
|
3803
|
+
};
|
|
3804
|
+
|
|
3805
|
+
|
|
3806
|
+
/**
|
|
3807
|
+
* optional Signal signal = 1;
|
|
3808
|
+
* @return {?proto.v1.signaling.api.Signal}
|
|
3809
|
+
*/
|
|
3810
|
+
proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.getSignal = function() {
|
|
3811
|
+
return /** @type{?proto.v1.signaling.api.Signal} */ (
|
|
3812
|
+
jspb.Message.getWrapperField(this, proto.v1.signaling.api.Signal, 1));
|
|
3813
|
+
};
|
|
3814
|
+
|
|
3815
|
+
|
|
3816
|
+
/**
|
|
3817
|
+
* @param {?proto.v1.signaling.api.Signal|undefined} value
|
|
3818
|
+
* @return {!proto.v1.signaling.api.ReceiveSignalStreamResponse} returns this
|
|
3819
|
+
*/
|
|
3820
|
+
proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.setSignal = function(value) {
|
|
3821
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3822
|
+
};
|
|
3823
|
+
|
|
3824
|
+
|
|
3825
|
+
/**
|
|
3826
|
+
* Clears the message field making it undefined.
|
|
3827
|
+
* @return {!proto.v1.signaling.api.ReceiveSignalStreamResponse} returns this
|
|
3828
|
+
*/
|
|
3829
|
+
proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.clearSignal = function() {
|
|
3830
|
+
return this.setSignal(undefined);
|
|
3831
|
+
};
|
|
3832
|
+
|
|
3833
|
+
|
|
3834
|
+
/**
|
|
3835
|
+
* Returns whether this field is set.
|
|
3836
|
+
* @return {boolean}
|
|
3837
|
+
*/
|
|
3838
|
+
proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.hasSignal = function() {
|
|
3839
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3840
|
+
};
|
|
3841
|
+
|
|
3842
|
+
|
|
3843
|
+
/**
|
|
3844
|
+
* @enum {number}
|
|
3845
|
+
*/
|
|
3846
|
+
proto.v1.signaling.api.SessionType = {
|
|
3847
|
+
UNKNOWN: 0,
|
|
3848
|
+
TELEOP: 1,
|
|
3849
|
+
PORT_FORWARD: 2,
|
|
3850
|
+
OBSERVE: 3,
|
|
3851
|
+
HEADLESS: 4
|
|
3852
|
+
};
|
|
3853
|
+
|
|
3854
|
+
goog.object.extend(exports, proto.v1.signaling.api);
|