UNPKG

google-ads-node

Version:

Google Ads gRPC Client Library for Node

1 lines 2.29 kB
"use strict";var grpc=require("grpc"),google_ads_googleads_v2_services_distance_view_service_pb=require("../../../../../google/ads/googleads/v2/services/distance_view_service_pb.js"),google_ads_googleads_v2_resources_distance_view_pb=require("../../../../../google/ads/googleads/v2/resources/distance_view_pb.js"),google_api_annotations_pb=require("../../../../../google/api/annotations_pb.js"),google_api_client_pb=require("../../../../../google/api/client_pb.js");function serialize_google_ads_googleads_v2_resources_DistanceView(arg){if(!(arg instanceof google_ads_googleads_v2_resources_distance_view_pb.DistanceView))throw new Error("Expected argument of type google.ads.googleads.v2.resources.DistanceView");return Buffer.from(arg.serializeBinary())}function deserialize_google_ads_googleads_v2_resources_DistanceView(buffer_arg){return google_ads_googleads_v2_resources_distance_view_pb.DistanceView.deserializeBinary(new Uint8Array(buffer_arg))}function serialize_google_ads_googleads_v2_services_GetDistanceViewRequest(arg){if(!(arg instanceof google_ads_googleads_v2_services_distance_view_service_pb.GetDistanceViewRequest))throw new Error("Expected argument of type google.ads.googleads.v2.services.GetDistanceViewRequest");return Buffer.from(arg.serializeBinary())}function deserialize_google_ads_googleads_v2_services_GetDistanceViewRequest(buffer_arg){return google_ads_googleads_v2_services_distance_view_service_pb.GetDistanceViewRequest.deserializeBinary(new Uint8Array(buffer_arg))}var DistanceViewServiceService=exports.DistanceViewServiceService={getDistanceView:{path:"/google.ads.googleads.v2.services.DistanceViewService/GetDistanceView",requestStream:!1,responseStream:!1,requestType:google_ads_googleads_v2_services_distance_view_service_pb.GetDistanceViewRequest,responseType:google_ads_googleads_v2_resources_distance_view_pb.DistanceView,requestSerialize:serialize_google_ads_googleads_v2_services_GetDistanceViewRequest,requestDeserialize:deserialize_google_ads_googleads_v2_services_GetDistanceViewRequest,responseSerialize:serialize_google_ads_googleads_v2_resources_DistanceView,responseDeserialize:deserialize_google_ads_googleads_v2_resources_DistanceView}};exports.DistanceViewServiceClient=grpc.makeGenericClientConstructor(DistanceViewServiceService);