public AdditionalContactList.Builder SetLinkedinContactItem(LinkedinContactItem value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasLinkedinContactItem = true;
     this.result.linkedinContactItem_   = value;
     return(this);
 }
 public AdditionalContactList.Builder MergeLinkedinContactItem(LinkedinContactItem value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasLinkedinContactItem && (this.result.linkedinContactItem_ != LinkedinContactItem.DefaultInstance))
     {
         this.result.linkedinContactItem_ = LinkedinContactItem.CreateBuilder(this.result.linkedinContactItem_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.linkedinContactItem_ = value;
     }
     this.result.hasLinkedinContactItem = true;
     return(this);
 }
            public override AdditionalContactList.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                while (input.ReadTag(out num, out str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(AdditionalContactList._additionalContactListFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = AdditionalContactList._additionalContactListFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                    {
                        LinkedinContactItem.Builder builder = LinkedinContactItem.CreateBuilder();
                        if (this.result.hasLinkedinContactItem)
                        {
                            builder.MergeFrom(this.LinkedinContactItem);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.LinkedinContactItem = builder.BuildPartial();
                        continue;
                    }
                    }
                    if (WireFormat.IsEndGroupTag(num))
                    {
                        return(this);
                    }
                    this.ParseUnknownField(input, extensionRegistry, num, str);
                }
                return(this);
            }