/** * * * <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 setSubnetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subnetwork_ = value; onChanged(); return this; }
/** * * * <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 setSubnetwork(java.lang.String value) { if (value == null) { throw new NullPointerException(); } subnetwork_ = value; 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 setNetwork(java.lang.String value) { if (value == null) { throw new NullPointerException(); } network_ = value; 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 setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); network_ = value; 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; } /**
/** * * * <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; }