browserstack-node-sdk 1.68.1 → 1.69.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/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/generated/sdk-messages_pb.d.ts +172 -0
- package/generated/sdk-messages_pb.js +1334 -0
- package/generated/sdk_grpc_pb.d.ts +10 -0
- package/generated/sdk_grpc_pb.js +69 -0
- package/package.json +5 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/detox/a11ySetup.js +1 -1
- package/src/bin/detox/command.js +1 -1
- package/src/bin/detox/modifyDetoxConf.js +1 -1
- package/src/bin/detox/traEmitter.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/node-generic/client.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/reporterArgs.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/mochaTestFramework.js +1 -0
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/seleniumAutomationFramework.js +1 -0
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/runStateStore.js +1 -0
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -50,6 +50,8 @@ goog.exportSymbol('proto.browserstack.sdk.v1.EnqueueTestEventResponse', null, gl
|
|
|
50
50
|
goog.exportSymbol('proto.browserstack.sdk.v1.ExecutionContext', null, global);
|
|
51
51
|
goog.exportSymbol('proto.browserstack.sdk.v1.FetchDriverExecuteParamsEventRequest', null, global);
|
|
52
52
|
goog.exportSymbol('proto.browserstack.sdk.v1.FetchDriverExecuteParamsEventResponse', null, global);
|
|
53
|
+
goog.exportSymbol('proto.browserstack.sdk.v1.FetchRunStateRequest', null, global);
|
|
54
|
+
goog.exportSymbol('proto.browserstack.sdk.v1.FetchRunStateResponse', null, global);
|
|
53
55
|
goog.exportSymbol('proto.browserstack.sdk.v1.FindNearestHubRequest', null, global);
|
|
54
56
|
goog.exportSymbol('proto.browserstack.sdk.v1.FindNearestHubResponse', null, global);
|
|
55
57
|
goog.exportSymbol('proto.browserstack.sdk.v1.GetAggregatedClientTroubleshootingErrorsRequest', null, global);
|
|
@@ -59,6 +61,8 @@ goog.exportSymbol('proto.browserstack.sdk.v1.LogCreatedEventRequest.LogEntry', n
|
|
|
59
61
|
goog.exportSymbol('proto.browserstack.sdk.v1.LogCreatedEventResponse', null, global);
|
|
60
62
|
goog.exportSymbol('proto.browserstack.sdk.v1.PlaywrightConfigRequest', null, global);
|
|
61
63
|
goog.exportSymbol('proto.browserstack.sdk.v1.PlaywrightConfigResponse', null, global);
|
|
64
|
+
goog.exportSymbol('proto.browserstack.sdk.v1.PublishRunStateRequest', null, global);
|
|
65
|
+
goog.exportSymbol('proto.browserstack.sdk.v1.PublishRunStateResponse', null, global);
|
|
62
66
|
goog.exportSymbol('proto.browserstack.sdk.v1.ReportClientTroubleshootingErrorRequest', null, global);
|
|
63
67
|
goog.exportSymbol('proto.browserstack.sdk.v1.ReportClientTroubleshootingErrorResponse', null, global);
|
|
64
68
|
goog.exportSymbol('proto.browserstack.sdk.v1.RetryTestsOnFailure', null, global);
|
|
@@ -1085,6 +1089,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1085
1089
|
*/
|
|
1086
1090
|
proto.browserstack.sdk.v1.TestCafeConfigResponse.displayName = 'proto.browserstack.sdk.v1.TestCafeConfigResponse';
|
|
1087
1091
|
}
|
|
1092
|
+
/**
|
|
1093
|
+
* Generated by JsPbCodeGenerator.
|
|
1094
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1095
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1096
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1097
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1098
|
+
* valid.
|
|
1099
|
+
* @extends {jspb.Message}
|
|
1100
|
+
* @constructor
|
|
1101
|
+
*/
|
|
1102
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest = function(opt_data) {
|
|
1103
|
+
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
1104
|
+
};
|
|
1105
|
+
goog.inherits(proto.browserstack.sdk.v1.PublishRunStateRequest, jspb.Message);
|
|
1106
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1107
|
+
/**
|
|
1108
|
+
* @public
|
|
1109
|
+
* @override
|
|
1110
|
+
*/
|
|
1111
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.displayName = 'proto.browserstack.sdk.v1.PublishRunStateRequest';
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Generated by JsPbCodeGenerator.
|
|
1115
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1116
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1117
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1118
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1119
|
+
* valid.
|
|
1120
|
+
* @extends {jspb.Message}
|
|
1121
|
+
* @constructor
|
|
1122
|
+
*/
|
|
1123
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse = function(opt_data) {
|
|
1124
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1125
|
+
};
|
|
1126
|
+
goog.inherits(proto.browserstack.sdk.v1.PublishRunStateResponse, jspb.Message);
|
|
1127
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1128
|
+
/**
|
|
1129
|
+
* @public
|
|
1130
|
+
* @override
|
|
1131
|
+
*/
|
|
1132
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.displayName = 'proto.browserstack.sdk.v1.PublishRunStateResponse';
|
|
1133
|
+
}
|
|
1134
|
+
/**
|
|
1135
|
+
* Generated by JsPbCodeGenerator.
|
|
1136
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1137
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1138
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1139
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1140
|
+
* valid.
|
|
1141
|
+
* @extends {jspb.Message}
|
|
1142
|
+
* @constructor
|
|
1143
|
+
*/
|
|
1144
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest = function(opt_data) {
|
|
1145
|
+
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
1146
|
+
};
|
|
1147
|
+
goog.inherits(proto.browserstack.sdk.v1.FetchRunStateRequest, jspb.Message);
|
|
1148
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1149
|
+
/**
|
|
1150
|
+
* @public
|
|
1151
|
+
* @override
|
|
1152
|
+
*/
|
|
1153
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.displayName = 'proto.browserstack.sdk.v1.FetchRunStateRequest';
|
|
1154
|
+
}
|
|
1155
|
+
/**
|
|
1156
|
+
* Generated by JsPbCodeGenerator.
|
|
1157
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1158
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1159
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1160
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1161
|
+
* valid.
|
|
1162
|
+
* @extends {jspb.Message}
|
|
1163
|
+
* @constructor
|
|
1164
|
+
*/
|
|
1165
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse = function(opt_data) {
|
|
1166
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1167
|
+
};
|
|
1168
|
+
goog.inherits(proto.browserstack.sdk.v1.FetchRunStateResponse, jspb.Message);
|
|
1169
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1170
|
+
/**
|
|
1171
|
+
* @public
|
|
1172
|
+
* @override
|
|
1173
|
+
*/
|
|
1174
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.displayName = 'proto.browserstack.sdk.v1.FetchRunStateResponse';
|
|
1175
|
+
}
|
|
1088
1176
|
|
|
1089
1177
|
|
|
1090
1178
|
|
|
@@ -14781,4 +14869,1250 @@ proto.browserstack.sdk.v1.TestCafeConfigResponse.prototype.hasError = function()
|
|
|
14781
14869
|
};
|
|
14782
14870
|
|
|
14783
14871
|
|
|
14872
|
+
|
|
14873
|
+
|
|
14874
|
+
|
|
14875
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
14876
|
+
/**
|
|
14877
|
+
* Creates an object representation of this proto.
|
|
14878
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
14879
|
+
* Optional fields that are not set will be set to undefined.
|
|
14880
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
14881
|
+
* For the list of reserved names please see:
|
|
14882
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
14883
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
14884
|
+
* JSPB instance for transitional soy proto support:
|
|
14885
|
+
* http://goto/soy-param-migration
|
|
14886
|
+
* @return {!Object}
|
|
14887
|
+
*/
|
|
14888
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.toObject = function(opt_includeInstance) {
|
|
14889
|
+
return proto.browserstack.sdk.v1.PublishRunStateRequest.toObject(opt_includeInstance, this);
|
|
14890
|
+
};
|
|
14891
|
+
|
|
14892
|
+
|
|
14893
|
+
/**
|
|
14894
|
+
* Static version of the {@see toObject} method.
|
|
14895
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
14896
|
+
* the JSPB instance for transitional soy proto support:
|
|
14897
|
+
* http://goto/soy-param-migration
|
|
14898
|
+
* @param {!proto.browserstack.sdk.v1.PublishRunStateRequest} msg The msg instance to transform.
|
|
14899
|
+
* @return {!Object}
|
|
14900
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
14901
|
+
*/
|
|
14902
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.toObject = function(includeInstance, msg) {
|
|
14903
|
+
var f, obj = {
|
|
14904
|
+
binSessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
14905
|
+
scope: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
14906
|
+
key: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
14907
|
+
testRunUuid: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
14908
|
+
payloadJson: msg.getPayloadJson_asB64(),
|
|
14909
|
+
mode: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
14910
|
+
clientWorkerId: jspb.Message.getFieldWithDefault(msg, 500, ""),
|
|
14911
|
+
platformIndex: jspb.Message.getFieldWithDefault(msg, 501, "")
|
|
14912
|
+
};
|
|
14913
|
+
|
|
14914
|
+
if (includeInstance) {
|
|
14915
|
+
obj.$jspbMessageInstance = msg;
|
|
14916
|
+
}
|
|
14917
|
+
return obj;
|
|
14918
|
+
};
|
|
14919
|
+
}
|
|
14920
|
+
|
|
14921
|
+
|
|
14922
|
+
/**
|
|
14923
|
+
* Deserializes binary data (in protobuf wire format).
|
|
14924
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
14925
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateRequest}
|
|
14926
|
+
*/
|
|
14927
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.deserializeBinary = function(bytes) {
|
|
14928
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
14929
|
+
var msg = new proto.browserstack.sdk.v1.PublishRunStateRequest;
|
|
14930
|
+
return proto.browserstack.sdk.v1.PublishRunStateRequest.deserializeBinaryFromReader(msg, reader);
|
|
14931
|
+
};
|
|
14932
|
+
|
|
14933
|
+
|
|
14934
|
+
/**
|
|
14935
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
14936
|
+
* given reader into the given message object.
|
|
14937
|
+
* @param {!proto.browserstack.sdk.v1.PublishRunStateRequest} msg The message object to deserialize into.
|
|
14938
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
14939
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateRequest}
|
|
14940
|
+
*/
|
|
14941
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
14942
|
+
while (reader.nextField()) {
|
|
14943
|
+
if (reader.isEndGroup()) {
|
|
14944
|
+
break;
|
|
14945
|
+
}
|
|
14946
|
+
var field = reader.getFieldNumber();
|
|
14947
|
+
switch (field) {
|
|
14948
|
+
case 1:
|
|
14949
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14950
|
+
msg.setBinSessionId(value);
|
|
14951
|
+
break;
|
|
14952
|
+
case 2:
|
|
14953
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14954
|
+
msg.setScope(value);
|
|
14955
|
+
break;
|
|
14956
|
+
case 3:
|
|
14957
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14958
|
+
msg.setKey(value);
|
|
14959
|
+
break;
|
|
14960
|
+
case 4:
|
|
14961
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14962
|
+
msg.setTestRunUuid(value);
|
|
14963
|
+
break;
|
|
14964
|
+
case 5:
|
|
14965
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
14966
|
+
msg.setPayloadJson(value);
|
|
14967
|
+
break;
|
|
14968
|
+
case 6:
|
|
14969
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14970
|
+
msg.setMode(value);
|
|
14971
|
+
break;
|
|
14972
|
+
case 500:
|
|
14973
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14974
|
+
msg.setClientWorkerId(value);
|
|
14975
|
+
break;
|
|
14976
|
+
case 501:
|
|
14977
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14978
|
+
msg.setPlatformIndex(value);
|
|
14979
|
+
break;
|
|
14980
|
+
default:
|
|
14981
|
+
reader.skipField();
|
|
14982
|
+
break;
|
|
14983
|
+
}
|
|
14984
|
+
}
|
|
14985
|
+
return msg;
|
|
14986
|
+
};
|
|
14987
|
+
|
|
14988
|
+
|
|
14989
|
+
/**
|
|
14990
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
14991
|
+
* @return {!Uint8Array}
|
|
14992
|
+
*/
|
|
14993
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.serializeBinary = function() {
|
|
14994
|
+
var writer = new jspb.BinaryWriter();
|
|
14995
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.serializeBinaryToWriter(this, writer);
|
|
14996
|
+
return writer.getResultBuffer();
|
|
14997
|
+
};
|
|
14998
|
+
|
|
14999
|
+
|
|
15000
|
+
/**
|
|
15001
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
15002
|
+
* format), writing to the given BinaryWriter.
|
|
15003
|
+
* @param {!proto.browserstack.sdk.v1.PublishRunStateRequest} message
|
|
15004
|
+
* @param {!jspb.BinaryWriter} writer
|
|
15005
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15006
|
+
*/
|
|
15007
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.serializeBinaryToWriter = function(message, writer) {
|
|
15008
|
+
var f = undefined;
|
|
15009
|
+
f = message.getBinSessionId();
|
|
15010
|
+
if (f.length > 0) {
|
|
15011
|
+
writer.writeString(
|
|
15012
|
+
1,
|
|
15013
|
+
f
|
|
15014
|
+
);
|
|
15015
|
+
}
|
|
15016
|
+
f = message.getScope();
|
|
15017
|
+
if (f.length > 0) {
|
|
15018
|
+
writer.writeString(
|
|
15019
|
+
2,
|
|
15020
|
+
f
|
|
15021
|
+
);
|
|
15022
|
+
}
|
|
15023
|
+
f = message.getKey();
|
|
15024
|
+
if (f.length > 0) {
|
|
15025
|
+
writer.writeString(
|
|
15026
|
+
3,
|
|
15027
|
+
f
|
|
15028
|
+
);
|
|
15029
|
+
}
|
|
15030
|
+
f = message.getTestRunUuid();
|
|
15031
|
+
if (f.length > 0) {
|
|
15032
|
+
writer.writeString(
|
|
15033
|
+
4,
|
|
15034
|
+
f
|
|
15035
|
+
);
|
|
15036
|
+
}
|
|
15037
|
+
f = message.getPayloadJson_asU8();
|
|
15038
|
+
if (f.length > 0) {
|
|
15039
|
+
writer.writeBytes(
|
|
15040
|
+
5,
|
|
15041
|
+
f
|
|
15042
|
+
);
|
|
15043
|
+
}
|
|
15044
|
+
f = message.getMode();
|
|
15045
|
+
if (f.length > 0) {
|
|
15046
|
+
writer.writeString(
|
|
15047
|
+
6,
|
|
15048
|
+
f
|
|
15049
|
+
);
|
|
15050
|
+
}
|
|
15051
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 500));
|
|
15052
|
+
if (f != null) {
|
|
15053
|
+
writer.writeString(
|
|
15054
|
+
500,
|
|
15055
|
+
f
|
|
15056
|
+
);
|
|
15057
|
+
}
|
|
15058
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 501));
|
|
15059
|
+
if (f != null) {
|
|
15060
|
+
writer.writeString(
|
|
15061
|
+
501,
|
|
15062
|
+
f
|
|
15063
|
+
);
|
|
15064
|
+
}
|
|
15065
|
+
};
|
|
15066
|
+
|
|
15067
|
+
|
|
15068
|
+
/**
|
|
15069
|
+
* optional string bin_session_id = 1;
|
|
15070
|
+
* @return {string}
|
|
15071
|
+
*/
|
|
15072
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.getBinSessionId = function() {
|
|
15073
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
15074
|
+
};
|
|
15075
|
+
|
|
15076
|
+
|
|
15077
|
+
/**
|
|
15078
|
+
* @param {string} value
|
|
15079
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateRequest} returns this
|
|
15080
|
+
*/
|
|
15081
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.setBinSessionId = function(value) {
|
|
15082
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
15083
|
+
};
|
|
15084
|
+
|
|
15085
|
+
|
|
15086
|
+
/**
|
|
15087
|
+
* optional string scope = 2;
|
|
15088
|
+
* @return {string}
|
|
15089
|
+
*/
|
|
15090
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.getScope = function() {
|
|
15091
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
15092
|
+
};
|
|
15093
|
+
|
|
15094
|
+
|
|
15095
|
+
/**
|
|
15096
|
+
* @param {string} value
|
|
15097
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateRequest} returns this
|
|
15098
|
+
*/
|
|
15099
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.setScope = function(value) {
|
|
15100
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
15101
|
+
};
|
|
15102
|
+
|
|
15103
|
+
|
|
15104
|
+
/**
|
|
15105
|
+
* optional string key = 3;
|
|
15106
|
+
* @return {string}
|
|
15107
|
+
*/
|
|
15108
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.getKey = function() {
|
|
15109
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
15110
|
+
};
|
|
15111
|
+
|
|
15112
|
+
|
|
15113
|
+
/**
|
|
15114
|
+
* @param {string} value
|
|
15115
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateRequest} returns this
|
|
15116
|
+
*/
|
|
15117
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.setKey = function(value) {
|
|
15118
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
15119
|
+
};
|
|
15120
|
+
|
|
15121
|
+
|
|
15122
|
+
/**
|
|
15123
|
+
* optional string test_run_uuid = 4;
|
|
15124
|
+
* @return {string}
|
|
15125
|
+
*/
|
|
15126
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.getTestRunUuid = function() {
|
|
15127
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
15128
|
+
};
|
|
15129
|
+
|
|
15130
|
+
|
|
15131
|
+
/**
|
|
15132
|
+
* @param {string} value
|
|
15133
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateRequest} returns this
|
|
15134
|
+
*/
|
|
15135
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.setTestRunUuid = function(value) {
|
|
15136
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
15137
|
+
};
|
|
15138
|
+
|
|
15139
|
+
|
|
15140
|
+
/**
|
|
15141
|
+
* optional bytes payload_json = 5;
|
|
15142
|
+
* @return {!(string|Uint8Array)}
|
|
15143
|
+
*/
|
|
15144
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.getPayloadJson = function() {
|
|
15145
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
15146
|
+
};
|
|
15147
|
+
|
|
15148
|
+
|
|
15149
|
+
/**
|
|
15150
|
+
* optional bytes payload_json = 5;
|
|
15151
|
+
* This is a type-conversion wrapper around `getPayloadJson()`
|
|
15152
|
+
* @return {string}
|
|
15153
|
+
*/
|
|
15154
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.getPayloadJson_asB64 = function() {
|
|
15155
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
15156
|
+
this.getPayloadJson()));
|
|
15157
|
+
};
|
|
15158
|
+
|
|
15159
|
+
|
|
15160
|
+
/**
|
|
15161
|
+
* optional bytes payload_json = 5;
|
|
15162
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
15163
|
+
* @see http://caniuse.com/Uint8Array
|
|
15164
|
+
* This is a type-conversion wrapper around `getPayloadJson()`
|
|
15165
|
+
* @return {!Uint8Array}
|
|
15166
|
+
*/
|
|
15167
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.getPayloadJson_asU8 = function() {
|
|
15168
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
15169
|
+
this.getPayloadJson()));
|
|
15170
|
+
};
|
|
15171
|
+
|
|
15172
|
+
|
|
15173
|
+
/**
|
|
15174
|
+
* @param {!(string|Uint8Array)} value
|
|
15175
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateRequest} returns this
|
|
15176
|
+
*/
|
|
15177
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.setPayloadJson = function(value) {
|
|
15178
|
+
return jspb.Message.setProto3BytesField(this, 5, value);
|
|
15179
|
+
};
|
|
15180
|
+
|
|
15181
|
+
|
|
15182
|
+
/**
|
|
15183
|
+
* optional string mode = 6;
|
|
15184
|
+
* @return {string}
|
|
15185
|
+
*/
|
|
15186
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.getMode = function() {
|
|
15187
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
15188
|
+
};
|
|
15189
|
+
|
|
15190
|
+
|
|
15191
|
+
/**
|
|
15192
|
+
* @param {string} value
|
|
15193
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateRequest} returns this
|
|
15194
|
+
*/
|
|
15195
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.setMode = function(value) {
|
|
15196
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
15197
|
+
};
|
|
15198
|
+
|
|
15199
|
+
|
|
15200
|
+
/**
|
|
15201
|
+
* optional string client_worker_id = 500;
|
|
15202
|
+
* @return {string}
|
|
15203
|
+
*/
|
|
15204
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.getClientWorkerId = function() {
|
|
15205
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 500, ""));
|
|
15206
|
+
};
|
|
15207
|
+
|
|
15208
|
+
|
|
15209
|
+
/**
|
|
15210
|
+
* @param {string} value
|
|
15211
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateRequest} returns this
|
|
15212
|
+
*/
|
|
15213
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.setClientWorkerId = function(value) {
|
|
15214
|
+
return jspb.Message.setField(this, 500, value);
|
|
15215
|
+
};
|
|
15216
|
+
|
|
15217
|
+
|
|
15218
|
+
/**
|
|
15219
|
+
* Clears the field making it undefined.
|
|
15220
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateRequest} returns this
|
|
15221
|
+
*/
|
|
15222
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.clearClientWorkerId = function() {
|
|
15223
|
+
return jspb.Message.setField(this, 500, undefined);
|
|
15224
|
+
};
|
|
15225
|
+
|
|
15226
|
+
|
|
15227
|
+
/**
|
|
15228
|
+
* Returns whether this field is set.
|
|
15229
|
+
* @return {boolean}
|
|
15230
|
+
*/
|
|
15231
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.hasClientWorkerId = function() {
|
|
15232
|
+
return jspb.Message.getField(this, 500) != null;
|
|
15233
|
+
};
|
|
15234
|
+
|
|
15235
|
+
|
|
15236
|
+
/**
|
|
15237
|
+
* optional string platform_index = 501;
|
|
15238
|
+
* @return {string}
|
|
15239
|
+
*/
|
|
15240
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.getPlatformIndex = function() {
|
|
15241
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 501, ""));
|
|
15242
|
+
};
|
|
15243
|
+
|
|
15244
|
+
|
|
15245
|
+
/**
|
|
15246
|
+
* @param {string} value
|
|
15247
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateRequest} returns this
|
|
15248
|
+
*/
|
|
15249
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.setPlatformIndex = function(value) {
|
|
15250
|
+
return jspb.Message.setField(this, 501, value);
|
|
15251
|
+
};
|
|
15252
|
+
|
|
15253
|
+
|
|
15254
|
+
/**
|
|
15255
|
+
* Clears the field making it undefined.
|
|
15256
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateRequest} returns this
|
|
15257
|
+
*/
|
|
15258
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.clearPlatformIndex = function() {
|
|
15259
|
+
return jspb.Message.setField(this, 501, undefined);
|
|
15260
|
+
};
|
|
15261
|
+
|
|
15262
|
+
|
|
15263
|
+
/**
|
|
15264
|
+
* Returns whether this field is set.
|
|
15265
|
+
* @return {boolean}
|
|
15266
|
+
*/
|
|
15267
|
+
proto.browserstack.sdk.v1.PublishRunStateRequest.prototype.hasPlatformIndex = function() {
|
|
15268
|
+
return jspb.Message.getField(this, 501) != null;
|
|
15269
|
+
};
|
|
15270
|
+
|
|
15271
|
+
|
|
15272
|
+
|
|
15273
|
+
|
|
15274
|
+
|
|
15275
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
15276
|
+
/**
|
|
15277
|
+
* Creates an object representation of this proto.
|
|
15278
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
15279
|
+
* Optional fields that are not set will be set to undefined.
|
|
15280
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
15281
|
+
* For the list of reserved names please see:
|
|
15282
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
15283
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
15284
|
+
* JSPB instance for transitional soy proto support:
|
|
15285
|
+
* http://goto/soy-param-migration
|
|
15286
|
+
* @return {!Object}
|
|
15287
|
+
*/
|
|
15288
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.prototype.toObject = function(opt_includeInstance) {
|
|
15289
|
+
return proto.browserstack.sdk.v1.PublishRunStateResponse.toObject(opt_includeInstance, this);
|
|
15290
|
+
};
|
|
15291
|
+
|
|
15292
|
+
|
|
15293
|
+
/**
|
|
15294
|
+
* Static version of the {@see toObject} method.
|
|
15295
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
15296
|
+
* the JSPB instance for transitional soy proto support:
|
|
15297
|
+
* http://goto/soy-param-migration
|
|
15298
|
+
* @param {!proto.browserstack.sdk.v1.PublishRunStateResponse} msg The msg instance to transform.
|
|
15299
|
+
* @return {!Object}
|
|
15300
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15301
|
+
*/
|
|
15302
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.toObject = function(includeInstance, msg) {
|
|
15303
|
+
var f, obj = {
|
|
15304
|
+
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
15305
|
+
error: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
15306
|
+
truncated: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
15307
|
+
terminal: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
|
15308
|
+
};
|
|
15309
|
+
|
|
15310
|
+
if (includeInstance) {
|
|
15311
|
+
obj.$jspbMessageInstance = msg;
|
|
15312
|
+
}
|
|
15313
|
+
return obj;
|
|
15314
|
+
};
|
|
15315
|
+
}
|
|
15316
|
+
|
|
15317
|
+
|
|
15318
|
+
/**
|
|
15319
|
+
* Deserializes binary data (in protobuf wire format).
|
|
15320
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
15321
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateResponse}
|
|
15322
|
+
*/
|
|
15323
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.deserializeBinary = function(bytes) {
|
|
15324
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
15325
|
+
var msg = new proto.browserstack.sdk.v1.PublishRunStateResponse;
|
|
15326
|
+
return proto.browserstack.sdk.v1.PublishRunStateResponse.deserializeBinaryFromReader(msg, reader);
|
|
15327
|
+
};
|
|
15328
|
+
|
|
15329
|
+
|
|
15330
|
+
/**
|
|
15331
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
15332
|
+
* given reader into the given message object.
|
|
15333
|
+
* @param {!proto.browserstack.sdk.v1.PublishRunStateResponse} msg The message object to deserialize into.
|
|
15334
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
15335
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateResponse}
|
|
15336
|
+
*/
|
|
15337
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
15338
|
+
while (reader.nextField()) {
|
|
15339
|
+
if (reader.isEndGroup()) {
|
|
15340
|
+
break;
|
|
15341
|
+
}
|
|
15342
|
+
var field = reader.getFieldNumber();
|
|
15343
|
+
switch (field) {
|
|
15344
|
+
case 1:
|
|
15345
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
15346
|
+
msg.setSuccess(value);
|
|
15347
|
+
break;
|
|
15348
|
+
case 2:
|
|
15349
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15350
|
+
msg.setError(value);
|
|
15351
|
+
break;
|
|
15352
|
+
case 3:
|
|
15353
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
15354
|
+
msg.setTruncated(value);
|
|
15355
|
+
break;
|
|
15356
|
+
case 4:
|
|
15357
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
15358
|
+
msg.setTerminal(value);
|
|
15359
|
+
break;
|
|
15360
|
+
default:
|
|
15361
|
+
reader.skipField();
|
|
15362
|
+
break;
|
|
15363
|
+
}
|
|
15364
|
+
}
|
|
15365
|
+
return msg;
|
|
15366
|
+
};
|
|
15367
|
+
|
|
15368
|
+
|
|
15369
|
+
/**
|
|
15370
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
15371
|
+
* @return {!Uint8Array}
|
|
15372
|
+
*/
|
|
15373
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.prototype.serializeBinary = function() {
|
|
15374
|
+
var writer = new jspb.BinaryWriter();
|
|
15375
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.serializeBinaryToWriter(this, writer);
|
|
15376
|
+
return writer.getResultBuffer();
|
|
15377
|
+
};
|
|
15378
|
+
|
|
15379
|
+
|
|
15380
|
+
/**
|
|
15381
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
15382
|
+
* format), writing to the given BinaryWriter.
|
|
15383
|
+
* @param {!proto.browserstack.sdk.v1.PublishRunStateResponse} message
|
|
15384
|
+
* @param {!jspb.BinaryWriter} writer
|
|
15385
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15386
|
+
*/
|
|
15387
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.serializeBinaryToWriter = function(message, writer) {
|
|
15388
|
+
var f = undefined;
|
|
15389
|
+
f = message.getSuccess();
|
|
15390
|
+
if (f) {
|
|
15391
|
+
writer.writeBool(
|
|
15392
|
+
1,
|
|
15393
|
+
f
|
|
15394
|
+
);
|
|
15395
|
+
}
|
|
15396
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
15397
|
+
if (f != null) {
|
|
15398
|
+
writer.writeString(
|
|
15399
|
+
2,
|
|
15400
|
+
f
|
|
15401
|
+
);
|
|
15402
|
+
}
|
|
15403
|
+
f = message.getTruncated();
|
|
15404
|
+
if (f) {
|
|
15405
|
+
writer.writeBool(
|
|
15406
|
+
3,
|
|
15407
|
+
f
|
|
15408
|
+
);
|
|
15409
|
+
}
|
|
15410
|
+
f = message.getTerminal();
|
|
15411
|
+
if (f) {
|
|
15412
|
+
writer.writeBool(
|
|
15413
|
+
4,
|
|
15414
|
+
f
|
|
15415
|
+
);
|
|
15416
|
+
}
|
|
15417
|
+
};
|
|
15418
|
+
|
|
15419
|
+
|
|
15420
|
+
/**
|
|
15421
|
+
* optional bool success = 1;
|
|
15422
|
+
* @return {boolean}
|
|
15423
|
+
*/
|
|
15424
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.prototype.getSuccess = function() {
|
|
15425
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
15426
|
+
};
|
|
15427
|
+
|
|
15428
|
+
|
|
15429
|
+
/**
|
|
15430
|
+
* @param {boolean} value
|
|
15431
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateResponse} returns this
|
|
15432
|
+
*/
|
|
15433
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.prototype.setSuccess = function(value) {
|
|
15434
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
15435
|
+
};
|
|
15436
|
+
|
|
15437
|
+
|
|
15438
|
+
/**
|
|
15439
|
+
* optional string error = 2;
|
|
15440
|
+
* @return {string}
|
|
15441
|
+
*/
|
|
15442
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.prototype.getError = function() {
|
|
15443
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
15444
|
+
};
|
|
15445
|
+
|
|
15446
|
+
|
|
15447
|
+
/**
|
|
15448
|
+
* @param {string} value
|
|
15449
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateResponse} returns this
|
|
15450
|
+
*/
|
|
15451
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.prototype.setError = function(value) {
|
|
15452
|
+
return jspb.Message.setField(this, 2, value);
|
|
15453
|
+
};
|
|
15454
|
+
|
|
15455
|
+
|
|
15456
|
+
/**
|
|
15457
|
+
* Clears the field making it undefined.
|
|
15458
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateResponse} returns this
|
|
15459
|
+
*/
|
|
15460
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.prototype.clearError = function() {
|
|
15461
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
15462
|
+
};
|
|
15463
|
+
|
|
15464
|
+
|
|
15465
|
+
/**
|
|
15466
|
+
* Returns whether this field is set.
|
|
15467
|
+
* @return {boolean}
|
|
15468
|
+
*/
|
|
15469
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.prototype.hasError = function() {
|
|
15470
|
+
return jspb.Message.getField(this, 2) != null;
|
|
15471
|
+
};
|
|
15472
|
+
|
|
15473
|
+
|
|
15474
|
+
/**
|
|
15475
|
+
* optional bool truncated = 3;
|
|
15476
|
+
* @return {boolean}
|
|
15477
|
+
*/
|
|
15478
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.prototype.getTruncated = function() {
|
|
15479
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
15480
|
+
};
|
|
15481
|
+
|
|
15482
|
+
|
|
15483
|
+
/**
|
|
15484
|
+
* @param {boolean} value
|
|
15485
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateResponse} returns this
|
|
15486
|
+
*/
|
|
15487
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.prototype.setTruncated = function(value) {
|
|
15488
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
15489
|
+
};
|
|
15490
|
+
|
|
15491
|
+
|
|
15492
|
+
/**
|
|
15493
|
+
* optional bool terminal = 4;
|
|
15494
|
+
* @return {boolean}
|
|
15495
|
+
*/
|
|
15496
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.prototype.getTerminal = function() {
|
|
15497
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
15498
|
+
};
|
|
15499
|
+
|
|
15500
|
+
|
|
15501
|
+
/**
|
|
15502
|
+
* @param {boolean} value
|
|
15503
|
+
* @return {!proto.browserstack.sdk.v1.PublishRunStateResponse} returns this
|
|
15504
|
+
*/
|
|
15505
|
+
proto.browserstack.sdk.v1.PublishRunStateResponse.prototype.setTerminal = function(value) {
|
|
15506
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
15507
|
+
};
|
|
15508
|
+
|
|
15509
|
+
|
|
15510
|
+
|
|
15511
|
+
|
|
15512
|
+
|
|
15513
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
15514
|
+
/**
|
|
15515
|
+
* Creates an object representation of this proto.
|
|
15516
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
15517
|
+
* Optional fields that are not set will be set to undefined.
|
|
15518
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
15519
|
+
* For the list of reserved names please see:
|
|
15520
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
15521
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
15522
|
+
* JSPB instance for transitional soy proto support:
|
|
15523
|
+
* http://goto/soy-param-migration
|
|
15524
|
+
* @return {!Object}
|
|
15525
|
+
*/
|
|
15526
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.toObject = function(opt_includeInstance) {
|
|
15527
|
+
return proto.browserstack.sdk.v1.FetchRunStateRequest.toObject(opt_includeInstance, this);
|
|
15528
|
+
};
|
|
15529
|
+
|
|
15530
|
+
|
|
15531
|
+
/**
|
|
15532
|
+
* Static version of the {@see toObject} method.
|
|
15533
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
15534
|
+
* the JSPB instance for transitional soy proto support:
|
|
15535
|
+
* http://goto/soy-param-migration
|
|
15536
|
+
* @param {!proto.browserstack.sdk.v1.FetchRunStateRequest} msg The msg instance to transform.
|
|
15537
|
+
* @return {!Object}
|
|
15538
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15539
|
+
*/
|
|
15540
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.toObject = function(includeInstance, msg) {
|
|
15541
|
+
var f, obj = {
|
|
15542
|
+
binSessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
15543
|
+
scope: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
15544
|
+
key: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
15545
|
+
testRunUuid: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
15546
|
+
clientWorkerId: jspb.Message.getFieldWithDefault(msg, 500, ""),
|
|
15547
|
+
platformIndex: jspb.Message.getFieldWithDefault(msg, 501, "")
|
|
15548
|
+
};
|
|
15549
|
+
|
|
15550
|
+
if (includeInstance) {
|
|
15551
|
+
obj.$jspbMessageInstance = msg;
|
|
15552
|
+
}
|
|
15553
|
+
return obj;
|
|
15554
|
+
};
|
|
15555
|
+
}
|
|
15556
|
+
|
|
15557
|
+
|
|
15558
|
+
/**
|
|
15559
|
+
* Deserializes binary data (in protobuf wire format).
|
|
15560
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
15561
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateRequest}
|
|
15562
|
+
*/
|
|
15563
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.deserializeBinary = function(bytes) {
|
|
15564
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
15565
|
+
var msg = new proto.browserstack.sdk.v1.FetchRunStateRequest;
|
|
15566
|
+
return proto.browserstack.sdk.v1.FetchRunStateRequest.deserializeBinaryFromReader(msg, reader);
|
|
15567
|
+
};
|
|
15568
|
+
|
|
15569
|
+
|
|
15570
|
+
/**
|
|
15571
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
15572
|
+
* given reader into the given message object.
|
|
15573
|
+
* @param {!proto.browserstack.sdk.v1.FetchRunStateRequest} msg The message object to deserialize into.
|
|
15574
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
15575
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateRequest}
|
|
15576
|
+
*/
|
|
15577
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
15578
|
+
while (reader.nextField()) {
|
|
15579
|
+
if (reader.isEndGroup()) {
|
|
15580
|
+
break;
|
|
15581
|
+
}
|
|
15582
|
+
var field = reader.getFieldNumber();
|
|
15583
|
+
switch (field) {
|
|
15584
|
+
case 1:
|
|
15585
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15586
|
+
msg.setBinSessionId(value);
|
|
15587
|
+
break;
|
|
15588
|
+
case 2:
|
|
15589
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15590
|
+
msg.setScope(value);
|
|
15591
|
+
break;
|
|
15592
|
+
case 3:
|
|
15593
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15594
|
+
msg.setKey(value);
|
|
15595
|
+
break;
|
|
15596
|
+
case 4:
|
|
15597
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15598
|
+
msg.setTestRunUuid(value);
|
|
15599
|
+
break;
|
|
15600
|
+
case 500:
|
|
15601
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15602
|
+
msg.setClientWorkerId(value);
|
|
15603
|
+
break;
|
|
15604
|
+
case 501:
|
|
15605
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15606
|
+
msg.setPlatformIndex(value);
|
|
15607
|
+
break;
|
|
15608
|
+
default:
|
|
15609
|
+
reader.skipField();
|
|
15610
|
+
break;
|
|
15611
|
+
}
|
|
15612
|
+
}
|
|
15613
|
+
return msg;
|
|
15614
|
+
};
|
|
15615
|
+
|
|
15616
|
+
|
|
15617
|
+
/**
|
|
15618
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
15619
|
+
* @return {!Uint8Array}
|
|
15620
|
+
*/
|
|
15621
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.serializeBinary = function() {
|
|
15622
|
+
var writer = new jspb.BinaryWriter();
|
|
15623
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.serializeBinaryToWriter(this, writer);
|
|
15624
|
+
return writer.getResultBuffer();
|
|
15625
|
+
};
|
|
15626
|
+
|
|
15627
|
+
|
|
15628
|
+
/**
|
|
15629
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
15630
|
+
* format), writing to the given BinaryWriter.
|
|
15631
|
+
* @param {!proto.browserstack.sdk.v1.FetchRunStateRequest} message
|
|
15632
|
+
* @param {!jspb.BinaryWriter} writer
|
|
15633
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15634
|
+
*/
|
|
15635
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.serializeBinaryToWriter = function(message, writer) {
|
|
15636
|
+
var f = undefined;
|
|
15637
|
+
f = message.getBinSessionId();
|
|
15638
|
+
if (f.length > 0) {
|
|
15639
|
+
writer.writeString(
|
|
15640
|
+
1,
|
|
15641
|
+
f
|
|
15642
|
+
);
|
|
15643
|
+
}
|
|
15644
|
+
f = message.getScope();
|
|
15645
|
+
if (f.length > 0) {
|
|
15646
|
+
writer.writeString(
|
|
15647
|
+
2,
|
|
15648
|
+
f
|
|
15649
|
+
);
|
|
15650
|
+
}
|
|
15651
|
+
f = message.getKey();
|
|
15652
|
+
if (f.length > 0) {
|
|
15653
|
+
writer.writeString(
|
|
15654
|
+
3,
|
|
15655
|
+
f
|
|
15656
|
+
);
|
|
15657
|
+
}
|
|
15658
|
+
f = message.getTestRunUuid();
|
|
15659
|
+
if (f.length > 0) {
|
|
15660
|
+
writer.writeString(
|
|
15661
|
+
4,
|
|
15662
|
+
f
|
|
15663
|
+
);
|
|
15664
|
+
}
|
|
15665
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 500));
|
|
15666
|
+
if (f != null) {
|
|
15667
|
+
writer.writeString(
|
|
15668
|
+
500,
|
|
15669
|
+
f
|
|
15670
|
+
);
|
|
15671
|
+
}
|
|
15672
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 501));
|
|
15673
|
+
if (f != null) {
|
|
15674
|
+
writer.writeString(
|
|
15675
|
+
501,
|
|
15676
|
+
f
|
|
15677
|
+
);
|
|
15678
|
+
}
|
|
15679
|
+
};
|
|
15680
|
+
|
|
15681
|
+
|
|
15682
|
+
/**
|
|
15683
|
+
* optional string bin_session_id = 1;
|
|
15684
|
+
* @return {string}
|
|
15685
|
+
*/
|
|
15686
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.getBinSessionId = function() {
|
|
15687
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
15688
|
+
};
|
|
15689
|
+
|
|
15690
|
+
|
|
15691
|
+
/**
|
|
15692
|
+
* @param {string} value
|
|
15693
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateRequest} returns this
|
|
15694
|
+
*/
|
|
15695
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.setBinSessionId = function(value) {
|
|
15696
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
15697
|
+
};
|
|
15698
|
+
|
|
15699
|
+
|
|
15700
|
+
/**
|
|
15701
|
+
* optional string scope = 2;
|
|
15702
|
+
* @return {string}
|
|
15703
|
+
*/
|
|
15704
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.getScope = function() {
|
|
15705
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
15706
|
+
};
|
|
15707
|
+
|
|
15708
|
+
|
|
15709
|
+
/**
|
|
15710
|
+
* @param {string} value
|
|
15711
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateRequest} returns this
|
|
15712
|
+
*/
|
|
15713
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.setScope = function(value) {
|
|
15714
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
15715
|
+
};
|
|
15716
|
+
|
|
15717
|
+
|
|
15718
|
+
/**
|
|
15719
|
+
* optional string key = 3;
|
|
15720
|
+
* @return {string}
|
|
15721
|
+
*/
|
|
15722
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.getKey = function() {
|
|
15723
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
15724
|
+
};
|
|
15725
|
+
|
|
15726
|
+
|
|
15727
|
+
/**
|
|
15728
|
+
* @param {string} value
|
|
15729
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateRequest} returns this
|
|
15730
|
+
*/
|
|
15731
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.setKey = function(value) {
|
|
15732
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
15733
|
+
};
|
|
15734
|
+
|
|
15735
|
+
|
|
15736
|
+
/**
|
|
15737
|
+
* optional string test_run_uuid = 4;
|
|
15738
|
+
* @return {string}
|
|
15739
|
+
*/
|
|
15740
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.getTestRunUuid = function() {
|
|
15741
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
15742
|
+
};
|
|
15743
|
+
|
|
15744
|
+
|
|
15745
|
+
/**
|
|
15746
|
+
* @param {string} value
|
|
15747
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateRequest} returns this
|
|
15748
|
+
*/
|
|
15749
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.setTestRunUuid = function(value) {
|
|
15750
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
15751
|
+
};
|
|
15752
|
+
|
|
15753
|
+
|
|
15754
|
+
/**
|
|
15755
|
+
* optional string client_worker_id = 500;
|
|
15756
|
+
* @return {string}
|
|
15757
|
+
*/
|
|
15758
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.getClientWorkerId = function() {
|
|
15759
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 500, ""));
|
|
15760
|
+
};
|
|
15761
|
+
|
|
15762
|
+
|
|
15763
|
+
/**
|
|
15764
|
+
* @param {string} value
|
|
15765
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateRequest} returns this
|
|
15766
|
+
*/
|
|
15767
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.setClientWorkerId = function(value) {
|
|
15768
|
+
return jspb.Message.setField(this, 500, value);
|
|
15769
|
+
};
|
|
15770
|
+
|
|
15771
|
+
|
|
15772
|
+
/**
|
|
15773
|
+
* Clears the field making it undefined.
|
|
15774
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateRequest} returns this
|
|
15775
|
+
*/
|
|
15776
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.clearClientWorkerId = function() {
|
|
15777
|
+
return jspb.Message.setField(this, 500, undefined);
|
|
15778
|
+
};
|
|
15779
|
+
|
|
15780
|
+
|
|
15781
|
+
/**
|
|
15782
|
+
* Returns whether this field is set.
|
|
15783
|
+
* @return {boolean}
|
|
15784
|
+
*/
|
|
15785
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.hasClientWorkerId = function() {
|
|
15786
|
+
return jspb.Message.getField(this, 500) != null;
|
|
15787
|
+
};
|
|
15788
|
+
|
|
15789
|
+
|
|
15790
|
+
/**
|
|
15791
|
+
* optional string platform_index = 501;
|
|
15792
|
+
* @return {string}
|
|
15793
|
+
*/
|
|
15794
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.getPlatformIndex = function() {
|
|
15795
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 501, ""));
|
|
15796
|
+
};
|
|
15797
|
+
|
|
15798
|
+
|
|
15799
|
+
/**
|
|
15800
|
+
* @param {string} value
|
|
15801
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateRequest} returns this
|
|
15802
|
+
*/
|
|
15803
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.setPlatformIndex = function(value) {
|
|
15804
|
+
return jspb.Message.setField(this, 501, value);
|
|
15805
|
+
};
|
|
15806
|
+
|
|
15807
|
+
|
|
15808
|
+
/**
|
|
15809
|
+
* Clears the field making it undefined.
|
|
15810
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateRequest} returns this
|
|
15811
|
+
*/
|
|
15812
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.clearPlatformIndex = function() {
|
|
15813
|
+
return jspb.Message.setField(this, 501, undefined);
|
|
15814
|
+
};
|
|
15815
|
+
|
|
15816
|
+
|
|
15817
|
+
/**
|
|
15818
|
+
* Returns whether this field is set.
|
|
15819
|
+
* @return {boolean}
|
|
15820
|
+
*/
|
|
15821
|
+
proto.browserstack.sdk.v1.FetchRunStateRequest.prototype.hasPlatformIndex = function() {
|
|
15822
|
+
return jspb.Message.getField(this, 501) != null;
|
|
15823
|
+
};
|
|
15824
|
+
|
|
15825
|
+
|
|
15826
|
+
|
|
15827
|
+
|
|
15828
|
+
|
|
15829
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
15830
|
+
/**
|
|
15831
|
+
* Creates an object representation of this proto.
|
|
15832
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
15833
|
+
* Optional fields that are not set will be set to undefined.
|
|
15834
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
15835
|
+
* For the list of reserved names please see:
|
|
15836
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
15837
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
15838
|
+
* JSPB instance for transitional soy proto support:
|
|
15839
|
+
* http://goto/soy-param-migration
|
|
15840
|
+
* @return {!Object}
|
|
15841
|
+
*/
|
|
15842
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.prototype.toObject = function(opt_includeInstance) {
|
|
15843
|
+
return proto.browserstack.sdk.v1.FetchRunStateResponse.toObject(opt_includeInstance, this);
|
|
15844
|
+
};
|
|
15845
|
+
|
|
15846
|
+
|
|
15847
|
+
/**
|
|
15848
|
+
* Static version of the {@see toObject} method.
|
|
15849
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
15850
|
+
* the JSPB instance for transitional soy proto support:
|
|
15851
|
+
* http://goto/soy-param-migration
|
|
15852
|
+
* @param {!proto.browserstack.sdk.v1.FetchRunStateResponse} msg The msg instance to transform.
|
|
15853
|
+
* @return {!Object}
|
|
15854
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15855
|
+
*/
|
|
15856
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.toObject = function(includeInstance, msg) {
|
|
15857
|
+
var f, obj = {
|
|
15858
|
+
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
15859
|
+
found: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
15860
|
+
payloadJson: msg.getPayloadJson_asB64(),
|
|
15861
|
+
error: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
15862
|
+
terminal: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
15863
|
+
};
|
|
15864
|
+
|
|
15865
|
+
if (includeInstance) {
|
|
15866
|
+
obj.$jspbMessageInstance = msg;
|
|
15867
|
+
}
|
|
15868
|
+
return obj;
|
|
15869
|
+
};
|
|
15870
|
+
}
|
|
15871
|
+
|
|
15872
|
+
|
|
15873
|
+
/**
|
|
15874
|
+
* Deserializes binary data (in protobuf wire format).
|
|
15875
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
15876
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateResponse}
|
|
15877
|
+
*/
|
|
15878
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.deserializeBinary = function(bytes) {
|
|
15879
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
15880
|
+
var msg = new proto.browserstack.sdk.v1.FetchRunStateResponse;
|
|
15881
|
+
return proto.browserstack.sdk.v1.FetchRunStateResponse.deserializeBinaryFromReader(msg, reader);
|
|
15882
|
+
};
|
|
15883
|
+
|
|
15884
|
+
|
|
15885
|
+
/**
|
|
15886
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
15887
|
+
* given reader into the given message object.
|
|
15888
|
+
* @param {!proto.browserstack.sdk.v1.FetchRunStateResponse} msg The message object to deserialize into.
|
|
15889
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
15890
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateResponse}
|
|
15891
|
+
*/
|
|
15892
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
15893
|
+
while (reader.nextField()) {
|
|
15894
|
+
if (reader.isEndGroup()) {
|
|
15895
|
+
break;
|
|
15896
|
+
}
|
|
15897
|
+
var field = reader.getFieldNumber();
|
|
15898
|
+
switch (field) {
|
|
15899
|
+
case 1:
|
|
15900
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
15901
|
+
msg.setSuccess(value);
|
|
15902
|
+
break;
|
|
15903
|
+
case 2:
|
|
15904
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
15905
|
+
msg.setFound(value);
|
|
15906
|
+
break;
|
|
15907
|
+
case 3:
|
|
15908
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
15909
|
+
msg.setPayloadJson(value);
|
|
15910
|
+
break;
|
|
15911
|
+
case 4:
|
|
15912
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15913
|
+
msg.setError(value);
|
|
15914
|
+
break;
|
|
15915
|
+
case 5:
|
|
15916
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
15917
|
+
msg.setTerminal(value);
|
|
15918
|
+
break;
|
|
15919
|
+
default:
|
|
15920
|
+
reader.skipField();
|
|
15921
|
+
break;
|
|
15922
|
+
}
|
|
15923
|
+
}
|
|
15924
|
+
return msg;
|
|
15925
|
+
};
|
|
15926
|
+
|
|
15927
|
+
|
|
15928
|
+
/**
|
|
15929
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
15930
|
+
* @return {!Uint8Array}
|
|
15931
|
+
*/
|
|
15932
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.prototype.serializeBinary = function() {
|
|
15933
|
+
var writer = new jspb.BinaryWriter();
|
|
15934
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.serializeBinaryToWriter(this, writer);
|
|
15935
|
+
return writer.getResultBuffer();
|
|
15936
|
+
};
|
|
15937
|
+
|
|
15938
|
+
|
|
15939
|
+
/**
|
|
15940
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
15941
|
+
* format), writing to the given BinaryWriter.
|
|
15942
|
+
* @param {!proto.browserstack.sdk.v1.FetchRunStateResponse} message
|
|
15943
|
+
* @param {!jspb.BinaryWriter} writer
|
|
15944
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15945
|
+
*/
|
|
15946
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.serializeBinaryToWriter = function(message, writer) {
|
|
15947
|
+
var f = undefined;
|
|
15948
|
+
f = message.getSuccess();
|
|
15949
|
+
if (f) {
|
|
15950
|
+
writer.writeBool(
|
|
15951
|
+
1,
|
|
15952
|
+
f
|
|
15953
|
+
);
|
|
15954
|
+
}
|
|
15955
|
+
f = message.getFound();
|
|
15956
|
+
if (f) {
|
|
15957
|
+
writer.writeBool(
|
|
15958
|
+
2,
|
|
15959
|
+
f
|
|
15960
|
+
);
|
|
15961
|
+
}
|
|
15962
|
+
f = message.getPayloadJson_asU8();
|
|
15963
|
+
if (f.length > 0) {
|
|
15964
|
+
writer.writeBytes(
|
|
15965
|
+
3,
|
|
15966
|
+
f
|
|
15967
|
+
);
|
|
15968
|
+
}
|
|
15969
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
15970
|
+
if (f != null) {
|
|
15971
|
+
writer.writeString(
|
|
15972
|
+
4,
|
|
15973
|
+
f
|
|
15974
|
+
);
|
|
15975
|
+
}
|
|
15976
|
+
f = message.getTerminal();
|
|
15977
|
+
if (f) {
|
|
15978
|
+
writer.writeBool(
|
|
15979
|
+
5,
|
|
15980
|
+
f
|
|
15981
|
+
);
|
|
15982
|
+
}
|
|
15983
|
+
};
|
|
15984
|
+
|
|
15985
|
+
|
|
15986
|
+
/**
|
|
15987
|
+
* optional bool success = 1;
|
|
15988
|
+
* @return {boolean}
|
|
15989
|
+
*/
|
|
15990
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.prototype.getSuccess = function() {
|
|
15991
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
15992
|
+
};
|
|
15993
|
+
|
|
15994
|
+
|
|
15995
|
+
/**
|
|
15996
|
+
* @param {boolean} value
|
|
15997
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateResponse} returns this
|
|
15998
|
+
*/
|
|
15999
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.prototype.setSuccess = function(value) {
|
|
16000
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
16001
|
+
};
|
|
16002
|
+
|
|
16003
|
+
|
|
16004
|
+
/**
|
|
16005
|
+
* optional bool found = 2;
|
|
16006
|
+
* @return {boolean}
|
|
16007
|
+
*/
|
|
16008
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.prototype.getFound = function() {
|
|
16009
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
16010
|
+
};
|
|
16011
|
+
|
|
16012
|
+
|
|
16013
|
+
/**
|
|
16014
|
+
* @param {boolean} value
|
|
16015
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateResponse} returns this
|
|
16016
|
+
*/
|
|
16017
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.prototype.setFound = function(value) {
|
|
16018
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
16019
|
+
};
|
|
16020
|
+
|
|
16021
|
+
|
|
16022
|
+
/**
|
|
16023
|
+
* optional bytes payload_json = 3;
|
|
16024
|
+
* @return {!(string|Uint8Array)}
|
|
16025
|
+
*/
|
|
16026
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.prototype.getPayloadJson = function() {
|
|
16027
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
16028
|
+
};
|
|
16029
|
+
|
|
16030
|
+
|
|
16031
|
+
/**
|
|
16032
|
+
* optional bytes payload_json = 3;
|
|
16033
|
+
* This is a type-conversion wrapper around `getPayloadJson()`
|
|
16034
|
+
* @return {string}
|
|
16035
|
+
*/
|
|
16036
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.prototype.getPayloadJson_asB64 = function() {
|
|
16037
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
16038
|
+
this.getPayloadJson()));
|
|
16039
|
+
};
|
|
16040
|
+
|
|
16041
|
+
|
|
16042
|
+
/**
|
|
16043
|
+
* optional bytes payload_json = 3;
|
|
16044
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
16045
|
+
* @see http://caniuse.com/Uint8Array
|
|
16046
|
+
* This is a type-conversion wrapper around `getPayloadJson()`
|
|
16047
|
+
* @return {!Uint8Array}
|
|
16048
|
+
*/
|
|
16049
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.prototype.getPayloadJson_asU8 = function() {
|
|
16050
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
16051
|
+
this.getPayloadJson()));
|
|
16052
|
+
};
|
|
16053
|
+
|
|
16054
|
+
|
|
16055
|
+
/**
|
|
16056
|
+
* @param {!(string|Uint8Array)} value
|
|
16057
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateResponse} returns this
|
|
16058
|
+
*/
|
|
16059
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.prototype.setPayloadJson = function(value) {
|
|
16060
|
+
return jspb.Message.setProto3BytesField(this, 3, value);
|
|
16061
|
+
};
|
|
16062
|
+
|
|
16063
|
+
|
|
16064
|
+
/**
|
|
16065
|
+
* optional string error = 4;
|
|
16066
|
+
* @return {string}
|
|
16067
|
+
*/
|
|
16068
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.prototype.getError = function() {
|
|
16069
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
16070
|
+
};
|
|
16071
|
+
|
|
16072
|
+
|
|
16073
|
+
/**
|
|
16074
|
+
* @param {string} value
|
|
16075
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateResponse} returns this
|
|
16076
|
+
*/
|
|
16077
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.prototype.setError = function(value) {
|
|
16078
|
+
return jspb.Message.setField(this, 4, value);
|
|
16079
|
+
};
|
|
16080
|
+
|
|
16081
|
+
|
|
16082
|
+
/**
|
|
16083
|
+
* Clears the field making it undefined.
|
|
16084
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateResponse} returns this
|
|
16085
|
+
*/
|
|
16086
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.prototype.clearError = function() {
|
|
16087
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
16088
|
+
};
|
|
16089
|
+
|
|
16090
|
+
|
|
16091
|
+
/**
|
|
16092
|
+
* Returns whether this field is set.
|
|
16093
|
+
* @return {boolean}
|
|
16094
|
+
*/
|
|
16095
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.prototype.hasError = function() {
|
|
16096
|
+
return jspb.Message.getField(this, 4) != null;
|
|
16097
|
+
};
|
|
16098
|
+
|
|
16099
|
+
|
|
16100
|
+
/**
|
|
16101
|
+
* optional bool terminal = 5;
|
|
16102
|
+
* @return {boolean}
|
|
16103
|
+
*/
|
|
16104
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.prototype.getTerminal = function() {
|
|
16105
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
16106
|
+
};
|
|
16107
|
+
|
|
16108
|
+
|
|
16109
|
+
/**
|
|
16110
|
+
* @param {boolean} value
|
|
16111
|
+
* @return {!proto.browserstack.sdk.v1.FetchRunStateResponse} returns this
|
|
16112
|
+
*/
|
|
16113
|
+
proto.browserstack.sdk.v1.FetchRunStateResponse.prototype.setTerminal = function(value) {
|
|
16114
|
+
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
16115
|
+
};
|
|
16116
|
+
|
|
16117
|
+
|
|
14784
16118
|
goog.object.extend(exports, proto.browserstack.sdk.v1);
|