How to use the google-protobuf/google/protobuf/wrappers_pb.js.StringValue function in google-protobuf

To help you get started, we’ve selected a few google-protobuf examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Opteo / google-ads-node / src / protos / google / ads / googleads / v1 / common / criterion_category_availability_pb.js View on Github external
proto.google.ads.googleads.v1.common.CriterionCategoryLocaleAvailability.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = /** @type {!proto.google.ads.googleads.v1.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode} */ (reader.readEnum());
      msg.setAvailabilityMode(value);
      break;
    case 2:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.setCountryCode(value);
      break;
    case 3:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.setLanguageCode(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};
github Opteo / google-ads-node / src / protos / google / ads / googleads / v1 / common / segments_pb.js View on Github external
var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.setProductCustomAttribute2(value);
      break;
    case 37:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.setProductCustomAttribute3(value);
      break;
    case 38:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.setProductCustomAttribute4(value);
      break;
    case 39:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.setProductItemId(value);
      break;
    case 40:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.setProductLanguage(value);
      break;
    case 41:
      var value = new google_protobuf_wrappers_pb.UInt64Value;
      reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
      msg.setProductMerchantId(value);
      break;
    case 42:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
github Opteo / google-ads-node / src / protos / google / ads / googleads / v1 / common / policy_pb.js View on Github external
proto.google.ads.googleads.v1.common.PolicyTopicEvidence.WebsiteList.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.addWebsites(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};
github Opteo / google-ads-node / src / protos / google / ads / googleads / v1 / services / conversion_adjustment_upload_service_pb.js View on Github external
proto.google.ads.googleads.v1.services.RestatementValue.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new google_protobuf_wrappers_pb.DoubleValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader);
      msg.setAdjustedValue(value);
      break;
    case 2:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.setCurrencyCode(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};
github Opteo / google-ads-node / src / protos / google / ads / googleads / v1 / resources / ad_pb.js View on Github external
case 19:
      var value = new google_protobuf_wrappers_pb.BoolValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader);
      msg.setAddedByGoogleAds(value);
      break;
    case 20:
      var value = /** @type {!proto.google.ads.googleads.v1.enums.DeviceEnum.Device} */ (reader.readEnum());
      msg.setDevicePreference(value);
      break;
    case 26:
      var value = new google_ads_googleads_v1_common_url_collection_pb.UrlCollection;
      reader.readMessage(value,google_ads_googleads_v1_common_url_collection_pb.UrlCollection.deserializeBinaryFromReader);
      msg.addUrlCollections(value);
      break;
    case 23:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.setName(value);
      break;
    case 27:
      var value = /** @type {!proto.google.ads.googleads.v1.enums.SystemManagedResourceSourceEnum.SystemManagedResourceSource} */ (reader.readEnum());
      msg.setSystemManagedResourceSource(value);
      break;
    case 6:
      var value = new google_ads_googleads_v1_common_ad_type_infos_pb.TextAdInfo;
      reader.readMessage(value,google_ads_googleads_v1_common_ad_type_infos_pb.TextAdInfo.deserializeBinaryFromReader);
      msg.setTextAd(value);
      break;
    case 7:
      var value = new google_ads_googleads_v1_common_ad_type_infos_pb.ExpandedTextAdInfo;
      reader.readMessage(value,google_ads_googleads_v1_common_ad_type_infos_pb.ExpandedTextAdInfo.deserializeBinaryFromReader);
      msg.setExpandedTextAd(value);
github Opteo / google-ads-node / src / protos / google / ads / googleads / v1 / common / policy_pb.js View on Github external
proto.google.ads.googleads.v1.common.PolicyValidationParameter.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.addIgnorablePolicyTopics(value);
      break;
    case 2:
      var value = new proto.google.ads.googleads.v1.common.PolicyViolationKey;
      reader.readMessage(value,proto.google.ads.googleads.v1.common.PolicyViolationKey.deserializeBinaryFromReader);
      msg.addExemptPolicyViolationKeys(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};
github Opteo / google-ads-node / src / protos / google / ads / googleads / v1 / common / policy_pb.js View on Github external
proto.google.ads.googleads.v1.common.PolicyTopicEvidence.DestinationNotWorking.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 3:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.setExpandedUrl(value);
      break;
    case 4:
      var value = /** @type {!proto.google.ads.googleads.v1.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.PolicyTopicEvidenceDestinationNotWorkingDevice} */ (reader.readEnum());
      msg.setDevice(value);
      break;
    case 5:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.setLastCheckedDateTime(value);
      break;
    default:
      reader.skipField();
      break;
    }
github Opteo / google-ads-node / src / protos / google / ads / googleads / v1 / resources / ad_pb.js View on Github external
var value = new google_protobuf_wrappers_pb.Int64Value;
      reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
      msg.setId(value);
      break;
    case 2:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.addFinalUrls(value);
      break;
    case 35:
      var value = new google_ads_googleads_v1_common_final_app_url_pb.FinalAppUrl;
      reader.readMessage(value,google_ads_googleads_v1_common_final_app_url_pb.FinalAppUrl.deserializeBinaryFromReader);
      msg.addFinalAppUrls(value);
      break;
    case 16:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.addFinalMobileUrls(value);
      break;
    case 12:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.setTrackingUrlTemplate(value);
      break;
    case 10:
      var value = new google_ads_googleads_v1_common_custom_parameter_pb.CustomParameter;
      reader.readMessage(value,google_ads_googleads_v1_common_custom_parameter_pb.CustomParameter.deserializeBinaryFromReader);
      msg.addUrlCustomParameters(value);
      break;
    case 4:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
github Opteo / google-ads-node / src / protos / google / ads / googleads / v1 / resources / mutate_job_pb.js View on Github external
case 3:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.setNextAddSequenceToken(value);
      break;
    case 4:
      var value = new proto.google.ads.googleads.v1.resources.MutateJob.MutateJobMetadata;
      reader.readMessage(value,proto.google.ads.googleads.v1.resources.MutateJob.MutateJobMetadata.deserializeBinaryFromReader);
      msg.setMetadata(value);
      break;
    case 5:
      var value = /** @type {!proto.google.ads.googleads.v1.enums.MutateJobStatusEnum.MutateJobStatus} */ (reader.readEnum());
      msg.setStatus(value);
      break;
    case 6:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.setLongRunningOperation(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};
github Opteo / google-ads-node / src / protos / google / ads / googleads / v1 / resources / campaign_criterion_pb.js View on Github external
proto.google.ads.googleads.v1.resources.CampaignCriterion.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = /** @type {string} */ (reader.readString());
      msg.setResourceName(value);
      break;
    case 4:
      var value = new google_protobuf_wrappers_pb.StringValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
      msg.setCampaign(value);
      break;
    case 5:
      var value = new google_protobuf_wrappers_pb.Int64Value;
      reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
      msg.setCriterionId(value);
      break;
    case 14:
      var value = new google_protobuf_wrappers_pb.FloatValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.FloatValue.deserializeBinaryFromReader);
      msg.setBidModifier(value);
      break;
    case 7:
      var value = new google_protobuf_wrappers_pb.BoolValue;
      reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader);

google-protobuf

Protocol Buffers for JavaScript

BSD-3-Clause
Latest version published 2 months ago

Package Health Score

89 / 100
Full package analysis