Class AllocationPolicy.NetworkPolicy.Builder (0.91.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class AllocationPolicy.NetworkPolicy.Builder extends GeneratedMessage.Builder<AllocationPolicy.NetworkPolicy.Builder> implements AllocationPolicy.NetworkPolicyOrBuilder
NetworkPolicy describes VM instance network configurations.
Protobuf type google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllNetworkInterfaces(Iterable<? extends AllocationPolicy.NetworkInterface> values)
public AllocationPolicy.NetworkPolicy.Builder addAllNetworkInterfaces(Iterable<? extends AllocationPolicy.NetworkInterface> values)
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface>
|
addNetworkInterfaces(AllocationPolicy.NetworkInterface value)
public AllocationPolicy.NetworkPolicy.Builder addNetworkInterfaces(AllocationPolicy.NetworkInterface value)
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
addNetworkInterfaces(AllocationPolicy.NetworkInterface.Builder builderForValue)
public AllocationPolicy.NetworkPolicy.Builder addNetworkInterfaces(AllocationPolicy.NetworkInterface.Builder builderForValue)
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
addNetworkInterfaces(int index, AllocationPolicy.NetworkInterface value)
public AllocationPolicy.NetworkPolicy.Builder addNetworkInterfaces(int index, AllocationPolicy.NetworkInterface value)
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
addNetworkInterfaces(int index, AllocationPolicy.NetworkInterface.Builder builderForValue)
public AllocationPolicy.NetworkPolicy.Builder addNetworkInterfaces(int index, AllocationPolicy.NetworkInterface.Builder builderForValue)
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
addNetworkInterfacesBuilder()
public AllocationPolicy.NetworkInterface.Builder addNetworkInterfacesBuilder()
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
addNetworkInterfacesBuilder(int index)
public AllocationPolicy.NetworkInterface.Builder addNetworkInterfacesBuilder(int index)
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
| Parameter |
| Name |
Description |
index |
int
|
build()
public AllocationPolicy.NetworkPolicy build()
buildPartial()
public AllocationPolicy.NetworkPolicy buildPartial()
clear()
public AllocationPolicy.NetworkPolicy.Builder clear()
Overrides
clearNetworkInterfaces()
public AllocationPolicy.NetworkPolicy.Builder clearNetworkInterfaces()
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
getDefaultInstanceForType()
public AllocationPolicy.NetworkPolicy getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getNetworkInterfaces(int index)
public AllocationPolicy.NetworkInterface getNetworkInterfaces(int index)
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
| Parameter |
| Name |
Description |
index |
int
|
getNetworkInterfacesBuilder(int index)
public AllocationPolicy.NetworkInterface.Builder getNetworkInterfacesBuilder(int index)
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
| Parameter |
| Name |
Description |
index |
int
|
getNetworkInterfacesBuilderList()
public List<AllocationPolicy.NetworkInterface.Builder> getNetworkInterfacesBuilderList()
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
getNetworkInterfacesCount()
public int getNetworkInterfacesCount()
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
| Returns |
| Type |
Description |
int |
|
getNetworkInterfacesList()
public List<AllocationPolicy.NetworkInterface> getNetworkInterfacesList()
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
getNetworkInterfacesOrBuilder(int index)
public AllocationPolicy.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
| Parameter |
| Name |
Description |
index |
int
|
getNetworkInterfacesOrBuilderList()
public List<? extends AllocationPolicy.NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterfaceOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AllocationPolicy.NetworkPolicy other)
public AllocationPolicy.NetworkPolicy.Builder mergeFrom(AllocationPolicy.NetworkPolicy other)
public AllocationPolicy.NetworkPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AllocationPolicy.NetworkPolicy.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
removeNetworkInterfaces(int index)
public AllocationPolicy.NetworkPolicy.Builder removeNetworkInterfaces(int index)
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
| Parameter |
| Name |
Description |
index |
int
|
setNetworkInterfaces(int index, AllocationPolicy.NetworkInterface value)
public AllocationPolicy.NetworkPolicy.Builder setNetworkInterfaces(int index, AllocationPolicy.NetworkInterface value)
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
setNetworkInterfaces(int index, AllocationPolicy.NetworkInterface.Builder builderForValue)
public AllocationPolicy.NetworkPolicy.Builder setNetworkInterfaces(int index, AllocationPolicy.NetworkInterface.Builder builderForValue)
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-04-25 UTC.
[null,null,["Last updated 2026-04-25 UTC."],[],[]]