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: { if (resourceInfo_ == null) { ResourceInfo = new global::Google.Rpc.ResourceInfo(); } input.ReadMessage(ResourceInfo); break; } case 18: { errorDetails_.AddEntriesFrom(ref input, _repeated_errorDetails_codec); break; } case 24: { ErrorCount = input.ReadInt32(); break; } } } }
public void MergeFrom(ResourceErrorDetail other) { if (other == null) { return; } if (other.resourceInfo_ != null) { if (resourceInfo_ == null) { ResourceInfo = new global::Google.Rpc.ResourceInfo(); } ResourceInfo.MergeFrom(other.ResourceInfo); } errorDetails_.Add(other.errorDetails_); if (other.ErrorCount != 0) { ErrorCount = other.ErrorCount; } _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: { if (resourceInfo_ == null) { ResourceInfo = new global::Google.Rpc.ResourceInfo(); } input.ReadMessage(ResourceInfo); break; } case 18: { errorDetails_.AddEntriesFrom(input, _repeated_errorDetails_codec); break; } case 24: { ErrorCount = input.ReadInt32(); break; } } } #endif }