Class LogicalInterface.Builder (0.43.0)

public static final class LogicalInterface.Builder extends GeneratedMessageV3.Builder<LogicalInterface.Builder> implements LogicalInterfaceOrBuilder

Each logical interface represents a logical abstraction of the underlying physical interface (for eg. bond, nic) of the instance. Each logical interface can effectively map to multiple network-IP pairs and still be mapped to one underlying physical interface.

Protobuf type google.cloud.baremetalsolution.v2.LogicalInterface

Static Methods

getDescriptor()

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

Methods

addAllLogicalNetworkInterfaces(Iterable<? extends LogicalInterface.LogicalNetworkInterface> values)

public LogicalInterface.Builder addAllLogicalNetworkInterfaces(Iterable<? extends LogicalInterface.LogicalNetworkInterface> values)

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface>
Returns
Type Description
LogicalInterface.Builder

addLogicalNetworkInterfaces(LogicalInterface.LogicalNetworkInterface value)

public LogicalInterface.Builder addLogicalNetworkInterfaces(LogicalInterface.LogicalNetworkInterface value)

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Parameter
Name Description
value LogicalInterface.LogicalNetworkInterface
Returns
Type Description
LogicalInterface.Builder

addLogicalNetworkInterfaces(LogicalInterface.LogicalNetworkInterface.Builder builderForValue)

public LogicalInterface.Builder addLogicalNetworkInterfaces(LogicalInterface.LogicalNetworkInterface.Builder builderForValue)

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Parameter
Name Description
builderForValue LogicalInterface.LogicalNetworkInterface.Builder
Returns
Type Description
LogicalInterface.Builder

addLogicalNetworkInterfaces(int index, LogicalInterface.LogicalNetworkInterface value)

public LogicalInterface.Builder addLogicalNetworkInterfaces(int index, LogicalInterface.LogicalNetworkInterface value)

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Parameters
Name Description
index int
value LogicalInterface.LogicalNetworkInterface
Returns
Type Description
LogicalInterface.Builder

addLogicalNetworkInterfaces(int index, LogicalInterface.LogicalNetworkInterface.Builder builderForValue)

public LogicalInterface.Builder addLogicalNetworkInterfaces(int index, LogicalInterface.LogicalNetworkInterface.Builder builderForValue)

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Parameters
Name Description
index int
builderForValue LogicalInterface.LogicalNetworkInterface.Builder
Returns
Type Description
LogicalInterface.Builder

addLogicalNetworkInterfacesBuilder()

public LogicalInterface.LogicalNetworkInterface.Builder addLogicalNetworkInterfacesBuilder()

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

addLogicalNetworkInterfacesBuilder(int index)

public LogicalInterface.LogicalNetworkInterface.Builder addLogicalNetworkInterfacesBuilder(int index)

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Parameter
Name Description
index int
Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LogicalInterface build()
Returns
Type Description
LogicalInterface

buildPartial()

public LogicalInterface buildPartial()
Returns
Type Description
LogicalInterface

clear()

public LogicalInterface.Builder clear()
Returns
Type Description
LogicalInterface.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearInterfaceIndex() (deprecated)

public LogicalInterface.Builder clearInterfaceIndex()

Deprecated. google.cloud.baremetalsolution.v2.LogicalInterface.interface_index is deprecated. See google/cloud/baremetalsolution/v2/network.proto;l=243

The index of the logical interface mapping to the index of the hardware bond or nic on the chosen network template. This field is deprecated.

int32 interface_index = 3 [deprecated = true];

Returns
Type Description
LogicalInterface.Builder

This builder for chaining.

clearLogicalNetworkInterfaces()

public LogicalInterface.Builder clearLogicalNetworkInterfaces()

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Returns
Type Description
LogicalInterface.Builder

clearName()

public LogicalInterface.Builder clearName()

Interface name. This is of syntax <bond><bond_mode> or <nic> and forms part of the network template name.

string name = 2;

Returns
Type Description
LogicalInterface.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public LogicalInterface.Builder clone()
Returns
Type Description
LogicalInterface.Builder
Overrides

getDefaultInstanceForType()

public LogicalInterface getDefaultInstanceForType()
Returns
Type Description
LogicalInterface

getDescriptorForType()

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

getInterfaceIndex() (deprecated)

public int getInterfaceIndex()

Deprecated. google.cloud.baremetalsolution.v2.LogicalInterface.interface_index is deprecated. See google/cloud/baremetalsolution/v2/network.proto;l=243

The index of the logical interface mapping to the index of the hardware bond or nic on the chosen network template. This field is deprecated.

int32 interface_index = 3 [deprecated = true];

Returns
Type Description
int

The interfaceIndex.

getLogicalNetworkInterfaces(int index)

public LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index)

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Parameter
Name Description
index int
Returns
Type Description
LogicalInterface.LogicalNetworkInterface

getLogicalNetworkInterfacesBuilder(int index)

public LogicalInterface.LogicalNetworkInterface.Builder getLogicalNetworkInterfacesBuilder(int index)

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Parameter
Name Description
index int
Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

getLogicalNetworkInterfacesBuilderList()

public List<LogicalInterface.LogicalNetworkInterface.Builder> getLogicalNetworkInterfacesBuilderList()

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Returns
Type Description
List<Builder>

getLogicalNetworkInterfacesCount()

public int getLogicalNetworkInterfacesCount()

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Returns
Type Description
int

getLogicalNetworkInterfacesList()

public List<LogicalInterface.LogicalNetworkInterface> getLogicalNetworkInterfacesList()

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Returns
Type Description
List<LogicalNetworkInterface>

getLogicalNetworkInterfacesOrBuilder(int index)

public LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder(int index)

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Parameter
Name Description
index int
Returns
Type Description
LogicalInterface.LogicalNetworkInterfaceOrBuilder

getLogicalNetworkInterfacesOrBuilderList()

public List<? extends LogicalInterface.LogicalNetworkInterfaceOrBuilder> getLogicalNetworkInterfacesOrBuilderList()

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Returns
Type Description
List<? extends com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder>

getName()

public String getName()

Interface name. This is of syntax <bond><bond_mode> or <nic> and forms part of the network template name.

string name = 2;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Interface name. This is of syntax <bond><bond_mode> or <nic> and forms part of the network template name.

string name = 2;

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LogicalInterface other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeLogicalNetworkInterfaces(int index)

public LogicalInterface.Builder removeLogicalNetworkInterfaces(int index)

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Parameter
Name Description
index int
Returns
Type Description
LogicalInterface.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInterfaceIndex(int value) (deprecated)

public LogicalInterface.Builder setInterfaceIndex(int value)

Deprecated. google.cloud.baremetalsolution.v2.LogicalInterface.interface_index is deprecated. See google/cloud/baremetalsolution/v2/network.proto;l=243

The index of the logical interface mapping to the index of the hardware bond or nic on the chosen network template. This field is deprecated.

int32 interface_index = 3 [deprecated = true];

Parameter
Name Description
value int

The interfaceIndex to set.

Returns
Type Description
LogicalInterface.Builder

This builder for chaining.

setLogicalNetworkInterfaces(int index, LogicalInterface.LogicalNetworkInterface value)

public LogicalInterface.Builder setLogicalNetworkInterfaces(int index, LogicalInterface.LogicalNetworkInterface value)

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Parameters
Name Description
index int
value LogicalInterface.LogicalNetworkInterface
Returns
Type Description
LogicalInterface.Builder

setLogicalNetworkInterfaces(int index, LogicalInterface.LogicalNetworkInterface.Builder builderForValue)

public LogicalInterface.Builder setLogicalNetworkInterfaces(int index, LogicalInterface.LogicalNetworkInterface.Builder builderForValue)

List of logical network interfaces within a logical interface.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;

Parameters
Name Description
index int
builderForValue LogicalInterface.LogicalNetworkInterface.Builder
Returns
Type Description
LogicalInterface.Builder

setName(String value)

public LogicalInterface.Builder setName(String value)

Interface name. This is of syntax <bond><bond_mode> or <nic> and forms part of the network template name.

string name = 2;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
LogicalInterface.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LogicalInterface.Builder setNameBytes(ByteString value)

Interface name. This is of syntax <bond><bond_mode> or <nic> and forms part of the network template name.

string name = 2;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
LogicalInterface.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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