Exemple #1
0
 public void MergeFrom(Experiment other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ResourceName.Length != 0)
     {
         ResourceName = other.ResourceName;
     }
     if (other.HasExperimentId)
     {
         ExperimentId = other.ExperimentId;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.Suffix.Length != 0)
     {
         Suffix = other.Suffix;
     }
     if (other.Type != global::Google.Ads.GoogleAds.V10.Enums.ExperimentTypeEnum.Types.ExperimentType.Unspecified)
     {
         Type = other.Type;
     }
     if (other.Status != global::Google.Ads.GoogleAds.V10.Enums.ExperimentStatusEnum.Types.ExperimentStatus.Unspecified)
     {
         Status = other.Status;
     }
     if (other.HasStartDate)
     {
         StartDate = other.StartDate;
     }
     if (other.HasEndDate)
     {
         EndDate = other.EndDate;
     }
     goals_.Add(other.goals_);
     if (other.HasLongRunningOperation)
     {
         LongRunningOperation = other.LongRunningOperation;
     }
     if (other.PromoteStatus != global::Google.Ads.GoogleAds.V10.Enums.AsyncActionStatusEnum.Types.AsyncActionStatus.Unspecified)
     {
         PromoteStatus = other.PromoteStatus;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemple #2
0
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
                    break;

                case 10: {
                    ResourceName = input.ReadString();
                    break;
                }

                case 72: {
                    ExperimentId = input.ReadInt64();
                    break;
                }

                case 82: {
                    Name = input.ReadString();
                    break;
                }

                case 90: {
                    Description = input.ReadString();
                    break;
                }

                case 98: {
                    Suffix = input.ReadString();
                    break;
                }

                case 104: {
                    Type = (global::Google.Ads.GoogleAds.V10.Enums.ExperimentTypeEnum.Types.ExperimentType)input.ReadEnum();
                    break;
                }

                case 112: {
                    Status = (global::Google.Ads.GoogleAds.V10.Enums.ExperimentStatusEnum.Types.ExperimentStatus)input.ReadEnum();
                    break;
                }

                case 122: {
                    StartDate = input.ReadString();
                    break;
                }

                case 130: {
                    EndDate = input.ReadString();
                    break;
                }

                case 138: {
                    goals_.AddEntriesFrom(ref input, _repeated_goals_codec);
                    break;
                }

                case 146: {
                    LongRunningOperation = input.ReadString();
                    break;
                }

                case 152: {
                    PromoteStatus = (global::Google.Ads.GoogleAds.V10.Enums.AsyncActionStatusEnum.Types.AsyncActionStatus)input.ReadEnum();
                    break;
                }
                }
            }
        }
Exemple #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
            input.ReadRawMessage(this);
    #else
            uint tag;
            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    ResourceName = input.ReadString();
                    break;
                }

                case 72: {
                    ExperimentId = input.ReadInt64();
                    break;
                }

                case 82: {
                    Name = input.ReadString();
                    break;
                }

                case 90: {
                    Description = input.ReadString();
                    break;
                }

                case 98: {
                    Suffix = input.ReadString();
                    break;
                }

                case 104: {
                    Type = (global::Google.Ads.GoogleAds.V10.Enums.ExperimentTypeEnum.Types.ExperimentType)input.ReadEnum();
                    break;
                }

                case 112: {
                    Status = (global::Google.Ads.GoogleAds.V10.Enums.ExperimentStatusEnum.Types.ExperimentStatus)input.ReadEnum();
                    break;
                }

                case 122: {
                    StartDate = input.ReadString();
                    break;
                }

                case 130: {
                    EndDate = input.ReadString();
                    break;
                }

                case 138: {
                    goals_.AddEntriesFrom(input, _repeated_goals_codec);
                    break;
                }

                case 146: {
                    LongRunningOperation = input.ReadString();
                    break;
                }

                case 152: {
                    PromoteStatus = (global::Google.Ads.GoogleAds.V10.Enums.AsyncActionStatusEnum.Types.AsyncActionStatus)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }