Class AllocationPolicy.NetworkPolicy.Builder (0.54.0)

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.v1.AllocationPolicy.NetworkPolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllNetworkInterfaces(Iterable<? extends AllocationPolicy.NetworkInterface> values)

public AllocationPolicy.NetworkPolicy.Builder addAllNetworkInterfaces(Iterable<? extends AllocationPolicy.NetworkInterface> values)

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface>
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder

addNetworkInterfaces(AllocationPolicy.NetworkInterface value)

public AllocationPolicy.NetworkPolicy.Builder addNetworkInterfaces(AllocationPolicy.NetworkInterface value)

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Parameter
Name Description
value AllocationPolicy.NetworkInterface
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder

addNetworkInterfaces(AllocationPolicy.NetworkInterface.Builder builderForValue)

public AllocationPolicy.NetworkPolicy.Builder addNetworkInterfaces(AllocationPolicy.NetworkInterface.Builder builderForValue)

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Parameter
Name Description
builderForValue AllocationPolicy.NetworkInterface.Builder
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder

addNetworkInterfaces(int index, AllocationPolicy.NetworkInterface value)

public AllocationPolicy.NetworkPolicy.Builder addNetworkInterfaces(int index, AllocationPolicy.NetworkInterface value)

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Parameters
Name Description
index int
value AllocationPolicy.NetworkInterface
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder

addNetworkInterfaces(int index, AllocationPolicy.NetworkInterface.Builder builderForValue)

public AllocationPolicy.NetworkPolicy.Builder addNetworkInterfaces(int index, AllocationPolicy.NetworkInterface.Builder builderForValue)

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Parameters
Name Description
index int
builderForValue AllocationPolicy.NetworkInterface.Builder
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder

addNetworkInterfacesBuilder()

public AllocationPolicy.NetworkInterface.Builder addNetworkInterfacesBuilder()

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Returns
Type Description
AllocationPolicy.NetworkInterface.Builder

addNetworkInterfacesBuilder(int index)

public AllocationPolicy.NetworkInterface.Builder addNetworkInterfacesBuilder(int index)

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Parameter
Name Description
index int
Returns
Type Description
AllocationPolicy.NetworkInterface.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AllocationPolicy.NetworkPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder
Overrides

build()

public AllocationPolicy.NetworkPolicy build()
Returns
Type Description
AllocationPolicy.NetworkPolicy

buildPartial()

public AllocationPolicy.NetworkPolicy buildPartial()
Returns
Type Description
AllocationPolicy.NetworkPolicy

clear()

public AllocationPolicy.NetworkPolicy.Builder clear()
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AllocationPolicy.NetworkPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder
Overrides

clearNetworkInterfaces()

public AllocationPolicy.NetworkPolicy.Builder clearNetworkInterfaces()

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AllocationPolicy.NetworkPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder
Overrides

clone()

public AllocationPolicy.NetworkPolicy.Builder clone()
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder
Overrides

getDefaultInstanceForType()

public AllocationPolicy.NetworkPolicy getDefaultInstanceForType()
Returns
Type Description
AllocationPolicy.NetworkPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNetworkInterfaces(int index)

public AllocationPolicy.NetworkInterface getNetworkInterfaces(int index)

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Parameter
Name Description
index int
Returns
Type Description
AllocationPolicy.NetworkInterface

getNetworkInterfacesBuilder(int index)

public AllocationPolicy.NetworkInterface.Builder getNetworkInterfacesBuilder(int index)

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Parameter
Name Description
index int
Returns
Type Description
AllocationPolicy.NetworkInterface.Builder

getNetworkInterfacesBuilderList()

public List<AllocationPolicy.NetworkInterface.Builder> getNetworkInterfacesBuilderList()

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Returns
Type Description
List<Builder>

getNetworkInterfacesCount()

public int getNetworkInterfacesCount()

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Returns
Type Description
int

getNetworkInterfacesList()

public List<AllocationPolicy.NetworkInterface> getNetworkInterfacesList()

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Returns
Type Description
List<NetworkInterface>

getNetworkInterfacesOrBuilder(int index)

public AllocationPolicy.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Parameter
Name Description
index int
Returns
Type Description
AllocationPolicy.NetworkInterfaceOrBuilder

getNetworkInterfacesOrBuilderList()

public List<? extends AllocationPolicy.NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Returns
Type Description
List<? extends com.google.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AllocationPolicy.NetworkPolicy other)

public AllocationPolicy.NetworkPolicy.Builder mergeFrom(AllocationPolicy.NetworkPolicy other)
Parameter
Name Description
other AllocationPolicy.NetworkPolicy
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AllocationPolicy.NetworkPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AllocationPolicy.NetworkPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AllocationPolicy.NetworkPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder
Overrides

removeNetworkInterfaces(int index)

public AllocationPolicy.NetworkPolicy.Builder removeNetworkInterfaces(int index)

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Parameter
Name Description
index int
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AllocationPolicy.NetworkPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder
Overrides

setNetworkInterfaces(int index, AllocationPolicy.NetworkInterface value)

public AllocationPolicy.NetworkPolicy.Builder setNetworkInterfaces(int index, AllocationPolicy.NetworkInterface value)

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Parameters
Name Description
index int
value AllocationPolicy.NetworkInterface
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder

setNetworkInterfaces(int index, AllocationPolicy.NetworkInterface.Builder builderForValue)

public AllocationPolicy.NetworkPolicy.Builder setNetworkInterfaces(int index, AllocationPolicy.NetworkInterface.Builder builderForValue)

Network configurations.

repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;

Parameters
Name Description
index int
builderForValue AllocationPolicy.NetworkInterface.Builder
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AllocationPolicy.NetworkPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AllocationPolicy.NetworkPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AllocationPolicy.NetworkPolicy.Builder
Overrides