Send feedback
Class AllocationPolicy.NetworkPolicy.Builder (0.2.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.2.2 keyboard_arrow_down
public static final class AllocationPolicy . NetworkPolicy . Builder extends GeneratedMessageV3 . Builder<AllocationPolicy . NetworkPolicy . Builder > implements AllocationPolicy . NetworkPolicyOrBuilder
NetworkPolicy describes VM instance network configurations.
Protobuf type google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
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 >
Returns
addNetworkInterfaces(AllocationPolicy.NetworkInterface value)
public AllocationPolicy . NetworkPolicy . Builder addNetworkInterfaces ( AllocationPolicy . NetworkInterface value )
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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;
Parameters
Returns
addNetworkInterfacesBuilder()
public AllocationPolicy . NetworkInterface . Builder addNetworkInterfacesBuilder ()
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AllocationPolicy . NetworkPolicy . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public AllocationPolicy . NetworkPolicy build ()
Returns
buildPartial()
public AllocationPolicy . NetworkPolicy buildPartial ()
Returns
clear()
public AllocationPolicy . NetworkPolicy . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public AllocationPolicy . NetworkPolicy . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearNetworkInterfaces()
public AllocationPolicy . NetworkPolicy . Builder clearNetworkInterfaces ()
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public AllocationPolicy . NetworkPolicy . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public AllocationPolicy . NetworkPolicy . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public AllocationPolicy . NetworkPolicy getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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
Returns
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
Returns
getNetworkInterfacesBuilderList()
public List<AllocationPolicy . NetworkInterface . Builder > getNetworkInterfacesBuilderList ()
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
Returns
getNetworkInterfacesCount()
public int getNetworkInterfacesCount ()
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
Returns
getNetworkInterfacesList()
public List<AllocationPolicy . NetworkInterface > getNetworkInterfacesList ()
Network configurations.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface network_interfaces = 1;
Returns
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
Returns
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 GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(AllocationPolicy.NetworkPolicy other)
public AllocationPolicy . NetworkPolicy . Builder mergeFrom ( AllocationPolicy . NetworkPolicy other )
Parameter
Returns
public AllocationPolicy . NetworkPolicy . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AllocationPolicy . NetworkPolicy . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AllocationPolicy . NetworkPolicy . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AllocationPolicy . NetworkPolicy . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
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;
Parameters
Returns
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;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AllocationPolicy . NetworkPolicy . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AllocationPolicy . NetworkPolicy . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
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 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]