@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (valueCase_) { case 1: hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; hash = (53 * hash) + getStringValue().hashCode(); break; case 2: hash = (37 * hash) + INT_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIntValue()); break; case 3: hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue()); break; case 0: default: } 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.cloudtrace.v2.AttributeValue)) { return super.equals(obj); } com.google.devtools.cloudtrace.v2.AttributeValue other = (com.google.devtools.cloudtrace.v2.AttributeValue) obj; boolean result = true; result = result && getValueCase().equals(other.getValueCase()); if (!result) return false; switch (valueCase_) { case 1: result = result && getStringValue().equals(other.getStringValue()); break; case 2: result = result && (getIntValue() == other.getIntValue()); break; case 3: result = result && (getBoolValue() == other.getBoolValue()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.devtools.cloudtrace.v2.AttributeValue other) { if (other == com.google.devtools.cloudtrace.v2.AttributeValue.getDefaultInstance()) return this; switch (other.getValueCase()) { case STRING_VALUE: { mergeStringValue(other.getStringValue()); break; } case INT_VALUE: { setIntValue(other.getIntValue()); break; } case BOOL_VALUE: { setBoolValue(other.getBoolValue()); break; } case VALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (valueCase_) { case 1: hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; hash = (53 * hash) + getStringValue().hashCode(); break; case 2: hash = (37 * hash) + INT_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIntValue()); break; case 3: hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue()); break; case 0: default: } 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.cloudtrace.v2.AttributeValue)) { return super.equals(obj); } com.google.devtools.cloudtrace.v2.AttributeValue other = (com.google.devtools.cloudtrace.v2.AttributeValue) obj; boolean result = true; result = result && getValueCase().equals(other.getValueCase()); if (!result) return false; switch (valueCase_) { case 1: result = result && getStringValue().equals(other.getStringValue()); break; case 2: result = result && (getIntValue() == other.getIntValue()); break; case 3: result = result && (getBoolValue() == other.getBoolValue()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.devtools.cloudtrace.v2.AttributeValue other) { if (other == com.google.devtools.cloudtrace.v2.AttributeValue.getDefaultInstance()) return this; switch (other.getValueCase()) { case STRING_VALUE: { mergeStringValue(other.getStringValue()); break; } case INT_VALUE: { setIntValue(other.getIntValue()); break; } case BOOL_VALUE: { setBoolValue(other.getBoolValue()); break; } case VALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }