public void MergeFrom(StreamAccessLogsMessage other) { if (other == null) { return; } if (other.identifier_ != null) { if (identifier_ == null) { Identifier = new global::Envoy.Service.Accesslog.V3Alpha.StreamAccessLogsMessage.Types.Identifier(); } Identifier.MergeFrom(other.Identifier); } switch (other.LogEntriesCase) { case LogEntriesOneofCase.HttpLogs: if (HttpLogs == null) { HttpLogs = new global::Envoy.Service.Accesslog.V3Alpha.StreamAccessLogsMessage.Types.HTTPAccessLogEntries(); } HttpLogs.MergeFrom(other.HttpLogs); break; case LogEntriesOneofCase.TcpLogs: if (TcpLogs == null) { TcpLogs = new global::Envoy.Service.Accesslog.V3Alpha.StreamAccessLogsMessage.Types.TCPAccessLogEntries(); } TcpLogs.MergeFrom(other.TcpLogs); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
/// <summary> /// Validate the object. /// </summary> /// <exception cref="ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (ApplicationLogs != null) { ApplicationLogs.Validate(); } if (HttpLogs != null) { HttpLogs.Validate(); } }
/// <summary> /// Validate the object. /// </summary> /// <exception cref="ValidationException"> /// Thrown if validation fails /// </exception> public override void Validate() { if (ApplicationLogs != null) { ApplicationLogs.Validate(); } if (HttpLogs != null) { HttpLogs.Validate(); } }
public override int GetHashCode() { int hash = 1; if (identifier_ != null) hash ^= Identifier.GetHashCode(); if (logEntriesCase_ == LogEntriesOneofCase.HttpLogs) hash ^= HttpLogs.GetHashCode(); if (logEntriesCase_ == LogEntriesOneofCase.TcpLogs) hash ^= TcpLogs.GetHashCode(); hash ^= (int) logEntriesCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; }