UNPKG

@mochabug/adapt-web

Version:

The client library to execute automations, without effort, in a browser environment

290 lines 17.1 kB
"use strict"; // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); exports.api_version = exports.oauth_scopes = exports.default_host = exports.method_signature = exports.ClientLibraryDestinationSchema = exports.ClientLibraryDestination = exports.ClientLibraryOrganizationSchema = exports.ClientLibraryOrganization = exports.SelectiveGapicGenerationSchema = exports.MethodSettings_LongRunningSchema = exports.MethodSettingsSchema = exports.GoSettingsSchema = exports.RubySettingsSchema = exports.DotnetSettingsSchema = exports.NodeSettingsSchema = exports.PythonSettings_ExperimentalFeaturesSchema = exports.PythonSettingsSchema = exports.PhpSettingsSchema = exports.CppSettingsSchema = exports.JavaSettingsSchema = exports.PublishingSchema = exports.ClientLibrarySettingsSchema = exports.CommonLanguageSettingsSchema = exports.file_google_api_client = void 0; const codegenv2_1 = require("@bufbuild/protobuf/codegenv2"); const launch_stage_pb_js_1 = require("./launch_stage_pb.js"); const wkt_1 = require("@bufbuild/protobuf/wkt"); /** * Describes the file google/api/client.proto. */ exports.file_google_api_client = (0, codegenv2_1.fileDesc)("Chdnb29nbGUvYXBpL2NsaWVudC5wcm90bxIKZ29vZ2xlLmFwaSK+AQoWQ29tbW9uTGFuZ3VhZ2VTZXR0aW5ncxIeChJyZWZlcmVuY2VfZG9jc191cmkYASABKAlCAhgBEjoKDGRlc3RpbmF0aW9ucxgCIAMoDjIkLmdvb2dsZS5hcGkuQ2xpZW50TGlicmFyeURlc3RpbmF0aW9uEkgKGnNlbGVjdGl2ZV9nYXBpY19nZW5lcmF0aW9uGAMgASgLMiQuZ29v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Y2VPcHRpb25zGJkIIAEoCVILZGVmYXVsdEhvc3Q6QwoMb2F1dGhfc2NvcGVzEh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VPcHRpb25zGJoIIAEoCVILb2F1dGhTY29wZXM6RAoLYXBpX3ZlcnNpb24SHy5nb29nbGUucHJvdG9idWYuU2VydmljZU9wdGlvbnMYwbqr+gEgASgJUgphcGlWZXJzaW9uQmkKDmNvbS5nb29nbGUuYXBpQgtDbGllbnRQcm90b1ABWkFnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9hbm5vdGF0aW9uczthbm5vdGF0aW9uc6ICBEdBUEliBnByb3RvMw", [launch_stage_pb_js_1.file_google_api_launch_stage, wkt_1.file_google_protobuf_descriptor, wkt_1.file_google_protobuf_duration]); /** * Describes the message google.api.CommonLanguageSettings. * Use `create(CommonLanguageSettingsSchema)` to create a new message. */ exports.CommonLanguageSettingsSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_client, 0); /** * Describes the message google.api.ClientLibrarySettings. * Use `create(ClientLibrarySettingsSchema)` to create a new message. */ exports.ClientLibrarySettingsSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_client, 1); /** * Describes the message google.api.Publishing. * Use `create(PublishingSchema)` to create a new message. */ exports.PublishingSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_client, 2); /** * Describes the message google.api.JavaSettings. * Use `create(JavaSettingsSchema)` to create a new message. */ exports.JavaSettingsSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_client, 3); /** * Describes the message google.api.CppSettings. * Use `create(CppSettingsSchema)` to create a new message. */ exports.CppSettingsSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_client, 4); /** * Describes the message google.api.PhpSettings. * Use `create(PhpSettingsSchema)` to create a new message. */ exports.PhpSettingsSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_client, 5); /** * Describes the message google.api.PythonSettings. * Use `create(PythonSettingsSchema)` to create a new message. */ exports.PythonSettingsSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_client, 6); /** * Describes the message google.api.PythonSettings.ExperimentalFeatures. * Use `create(PythonSettings_ExperimentalFeaturesSchema)` to create a new message. */ exports.PythonSettings_ExperimentalFeaturesSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_client, 6, 0); /** * Describes the message google.api.NodeSettings. * Use `create(NodeSettingsSchema)` to create a new message. */ exports.NodeSettingsSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_client, 7); /** * Describes the message google.api.DotnetSettings. * Use `create(DotnetSettingsSchema)` to create a new message. */ exports.DotnetSettingsSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_client, 8); /** * Describes the message google.api.RubySettings. * Use `create(RubySettingsSchema)` to create a new message. */ exports.RubySettingsSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_client, 9); /** * Describes the message google.api.GoSettings. * Use `create(GoSettingsSchema)` to create a new message. */ exports.GoSettingsSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_client, 10); /** * Describes the message google.api.MethodSettings. * Use `create(MethodSettingsSchema)` to create a new message. */ exports.MethodSettingsSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_client, 11); /** * Describes the message google.api.MethodSettings.LongRunning. * Use `create(MethodSettings_LongRunningSchema)` to create a new message. */ exports.MethodSettings_LongRunningSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_client, 11, 0); /** * Describes the message google.api.SelectiveGapicGeneration. * Use `create(SelectiveGapicGenerationSchema)` to create a new message. */ exports.SelectiveGapicGenerationSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_client, 12); /** * The organization for which the client libraries are being published. * Affects the url where generated docs are published, etc. * * @generated from enum google.api.ClientLibraryOrganization */ var ClientLibraryOrganization; (function (ClientLibraryOrganization) { /** * Not useful. * * @generated from enum value: CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0; */ ClientLibraryOrganization[ClientLibraryOrganization["CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"] = 0] = "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"; /** * Google Cloud Platform Org. * * @generated from enum value: CLOUD = 1; */ ClientLibraryOrganization[ClientLibraryOrganization["CLOUD"] = 1] = "CLOUD"; /** * Ads (Advertising) Org. * * @generated from enum value: ADS = 2; */ ClientLibraryOrganization[ClientLibraryOrganization["ADS"] = 2] = "ADS"; /** * Photos Org. * * @generated from enum value: PHOTOS = 3; */ ClientLibraryOrganization[ClientLibraryOrganization["PHOTOS"] = 3] = "PHOTOS"; /** * Street View Org. * * @generated from enum value: STREET_VIEW = 4; */ ClientLibraryOrganization[ClientLibraryOrganization["STREET_VIEW"] = 4] = "STREET_VIEW"; /** * Shopping Org. * * @generated from enum value: SHOPPING = 5; */ ClientLibraryOrganization[ClientLibraryOrganization["SHOPPING"] = 5] = "SHOPPING"; /** * Geo Org. * * @generated from enum value: GEO = 6; */ ClientLibraryOrganization[ClientLibraryOrganization["GEO"] = 6] = "GEO"; /** * Generative AI - https://developers.generativeai.google * * @generated from enum value: GENERATIVE_AI = 7; */ ClientLibraryOrganization[ClientLibraryOrganization["GENERATIVE_AI"] = 7] = "GENERATIVE_AI"; })(ClientLibraryOrganization || (exports.ClientLibraryOrganization = ClientLibraryOrganization = {})); /** * Describes the enum google.api.ClientLibraryOrganization. */ exports.ClientLibraryOrganizationSchema = (0, codegenv2_1.enumDesc)(exports.file_google_api_client, 0); /** * To where should client libraries be published? * * @generated from enum google.api.ClientLibraryDestination */ var ClientLibraryDestination; (function (ClientLibraryDestination) { /** * Client libraries will neither be generated nor published to package * managers. * * @generated from enum value: CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0; */ ClientLibraryDestination[ClientLibraryDestination["CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"] = 0] = "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"; /** * Generate the client library in a repo under github.com/googleapis, * but don't publish it to package managers. * * @generated from enum value: GITHUB = 10; */ ClientLibraryDestination[ClientLibraryDestination["GITHUB"] = 10] = "GITHUB"; /** * Publish the library to package managers like nuget.org and npmjs.com. * * @generated from enum value: PACKAGE_MANAGER = 20; */ ClientLibraryDestination[ClientLibraryDestination["PACKAGE_MANAGER"] = 20] = "PACKAGE_MANAGER"; })(ClientLibraryDestination || (exports.ClientLibraryDestination = ClientLibraryDestination = {})); /** * Describes the enum google.api.ClientLibraryDestination. */ exports.ClientLibraryDestinationSchema = (0, codegenv2_1.enumDesc)(exports.file_google_api_client, 1); /** * A definition of a client library method signature. * * In client libraries, each proto RPC corresponds to one or more methods * which the end user is able to call, and calls the underlying RPC. * Normally, this method receives a single argument (a struct or instance * corresponding to the RPC request object). Defining this field will * add one or more overloads providing flattened or simpler method signatures * in some languages. * * The fields on the method signature are provided as a comma-separated * string. * * For example, the proto RPC and annotation: * * rpc CreateSubscription(CreateSubscriptionRequest) * returns (Subscription) { * option (google.api.method_signature) = "name,topic"; * } * * Would add the following Java overload (in addition to the method accepting * the request object): * * public final Subscription createSubscription(String name, String topic) * * The following backwards-compatibility guidelines apply: * * * Adding this annotation to an unannotated method is backwards * compatible. * * Adding this annotation to a method which already has existing * method signature annotations is backwards compatible if and only if * the new method signature annotation is last in the sequence. * * Modifying or removing an existing method signature annotation is * a breaking change. * * Re-ordering existing method signature annotations is a breaking * change. * * @generated from extension: repeated string method_signature = 1051; */ exports.method_signature = (0, codegenv2_1.extDesc)(exports.file_google_api_client, 0); /** * The hostname for this service. * This should be specified with no prefix or protocol. * * Example: * * service Foo { * option (google.api.default_host) = "foo.googleapi.com"; * ... * } * * @generated from extension: string default_host = 1049; */ exports.default_host = (0, codegenv2_1.extDesc)(exports.file_google_api_client, 1); /** * OAuth scopes needed for the client. * * Example: * * service Foo { * option (google.api.oauth_scopes) = \ * "https://www.googleapis.com/auth/cloud-platform"; * ... * } * * If there is more than one scope, use a comma-separated string: * * Example: * * service Foo { * option (google.api.oauth_scopes) = \ * "https://www.googleapis.com/auth/cloud-platform," * "https://www.googleapis.com/auth/monitoring"; * ... * } * * @generated from extension: string oauth_scopes = 1050; */ exports.oauth_scopes = (0, codegenv2_1.extDesc)(exports.file_google_api_client, 2); /** * The API version of this service, which should be sent by version-aware * clients to the service. This allows services to abide by the schema and * behavior of the service at the time this API version was deployed. * The format of the API version must be treated as opaque by clients. * Services may use a format with an apparent structure, but clients must * not rely on this to determine components within an API version, or attempt * to construct other valid API versions. Note that this is for upcoming * functionality and may not be implemented for all services. * * Example: * * service Foo { * option (google.api.api_version) = "v1_20230821_preview"; * } * * @generated from extension: string api_version = 525000001; */ exports.api_version = (0, codegenv2_1.extDesc)(exports.file_google_api_client, 3); //# sourceMappingURL=client_pb.js.map