/** * * * <pre> * The HTTP request which was processed when the error was * triggered. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1; * </code> */ public Builder setHttpRequest( com.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext value) { if (httpRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } httpRequest_ = value; onChanged(); } else { httpRequestBuilder_.setMessage(value); } 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 Builder setReportLocation( com.google.devtools.clouderrorreporting.v1beta1.SourceLocation value) { if (reportLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reportLocation_ = value; onChanged(); } else { reportLocationBuilder_.setMessage(value); } return this; } /**
/** * * * <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 setUser(java.lang.String value) { if (value == null) { throw new NullPointerException(); } user_ = value; onChanged(); return this; } /**
/** * * * <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 setUserBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); user_ = value; onChanged(); return this; }
/** * * * <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; } /**
/** * * * <pre> * The HTTP request which was processed when the error was * triggered. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1; * </code> */ public Builder clearHttpRequest() { if (httpRequestBuilder_ == null) { httpRequest_ = null; onChanged(); } else { httpRequest_ = null; httpRequestBuilder_ = null; } 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.SourceLocation.Builder getReportLocationBuilder() { onChanged(); return getReportLocationFieldBuilder().getBuilder(); } /**
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 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.HttpRequestContext.Builder getHttpRequestBuilder() { onChanged(); return getHttpRequestFieldBuilder().getBuilder(); } /**
reportLocation_ = value; onChanged(); } else { reportLocationBuilder_.mergeFrom(value);
/** * * * <pre> * The HTTP request which was processed when the error was * triggered. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1; * </code> */ public Builder mergeHttpRequest( com.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext value) { if (httpRequestBuilder_ == null) { if (httpRequest_ != null) { httpRequest_ = com.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.newBuilder( httpRequest_) .mergeFrom(value) .buildPartial(); } else { httpRequest_ = value; } onChanged(); } else { httpRequestBuilder_.mergeFrom(value); } 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 Builder clearReportLocation() { if (reportLocationBuilder_ == null) { reportLocation_ = null; onChanged(); } else { reportLocation_ = null; reportLocationBuilder_ = null; } 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 Builder setReportLocation( com.google.devtools.clouderrorreporting.v1beta1.SourceLocation.Builder builderForValue) { if (reportLocationBuilder_ == null) { reportLocation_ = builderForValue.build(); onChanged(); } else { reportLocationBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <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 setUserBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); user_ = value; onChanged(); return this; }
/** * * * <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; } /**
/** * * * <pre> * The HTTP request which was processed when the error was * triggered. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1; * </code> */ public Builder clearHttpRequest() { if (httpRequestBuilder_ == null) { httpRequest_ = null; onChanged(); } else { httpRequest_ = null; httpRequestBuilder_ = null; } return this; } /**
/** * * * <pre> * The HTTP request which was processed when the error was * triggered. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1; * </code> */ public Builder setHttpRequest( com.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.Builder builderForValue) { if (httpRequestBuilder_ == null) { httpRequest_ = builderForValue.build(); onChanged(); } else { httpRequestBuilder_.setMessage(builderForValue.build()); } 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.SourceLocation.Builder getReportLocationBuilder() { onChanged(); return getReportLocationFieldBuilder().getBuilder(); } /**
/** * * * <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.HttpRequestContext.Builder getHttpRequestBuilder() { onChanged(); return getHttpRequestFieldBuilder().getBuilder(); } /**
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; }