/** * * * <pre> * The location in the source code where the decision was made to * report the error, usually the place where it was logged. * For a logged exception this would be the source line where the * exception is logged, usually close to the place where it was * caught. This value is in contrast to `Exception.cause_location`, * which describes the source line where the exception was thrown. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;</code> */ public com.google.devtools.clouderrorreporting.v1beta1.SourceLocationOrBuilder getReportLocationOrBuilder() { return getReportLocation(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (httpRequest_ != null) { output.writeMessage(1, getHttpRequest()); } if (!getUserBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, user_); } if (reportLocation_ != null) { output.writeMessage(3, getReportLocation()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (httpRequest_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHttpRequest()); } if (!getUserBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, user_); } if (reportLocation_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getReportLocation()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHttpRequest()) { hash = (37 * hash) + HTTP_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getHttpRequest().hashCode(); } hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); if (hasReportLocation()) { hash = (37 * hash) + REPORT_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getReportLocation().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.ErrorContext)) { return super.equals(obj); } com.google.devtools.clouderrorreporting.v1beta1.ErrorContext other = (com.google.devtools.clouderrorreporting.v1beta1.ErrorContext) obj; boolean result = true; result = result && (hasHttpRequest() == other.hasHttpRequest()); if (hasHttpRequest()) { result = result && getHttpRequest().equals(other.getHttpRequest()); } result = result && getUser().equals(other.getUser()); result = result && (hasReportLocation() == other.hasReportLocation()); if (hasReportLocation()) { result = result && getReportLocation().equals(other.getReportLocation()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.devtools.clouderrorreporting.v1beta1.ErrorContext other) { if (other == com.google.devtools.clouderrorreporting.v1beta1.ErrorContext.getDefaultInstance()) return this; if (other.hasHttpRequest()) { mergeHttpRequest(other.getHttpRequest()); } if (!other.getUser().isEmpty()) { user_ = other.user_; onChanged(); } if (other.hasReportLocation()) { mergeReportLocation(other.getReportLocation()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The location in the source code where the decision was made to * report the error, usually the place where it was logged. * For a logged exception this would be the source line where the * exception is logged, usually close to the place where it was * caught. This value is in contrast to `Exception.cause_location`, * which describes the source line where the exception was thrown. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;</code> */ public com.google.devtools.clouderrorreporting.v1beta1.SourceLocationOrBuilder getReportLocationOrBuilder() { return getReportLocation(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (httpRequest_ != null) { output.writeMessage(1, getHttpRequest()); } if (!getUserBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, user_); } if (reportLocation_ != null) { output.writeMessage(3, getReportLocation()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (httpRequest_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHttpRequest()); } if (!getUserBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, user_); } if (reportLocation_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getReportLocation()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHttpRequest()) { hash = (37 * hash) + HTTP_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getHttpRequest().hashCode(); } hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); if (hasReportLocation()) { hash = (37 * hash) + REPORT_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getReportLocation().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.ErrorContext)) { return super.equals(obj); } com.google.devtools.clouderrorreporting.v1beta1.ErrorContext other = (com.google.devtools.clouderrorreporting.v1beta1.ErrorContext) obj; boolean result = true; result = result && (hasHttpRequest() == other.hasHttpRequest()); if (hasHttpRequest()) { result = result && getHttpRequest().equals(other.getHttpRequest()); } result = result && getUser().equals(other.getUser()); result = result && (hasReportLocation() == other.hasReportLocation()); if (hasReportLocation()) { result = result && getReportLocation().equals(other.getReportLocation()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.devtools.clouderrorreporting.v1beta1.ErrorContext other) { if (other == com.google.devtools.clouderrorreporting.v1beta1.ErrorContext.getDefaultInstance()) return this; if (other.hasHttpRequest()) { mergeHttpRequest(other.getHttpRequest()); } if (!other.getUser().isEmpty()) { user_ = other.user_; onChanged(); } if (other.hasReportLocation()) { mergeReportLocation(other.getReportLocation()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }