public void MergeFrom(ReportedErrorEvent other) { if (other == null) { return; } if (other.eventTime_ != null) { if (eventTime_ == null) { eventTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } EventTime.MergeFrom(other.EventTime); } if (other.serviceContext_ != null) { if (serviceContext_ == null) { serviceContext_ = new global::Google.Cloud.ErrorReporting.V1Beta1.ServiceContext(); } ServiceContext.MergeFrom(other.ServiceContext); } if (other.Message.Length != 0) { Message = other.Message; } if (other.context_ != null) { if (context_ == null) { context_ = new global::Google.Cloud.ErrorReporting.V1Beta1.ErrorContext(); } Context.MergeFrom(other.Context); } }
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 (eventTime_ == null) { EventTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(EventTime); break; } case 18: { if (serviceContext_ == null) { ServiceContext = new global::Google.Cloud.ErrorReporting.V1Beta1.ServiceContext(); } input.ReadMessage(ServiceContext); break; } case 26: { Message = input.ReadString(); break; } case 34: { if (context_ == null) { Context = new global::Google.Cloud.ErrorReporting.V1Beta1.ErrorContext(); } input.ReadMessage(Context); 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: { if (eventTime_ == null) { EventTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(EventTime); break; } case 18: { if (serviceContext_ == null) { ServiceContext = new global::Google.Cloud.ErrorReporting.V1Beta1.ServiceContext(); } input.ReadMessage(ServiceContext); break; } case 26: { Message = input.ReadString(); break; } case 34: { if (context_ == null) { Context = new global::Google.Cloud.ErrorReporting.V1Beta1.ErrorContext(); } input.ReadMessage(Context); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (eventTime_ == null) { eventTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(eventTime_); break; } case 18: { if (serviceContext_ == null) { serviceContext_ = new global::Google.Cloud.ErrorReporting.V1Beta1.ServiceContext(); } input.ReadMessage(serviceContext_); break; } case 26: { Message = input.ReadString(); break; } case 34: { if (context_ == null) { context_ = new global::Google.Cloud.ErrorReporting.V1Beta1.ErrorContext(); } input.ReadMessage(context_); break; } } } }