public AdditionalContactList.Builder SetLinkedinContactItem(LinkedinContactItem.Builder builderForValue) { ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); this.PrepareBuilder(); this.result.hasLinkedinContactItem = true; this.result.linkedinContactItem_ = builderForValue.Build(); 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); }