@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@java.lang.Override public com.google.devtools.clouderrorreporting.v1beta1.SourceLocation buildPartial() { com.google.devtools.clouderrorreporting.v1beta1.SourceLocation result = new com.google.devtools.clouderrorreporting.v1beta1.SourceLocation(this); result.filePath_ = filePath_; result.lineNumber_ = lineNumber_; result.functionName_ = functionName_; onBuilt(); return result; }
public Builder mergeFrom(com.google.devtools.clouderrorreporting.v1beta1.SourceLocation other) { if (other == com.google.devtools.clouderrorreporting.v1beta1.SourceLocation.getDefaultInstance()) return this; if (!other.getFilePath().isEmpty()) { filePath_ = other.filePath_; onChanged(); } if (other.getLineNumber() != 0) { setLineNumber(other.getLineNumber()); } if (!other.getFunctionName().isEmpty()) { functionName_ = other.functionName_; onChanged(); } this.mergeUnknownFields(other.unknownFields); 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.SourceLocation)) { return super.equals(obj); } com.google.devtools.clouderrorreporting.v1beta1.SourceLocation other = (com.google.devtools.clouderrorreporting.v1beta1.SourceLocation) obj; boolean result = true; result = result && getFilePath().equals(other.getFilePath()); result = result && (getLineNumber() == other.getLineNumber()); result = result && getFunctionName().equals(other.getFunctionName()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FILE_PATH_FIELD_NUMBER; hash = (53 * hash) + getFilePath().hashCode(); hash = (37 * hash) + LINE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getLineNumber(); hash = (37 * hash) + FUNCTION_NAME_FIELD_NUMBER; hash = (53 * hash) + getFunctionName().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 (!getFilePathBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filePath_); } if (lineNumber_ != 0) { output.writeInt32(2, lineNumber_); } if (!getFunctionNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, functionName_); } unknownFields.writeTo(output); }
@java.lang.Override public com.google.devtools.clouderrorreporting.v1beta1.SourceLocation getDefaultInstanceForType() { return com.google.devtools.clouderrorreporting.v1beta1.SourceLocation.getDefaultInstance(); }
/** * * * <pre> * The source code filename, which can include a truncated relative * path, or a full path from a production machine. * </pre> * * <code>string file_path = 1;</code> */ public Builder clearFilePath() { filePath_ = getDefaultInstance().getFilePath(); onChanged(); return this; } /**
/** * * * <pre> * Human-readable name of a function or method. * The value can include optional context like the class or package name. * For example, `my.package.MyClass.method` in case of Java. * </pre> * * <code>string function_name = 4;</code> */ public Builder clearFunctionName() { functionName_ = getDefaultInstance().getFunctionName(); 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.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; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FILE_PATH_FIELD_NUMBER; hash = (53 * hash) + getFilePath().hashCode(); hash = (37 * hash) + LINE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getLineNumber(); hash = (37 * hash) + FUNCTION_NAME_FIELD_NUMBER; hash = (53 * hash) + getFunctionName().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.SourceLocation)) { return super.equals(obj); } com.google.devtools.clouderrorreporting.v1beta1.SourceLocation other = (com.google.devtools.clouderrorreporting.v1beta1.SourceLocation) obj; boolean result = true; result = result && getFilePath().equals(other.getFilePath()); result = result && (getLineNumber() == other.getLineNumber()); result = result && getFunctionName().equals(other.getFunctionName()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getFilePathBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filePath_); } if (lineNumber_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, lineNumber_); } if (!getFunctionNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, functionName_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * * * <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.SourceLocation getReportLocation() { return reportLocation_ == null ? com.google.devtools.clouderrorreporting.v1beta1.SourceLocation.getDefaultInstance() : reportLocation_; } /**
/** * * * <pre> * The source code filename, which can include a truncated relative * path, or a full path from a production machine. * </pre> * * <code>string file_path = 1;</code> */ public Builder clearFilePath() { filePath_ = getDefaultInstance().getFilePath(); onChanged(); return this; } /**
/** * * * <pre> * Human-readable name of a function or method. * The value can include optional context like the class or package name. * For example, `my.package.MyClass.method` in case of Java. * </pre> * * <code>string function_name = 4;</code> */ public Builder clearFunctionName() { functionName_ = getDefaultInstance().getFunctionName(); 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.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.SourceLocation other) { if (other == com.google.devtools.clouderrorreporting.v1beta1.SourceLocation.getDefaultInstance()) return this; if (!other.getFilePath().isEmpty()) { filePath_ = other.filePath_; onChanged(); } if (other.getLineNumber() != 0) { setLineNumber(other.getLineNumber()); } if (!other.getFunctionName().isEmpty()) { functionName_ = other.functionName_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
if (reportLocation_ != null) { reportLocation_ = com.google.devtools.clouderrorreporting.v1beta1.SourceLocation.newBuilder( reportLocation_) .mergeFrom(value)
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getFilePathBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filePath_); } if (lineNumber_ != 0) { output.writeInt32(2, lineNumber_); } if (!getFunctionNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, functionName_); } unknownFields.writeTo(output); }