/** * * * <pre> * The parent (project and location) where the cluster will be created. * Specified in the format 'projects/*/locations/*'. * </pre> * * <code>string parent = 5;</code> */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); 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) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + ZONE_FIELD_NUMBER; hash = (53 * hash) + getZone().hashCode(); if (hasCluster()) { hash = (37 * hash) + CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getCluster().hashCode(); } hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().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.container.v1.CreateClusterRequest)) { return super.equals(obj); } com.google.container.v1.CreateClusterRequest other = (com.google.container.v1.CreateClusterRequest) obj; boolean result = true; result = result && getProjectId().equals(other.getProjectId()); result = result && getZone().equals(other.getZone()); result = result && (hasCluster() == other.hasCluster()); if (hasCluster()) { result = result && getCluster().equals(other.getCluster()); } result = result && getParent().equals(other.getParent()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.container.v1.CreateClusterRequest other) { if (other == com.google.container.v1.CreateClusterRequest.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); } if (!other.getZone().isEmpty()) { zone_ = other.zone_; onChanged(); } if (other.hasCluster()) { mergeCluster(other.getCluster()); } if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }