public void MergeFrom(Service other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Id.Length != 0) { Id = other.Id; } if (other.split_ != null) { if (split_ == null) { Split = new global::Google.Cloud.AppEngine.V1.TrafficSplit(); } Split.MergeFrom(other.Split); } if (other.networkSettings_ != null) { if (networkSettings_ == null) { NetworkSettings = new global::Google.Cloud.AppEngine.V1.NetworkSettings(); } NetworkSettings.MergeFrom(other.NetworkSettings); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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: { Name = input.ReadString(); break; } case 18: { Id = input.ReadString(); break; } case 26: { if (split_ == null) { Split = new global::Google.Cloud.AppEngine.V1.TrafficSplit(); } input.ReadMessage(Split); break; } } } }
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: { Name = input.ReadString(); break; } case 18: { Id = input.ReadString(); break; } case 26: { if (split_ == null) { Split = new global::Google.Cloud.AppEngine.V1.TrafficSplit(); } input.ReadMessage(Split); break; } case 50: { if (networkSettings_ == null) { NetworkSettings = new global::Google.Cloud.AppEngine.V1.NetworkSettings(); } input.ReadMessage(NetworkSettings); break; } } } #endif }