UNPKG

@google-cloud/datastream

Version:
789 lines (708 loc) 4.91 MB
// 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. /*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ (function(global, factory) { /* global define, require, module */ /* AMD */ if (typeof define === 'function' && define.amd) define(["protobufjs/minimal"], factory); /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal); })(this, function($protobuf) { "use strict"; // Common aliases var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; // Exported root namespace var $root = $protobuf.roots._google_cloud_datastream_protos || ($protobuf.roots._google_cloud_datastream_protos = {}); $root.google = (function() { /** * Namespace google. * @exports google * @namespace */ var google = {}; google.cloud = (function() { /** * Namespace cloud. * @memberof google * @namespace */ var cloud = {}; cloud.datastream = (function() { /** * Namespace datastream. * @memberof google.cloud * @namespace */ var datastream = {}; datastream.v1 = (function() { /** * Namespace v1. * @memberof google.cloud.datastream * @namespace */ var v1 = {}; v1.Datastream = (function() { /** * Constructs a new Datastream service. * @memberof google.cloud.datastream.v1 * @classdesc Represents a Datastream * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ function Datastream(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } (Datastream.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Datastream; /** * Creates new Datastream service using the specified rpc implementation. * @function create * @memberof google.cloud.datastream.v1.Datastream * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited * @returns {Datastream} RPC service. Useful where requests and/or responses are streamed. */ Datastream.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|listConnectionProfiles}. * @memberof google.cloud.datastream.v1.Datastream * @typedef ListConnectionProfilesCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.datastream.v1.ListConnectionProfilesResponse} [response] ListConnectionProfilesResponse */ /** * Calls ListConnectionProfiles. * @function listConnectionProfiles * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IListConnectionProfilesRequest} request ListConnectionProfilesRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.ListConnectionProfilesCallback} callback Node-style callback called with the error, if any, and ListConnectionProfilesResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.listConnectionProfiles = function listConnectionProfiles(request, callback) { return this.rpcCall(listConnectionProfiles, $root.google.cloud.datastream.v1.ListConnectionProfilesRequest, $root.google.cloud.datastream.v1.ListConnectionProfilesResponse, request, callback); }, "name", { value: "ListConnectionProfiles" }); /** * Calls ListConnectionProfiles. * @function listConnectionProfiles * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IListConnectionProfilesRequest} request ListConnectionProfilesRequest message or plain object * @returns {Promise<google.cloud.datastream.v1.ListConnectionProfilesResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|getConnectionProfile}. * @memberof google.cloud.datastream.v1.Datastream * @typedef GetConnectionProfileCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.datastream.v1.ConnectionProfile} [response] ConnectionProfile */ /** * Calls GetConnectionProfile. * @function getConnectionProfile * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IGetConnectionProfileRequest} request GetConnectionProfileRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.GetConnectionProfileCallback} callback Node-style callback called with the error, if any, and ConnectionProfile * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.getConnectionProfile = function getConnectionProfile(request, callback) { return this.rpcCall(getConnectionProfile, $root.google.cloud.datastream.v1.GetConnectionProfileRequest, $root.google.cloud.datastream.v1.ConnectionProfile, request, callback); }, "name", { value: "GetConnectionProfile" }); /** * Calls GetConnectionProfile. * @function getConnectionProfile * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IGetConnectionProfileRequest} request GetConnectionProfileRequest message or plain object * @returns {Promise<google.cloud.datastream.v1.ConnectionProfile>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|createConnectionProfile}. * @memberof google.cloud.datastream.v1.Datastream * @typedef CreateConnectionProfileCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls CreateConnectionProfile. * @function createConnectionProfile * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.ICreateConnectionProfileRequest} request CreateConnectionProfileRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.CreateConnectionProfileCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.createConnectionProfile = function createConnectionProfile(request, callback) { return this.rpcCall(createConnectionProfile, $root.google.cloud.datastream.v1.CreateConnectionProfileRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "CreateConnectionProfile" }); /** * Calls CreateConnectionProfile. * @function createConnectionProfile * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.ICreateConnectionProfileRequest} request CreateConnectionProfileRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|updateConnectionProfile}. * @memberof google.cloud.datastream.v1.Datastream * @typedef UpdateConnectionProfileCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls UpdateConnectionProfile. * @function updateConnectionProfile * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IUpdateConnectionProfileRequest} request UpdateConnectionProfileRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.UpdateConnectionProfileCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.updateConnectionProfile = function updateConnectionProfile(request, callback) { return this.rpcCall(updateConnectionProfile, $root.google.cloud.datastream.v1.UpdateConnectionProfileRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "UpdateConnectionProfile" }); /** * Calls UpdateConnectionProfile. * @function updateConnectionProfile * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IUpdateConnectionProfileRequest} request UpdateConnectionProfileRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|deleteConnectionProfile}. * @memberof google.cloud.datastream.v1.Datastream * @typedef DeleteConnectionProfileCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls DeleteConnectionProfile. * @function deleteConnectionProfile * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IDeleteConnectionProfileRequest} request DeleteConnectionProfileRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.DeleteConnectionProfileCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.deleteConnectionProfile = function deleteConnectionProfile(request, callback) { return this.rpcCall(deleteConnectionProfile, $root.google.cloud.datastream.v1.DeleteConnectionProfileRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "DeleteConnectionProfile" }); /** * Calls DeleteConnectionProfile. * @function deleteConnectionProfile * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IDeleteConnectionProfileRequest} request DeleteConnectionProfileRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|discoverConnectionProfile}. * @memberof google.cloud.datastream.v1.Datastream * @typedef DiscoverConnectionProfileCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.datastream.v1.DiscoverConnectionProfileResponse} [response] DiscoverConnectionProfileResponse */ /** * Calls DiscoverConnectionProfile. * @function discoverConnectionProfile * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IDiscoverConnectionProfileRequest} request DiscoverConnectionProfileRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.DiscoverConnectionProfileCallback} callback Node-style callback called with the error, if any, and DiscoverConnectionProfileResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.discoverConnectionProfile = function discoverConnectionProfile(request, callback) { return this.rpcCall(discoverConnectionProfile, $root.google.cloud.datastream.v1.DiscoverConnectionProfileRequest, $root.google.cloud.datastream.v1.DiscoverConnectionProfileResponse, request, callback); }, "name", { value: "DiscoverConnectionProfile" }); /** * Calls DiscoverConnectionProfile. * @function discoverConnectionProfile * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IDiscoverConnectionProfileRequest} request DiscoverConnectionProfileRequest message or plain object * @returns {Promise<google.cloud.datastream.v1.DiscoverConnectionProfileResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|listStreams}. * @memberof google.cloud.datastream.v1.Datastream * @typedef ListStreamsCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.datastream.v1.ListStreamsResponse} [response] ListStreamsResponse */ /** * Calls ListStreams. * @function listStreams * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IListStreamsRequest} request ListStreamsRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.ListStreamsCallback} callback Node-style callback called with the error, if any, and ListStreamsResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.listStreams = function listStreams(request, callback) { return this.rpcCall(listStreams, $root.google.cloud.datastream.v1.ListStreamsRequest, $root.google.cloud.datastream.v1.ListStreamsResponse, request, callback); }, "name", { value: "ListStreams" }); /** * Calls ListStreams. * @function listStreams * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IListStreamsRequest} request ListStreamsRequest message or plain object * @returns {Promise<google.cloud.datastream.v1.ListStreamsResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|getStream}. * @memberof google.cloud.datastream.v1.Datastream * @typedef GetStreamCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.datastream.v1.Stream} [response] Stream */ /** * Calls GetStream. * @function getStream * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IGetStreamRequest} request GetStreamRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.GetStreamCallback} callback Node-style callback called with the error, if any, and Stream * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.getStream = function getStream(request, callback) { return this.rpcCall(getStream, $root.google.cloud.datastream.v1.GetStreamRequest, $root.google.cloud.datastream.v1.Stream, request, callback); }, "name", { value: "GetStream" }); /** * Calls GetStream. * @function getStream * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IGetStreamRequest} request GetStreamRequest message or plain object * @returns {Promise<google.cloud.datastream.v1.Stream>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|createStream}. * @memberof google.cloud.datastream.v1.Datastream * @typedef CreateStreamCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls CreateStream. * @function createStream * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.ICreateStreamRequest} request CreateStreamRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.CreateStreamCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.createStream = function createStream(request, callback) { return this.rpcCall(createStream, $root.google.cloud.datastream.v1.CreateStreamRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "CreateStream" }); /** * Calls CreateStream. * @function createStream * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.ICreateStreamRequest} request CreateStreamRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|updateStream}. * @memberof google.cloud.datastream.v1.Datastream * @typedef UpdateStreamCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls UpdateStream. * @function updateStream * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IUpdateStreamRequest} request UpdateStreamRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.UpdateStreamCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.updateStream = function updateStream(request, callback) { return this.rpcCall(updateStream, $root.google.cloud.datastream.v1.UpdateStreamRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "UpdateStream" }); /** * Calls UpdateStream. * @function updateStream * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IUpdateStreamRequest} request UpdateStreamRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|deleteStream}. * @memberof google.cloud.datastream.v1.Datastream * @typedef DeleteStreamCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls DeleteStream. * @function deleteStream * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IDeleteStreamRequest} request DeleteStreamRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.DeleteStreamCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.deleteStream = function deleteStream(request, callback) { return this.rpcCall(deleteStream, $root.google.cloud.datastream.v1.DeleteStreamRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "DeleteStream" }); /** * Calls DeleteStream. * @function deleteStream * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IDeleteStreamRequest} request DeleteStreamRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|runStream}. * @memberof google.cloud.datastream.v1.Datastream * @typedef RunStreamCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls RunStream. * @function runStream * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IRunStreamRequest} request RunStreamRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.RunStreamCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.runStream = function runStream(request, callback) { return this.rpcCall(runStream, $root.google.cloud.datastream.v1.RunStreamRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "RunStream" }); /** * Calls RunStream. * @function runStream * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IRunStreamRequest} request RunStreamRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|getStreamObject}. * @memberof google.cloud.datastream.v1.Datastream * @typedef GetStreamObjectCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.datastream.v1.StreamObject} [response] StreamObject */ /** * Calls GetStreamObject. * @function getStreamObject * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IGetStreamObjectRequest} request GetStreamObjectRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.GetStreamObjectCallback} callback Node-style callback called with the error, if any, and StreamObject * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.getStreamObject = function getStreamObject(request, callback) { return this.rpcCall(getStreamObject, $root.google.cloud.datastream.v1.GetStreamObjectRequest, $root.google.cloud.datastream.v1.StreamObject, request, callback); }, "name", { value: "GetStreamObject" }); /** * Calls GetStreamObject. * @function getStreamObject * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IGetStreamObjectRequest} request GetStreamObjectRequest message or plain object * @returns {Promise<google.cloud.datastream.v1.StreamObject>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|lookupStreamObject}. * @memberof google.cloud.datastream.v1.Datastream * @typedef LookupStreamObjectCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.datastream.v1.StreamObject} [response] StreamObject */ /** * Calls LookupStreamObject. * @function lookupStreamObject * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.ILookupStreamObjectRequest} request LookupStreamObjectRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.LookupStreamObjectCallback} callback Node-style callback called with the error, if any, and StreamObject * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.lookupStreamObject = function lookupStreamObject(request, callback) { return this.rpcCall(lookupStreamObject, $root.google.cloud.datastream.v1.LookupStreamObjectRequest, $root.google.cloud.datastream.v1.StreamObject, request, callback); }, "name", { value: "LookupStreamObject" }); /** * Calls LookupStreamObject. * @function lookupStreamObject * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.ILookupStreamObjectRequest} request LookupStreamObjectRequest message or plain object * @returns {Promise<google.cloud.datastream.v1.StreamObject>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|listStreamObjects}. * @memberof google.cloud.datastream.v1.Datastream * @typedef ListStreamObjectsCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.datastream.v1.ListStreamObjectsResponse} [response] ListStreamObjectsResponse */ /** * Calls ListStreamObjects. * @function listStreamObjects * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IListStreamObjectsRequest} request ListStreamObjectsRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.ListStreamObjectsCallback} callback Node-style callback called with the error, if any, and ListStreamObjectsResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.listStreamObjects = function listStreamObjects(request, callback) { return this.rpcCall(listStreamObjects, $root.google.cloud.datastream.v1.ListStreamObjectsRequest, $root.google.cloud.datastream.v1.ListStreamObjectsResponse, request, callback); }, "name", { value: "ListStreamObjects" }); /** * Calls ListStreamObjects. * @function listStreamObjects * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IListStreamObjectsRequest} request ListStreamObjectsRequest message or plain object * @returns {Promise<google.cloud.datastream.v1.ListStreamObjectsResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|startBackfillJob}. * @memberof google.cloud.datastream.v1.Datastream * @typedef StartBackfillJobCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.datastream.v1.StartBackfillJobResponse} [response] StartBackfillJobResponse */ /** * Calls StartBackfillJob. * @function startBackfillJob * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IStartBackfillJobRequest} request StartBackfillJobRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.StartBackfillJobCallback} callback Node-style callback called with the error, if any, and StartBackfillJobResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.startBackfillJob = function startBackfillJob(request, callback) { return this.rpcCall(startBackfillJob, $root.google.cloud.datastream.v1.StartBackfillJobRequest, $root.google.cloud.datastream.v1.StartBackfillJobResponse, request, callback); }, "name", { value: "StartBackfillJob" }); /** * Calls StartBackfillJob. * @function startBackfillJob * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IStartBackfillJobRequest} request StartBackfillJobRequest message or plain object * @returns {Promise<google.cloud.datastream.v1.StartBackfillJobResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|stopBackfillJob}. * @memberof google.cloud.datastream.v1.Datastream * @typedef StopBackfillJobCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.datastream.v1.StopBackfillJobResponse} [response] StopBackfillJobResponse */ /** * Calls StopBackfillJob. * @function stopBackfillJob * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IStopBackfillJobRequest} request StopBackfillJobRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.StopBackfillJobCallback} callback Node-style callback called with the error, if any, and StopBackfillJobResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.stopBackfillJob = function stopBackfillJob(request, callback) { return this.rpcCall(stopBackfillJob, $root.google.cloud.datastream.v1.StopBackfillJobRequest, $root.google.cloud.datastream.v1.StopBackfillJobResponse, request, callback); }, "name", { value: "StopBackfillJob" }); /** * Calls StopBackfillJob. * @function stopBackfillJob * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IStopBackfillJobRequest} request StopBackfillJobRequest message or plain object * @returns {Promise<google.cloud.datastream.v1.StopBackfillJobResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|fetchStaticIps}. * @memberof google.cloud.datastream.v1.Datastream * @typedef FetchStaticIpsCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.datastream.v1.FetchStaticIpsResponse} [response] FetchStaticIpsResponse */ /** * Calls FetchStaticIps. * @function fetchStaticIps * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IFetchStaticIpsRequest} request FetchStaticIpsRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.FetchStaticIpsCallback} callback Node-style callback called with the error, if any, and FetchStaticIpsResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.fetchStaticIps = function fetchStaticIps(request, callback) { return this.rpcCall(fetchStaticIps, $root.google.cloud.datastream.v1.FetchStaticIpsRequest, $root.google.cloud.datastream.v1.FetchStaticIpsResponse, request, callback); }, "name", { value: "FetchStaticIps" }); /** * Calls FetchStaticIps. * @function fetchStaticIps * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IFetchStaticIpsRequest} request FetchStaticIpsRequest message or plain object * @returns {Promise<google.cloud.datastream.v1.FetchStaticIpsResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|createPrivateConnection}. * @memberof google.cloud.datastream.v1.Datastream * @typedef CreatePrivateConnectionCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls CreatePrivateConnection. * @function createPrivateConnection * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.ICreatePrivateConnectionRequest} request CreatePrivateConnectionRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.CreatePrivateConnectionCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.createPrivateConnection = function createPrivateConnection(request, callback) { return this.rpcCall(createPrivateConnection, $root.google.cloud.datastream.v1.CreatePrivateConnectionRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "CreatePrivateConnection" }); /** * Calls CreatePrivateConnection. * @function createPrivateConnection * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.ICreatePrivateConnectionRequest} request CreatePrivateConnectionRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|getPrivateConnection}. * @memberof google.cloud.datastream.v1.Datastream * @typedef GetPrivateConnectionCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.datastream.v1.PrivateConnection} [response] PrivateConnection */ /** * Calls GetPrivateConnection. * @function getPrivateConnection * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IGetPrivateConnectionRequest} request GetPrivateConnectionRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.GetPrivateConnectionCallback} callback Node-style callback called with the error, if any, and PrivateConnection * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.getPrivateConnection = function getPrivateConnection(request, callback) { return this.rpcCall(getPrivateConnection, $root.google.cloud.datastream.v1.GetPrivateConnectionRequest, $root.google.cloud.datastream.v1.PrivateConnection, request, callback); }, "name", { value: "GetPrivateConnection" }); /** * Calls GetPrivateConnection. * @function getPrivateConnection * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IGetPrivateConnectionRequest} request GetPrivateConnectionRequest message or plain object * @returns {Promise<google.cloud.datastream.v1.PrivateConnection>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.datastream.v1.Datastream|listPrivateConnections}. * @memberof google.cloud.datastream.v1.Datastream * @typedef ListPrivateConnectionsCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.datastream.v1.ListPrivateConnectionsResponse} [response] ListPrivateConnectionsResponse */ /** * Calls ListPrivateConnections. * @function listPrivateConnections * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IListPrivateConnectionsRequest} request ListPrivateConnectionsRequest message or plain object * @param {google.cloud.datastream.v1.Datastream.ListPrivateConnectionsCallback} callback Node-style callback called with the error, if any, and ListPrivateConnectionsResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Datastream.prototype.listPrivateConnections = function listPrivateConnections(request, callback) { return this.rpcCall(listPrivateConnections, $root.google.cloud.datastream.v1.ListPrivateConnectionsRequest, $root.google.cloud.datastream.v1.ListPrivateConnectionsResponse, request, callback); }, "name", { value: "ListPrivateConnections" }); /** * Calls ListPrivateConnections. * @function listPrivateConnections * @memberof google.cloud.datastream.v1.Datastream * @instance * @param {google.cloud.datastream.v1.IListPrivateConnectionsRequest} request ListPrivateConnectionsRequest messag