UNPKG

google-ads-node

Version:

Google Ads gRPC Client Library for Node

1 lines 2.39 kB
"use strict";var grpc=require("grpc"),google_ads_googleads_v2_services_carrier_constant_service_pb=require("../../../../../google/ads/googleads/v2/services/carrier_constant_service_pb.js"),google_ads_googleads_v2_resources_carrier_constant_pb=require("../../../../../google/ads/googleads/v2/resources/carrier_constant_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_CarrierConstant(arg){if(!(arg instanceof google_ads_googleads_v2_resources_carrier_constant_pb.CarrierConstant))throw new Error("Expected argument of type google.ads.googleads.v2.resources.CarrierConstant");return Buffer.from(arg.serializeBinary())}function deserialize_google_ads_googleads_v2_resources_CarrierConstant(buffer_arg){return google_ads_googleads_v2_resources_carrier_constant_pb.CarrierConstant.deserializeBinary(new Uint8Array(buffer_arg))}function serialize_google_ads_googleads_v2_services_GetCarrierConstantRequest(arg){if(!(arg instanceof google_ads_googleads_v2_services_carrier_constant_service_pb.GetCarrierConstantRequest))throw new Error("Expected argument of type google.ads.googleads.v2.services.GetCarrierConstantRequest");return Buffer.from(arg.serializeBinary())}function deserialize_google_ads_googleads_v2_services_GetCarrierConstantRequest(buffer_arg){return google_ads_googleads_v2_services_carrier_constant_service_pb.GetCarrierConstantRequest.deserializeBinary(new Uint8Array(buffer_arg))}var CarrierConstantServiceService=exports.CarrierConstantServiceService={getCarrierConstant:{path:"/google.ads.googleads.v2.services.CarrierConstantService/GetCarrierConstant",requestStream:!1,responseStream:!1,requestType:google_ads_googleads_v2_services_carrier_constant_service_pb.GetCarrierConstantRequest,responseType:google_ads_googleads_v2_resources_carrier_constant_pb.CarrierConstant,requestSerialize:serialize_google_ads_googleads_v2_services_GetCarrierConstantRequest,requestDeserialize:deserialize_google_ads_googleads_v2_services_GetCarrierConstantRequest,responseSerialize:serialize_google_ads_googleads_v2_resources_CarrierConstant,responseDeserialize:deserialize_google_ads_googleads_v2_resources_CarrierConstant}};exports.CarrierConstantServiceClient=grpc.makeGenericClientConstructor(CarrierConstantServiceService);