@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@java.lang.Override public com.google.devtools.clouderrorreporting.v1beta1.ErrorContext buildPartial() { com.google.devtools.clouderrorreporting.v1beta1.ErrorContext result = new com.google.devtools.clouderrorreporting.v1beta1.ErrorContext(this); if (httpRequestBuilder_ == null) { result.httpRequest_ = httpRequest_; } else { result.httpRequest_ = httpRequestBuilder_.build(); } result.user_ = user_; if (reportLocationBuilder_ == null) { result.reportLocation_ = reportLocation_; } else { result.reportLocation_ = reportLocationBuilder_.build(); } onBuilt(); 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; }
@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 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; }
/** * * * <pre> * The user who caused or was affected by the crash. * This can be a user ID, an email address, or an arbitrary token that * uniquely identifies the user. * When sending an error report, leave this field empty if the user was not * logged in. In this case the * Error Reporting system will use other data, such as remote IP address, to * distinguish affected users. See `affected_users_count` in * `ErrorGroupStats`. * </pre> * * <code>string user = 2;</code> */ public Builder clearUser() { user_ = getDefaultInstance().getUser(); onChanged(); return this; } /**
@java.lang.Override public com.google.devtools.clouderrorreporting.v1beta1.ErrorContext getDefaultInstanceForType() { return com.google.devtools.clouderrorreporting.v1beta1.ErrorContext.getDefaultInstance(); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.clouderrorreporting.v1beta1.ErrorEvent)) { return super.equals(obj); } com.google.devtools.clouderrorreporting.v1beta1.ErrorEvent other = (com.google.devtools.clouderrorreporting.v1beta1.ErrorEvent) 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; }
/** * * * <pre> * The HTTP request which was processed when the error was * triggered. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;</code> */ public com.google.devtools.clouderrorreporting.v1beta1.HttpRequestContextOrBuilder getHttpRequestOrBuilder() { return getHttpRequest(); }
/** * * * <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 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; }
/** * * * <pre> * [Optional] A description of the context in which the error occurred. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4;</code> */ public com.google.devtools.clouderrorreporting.v1beta1.ErrorContext getContext() { return context_ == null ? com.google.devtools.clouderrorreporting.v1beta1.ErrorContext.getDefaultInstance() : context_; } /**
/** * * * <pre> * The user who caused or was affected by the crash. * This can be a user ID, an email address, or an arbitrary token that * uniquely identifies the user. * When sending an error report, leave this field empty if the user was not * logged in. In this case the * Error Reporting system will use other data, such as remote IP address, to * distinguish affected users. See `affected_users_count` in * `ErrorGroupStats`. * </pre> * * <code>string user = 2;</code> */ public Builder clearUser() { user_ = getDefaultInstance().getUser(); onChanged(); return this; } /**
@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; }
/** * * * <pre> * The HTTP request which was processed when the error was * triggered. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;</code> */ public com.google.devtools.clouderrorreporting.v1beta1.HttpRequestContextOrBuilder getHttpRequestOrBuilder() { return getHttpRequest(); }
/** * * * <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 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 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); }
/** * * * <pre> * [Optional] A description of the context in which the error occurred. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4;</code> */ public Builder mergeContext( com.google.devtools.clouderrorreporting.v1beta1.ErrorContext value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = com.google.devtools.clouderrorreporting.v1beta1.ErrorContext.newBuilder(context_) .mergeFrom(value) .buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * Data about the context in which the error occurred. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;</code> */ public com.google.devtools.clouderrorreporting.v1beta1.ErrorContext getContext() { return context_ == null ? com.google.devtools.clouderrorreporting.v1beta1.ErrorContext.getDefaultInstance() : context_; } /**