browserstack-node-sdk 1.36.2 → 1.36.4

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.
Files changed (194) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -7
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  60. package/src/bin/jest/jest.setup.js +1 -1
  61. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  62. package/src/bin/jest/test-observability/helper.js +1 -1
  63. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  64. package/src/bin/jest/test-observability/test-details.js +1 -1
  65. package/src/bin/jest/test_before.setup.js +1 -1
  66. package/src/bin/launcher/launcher.js +1 -1
  67. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  68. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  69. package/src/bin/mocha/command.js +1 -1
  70. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  71. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  72. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  73. package/src/bin/mocha/test.setup.js +1 -1
  74. package/src/bin/nightwatch/command.js +1 -1
  75. package/src/bin/playwright/accessibility-helper.js +1 -1
  76. package/src/bin/playwright/command.js +1 -1
  77. package/src/bin/playwright/globalSetup.js +1 -1
  78. package/src/bin/playwright/mock-process.js +1 -1
  79. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  80. package/src/bin/playwright/patches.js +1 -1
  81. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  82. package/src/bin/playwright/reporter/reporter.js +1 -1
  83. package/src/bin/playwright/reporter/test-details.js +1 -1
  84. package/src/bin/playwright/sessionDetails.js +1 -1
  85. package/src/bin/runner.js +1 -1
  86. package/src/bin/setup.js +1 -1
  87. package/src/bin/test-runner/index.js +1 -1
  88. package/src/bin/test-runner/runTest.js +1 -1
  89. package/src/bin/test-runner/testWorker.js +1 -1
  90. package/src/bin/utils/constants.js +1 -1
  91. package/src/bin/utils/log4jsAppender.js +1 -1
  92. package/src/bin/utils/logPatcher.js +1 -1
  93. package/src/bin/utils/logReportingAPI.js +1 -1
  94. package/src/bin/vanilla-js/command.js +1 -1
  95. package/src/browserStackSdk.js +1 -1
  96. package/src/helpers/BrowserStackSetup.js +1 -1
  97. package/src/helpers/accessibility-automation/constants.js +1 -1
  98. package/src/helpers/accessibility-automation/helper.js +1 -1
  99. package/src/helpers/accessibility-automation/scripts.js +1 -1
  100. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  101. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  102. package/src/helpers/ats/constants.js +1 -1
  103. package/src/helpers/ats/helper.js +1 -1
  104. package/src/helpers/capsMapping.js +1 -1
  105. package/src/helpers/central-scanner/constants.js +1 -1
  106. package/src/helpers/central-scanner/helpers.js +1 -1
  107. package/src/helpers/globals.js +1 -1
  108. package/src/helpers/helper.js +1 -1
  109. package/src/helpers/logger.js +1 -1
  110. package/src/helpers/metadata.js +1 -1
  111. package/src/helpers/patchHelper.js +1 -1
  112. package/src/helpers/patchHelpers.js +1 -1
  113. package/src/helpers/percy/Percy.js +1 -1
  114. package/src/helpers/percy/PercyBinary.js +1 -1
  115. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  116. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  117. package/src/helpers/percy/PercySDK.js +1 -1
  118. package/src/helpers/percy/index.js +1 -1
  119. package/src/helpers/percy/utils.js +1 -1
  120. package/src/helpers/performance/constants.js +1 -1
  121. package/src/helpers/performance/performance-tester.js +1 -1
  122. package/src/helpers/processHelper.js +1 -1
  123. package/src/helpers/request-spy.js +1 -1
  124. package/src/helpers/setKeepAlive.js +1 -1
  125. package/src/helpers/test-observability/constants.js +1 -1
  126. package/src/helpers/test-observability/error-handler.js +1 -1
  127. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  128. package/src/helpers/test-observability/sessionHandler.js +1 -1
  129. package/src/helpers/test-observability/utils.js +1 -1
  130. package/src/helpers/testhub/constants.js +1 -1
  131. package/src/helpers/testhub/testhubHandler.js +1 -1
  132. package/src/helpers/testhub/utils.js +1 -1
  133. package/src/helpers/timeoutPromise.js +1 -1
  134. package/src/helpers/utilities.js +1 -1
  135. package/src/helpers/w3cMapping.js +1 -1
  136. package/src/hubAllocationMethods.js +1 -1
  137. package/src/index.js +1 -1
  138. package/generated/sdk-messages-accessibility_grpc_pb.d.ts +0 -1
  139. package/generated/sdk-messages-accessibility_grpc_pb.js +0 -1
  140. package/generated/sdk-messages-accessibility_pb.d.ts +0 -279
  141. package/generated/sdk-messages-accessibility_pb.js +0 -2186
  142. package/generated/sdk-messages-ai_grpc_pb.d.ts +0 -1
  143. package/generated/sdk-messages-ai_grpc_pb.js +0 -1
  144. package/generated/sdk-messages-ai_pb.d.ts +0 -217
  145. package/generated/sdk-messages-ai_pb.js +0 -1650
  146. package/generated/sdk-messages-observability_grpc_pb.d.ts +0 -1
  147. package/generated/sdk-messages-observability_grpc_pb.js +0 -1
  148. package/generated/sdk-messages-observability_pb.d.ts +0 -178
  149. package/generated/sdk-messages-observability_pb.js +0 -1377
  150. package/generated/sdk-messages-percy_grpc_pb.d.ts +0 -1
  151. package/generated/sdk-messages-percy_grpc_pb.js +0 -1
  152. package/generated/sdk-messages-percy_pb.d.ts +0 -37
  153. package/generated/sdk-messages-percy_pb.js +0 -266
  154. package/generated/sdk-messages-testhub_grpc_pb.d.ts +0 -1
  155. package/generated/sdk-messages-testhub_grpc_pb.js +0 -1
  156. package/generated/sdk-messages-testhub_pb.d.ts +0 -39
  157. package/generated/sdk-messages-testhub_pb.js +0 -290
  158. package/generated/sdk-messages_grpc_pb.d.ts +0 -1
  159. package/generated/sdk-messages_grpc_pb.js +0 -1
  160. package/generated/sdk-messages_pb.d.ts +0 -1105
  161. package/generated/sdk-messages_pb.js +0 -8580
  162. package/generated/sdk_grpc_pb.d.ts +0 -113
  163. package/generated/sdk_grpc_pb.js +0 -609
  164. package/generated/sdk_pb.d.ts +0 -9
  165. package/generated/sdk_pb.js +0 -31
  166. package/src/bin/v2/TestInfo.js +0 -1
  167. package/src/bin/v2/browserstackCLI.js +0 -1
  168. package/src/bin/v2/cliUtils.js +0 -1
  169. package/src/bin/v2/customTagManager.js +0 -1
  170. package/src/bin/v2/eventDispatcher.js +0 -1
  171. package/src/bin/v2/framework/automationFramework.js +0 -1
  172. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +0 -1
  173. package/src/bin/v2/framework/constants/testFrameworkConstants.js +0 -1
  174. package/src/bin/v2/framework/playwrightAutomationFramework.js +0 -1
  175. package/src/bin/v2/framework/playwrightTestFramework.js +0 -1
  176. package/src/bin/v2/framework/testFramework.js +0 -1
  177. package/src/bin/v2/grpcClient.js +0 -1
  178. package/src/bin/v2/instances/automationFrameworkInstance.js +0 -1
  179. package/src/bin/v2/instances/testFrameworkInstance.js +0 -1
  180. package/src/bin/v2/instances/trackedContext.js +0 -1
  181. package/src/bin/v2/instances/trackedInstance.js +0 -1
  182. package/src/bin/v2/modules/accessibilityModule.js +0 -1
  183. package/src/bin/v2/modules/baseModule.js +0 -1
  184. package/src/bin/v2/modules/observabilityModule.js +0 -1
  185. package/src/bin/v2/modules/playwrightDriverModule.js +0 -1
  186. package/src/bin/v2/modules/testhubModule.js +0 -1
  187. package/src/bin/v2/state/automationFrameworkState.js +0 -1
  188. package/src/bin/v2/state/hookState.js +0 -1
  189. package/src/bin/v2/state/testFrameworkState.js +0 -1
  190. package/src/bin/v2/uploadAttachmentsManager.js +0 -1
  191. package/src/helpers/classLogger.js +0 -1
  192. package/src/helpers/test-orchestration/fail-fast/fileHelper.js +0 -1
  193. package/src/helpers/test-orchestration/fail-fast/jest.js +0 -1
  194. package/src/helpers/test-orchestration/fail-fast/requestUtils.js +0 -1
@@ -1,1650 +0,0 @@
1
- // source: sdk-messages-ai.proto
2
- /**
3
- * @fileoverview
4
- * @enhanceable
5
- * @suppress {missingRequire} reports error on implicit type usages.
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
- // @ts-nocheck
13
-
14
- var jspb = require('google-protobuf');
15
- var goog = jspb;
16
- var global = (function() {
17
- if (this) { return this; }
18
- if (typeof window !== 'undefined') { return window; }
19
- if (typeof global !== 'undefined') { return global; }
20
- if (typeof self !== 'undefined') { return self; }
21
- return Function('return this')();
22
- }.call(null));
23
-
24
- goog.exportSymbol('proto.browserstack.sdk.v1.AIBrowserExtensionRequest', null, global);
25
- goog.exportSymbol('proto.browserstack.sdk.v1.AIBrowserExtensionResponse', null, global);
26
- goog.exportSymbol('proto.browserstack.sdk.v1.AISelfHealGetRequest', null, global);
27
- goog.exportSymbol('proto.browserstack.sdk.v1.AISelfHealGetResponse', null, global);
28
- goog.exportSymbol('proto.browserstack.sdk.v1.AISelfHealStepRequest', null, global);
29
- goog.exportSymbol('proto.browserstack.sdk.v1.AISelfHealStepResponse', null, global);
30
- /**
31
- * Generated by JsPbCodeGenerator.
32
- * @param {Array=} opt_data Optional initial data array, typically from a
33
- * server response, or constructed directly in Javascript. The array is used
34
- * in place and becomes part of the constructed object. It is not cloned.
35
- * If no data is provided, the constructed object will be empty, but still
36
- * valid.
37
- * @extends {jspb.Message}
38
- * @constructor
39
- */
40
- proto.browserstack.sdk.v1.AIBrowserExtensionRequest = function(opt_data) {
41
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
42
- };
43
- goog.inherits(proto.browserstack.sdk.v1.AIBrowserExtensionRequest, jspb.Message);
44
- if (goog.DEBUG && !COMPILED) {
45
- /**
46
- * @public
47
- * @override
48
- */
49
- proto.browserstack.sdk.v1.AIBrowserExtensionRequest.displayName = 'proto.browserstack.sdk.v1.AIBrowserExtensionRequest';
50
- }
51
- /**
52
- * Generated by JsPbCodeGenerator.
53
- * @param {Array=} opt_data Optional initial data array, typically from a
54
- * server response, or constructed directly in Javascript. The array is used
55
- * in place and becomes part of the constructed object. It is not cloned.
56
- * If no data is provided, the constructed object will be empty, but still
57
- * valid.
58
- * @extends {jspb.Message}
59
- * @constructor
60
- */
61
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse = function(opt_data) {
62
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
- };
64
- goog.inherits(proto.browserstack.sdk.v1.AIBrowserExtensionResponse, jspb.Message);
65
- if (goog.DEBUG && !COMPILED) {
66
- /**
67
- * @public
68
- * @override
69
- */
70
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.displayName = 'proto.browserstack.sdk.v1.AIBrowserExtensionResponse';
71
- }
72
- /**
73
- * Generated by JsPbCodeGenerator.
74
- * @param {Array=} opt_data Optional initial data array, typically from a
75
- * server response, or constructed directly in Javascript. The array is used
76
- * in place and becomes part of the constructed object. It is not cloned.
77
- * If no data is provided, the constructed object will be empty, but still
78
- * valid.
79
- * @extends {jspb.Message}
80
- * @constructor
81
- */
82
- proto.browserstack.sdk.v1.AISelfHealGetRequest = function(opt_data) {
83
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
84
- };
85
- goog.inherits(proto.browserstack.sdk.v1.AISelfHealGetRequest, jspb.Message);
86
- if (goog.DEBUG && !COMPILED) {
87
- /**
88
- * @public
89
- * @override
90
- */
91
- proto.browserstack.sdk.v1.AISelfHealGetRequest.displayName = 'proto.browserstack.sdk.v1.AISelfHealGetRequest';
92
- }
93
- /**
94
- * Generated by JsPbCodeGenerator.
95
- * @param {Array=} opt_data Optional initial data array, typically from a
96
- * server response, or constructed directly in Javascript. The array is used
97
- * in place and becomes part of the constructed object. It is not cloned.
98
- * If no data is provided, the constructed object will be empty, but still
99
- * valid.
100
- * @extends {jspb.Message}
101
- * @constructor
102
- */
103
- proto.browserstack.sdk.v1.AISelfHealGetResponse = function(opt_data) {
104
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
105
- };
106
- goog.inherits(proto.browserstack.sdk.v1.AISelfHealGetResponse, jspb.Message);
107
- if (goog.DEBUG && !COMPILED) {
108
- /**
109
- * @public
110
- * @override
111
- */
112
- proto.browserstack.sdk.v1.AISelfHealGetResponse.displayName = 'proto.browserstack.sdk.v1.AISelfHealGetResponse';
113
- }
114
- /**
115
- * Generated by JsPbCodeGenerator.
116
- * @param {Array=} opt_data Optional initial data array, typically from a
117
- * server response, or constructed directly in Javascript. The array is used
118
- * in place and becomes part of the constructed object. It is not cloned.
119
- * If no data is provided, the constructed object will be empty, but still
120
- * valid.
121
- * @extends {jspb.Message}
122
- * @constructor
123
- */
124
- proto.browserstack.sdk.v1.AISelfHealStepRequest = function(opt_data) {
125
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
126
- };
127
- goog.inherits(proto.browserstack.sdk.v1.AISelfHealStepRequest, jspb.Message);
128
- if (goog.DEBUG && !COMPILED) {
129
- /**
130
- * @public
131
- * @override
132
- */
133
- proto.browserstack.sdk.v1.AISelfHealStepRequest.displayName = 'proto.browserstack.sdk.v1.AISelfHealStepRequest';
134
- }
135
- /**
136
- * Generated by JsPbCodeGenerator.
137
- * @param {Array=} opt_data Optional initial data array, typically from a
138
- * server response, or constructed directly in Javascript. The array is used
139
- * in place and becomes part of the constructed object. It is not cloned.
140
- * If no data is provided, the constructed object will be empty, but still
141
- * valid.
142
- * @extends {jspb.Message}
143
- * @constructor
144
- */
145
- proto.browserstack.sdk.v1.AISelfHealStepResponse = function(opt_data) {
146
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
147
- };
148
- goog.inherits(proto.browserstack.sdk.v1.AISelfHealStepResponse, jspb.Message);
149
- if (goog.DEBUG && !COMPILED) {
150
- /**
151
- * @public
152
- * @override
153
- */
154
- proto.browserstack.sdk.v1.AISelfHealStepResponse.displayName = 'proto.browserstack.sdk.v1.AISelfHealStepResponse';
155
- }
156
-
157
-
158
-
159
- if (jspb.Message.GENERATE_TO_OBJECT) {
160
- /**
161
- * Creates an object representation of this proto.
162
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
163
- * Optional fields that are not set will be set to undefined.
164
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
165
- * For the list of reserved names please see:
166
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
167
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
168
- * JSPB instance for transitional soy proto support:
169
- * http://goto/soy-param-migration
170
- * @return {!Object}
171
- */
172
- proto.browserstack.sdk.v1.AIBrowserExtensionRequest.prototype.toObject = function(opt_includeInstance) {
173
- return proto.browserstack.sdk.v1.AIBrowserExtensionRequest.toObject(opt_includeInstance, this);
174
- };
175
-
176
-
177
- /**
178
- * Static version of the {@see toObject} method.
179
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
180
- * the JSPB instance for transitional soy proto support:
181
- * http://goto/soy-param-migration
182
- * @param {!proto.browserstack.sdk.v1.AIBrowserExtensionRequest} msg The msg instance to transform.
183
- * @return {!Object}
184
- * @suppress {unusedLocalVariables} f is only used for nested messages
185
- */
186
- proto.browserstack.sdk.v1.AIBrowserExtensionRequest.toObject = function(includeInstance, msg) {
187
- var f, obj = {
188
- binSessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
189
- browserName: jspb.Message.getFieldWithDefault(msg, 2, ""),
190
- browserVersion: jspb.Message.getFieldWithDefault(msg, 3, "")
191
- };
192
-
193
- if (includeInstance) {
194
- obj.$jspbMessageInstance = msg;
195
- }
196
- return obj;
197
- };
198
- }
199
-
200
-
201
- /**
202
- * Deserializes binary data (in protobuf wire format).
203
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
204
- * @return {!proto.browserstack.sdk.v1.AIBrowserExtensionRequest}
205
- */
206
- proto.browserstack.sdk.v1.AIBrowserExtensionRequest.deserializeBinary = function(bytes) {
207
- var reader = new jspb.BinaryReader(bytes);
208
- var msg = new proto.browserstack.sdk.v1.AIBrowserExtensionRequest;
209
- return proto.browserstack.sdk.v1.AIBrowserExtensionRequest.deserializeBinaryFromReader(msg, reader);
210
- };
211
-
212
-
213
- /**
214
- * Deserializes binary data (in protobuf wire format) from the
215
- * given reader into the given message object.
216
- * @param {!proto.browserstack.sdk.v1.AIBrowserExtensionRequest} msg The message object to deserialize into.
217
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
218
- * @return {!proto.browserstack.sdk.v1.AIBrowserExtensionRequest}
219
- */
220
- proto.browserstack.sdk.v1.AIBrowserExtensionRequest.deserializeBinaryFromReader = function(msg, reader) {
221
- while (reader.nextField()) {
222
- if (reader.isEndGroup()) {
223
- break;
224
- }
225
- var field = reader.getFieldNumber();
226
- switch (field) {
227
- case 1:
228
- var value = /** @type {string} */ (reader.readString());
229
- msg.setBinSessionId(value);
230
- break;
231
- case 2:
232
- var value = /** @type {string} */ (reader.readString());
233
- msg.setBrowserName(value);
234
- break;
235
- case 3:
236
- var value = /** @type {string} */ (reader.readString());
237
- msg.setBrowserVersion(value);
238
- break;
239
- default:
240
- reader.skipField();
241
- break;
242
- }
243
- }
244
- return msg;
245
- };
246
-
247
-
248
- /**
249
- * Serializes the message to binary data (in protobuf wire format).
250
- * @return {!Uint8Array}
251
- */
252
- proto.browserstack.sdk.v1.AIBrowserExtensionRequest.prototype.serializeBinary = function() {
253
- var writer = new jspb.BinaryWriter();
254
- proto.browserstack.sdk.v1.AIBrowserExtensionRequest.serializeBinaryToWriter(this, writer);
255
- return writer.getResultBuffer();
256
- };
257
-
258
-
259
- /**
260
- * Serializes the given message to binary data (in protobuf wire
261
- * format), writing to the given BinaryWriter.
262
- * @param {!proto.browserstack.sdk.v1.AIBrowserExtensionRequest} message
263
- * @param {!jspb.BinaryWriter} writer
264
- * @suppress {unusedLocalVariables} f is only used for nested messages
265
- */
266
- proto.browserstack.sdk.v1.AIBrowserExtensionRequest.serializeBinaryToWriter = function(message, writer) {
267
- var f = undefined;
268
- f = message.getBinSessionId();
269
- if (f.length > 0) {
270
- writer.writeString(
271
- 1,
272
- f
273
- );
274
- }
275
- f = message.getBrowserName();
276
- if (f.length > 0) {
277
- writer.writeString(
278
- 2,
279
- f
280
- );
281
- }
282
- f = message.getBrowserVersion();
283
- if (f.length > 0) {
284
- writer.writeString(
285
- 3,
286
- f
287
- );
288
- }
289
- };
290
-
291
-
292
- /**
293
- * optional string bin_session_id = 1;
294
- * @return {string}
295
- */
296
- proto.browserstack.sdk.v1.AIBrowserExtensionRequest.prototype.getBinSessionId = function() {
297
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
298
- };
299
-
300
-
301
- /**
302
- * @param {string} value
303
- * @return {!proto.browserstack.sdk.v1.AIBrowserExtensionRequest} returns this
304
- */
305
- proto.browserstack.sdk.v1.AIBrowserExtensionRequest.prototype.setBinSessionId = function(value) {
306
- return jspb.Message.setProto3StringField(this, 1, value);
307
- };
308
-
309
-
310
- /**
311
- * optional string browser_name = 2;
312
- * @return {string}
313
- */
314
- proto.browserstack.sdk.v1.AIBrowserExtensionRequest.prototype.getBrowserName = function() {
315
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
316
- };
317
-
318
-
319
- /**
320
- * @param {string} value
321
- * @return {!proto.browserstack.sdk.v1.AIBrowserExtensionRequest} returns this
322
- */
323
- proto.browserstack.sdk.v1.AIBrowserExtensionRequest.prototype.setBrowserName = function(value) {
324
- return jspb.Message.setProto3StringField(this, 2, value);
325
- };
326
-
327
-
328
- /**
329
- * optional string browser_version = 3;
330
- * @return {string}
331
- */
332
- proto.browserstack.sdk.v1.AIBrowserExtensionRequest.prototype.getBrowserVersion = function() {
333
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
334
- };
335
-
336
-
337
- /**
338
- * @param {string} value
339
- * @return {!proto.browserstack.sdk.v1.AIBrowserExtensionRequest} returns this
340
- */
341
- proto.browserstack.sdk.v1.AIBrowserExtensionRequest.prototype.setBrowserVersion = function(value) {
342
- return jspb.Message.setProto3StringField(this, 3, value);
343
- };
344
-
345
-
346
-
347
-
348
-
349
- if (jspb.Message.GENERATE_TO_OBJECT) {
350
- /**
351
- * Creates an object representation of this proto.
352
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
353
- * Optional fields that are not set will be set to undefined.
354
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
355
- * For the list of reserved names please see:
356
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
357
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
358
- * JSPB instance for transitional soy proto support:
359
- * http://goto/soy-param-migration
360
- * @return {!Object}
361
- */
362
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.prototype.toObject = function(opt_includeInstance) {
363
- return proto.browserstack.sdk.v1.AIBrowserExtensionResponse.toObject(opt_includeInstance, this);
364
- };
365
-
366
-
367
- /**
368
- * Static version of the {@see toObject} method.
369
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
370
- * the JSPB instance for transitional soy proto support:
371
- * http://goto/soy-param-migration
372
- * @param {!proto.browserstack.sdk.v1.AIBrowserExtensionResponse} msg The msg instance to transform.
373
- * @return {!Object}
374
- * @suppress {unusedLocalVariables} f is only used for nested messages
375
- */
376
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.toObject = function(includeInstance, msg) {
377
- var f, obj = {
378
- success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
379
- extension: jspb.Message.getFieldWithDefault(msg, 2, ""),
380
- error: jspb.Message.getFieldWithDefault(msg, 3, "")
381
- };
382
-
383
- if (includeInstance) {
384
- obj.$jspbMessageInstance = msg;
385
- }
386
- return obj;
387
- };
388
- }
389
-
390
-
391
- /**
392
- * Deserializes binary data (in protobuf wire format).
393
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
394
- * @return {!proto.browserstack.sdk.v1.AIBrowserExtensionResponse}
395
- */
396
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.deserializeBinary = function(bytes) {
397
- var reader = new jspb.BinaryReader(bytes);
398
- var msg = new proto.browserstack.sdk.v1.AIBrowserExtensionResponse;
399
- return proto.browserstack.sdk.v1.AIBrowserExtensionResponse.deserializeBinaryFromReader(msg, reader);
400
- };
401
-
402
-
403
- /**
404
- * Deserializes binary data (in protobuf wire format) from the
405
- * given reader into the given message object.
406
- * @param {!proto.browserstack.sdk.v1.AIBrowserExtensionResponse} msg The message object to deserialize into.
407
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
408
- * @return {!proto.browserstack.sdk.v1.AIBrowserExtensionResponse}
409
- */
410
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.deserializeBinaryFromReader = function(msg, reader) {
411
- while (reader.nextField()) {
412
- if (reader.isEndGroup()) {
413
- break;
414
- }
415
- var field = reader.getFieldNumber();
416
- switch (field) {
417
- case 1:
418
- var value = /** @type {boolean} */ (reader.readBool());
419
- msg.setSuccess(value);
420
- break;
421
- case 2:
422
- var value = /** @type {string} */ (reader.readString());
423
- msg.setExtension$(value);
424
- break;
425
- case 3:
426
- var value = /** @type {string} */ (reader.readString());
427
- msg.setError(value);
428
- break;
429
- default:
430
- reader.skipField();
431
- break;
432
- }
433
- }
434
- return msg;
435
- };
436
-
437
-
438
- /**
439
- * Serializes the message to binary data (in protobuf wire format).
440
- * @return {!Uint8Array}
441
- */
442
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.prototype.serializeBinary = function() {
443
- var writer = new jspb.BinaryWriter();
444
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.serializeBinaryToWriter(this, writer);
445
- return writer.getResultBuffer();
446
- };
447
-
448
-
449
- /**
450
- * Serializes the given message to binary data (in protobuf wire
451
- * format), writing to the given BinaryWriter.
452
- * @param {!proto.browserstack.sdk.v1.AIBrowserExtensionResponse} message
453
- * @param {!jspb.BinaryWriter} writer
454
- * @suppress {unusedLocalVariables} f is only used for nested messages
455
- */
456
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.serializeBinaryToWriter = function(message, writer) {
457
- var f = undefined;
458
- f = message.getSuccess();
459
- if (f) {
460
- writer.writeBool(
461
- 1,
462
- f
463
- );
464
- }
465
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
466
- if (f != null) {
467
- writer.writeString(
468
- 2,
469
- f
470
- );
471
- }
472
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
473
- if (f != null) {
474
- writer.writeString(
475
- 3,
476
- f
477
- );
478
- }
479
- };
480
-
481
-
482
- /**
483
- * optional bool success = 1;
484
- * @return {boolean}
485
- */
486
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.prototype.getSuccess = function() {
487
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
488
- };
489
-
490
-
491
- /**
492
- * @param {boolean} value
493
- * @return {!proto.browserstack.sdk.v1.AIBrowserExtensionResponse} returns this
494
- */
495
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.prototype.setSuccess = function(value) {
496
- return jspb.Message.setProto3BooleanField(this, 1, value);
497
- };
498
-
499
-
500
- /**
501
- * optional string extension = 2;
502
- * @return {string}
503
- */
504
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.prototype.getExtension$ = function() {
505
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
506
- };
507
-
508
-
509
- /**
510
- * @param {string} value
511
- * @return {!proto.browserstack.sdk.v1.AIBrowserExtensionResponse} returns this
512
- */
513
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.prototype.setExtension$ = function(value) {
514
- return jspb.Message.setField(this, 2, value);
515
- };
516
-
517
-
518
- /**
519
- * Clears the field making it undefined.
520
- * @return {!proto.browserstack.sdk.v1.AIBrowserExtensionResponse} returns this
521
- */
522
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.prototype.clearExtension$ = function() {
523
- return jspb.Message.setField(this, 2, undefined);
524
- };
525
-
526
-
527
- /**
528
- * Returns whether this field is set.
529
- * @return {boolean}
530
- */
531
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.prototype.hasExtension$ = function() {
532
- return jspb.Message.getField(this, 2) != null;
533
- };
534
-
535
-
536
- /**
537
- * optional string error = 3;
538
- * @return {string}
539
- */
540
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.prototype.getError = function() {
541
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
542
- };
543
-
544
-
545
- /**
546
- * @param {string} value
547
- * @return {!proto.browserstack.sdk.v1.AIBrowserExtensionResponse} returns this
548
- */
549
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.prototype.setError = function(value) {
550
- return jspb.Message.setField(this, 3, value);
551
- };
552
-
553
-
554
- /**
555
- * Clears the field making it undefined.
556
- * @return {!proto.browserstack.sdk.v1.AIBrowserExtensionResponse} returns this
557
- */
558
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.prototype.clearError = function() {
559
- return jspb.Message.setField(this, 3, undefined);
560
- };
561
-
562
-
563
- /**
564
- * Returns whether this field is set.
565
- * @return {boolean}
566
- */
567
- proto.browserstack.sdk.v1.AIBrowserExtensionResponse.prototype.hasError = function() {
568
- return jspb.Message.getField(this, 3) != null;
569
- };
570
-
571
-
572
-
573
-
574
-
575
- if (jspb.Message.GENERATE_TO_OBJECT) {
576
- /**
577
- * Creates an object representation of this proto.
578
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
579
- * Optional fields that are not set will be set to undefined.
580
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
581
- * For the list of reserved names please see:
582
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
583
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
584
- * JSPB instance for transitional soy proto support:
585
- * http://goto/soy-param-migration
586
- * @return {!Object}
587
- */
588
- proto.browserstack.sdk.v1.AISelfHealGetRequest.prototype.toObject = function(opt_includeInstance) {
589
- return proto.browserstack.sdk.v1.AISelfHealGetRequest.toObject(opt_includeInstance, this);
590
- };
591
-
592
-
593
- /**
594
- * Static version of the {@see toObject} method.
595
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
596
- * the JSPB instance for transitional soy proto support:
597
- * http://goto/soy-param-migration
598
- * @param {!proto.browserstack.sdk.v1.AISelfHealGetRequest} msg The msg instance to transform.
599
- * @return {!Object}
600
- * @suppress {unusedLocalVariables} f is only used for nested messages
601
- */
602
- proto.browserstack.sdk.v1.AISelfHealGetRequest.toObject = function(includeInstance, msg) {
603
- var f, obj = {
604
- binSessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
605
- platformIndex: jspb.Message.getFieldWithDefault(msg, 2, ""),
606
- frameworkSessionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
607
- locatorType: jspb.Message.getFieldWithDefault(msg, 4, "")
608
- };
609
-
610
- if (includeInstance) {
611
- obj.$jspbMessageInstance = msg;
612
- }
613
- return obj;
614
- };
615
- }
616
-
617
-
618
- /**
619
- * Deserializes binary data (in protobuf wire format).
620
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
621
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetRequest}
622
- */
623
- proto.browserstack.sdk.v1.AISelfHealGetRequest.deserializeBinary = function(bytes) {
624
- var reader = new jspb.BinaryReader(bytes);
625
- var msg = new proto.browserstack.sdk.v1.AISelfHealGetRequest;
626
- return proto.browserstack.sdk.v1.AISelfHealGetRequest.deserializeBinaryFromReader(msg, reader);
627
- };
628
-
629
-
630
- /**
631
- * Deserializes binary data (in protobuf wire format) from the
632
- * given reader into the given message object.
633
- * @param {!proto.browserstack.sdk.v1.AISelfHealGetRequest} msg The message object to deserialize into.
634
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
635
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetRequest}
636
- */
637
- proto.browserstack.sdk.v1.AISelfHealGetRequest.deserializeBinaryFromReader = function(msg, reader) {
638
- while (reader.nextField()) {
639
- if (reader.isEndGroup()) {
640
- break;
641
- }
642
- var field = reader.getFieldNumber();
643
- switch (field) {
644
- case 1:
645
- var value = /** @type {string} */ (reader.readString());
646
- msg.setBinSessionId(value);
647
- break;
648
- case 2:
649
- var value = /** @type {string} */ (reader.readString());
650
- msg.setPlatformIndex(value);
651
- break;
652
- case 3:
653
- var value = /** @type {string} */ (reader.readString());
654
- msg.setFrameworkSessionId(value);
655
- break;
656
- case 4:
657
- var value = /** @type {string} */ (reader.readString());
658
- msg.setLocatorType(value);
659
- break;
660
- default:
661
- reader.skipField();
662
- break;
663
- }
664
- }
665
- return msg;
666
- };
667
-
668
-
669
- /**
670
- * Serializes the message to binary data (in protobuf wire format).
671
- * @return {!Uint8Array}
672
- */
673
- proto.browserstack.sdk.v1.AISelfHealGetRequest.prototype.serializeBinary = function() {
674
- var writer = new jspb.BinaryWriter();
675
- proto.browserstack.sdk.v1.AISelfHealGetRequest.serializeBinaryToWriter(this, writer);
676
- return writer.getResultBuffer();
677
- };
678
-
679
-
680
- /**
681
- * Serializes the given message to binary data (in protobuf wire
682
- * format), writing to the given BinaryWriter.
683
- * @param {!proto.browserstack.sdk.v1.AISelfHealGetRequest} message
684
- * @param {!jspb.BinaryWriter} writer
685
- * @suppress {unusedLocalVariables} f is only used for nested messages
686
- */
687
- proto.browserstack.sdk.v1.AISelfHealGetRequest.serializeBinaryToWriter = function(message, writer) {
688
- var f = undefined;
689
- f = message.getBinSessionId();
690
- if (f.length > 0) {
691
- writer.writeString(
692
- 1,
693
- f
694
- );
695
- }
696
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
697
- if (f != null) {
698
- writer.writeString(
699
- 2,
700
- f
701
- );
702
- }
703
- f = message.getFrameworkSessionId();
704
- if (f.length > 0) {
705
- writer.writeString(
706
- 3,
707
- f
708
- );
709
- }
710
- f = message.getLocatorType();
711
- if (f.length > 0) {
712
- writer.writeString(
713
- 4,
714
- f
715
- );
716
- }
717
- };
718
-
719
-
720
- /**
721
- * optional string bin_session_id = 1;
722
- * @return {string}
723
- */
724
- proto.browserstack.sdk.v1.AISelfHealGetRequest.prototype.getBinSessionId = function() {
725
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
726
- };
727
-
728
-
729
- /**
730
- * @param {string} value
731
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetRequest} returns this
732
- */
733
- proto.browserstack.sdk.v1.AISelfHealGetRequest.prototype.setBinSessionId = function(value) {
734
- return jspb.Message.setProto3StringField(this, 1, value);
735
- };
736
-
737
-
738
- /**
739
- * optional string platform_index = 2;
740
- * @return {string}
741
- */
742
- proto.browserstack.sdk.v1.AISelfHealGetRequest.prototype.getPlatformIndex = function() {
743
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
744
- };
745
-
746
-
747
- /**
748
- * @param {string} value
749
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetRequest} returns this
750
- */
751
- proto.browserstack.sdk.v1.AISelfHealGetRequest.prototype.setPlatformIndex = function(value) {
752
- return jspb.Message.setField(this, 2, value);
753
- };
754
-
755
-
756
- /**
757
- * Clears the field making it undefined.
758
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetRequest} returns this
759
- */
760
- proto.browserstack.sdk.v1.AISelfHealGetRequest.prototype.clearPlatformIndex = function() {
761
- return jspb.Message.setField(this, 2, undefined);
762
- };
763
-
764
-
765
- /**
766
- * Returns whether this field is set.
767
- * @return {boolean}
768
- */
769
- proto.browserstack.sdk.v1.AISelfHealGetRequest.prototype.hasPlatformIndex = function() {
770
- return jspb.Message.getField(this, 2) != null;
771
- };
772
-
773
-
774
- /**
775
- * optional string framework_session_id = 3;
776
- * @return {string}
777
- */
778
- proto.browserstack.sdk.v1.AISelfHealGetRequest.prototype.getFrameworkSessionId = function() {
779
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
780
- };
781
-
782
-
783
- /**
784
- * @param {string} value
785
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetRequest} returns this
786
- */
787
- proto.browserstack.sdk.v1.AISelfHealGetRequest.prototype.setFrameworkSessionId = function(value) {
788
- return jspb.Message.setProto3StringField(this, 3, value);
789
- };
790
-
791
-
792
- /**
793
- * optional string locator_type = 4;
794
- * @return {string}
795
- */
796
- proto.browserstack.sdk.v1.AISelfHealGetRequest.prototype.getLocatorType = function() {
797
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
798
- };
799
-
800
-
801
- /**
802
- * @param {string} value
803
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetRequest} returns this
804
- */
805
- proto.browserstack.sdk.v1.AISelfHealGetRequest.prototype.setLocatorType = function(value) {
806
- return jspb.Message.setProto3StringField(this, 4, value);
807
- };
808
-
809
-
810
-
811
-
812
-
813
- if (jspb.Message.GENERATE_TO_OBJECT) {
814
- /**
815
- * Creates an object representation of this proto.
816
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
817
- * Optional fields that are not set will be set to undefined.
818
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
819
- * For the list of reserved names please see:
820
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
821
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
822
- * JSPB instance for transitional soy proto support:
823
- * http://goto/soy-param-migration
824
- * @return {!Object}
825
- */
826
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.toObject = function(opt_includeInstance) {
827
- return proto.browserstack.sdk.v1.AISelfHealGetResponse.toObject(opt_includeInstance, this);
828
- };
829
-
830
-
831
- /**
832
- * Static version of the {@see toObject} method.
833
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
834
- * the JSPB instance for transitional soy proto support:
835
- * http://goto/soy-param-migration
836
- * @param {!proto.browserstack.sdk.v1.AISelfHealGetResponse} msg The msg instance to transform.
837
- * @return {!Object}
838
- * @suppress {unusedLocalVariables} f is only used for nested messages
839
- */
840
- proto.browserstack.sdk.v1.AISelfHealGetResponse.toObject = function(includeInstance, msg) {
841
- var f, obj = {
842
- success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
843
- frameworkSessionId: jspb.Message.getFieldWithDefault(msg, 2, ""),
844
- locatorType: jspb.Message.getFieldWithDefault(msg, 3, ""),
845
- locatorValue: jspb.Message.getFieldWithDefault(msg, 4, ""),
846
- aiHealing: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
847
- error: jspb.Message.getFieldWithDefault(msg, 6, "")
848
- };
849
-
850
- if (includeInstance) {
851
- obj.$jspbMessageInstance = msg;
852
- }
853
- return obj;
854
- };
855
- }
856
-
857
-
858
- /**
859
- * Deserializes binary data (in protobuf wire format).
860
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
861
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetResponse}
862
- */
863
- proto.browserstack.sdk.v1.AISelfHealGetResponse.deserializeBinary = function(bytes) {
864
- var reader = new jspb.BinaryReader(bytes);
865
- var msg = new proto.browserstack.sdk.v1.AISelfHealGetResponse;
866
- return proto.browserstack.sdk.v1.AISelfHealGetResponse.deserializeBinaryFromReader(msg, reader);
867
- };
868
-
869
-
870
- /**
871
- * Deserializes binary data (in protobuf wire format) from the
872
- * given reader into the given message object.
873
- * @param {!proto.browserstack.sdk.v1.AISelfHealGetResponse} msg The message object to deserialize into.
874
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
875
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetResponse}
876
- */
877
- proto.browserstack.sdk.v1.AISelfHealGetResponse.deserializeBinaryFromReader = function(msg, reader) {
878
- while (reader.nextField()) {
879
- if (reader.isEndGroup()) {
880
- break;
881
- }
882
- var field = reader.getFieldNumber();
883
- switch (field) {
884
- case 1:
885
- var value = /** @type {boolean} */ (reader.readBool());
886
- msg.setSuccess(value);
887
- break;
888
- case 2:
889
- var value = /** @type {string} */ (reader.readString());
890
- msg.setFrameworkSessionId(value);
891
- break;
892
- case 3:
893
- var value = /** @type {string} */ (reader.readString());
894
- msg.setLocatorType(value);
895
- break;
896
- case 4:
897
- var value = /** @type {string} */ (reader.readString());
898
- msg.setLocatorValue(value);
899
- break;
900
- case 5:
901
- var value = /** @type {boolean} */ (reader.readBool());
902
- msg.setAiHealing(value);
903
- break;
904
- case 6:
905
- var value = /** @type {string} */ (reader.readString());
906
- msg.setError(value);
907
- break;
908
- default:
909
- reader.skipField();
910
- break;
911
- }
912
- }
913
- return msg;
914
- };
915
-
916
-
917
- /**
918
- * Serializes the message to binary data (in protobuf wire format).
919
- * @return {!Uint8Array}
920
- */
921
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.serializeBinary = function() {
922
- var writer = new jspb.BinaryWriter();
923
- proto.browserstack.sdk.v1.AISelfHealGetResponse.serializeBinaryToWriter(this, writer);
924
- return writer.getResultBuffer();
925
- };
926
-
927
-
928
- /**
929
- * Serializes the given message to binary data (in protobuf wire
930
- * format), writing to the given BinaryWriter.
931
- * @param {!proto.browserstack.sdk.v1.AISelfHealGetResponse} message
932
- * @param {!jspb.BinaryWriter} writer
933
- * @suppress {unusedLocalVariables} f is only used for nested messages
934
- */
935
- proto.browserstack.sdk.v1.AISelfHealGetResponse.serializeBinaryToWriter = function(message, writer) {
936
- var f = undefined;
937
- f = message.getSuccess();
938
- if (f) {
939
- writer.writeBool(
940
- 1,
941
- f
942
- );
943
- }
944
- f = message.getFrameworkSessionId();
945
- if (f.length > 0) {
946
- writer.writeString(
947
- 2,
948
- f
949
- );
950
- }
951
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
952
- if (f != null) {
953
- writer.writeString(
954
- 3,
955
- f
956
- );
957
- }
958
- f = /** @type {string} */ (jspb.Message.getField(message, 4));
959
- if (f != null) {
960
- writer.writeString(
961
- 4,
962
- f
963
- );
964
- }
965
- f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
966
- if (f != null) {
967
- writer.writeBool(
968
- 5,
969
- f
970
- );
971
- }
972
- f = /** @type {string} */ (jspb.Message.getField(message, 6));
973
- if (f != null) {
974
- writer.writeString(
975
- 6,
976
- f
977
- );
978
- }
979
- };
980
-
981
-
982
- /**
983
- * optional bool success = 1;
984
- * @return {boolean}
985
- */
986
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.getSuccess = function() {
987
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
988
- };
989
-
990
-
991
- /**
992
- * @param {boolean} value
993
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetResponse} returns this
994
- */
995
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.setSuccess = function(value) {
996
- return jspb.Message.setProto3BooleanField(this, 1, value);
997
- };
998
-
999
-
1000
- /**
1001
- * optional string framework_session_id = 2;
1002
- * @return {string}
1003
- */
1004
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.getFrameworkSessionId = function() {
1005
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1006
- };
1007
-
1008
-
1009
- /**
1010
- * @param {string} value
1011
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetResponse} returns this
1012
- */
1013
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.setFrameworkSessionId = function(value) {
1014
- return jspb.Message.setProto3StringField(this, 2, value);
1015
- };
1016
-
1017
-
1018
- /**
1019
- * optional string locator_type = 3;
1020
- * @return {string}
1021
- */
1022
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.getLocatorType = function() {
1023
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1024
- };
1025
-
1026
-
1027
- /**
1028
- * @param {string} value
1029
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetResponse} returns this
1030
- */
1031
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.setLocatorType = function(value) {
1032
- return jspb.Message.setField(this, 3, value);
1033
- };
1034
-
1035
-
1036
- /**
1037
- * Clears the field making it undefined.
1038
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetResponse} returns this
1039
- */
1040
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.clearLocatorType = function() {
1041
- return jspb.Message.setField(this, 3, undefined);
1042
- };
1043
-
1044
-
1045
- /**
1046
- * Returns whether this field is set.
1047
- * @return {boolean}
1048
- */
1049
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.hasLocatorType = function() {
1050
- return jspb.Message.getField(this, 3) != null;
1051
- };
1052
-
1053
-
1054
- /**
1055
- * optional string locator_value = 4;
1056
- * @return {string}
1057
- */
1058
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.getLocatorValue = function() {
1059
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1060
- };
1061
-
1062
-
1063
- /**
1064
- * @param {string} value
1065
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetResponse} returns this
1066
- */
1067
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.setLocatorValue = function(value) {
1068
- return jspb.Message.setField(this, 4, value);
1069
- };
1070
-
1071
-
1072
- /**
1073
- * Clears the field making it undefined.
1074
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetResponse} returns this
1075
- */
1076
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.clearLocatorValue = function() {
1077
- return jspb.Message.setField(this, 4, undefined);
1078
- };
1079
-
1080
-
1081
- /**
1082
- * Returns whether this field is set.
1083
- * @return {boolean}
1084
- */
1085
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.hasLocatorValue = function() {
1086
- return jspb.Message.getField(this, 4) != null;
1087
- };
1088
-
1089
-
1090
- /**
1091
- * optional bool ai_healing = 5;
1092
- * @return {boolean}
1093
- */
1094
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.getAiHealing = function() {
1095
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
1096
- };
1097
-
1098
-
1099
- /**
1100
- * @param {boolean} value
1101
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetResponse} returns this
1102
- */
1103
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.setAiHealing = function(value) {
1104
- return jspb.Message.setField(this, 5, value);
1105
- };
1106
-
1107
-
1108
- /**
1109
- * Clears the field making it undefined.
1110
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetResponse} returns this
1111
- */
1112
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.clearAiHealing = function() {
1113
- return jspb.Message.setField(this, 5, undefined);
1114
- };
1115
-
1116
-
1117
- /**
1118
- * Returns whether this field is set.
1119
- * @return {boolean}
1120
- */
1121
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.hasAiHealing = function() {
1122
- return jspb.Message.getField(this, 5) != null;
1123
- };
1124
-
1125
-
1126
- /**
1127
- * optional string error = 6;
1128
- * @return {string}
1129
- */
1130
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.getError = function() {
1131
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1132
- };
1133
-
1134
-
1135
- /**
1136
- * @param {string} value
1137
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetResponse} returns this
1138
- */
1139
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.setError = function(value) {
1140
- return jspb.Message.setField(this, 6, value);
1141
- };
1142
-
1143
-
1144
- /**
1145
- * Clears the field making it undefined.
1146
- * @return {!proto.browserstack.sdk.v1.AISelfHealGetResponse} returns this
1147
- */
1148
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.clearError = function() {
1149
- return jspb.Message.setField(this, 6, undefined);
1150
- };
1151
-
1152
-
1153
- /**
1154
- * Returns whether this field is set.
1155
- * @return {boolean}
1156
- */
1157
- proto.browserstack.sdk.v1.AISelfHealGetResponse.prototype.hasError = function() {
1158
- return jspb.Message.getField(this, 6) != null;
1159
- };
1160
-
1161
-
1162
-
1163
-
1164
-
1165
- if (jspb.Message.GENERATE_TO_OBJECT) {
1166
- /**
1167
- * Creates an object representation of this proto.
1168
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1169
- * Optional fields that are not set will be set to undefined.
1170
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1171
- * For the list of reserved names please see:
1172
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1173
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1174
- * JSPB instance for transitional soy proto support:
1175
- * http://goto/soy-param-migration
1176
- * @return {!Object}
1177
- */
1178
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.toObject = function(opt_includeInstance) {
1179
- return proto.browserstack.sdk.v1.AISelfHealStepRequest.toObject(opt_includeInstance, this);
1180
- };
1181
-
1182
-
1183
- /**
1184
- * Static version of the {@see toObject} method.
1185
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1186
- * the JSPB instance for transitional soy proto support:
1187
- * http://goto/soy-param-migration
1188
- * @param {!proto.browserstack.sdk.v1.AISelfHealStepRequest} msg The msg instance to transform.
1189
- * @return {!Object}
1190
- * @suppress {unusedLocalVariables} f is only used for nested messages
1191
- */
1192
- proto.browserstack.sdk.v1.AISelfHealStepRequest.toObject = function(includeInstance, msg) {
1193
- var f, obj = {
1194
- binSessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1195
- platformIndex: jspb.Message.getFieldWithDefault(msg, 2, ""),
1196
- frameworkSessionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
1197
- isSuccess: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
1198
- locatorType: jspb.Message.getFieldWithDefault(msg, 5, ""),
1199
- locatorValue: jspb.Message.getFieldWithDefault(msg, 6, ""),
1200
- testName: jspb.Message.getFieldWithDefault(msg, 7, "")
1201
- };
1202
-
1203
- if (includeInstance) {
1204
- obj.$jspbMessageInstance = msg;
1205
- }
1206
- return obj;
1207
- };
1208
- }
1209
-
1210
-
1211
- /**
1212
- * Deserializes binary data (in protobuf wire format).
1213
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1214
- * @return {!proto.browserstack.sdk.v1.AISelfHealStepRequest}
1215
- */
1216
- proto.browserstack.sdk.v1.AISelfHealStepRequest.deserializeBinary = function(bytes) {
1217
- var reader = new jspb.BinaryReader(bytes);
1218
- var msg = new proto.browserstack.sdk.v1.AISelfHealStepRequest;
1219
- return proto.browserstack.sdk.v1.AISelfHealStepRequest.deserializeBinaryFromReader(msg, reader);
1220
- };
1221
-
1222
-
1223
- /**
1224
- * Deserializes binary data (in protobuf wire format) from the
1225
- * given reader into the given message object.
1226
- * @param {!proto.browserstack.sdk.v1.AISelfHealStepRequest} msg The message object to deserialize into.
1227
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1228
- * @return {!proto.browserstack.sdk.v1.AISelfHealStepRequest}
1229
- */
1230
- proto.browserstack.sdk.v1.AISelfHealStepRequest.deserializeBinaryFromReader = function(msg, reader) {
1231
- while (reader.nextField()) {
1232
- if (reader.isEndGroup()) {
1233
- break;
1234
- }
1235
- var field = reader.getFieldNumber();
1236
- switch (field) {
1237
- case 1:
1238
- var value = /** @type {string} */ (reader.readString());
1239
- msg.setBinSessionId(value);
1240
- break;
1241
- case 2:
1242
- var value = /** @type {string} */ (reader.readString());
1243
- msg.setPlatformIndex(value);
1244
- break;
1245
- case 3:
1246
- var value = /** @type {string} */ (reader.readString());
1247
- msg.setFrameworkSessionId(value);
1248
- break;
1249
- case 4:
1250
- var value = /** @type {boolean} */ (reader.readBool());
1251
- msg.setIsSuccess(value);
1252
- break;
1253
- case 5:
1254
- var value = /** @type {string} */ (reader.readString());
1255
- msg.setLocatorType(value);
1256
- break;
1257
- case 6:
1258
- var value = /** @type {string} */ (reader.readString());
1259
- msg.setLocatorValue(value);
1260
- break;
1261
- case 7:
1262
- var value = /** @type {string} */ (reader.readString());
1263
- msg.setTestName(value);
1264
- break;
1265
- default:
1266
- reader.skipField();
1267
- break;
1268
- }
1269
- }
1270
- return msg;
1271
- };
1272
-
1273
-
1274
- /**
1275
- * Serializes the message to binary data (in protobuf wire format).
1276
- * @return {!Uint8Array}
1277
- */
1278
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.serializeBinary = function() {
1279
- var writer = new jspb.BinaryWriter();
1280
- proto.browserstack.sdk.v1.AISelfHealStepRequest.serializeBinaryToWriter(this, writer);
1281
- return writer.getResultBuffer();
1282
- };
1283
-
1284
-
1285
- /**
1286
- * Serializes the given message to binary data (in protobuf wire
1287
- * format), writing to the given BinaryWriter.
1288
- * @param {!proto.browserstack.sdk.v1.AISelfHealStepRequest} message
1289
- * @param {!jspb.BinaryWriter} writer
1290
- * @suppress {unusedLocalVariables} f is only used for nested messages
1291
- */
1292
- proto.browserstack.sdk.v1.AISelfHealStepRequest.serializeBinaryToWriter = function(message, writer) {
1293
- var f = undefined;
1294
- f = message.getBinSessionId();
1295
- if (f.length > 0) {
1296
- writer.writeString(
1297
- 1,
1298
- f
1299
- );
1300
- }
1301
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
1302
- if (f != null) {
1303
- writer.writeString(
1304
- 2,
1305
- f
1306
- );
1307
- }
1308
- f = message.getFrameworkSessionId();
1309
- if (f.length > 0) {
1310
- writer.writeString(
1311
- 3,
1312
- f
1313
- );
1314
- }
1315
- f = message.getIsSuccess();
1316
- if (f) {
1317
- writer.writeBool(
1318
- 4,
1319
- f
1320
- );
1321
- }
1322
- f = message.getLocatorType();
1323
- if (f.length > 0) {
1324
- writer.writeString(
1325
- 5,
1326
- f
1327
- );
1328
- }
1329
- f = message.getLocatorValue();
1330
- if (f.length > 0) {
1331
- writer.writeString(
1332
- 6,
1333
- f
1334
- );
1335
- }
1336
- f = message.getTestName();
1337
- if (f.length > 0) {
1338
- writer.writeString(
1339
- 7,
1340
- f
1341
- );
1342
- }
1343
- };
1344
-
1345
-
1346
- /**
1347
- * optional string bin_session_id = 1;
1348
- * @return {string}
1349
- */
1350
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.getBinSessionId = function() {
1351
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1352
- };
1353
-
1354
-
1355
- /**
1356
- * @param {string} value
1357
- * @return {!proto.browserstack.sdk.v1.AISelfHealStepRequest} returns this
1358
- */
1359
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.setBinSessionId = function(value) {
1360
- return jspb.Message.setProto3StringField(this, 1, value);
1361
- };
1362
-
1363
-
1364
- /**
1365
- * optional string platform_index = 2;
1366
- * @return {string}
1367
- */
1368
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.getPlatformIndex = function() {
1369
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1370
- };
1371
-
1372
-
1373
- /**
1374
- * @param {string} value
1375
- * @return {!proto.browserstack.sdk.v1.AISelfHealStepRequest} returns this
1376
- */
1377
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.setPlatformIndex = function(value) {
1378
- return jspb.Message.setField(this, 2, value);
1379
- };
1380
-
1381
-
1382
- /**
1383
- * Clears the field making it undefined.
1384
- * @return {!proto.browserstack.sdk.v1.AISelfHealStepRequest} returns this
1385
- */
1386
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.clearPlatformIndex = function() {
1387
- return jspb.Message.setField(this, 2, undefined);
1388
- };
1389
-
1390
-
1391
- /**
1392
- * Returns whether this field is set.
1393
- * @return {boolean}
1394
- */
1395
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.hasPlatformIndex = function() {
1396
- return jspb.Message.getField(this, 2) != null;
1397
- };
1398
-
1399
-
1400
- /**
1401
- * optional string framework_session_id = 3;
1402
- * @return {string}
1403
- */
1404
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.getFrameworkSessionId = function() {
1405
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1406
- };
1407
-
1408
-
1409
- /**
1410
- * @param {string} value
1411
- * @return {!proto.browserstack.sdk.v1.AISelfHealStepRequest} returns this
1412
- */
1413
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.setFrameworkSessionId = function(value) {
1414
- return jspb.Message.setProto3StringField(this, 3, value);
1415
- };
1416
-
1417
-
1418
- /**
1419
- * optional bool is_success = 4;
1420
- * @return {boolean}
1421
- */
1422
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.getIsSuccess = function() {
1423
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
1424
- };
1425
-
1426
-
1427
- /**
1428
- * @param {boolean} value
1429
- * @return {!proto.browserstack.sdk.v1.AISelfHealStepRequest} returns this
1430
- */
1431
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.setIsSuccess = function(value) {
1432
- return jspb.Message.setProto3BooleanField(this, 4, value);
1433
- };
1434
-
1435
-
1436
- /**
1437
- * optional string locator_type = 5;
1438
- * @return {string}
1439
- */
1440
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.getLocatorType = function() {
1441
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1442
- };
1443
-
1444
-
1445
- /**
1446
- * @param {string} value
1447
- * @return {!proto.browserstack.sdk.v1.AISelfHealStepRequest} returns this
1448
- */
1449
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.setLocatorType = function(value) {
1450
- return jspb.Message.setProto3StringField(this, 5, value);
1451
- };
1452
-
1453
-
1454
- /**
1455
- * optional string locator_value = 6;
1456
- * @return {string}
1457
- */
1458
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.getLocatorValue = function() {
1459
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1460
- };
1461
-
1462
-
1463
- /**
1464
- * @param {string} value
1465
- * @return {!proto.browserstack.sdk.v1.AISelfHealStepRequest} returns this
1466
- */
1467
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.setLocatorValue = function(value) {
1468
- return jspb.Message.setProto3StringField(this, 6, value);
1469
- };
1470
-
1471
-
1472
- /**
1473
- * optional string test_name = 7;
1474
- * @return {string}
1475
- */
1476
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.getTestName = function() {
1477
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1478
- };
1479
-
1480
-
1481
- /**
1482
- * @param {string} value
1483
- * @return {!proto.browserstack.sdk.v1.AISelfHealStepRequest} returns this
1484
- */
1485
- proto.browserstack.sdk.v1.AISelfHealStepRequest.prototype.setTestName = function(value) {
1486
- return jspb.Message.setProto3StringField(this, 7, 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.browserstack.sdk.v1.AISelfHealStepResponse.prototype.toObject = function(opt_includeInstance) {
1507
- return proto.browserstack.sdk.v1.AISelfHealStepResponse.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.browserstack.sdk.v1.AISelfHealStepResponse} msg The msg instance to transform.
1517
- * @return {!Object}
1518
- * @suppress {unusedLocalVariables} f is only used for nested messages
1519
- */
1520
- proto.browserstack.sdk.v1.AISelfHealStepResponse.toObject = function(includeInstance, msg) {
1521
- var f, obj = {
1522
- frameworkSessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1523
- executeScript: jspb.Message.getFieldWithDefault(msg, 2, "")
1524
- };
1525
-
1526
- if (includeInstance) {
1527
- obj.$jspbMessageInstance = msg;
1528
- }
1529
- return obj;
1530
- };
1531
- }
1532
-
1533
-
1534
- /**
1535
- * Deserializes binary data (in protobuf wire format).
1536
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1537
- * @return {!proto.browserstack.sdk.v1.AISelfHealStepResponse}
1538
- */
1539
- proto.browserstack.sdk.v1.AISelfHealStepResponse.deserializeBinary = function(bytes) {
1540
- var reader = new jspb.BinaryReader(bytes);
1541
- var msg = new proto.browserstack.sdk.v1.AISelfHealStepResponse;
1542
- return proto.browserstack.sdk.v1.AISelfHealStepResponse.deserializeBinaryFromReader(msg, reader);
1543
- };
1544
-
1545
-
1546
- /**
1547
- * Deserializes binary data (in protobuf wire format) from the
1548
- * given reader into the given message object.
1549
- * @param {!proto.browserstack.sdk.v1.AISelfHealStepResponse} msg The message object to deserialize into.
1550
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1551
- * @return {!proto.browserstack.sdk.v1.AISelfHealStepResponse}
1552
- */
1553
- proto.browserstack.sdk.v1.AISelfHealStepResponse.deserializeBinaryFromReader = function(msg, reader) {
1554
- while (reader.nextField()) {
1555
- if (reader.isEndGroup()) {
1556
- break;
1557
- }
1558
- var field = reader.getFieldNumber();
1559
- switch (field) {
1560
- case 1:
1561
- var value = /** @type {string} */ (reader.readString());
1562
- msg.setFrameworkSessionId(value);
1563
- break;
1564
- case 2:
1565
- var value = /** @type {string} */ (reader.readString());
1566
- msg.setExecuteScript(value);
1567
- break;
1568
- default:
1569
- reader.skipField();
1570
- break;
1571
- }
1572
- }
1573
- return msg;
1574
- };
1575
-
1576
-
1577
- /**
1578
- * Serializes the message to binary data (in protobuf wire format).
1579
- * @return {!Uint8Array}
1580
- */
1581
- proto.browserstack.sdk.v1.AISelfHealStepResponse.prototype.serializeBinary = function() {
1582
- var writer = new jspb.BinaryWriter();
1583
- proto.browserstack.sdk.v1.AISelfHealStepResponse.serializeBinaryToWriter(this, writer);
1584
- return writer.getResultBuffer();
1585
- };
1586
-
1587
-
1588
- /**
1589
- * Serializes the given message to binary data (in protobuf wire
1590
- * format), writing to the given BinaryWriter.
1591
- * @param {!proto.browserstack.sdk.v1.AISelfHealStepResponse} message
1592
- * @param {!jspb.BinaryWriter} writer
1593
- * @suppress {unusedLocalVariables} f is only used for nested messages
1594
- */
1595
- proto.browserstack.sdk.v1.AISelfHealStepResponse.serializeBinaryToWriter = function(message, writer) {
1596
- var f = undefined;
1597
- f = message.getFrameworkSessionId();
1598
- if (f.length > 0) {
1599
- writer.writeString(
1600
- 1,
1601
- f
1602
- );
1603
- }
1604
- f = message.getExecuteScript();
1605
- if (f.length > 0) {
1606
- writer.writeString(
1607
- 2,
1608
- f
1609
- );
1610
- }
1611
- };
1612
-
1613
-
1614
- /**
1615
- * optional string framework_session_id = 1;
1616
- * @return {string}
1617
- */
1618
- proto.browserstack.sdk.v1.AISelfHealStepResponse.prototype.getFrameworkSessionId = function() {
1619
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1620
- };
1621
-
1622
-
1623
- /**
1624
- * @param {string} value
1625
- * @return {!proto.browserstack.sdk.v1.AISelfHealStepResponse} returns this
1626
- */
1627
- proto.browserstack.sdk.v1.AISelfHealStepResponse.prototype.setFrameworkSessionId = function(value) {
1628
- return jspb.Message.setProto3StringField(this, 1, value);
1629
- };
1630
-
1631
-
1632
- /**
1633
- * optional string execute_script = 2;
1634
- * @return {string}
1635
- */
1636
- proto.browserstack.sdk.v1.AISelfHealStepResponse.prototype.getExecuteScript = function() {
1637
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1638
- };
1639
-
1640
-
1641
- /**
1642
- * @param {string} value
1643
- * @return {!proto.browserstack.sdk.v1.AISelfHealStepResponse} returns this
1644
- */
1645
- proto.browserstack.sdk.v1.AISelfHealStepResponse.prototype.setExecuteScript = function(value) {
1646
- return jspb.Message.setProto3StringField(this, 2, value);
1647
- };
1648
-
1649
-
1650
- goog.object.extend(exports, proto.browserstack.sdk.v1);