/** * * * <pre> * The name of the resource. For example, the name of a Docker image - * "Debian". * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); if (hasContentHash()) { hash = (37 * hash) + CONTENT_HASH_FIELD_NUMBER; hash = (53 * hash) + getContentHash().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 io.grafeas.v1beta1.Resource)) { return super.equals(obj); } io.grafeas.v1beta1.Resource other = (io.grafeas.v1beta1.Resource) obj; boolean result = true; result = result && getName().equals(other.getName()); result = result && getUri().equals(other.getUri()); result = result && (hasContentHash() == other.hasContentHash()); if (hasContentHash()) { result = result && getContentHash().equals(other.getContentHash()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(io.grafeas.v1beta1.Resource other) { if (other == io.grafeas.v1beta1.Resource.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); } if (other.hasContentHash()) { mergeContentHash(other.getContentHash()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The name of the resource. For example, the name of a Docker image - * "Debian". * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); if (hasContentHash()) { hash = (37 * hash) + CONTENT_HASH_FIELD_NUMBER; hash = (53 * hash) + getContentHash().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 io.grafeas.v1beta1.Resource)) { return super.equals(obj); } io.grafeas.v1beta1.Resource other = (io.grafeas.v1beta1.Resource) obj; boolean result = true; result = result && getName().equals(other.getName()); result = result && getUri().equals(other.getUri()); result = result && (hasContentHash() == other.hasContentHash()); if (hasContentHash()) { result = result && getContentHash().equals(other.getContentHash()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(io.grafeas.v1beta1.Resource other) { if (other == io.grafeas.v1beta1.Resource.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); } if (other.hasContentHash()) { mergeContentHash(other.getContentHash()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }