/** * * * <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; } /**
@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; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNetworkBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); } if (!getSubnetworkBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetwork_); } unknownFields.writeTo(output); }
@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; }
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; }
/** * * * <pre> * Output only. The relative name of the Google Compute Engine * [network][google.container.v1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which * the cluster is connected. * Example: projects/my-project/global/networks/my-network * </pre> * * <code>string network = 1;</code> */ public Builder clearNetwork() { network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /**
@java.lang.Override public com.google.container.v1.NetworkConfig getDefaultInstanceForType() { return com.google.container.v1.NetworkConfig.getDefaultInstance(); }
@java.lang.Override public com.google.container.v1.NetworkConfig buildPartial() { com.google.container.v1.NetworkConfig result = new com.google.container.v1.NetworkConfig(this); result.network_ = network_; result.subnetwork_ = subnetwork_; onBuilt(); return result; }
@java.lang.Override public com.google.container.v1.NetworkConfig build() { com.google.container.v1.NetworkConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
hash = (53 * hash) + getNetworkConfig().hashCode();
result = result && getNetworkConfig().equals(other.getNetworkConfig());
/** * * * <pre> * Configuration for cluster networking. * </pre> * * <code>.google.container.v1.NetworkConfig network_config = 27;</code> */ public com.google.container.v1.NetworkConfig getNetworkConfig() { return networkConfig_ == null ? com.google.container.v1.NetworkConfig.getDefaultInstance() : networkConfig_; } /**
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNetworkBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); } if (!getSubnetworkBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * * * <pre> * Configuration for cluster networking. * </pre> * * <code>.google.container.v1.NetworkConfig network_config = 27;</code> */ public com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { if (networkConfigBuilder_ != null) { return networkConfigBuilder_.getMessageOrBuilder(); } else { return networkConfig_ == null ? com.google.container.v1.NetworkConfig.getDefaultInstance() : networkConfig_; } } /**
/** * * * <pre> * Configuration for cluster networking. * </pre> * * <code>.google.container.v1.NetworkConfig network_config = 27;</code> */ public com.google.container.v1.NetworkConfig getNetworkConfig() { if (networkConfigBuilder_ == null) { return networkConfig_ == null ? com.google.container.v1.NetworkConfig.getDefaultInstance() : networkConfig_; } else { return networkConfigBuilder_.getMessage(); } } /**