public void MergeFrom(CompleteQueryRequest other) { if (other == null) { return; } if (other.Tenant.Length != 0) { Tenant = other.Tenant; } if (other.Query.Length != 0) { Query = other.Query; } languageCodes_.Add(other.languageCodes_); if (other.PageSize != 0) { PageSize = other.PageSize; } if (other.Company.Length != 0) { Company = other.Company; } if (other.Scope != global::Google.Cloud.Talent.V4.CompleteQueryRequest.Types.CompletionScope.Unspecified) { Scope = other.Scope; } if (other.Type != global::Google.Cloud.Talent.V4.CompleteQueryRequest.Types.CompletionType.Unspecified) { Type = other.Type; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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: { Tenant = input.ReadString(); break; } case 18: { Query = input.ReadString(); break; } case 26: { languageCodes_.AddEntriesFrom(input, _repeated_languageCodes_codec); break; } case 32: { PageSize = input.ReadInt32(); break; } case 42: { Company = input.ReadString(); break; } case 48: { Scope = (global::Google.Cloud.Talent.V4.CompleteQueryRequest.Types.CompletionScope)input.ReadEnum(); break; } case 56: { Type = (global::Google.Cloud.Talent.V4.CompleteQueryRequest.Types.CompletionType)input.ReadEnum(); break; } } } #endif }
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: { Tenant = input.ReadString(); break; } case 18: { Query = input.ReadString(); break; } case 26: { languageCodes_.AddEntriesFrom(ref input, _repeated_languageCodes_codec); break; } case 32: { PageSize = input.ReadInt32(); break; } case 42: { Company = input.ReadString(); break; } case 48: { Scope = (global::Google.Cloud.Talent.V4.CompleteQueryRequest.Types.CompletionScope)input.ReadEnum(); break; } case 56: { Type = (global::Google.Cloud.Talent.V4.CompleteQueryRequest.Types.CompletionType)input.ReadEnum(); break; } } } }