@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.container.v1.NetworkConfig)) { return super.equals(obj); } com.google.container.v1.NetworkConfig other = (com.google.container.v1.NetworkConfig) obj; boolean result = true; result = result && getNetwork().equals(other.getNetwork()); result = result && getSubnetwork().equals(other.getSubnetwork()); 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) + NETWORK_FIELD_NUMBER; hash = (53 * hash) + getNetwork().hashCode(); hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; hash = (53 * hash) + getSubnetwork().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <pre> * Output only. The relative name of the Google Compute Engine * [subnetwork](/compute/docs/vpc) to which the cluster is connected. * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet * </pre> * * <code>string subnetwork = 2;</code> */ public Builder clearSubnetwork() { subnetwork_ = getDefaultInstance().getSubnetwork(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.container.v1.NetworkConfig other) { if (other == com.google.container.v1.NetworkConfig.getDefaultInstance()) return this; if (!other.getNetwork().isEmpty()) { network_ = other.network_; onChanged(); } if (!other.getSubnetwork().isEmpty()) { subnetwork_ = other.subnetwork_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }