コード例 #1
0
 public void MergeFrom(GenerateKeywordIdeaResult other) {
   if (other == null) {
     return;
   }
   if (other.text_ != null) {
     if (text_ == null || other.Text != "") {
       Text = other.Text;
     }
   }
   if (other.keywordIdeaMetrics_ != null) {
     if (keywordIdeaMetrics_ == null) {
       keywordIdeaMetrics_ = new global::Google.Ads.GoogleAds.V0.Common.KeywordPlanHistoricalMetrics();
     }
     KeywordIdeaMetrics.MergeFrom(other.KeywordIdeaMetrics);
   }
   _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #2
0
 public void MergeFrom(pb::CodedInputStream input) {
   uint tag;
   while ((tag = input.ReadTag()) != 0) {
     switch(tag) {
       default:
         _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
         break;
       case 18: {
         string value = _single_text_codec.Read(input);
         if (text_ == null || value != "") {
           Text = value;
         }
         break;
       }
       case 26: {
         if (keywordIdeaMetrics_ == null) {
           keywordIdeaMetrics_ = new global::Google.Ads.GoogleAds.V0.Common.KeywordPlanHistoricalMetrics();
         }
         input.ReadMessage(keywordIdeaMetrics_);
         break;
       }
     }
   }
 }