/** * * * <pre> * [Required] A message describing the error. The message can contain an * exception stack in one of the supported programming languages and formats. * In that case, the message is parsed and detailed exception information * is returned when retrieving the error event again. * </pre> * * <code>string message = 3;</code> */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasEventTime()) { hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; hash = (53 * hash) + getEventTime().hashCode(); } if (hasServiceContext()) { hash = (37 * hash) + SERVICE_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getServiceContext().hashCode(); } hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); if (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent)) { return super.equals(obj); } com.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent other = (com.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent) obj; boolean result = true; result = result && (hasEventTime() == other.hasEventTime()); if (hasEventTime()) { result = result && getEventTime().equals(other.getEventTime()); } result = result && (hasServiceContext() == other.hasServiceContext()); if (hasServiceContext()) { result = result && getServiceContext().equals(other.getServiceContext()); } result = result && getMessage().equals(other.getMessage()); result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext().equals(other.getContext()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom( com.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent other) { if (other == com.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent .getDefaultInstance()) return this; if (other.hasEventTime()) { mergeEventTime(other.getEventTime()); } if (other.hasServiceContext()) { mergeServiceContext(other.getServiceContext()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } if (other.hasContext()) { mergeContext(other.getContext()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * [Required] A message describing the error. The message can contain an * exception stack in one of the supported programming languages and formats. * In that case, the message is parsed and detailed exception information * is returned when retrieving the error event again. * </pre> * * <code>string message = 3;</code> */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasEventTime()) { hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; hash = (53 * hash) + getEventTime().hashCode(); } if (hasServiceContext()) { hash = (37 * hash) + SERVICE_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getServiceContext().hashCode(); } hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); if (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent)) { return super.equals(obj); } com.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent other = (com.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent) obj; boolean result = true; result = result && (hasEventTime() == other.hasEventTime()); if (hasEventTime()) { result = result && getEventTime().equals(other.getEventTime()); } result = result && (hasServiceContext() == other.hasServiceContext()); if (hasServiceContext()) { result = result && getServiceContext().equals(other.getServiceContext()); } result = result && getMessage().equals(other.getMessage()); result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext().equals(other.getContext()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom( com.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent other) { if (other == com.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent .getDefaultInstance()) return this; if (other.hasEventTime()) { mergeEventTime(other.getEventTime()); } if (other.hasServiceContext()) { mergeServiceContext(other.getServiceContext()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } if (other.hasContext()) { mergeContext(other.getContext()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }