public static final class AllocationPolicy.NetworkInterface.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder> implements AllocationPolicy.NetworkInterfaceOrBuilder
A network interface.Protobuf type
google.cloud.batch.v1.AllocationPolicy.NetworkInterface| Modifier and Type | Method and Description |
|---|---|
AllocationPolicy.NetworkInterface.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AllocationPolicy.NetworkInterface |
build() |
AllocationPolicy.NetworkInterface |
buildPartial() |
AllocationPolicy.NetworkInterface.Builder |
clear() |
AllocationPolicy.NetworkInterface.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AllocationPolicy.NetworkInterface.Builder |
clearNetwork()
The URL of an existing network resource.
|
AllocationPolicy.NetworkInterface.Builder |
clearNoExternalIpAddress()
Default is false (with an external IP address).
|
AllocationPolicy.NetworkInterface.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AllocationPolicy.NetworkInterface.Builder |
clearSubnetwork()
The URL of an existing subnetwork resource in the network.
|
AllocationPolicy.NetworkInterface.Builder |
clone() |
AllocationPolicy.NetworkInterface |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getNetwork()
The URL of an existing network resource.
|
com.google.protobuf.ByteString |
getNetworkBytes()
The URL of an existing network resource.
|
boolean |
getNoExternalIpAddress()
Default is false (with an external IP address).
|
String |
getSubnetwork()
The URL of an existing subnetwork resource in the network.
|
com.google.protobuf.ByteString |
getSubnetworkBytes()
The URL of an existing subnetwork resource in the network.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AllocationPolicy.NetworkInterface.Builder |
mergeFrom(AllocationPolicy.NetworkInterface other) |
AllocationPolicy.NetworkInterface.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AllocationPolicy.NetworkInterface.Builder |
mergeFrom(com.google.protobuf.Message other) |
AllocationPolicy.NetworkInterface.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AllocationPolicy.NetworkInterface.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AllocationPolicy.NetworkInterface.Builder |
setNetwork(String value)
The URL of an existing network resource.
|
AllocationPolicy.NetworkInterface.Builder |
setNetworkBytes(com.google.protobuf.ByteString value)
The URL of an existing network resource.
|
AllocationPolicy.NetworkInterface.Builder |
setNoExternalIpAddress(boolean value)
Default is false (with an external IP address).
|
AllocationPolicy.NetworkInterface.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AllocationPolicy.NetworkInterface.Builder |
setSubnetwork(String value)
The URL of an existing subnetwork resource in the network.
|
AllocationPolicy.NetworkInterface.Builder |
setSubnetworkBytes(com.google.protobuf.ByteString value)
The URL of an existing subnetwork resource in the network.
|
AllocationPolicy.NetworkInterface.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>public AllocationPolicy.NetworkInterface.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>public AllocationPolicy.NetworkInterface getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AllocationPolicy.NetworkInterface build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AllocationPolicy.NetworkInterface buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AllocationPolicy.NetworkInterface.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>public AllocationPolicy.NetworkInterface.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>public AllocationPolicy.NetworkInterface.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>public AllocationPolicy.NetworkInterface.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>public AllocationPolicy.NetworkInterface.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>public AllocationPolicy.NetworkInterface.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>public AllocationPolicy.NetworkInterface.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AllocationPolicy.NetworkInterface.Builder>public AllocationPolicy.NetworkInterface.Builder mergeFrom(AllocationPolicy.NetworkInterface other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>public AllocationPolicy.NetworkInterface.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AllocationPolicy.NetworkInterface.Builder>IOExceptionpublic String getNetwork()
The URL of an existing network resource.
You can specify the network as a full or partial URL.
For example, the following are all valid URLs:
* https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
* projects/{project}/global/networks/{network}
* global/networks/{network}
string network = 1;getNetwork in interface AllocationPolicy.NetworkInterfaceOrBuilderpublic com.google.protobuf.ByteString getNetworkBytes()
The URL of an existing network resource.
You can specify the network as a full or partial URL.
For example, the following are all valid URLs:
* https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
* projects/{project}/global/networks/{network}
* global/networks/{network}
string network = 1;getNetworkBytes in interface AllocationPolicy.NetworkInterfaceOrBuilderpublic AllocationPolicy.NetworkInterface.Builder setNetwork(String value)
The URL of an existing network resource.
You can specify the network as a full or partial URL.
For example, the following are all valid URLs:
* https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
* projects/{project}/global/networks/{network}
* global/networks/{network}
string network = 1;value - The network to set.public AllocationPolicy.NetworkInterface.Builder clearNetwork()
The URL of an existing network resource.
You can specify the network as a full or partial URL.
For example, the following are all valid URLs:
* https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
* projects/{project}/global/networks/{network}
* global/networks/{network}
string network = 1;public AllocationPolicy.NetworkInterface.Builder setNetworkBytes(com.google.protobuf.ByteString value)
The URL of an existing network resource.
You can specify the network as a full or partial URL.
For example, the following are all valid URLs:
* https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
* projects/{project}/global/networks/{network}
* global/networks/{network}
string network = 1;value - The bytes for network to set.public String getSubnetwork()
The URL of an existing subnetwork resource in the network.
You can specify the subnetwork as a full or partial URL.
For example, the following are all valid URLs:
* https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
* projects/{project}/regions/{region}/subnetworks/{subnetwork}
* regions/{region}/subnetworks/{subnetwork}
string subnetwork = 2;getSubnetwork in interface AllocationPolicy.NetworkInterfaceOrBuilderpublic com.google.protobuf.ByteString getSubnetworkBytes()
The URL of an existing subnetwork resource in the network.
You can specify the subnetwork as a full or partial URL.
For example, the following are all valid URLs:
* https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
* projects/{project}/regions/{region}/subnetworks/{subnetwork}
* regions/{region}/subnetworks/{subnetwork}
string subnetwork = 2;getSubnetworkBytes in interface AllocationPolicy.NetworkInterfaceOrBuilderpublic AllocationPolicy.NetworkInterface.Builder setSubnetwork(String value)
The URL of an existing subnetwork resource in the network.
You can specify the subnetwork as a full or partial URL.
For example, the following are all valid URLs:
* https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
* projects/{project}/regions/{region}/subnetworks/{subnetwork}
* regions/{region}/subnetworks/{subnetwork}
string subnetwork = 2;value - The subnetwork to set.public AllocationPolicy.NetworkInterface.Builder clearSubnetwork()
The URL of an existing subnetwork resource in the network.
You can specify the subnetwork as a full or partial URL.
For example, the following are all valid URLs:
* https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
* projects/{project}/regions/{region}/subnetworks/{subnetwork}
* regions/{region}/subnetworks/{subnetwork}
string subnetwork = 2;public AllocationPolicy.NetworkInterface.Builder setSubnetworkBytes(com.google.protobuf.ByteString value)
The URL of an existing subnetwork resource in the network.
You can specify the subnetwork as a full or partial URL.
For example, the following are all valid URLs:
* https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
* projects/{project}/regions/{region}/subnetworks/{subnetwork}
* regions/{region}/subnetworks/{subnetwork}
string subnetwork = 2;value - The bytes for subnetwork to set.public boolean getNoExternalIpAddress()
Default is false (with an external IP address). Required if no external public IP address is attached to the VM. If no external public IP address, additional configuration is required to allow the VM to access Google Services. See https://cloud.google.com/vpc/docs/configure-private-google-access and https://cloud.google.com/nat/docs/gce-example#create-nat for more information.
bool no_external_ip_address = 3;getNoExternalIpAddress in interface AllocationPolicy.NetworkInterfaceOrBuilderpublic AllocationPolicy.NetworkInterface.Builder setNoExternalIpAddress(boolean value)
Default is false (with an external IP address). Required if no external public IP address is attached to the VM. If no external public IP address, additional configuration is required to allow the VM to access Google Services. See https://cloud.google.com/vpc/docs/configure-private-google-access and https://cloud.google.com/nat/docs/gce-example#create-nat for more information.
bool no_external_ip_address = 3;value - The noExternalIpAddress to set.public AllocationPolicy.NetworkInterface.Builder clearNoExternalIpAddress()
Default is false (with an external IP address). Required if no external public IP address is attached to the VM. If no external public IP address, additional configuration is required to allow the VM to access Google Services. See https://cloud.google.com/vpc/docs/configure-private-google-access and https://cloud.google.com/nat/docs/gce-example#create-nat for more information.
bool no_external_ip_address = 3;public final AllocationPolicy.NetworkInterface.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>public final AllocationPolicy.NetworkInterface.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>Copyright © 2025 Google LLC. All rights reserved.