@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.clouderrorreporting.v1beta1.ServiceContext)) { return super.equals(obj); } com.google.devtools.clouderrorreporting.v1beta1.ServiceContext other = (com.google.devtools.clouderrorreporting.v1beta1.ServiceContext) obj; boolean result = true; result = result && getService().equals(other.getService()); result = result && getVersion().equals(other.getVersion()); result = result && getResourceType().equals(other.getResourceType()); 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) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getResourceType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <pre> * Represents the source code version that the developer provided, * which could represent a version label or a Git SHA-1 hash, for example. * </pre> * * <code>string version = 3;</code> */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.devtools.clouderrorreporting.v1beta1.ServiceContext other) { if (other == com.google.devtools.clouderrorreporting.v1beta1.ServiceContext.getDefaultInstance()) return this; if (!other.getService().isEmpty()) { service_ = other.service_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (!other.getResourceType().isEmpty()) { resourceType_ = other.resourceType_; 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.ServiceContext)) { return super.equals(obj); } com.google.devtools.clouderrorreporting.v1beta1.ServiceContext other = (com.google.devtools.clouderrorreporting.v1beta1.ServiceContext) obj; boolean result = true; result = result && getService().equals(other.getService()); result = result && getVersion().equals(other.getVersion()); result = result && getResourceType().equals(other.getResourceType()); 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) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getResourceType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <pre> * Represents the source code version that the developer provided, * which could represent a version label or a Git SHA-1 hash, for example. * </pre> * * <code>string version = 3;</code> */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.devtools.clouderrorreporting.v1beta1.ServiceContext other) { if (other == com.google.devtools.clouderrorreporting.v1beta1.ServiceContext.getDefaultInstance()) return this; if (!other.getService().isEmpty()) { service_ = other.service_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (!other.getResourceType().isEmpty()) { resourceType_ = other.resourceType_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }