/** * * * <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.ErrorContextOrBuilder getContextOrBuilder() { return getContext(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (eventTime_ != null) { output.writeMessage(1, getEventTime()); } if (serviceContext_ != null) { output.writeMessage(2, getServiceContext()); } if (!getMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); } if (context_ != null) { output.writeMessage(4, getContext()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (eventTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEventTime()); } if (serviceContext_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getServiceContext()); } if (!getMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (context_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getContext()); } 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 (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> * [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.ErrorContextOrBuilder getContextOrBuilder() { return getContext(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (eventTime_ != null) { output.writeMessage(1, getEventTime()); } if (serviceContext_ != null) { output.writeMessage(2, getServiceContext()); } if (!getMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); } if (context_ != null) { output.writeMessage(4, getContext()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (eventTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEventTime()); } if (serviceContext_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getServiceContext()); } if (!getMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (context_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getContext()); } 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 (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; }