Beispiel #1
0
 public void MergeFrom(CampaignSharedSet other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ResourceName.Length != 0)
     {
         ResourceName = other.ResourceName;
     }
     if (other.campaign_ != null)
     {
         if (campaign_ == null || other.Campaign != "")
         {
             Campaign = other.Campaign;
         }
     }
     if (other.sharedSet_ != null)
     {
         if (sharedSet_ == null || other.SharedSet != "")
         {
             SharedSet = other.SharedSet;
         }
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #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 10: {
                    ResourceName = input.ReadString();
                    break;
                }

                case 16: {
                    status_ = (global::Google.Ads.GoogleAds.V1.Enums.CampaignSharedSetStatusEnum.Types.CampaignSharedSetStatus)input.ReadEnum();
                    break;
                }

                case 26: {
                    string value = _single_campaign_codec.Read(input);
                    if (campaign_ == null || value != "")
                    {
                        Campaign = value;
                    }
                    break;
                }

                case 34: {
                    string value = _single_sharedSet_codec.Read(input);
                    if (sharedSet_ == null || value != "")
                    {
                        SharedSet = value;
                    }
                    break;
                }
                }
            }
        }