Class LogicalInterface.Builder (0.20.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface>
Returns
TypeDescription
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
NameDescription
valueLogicalInterface.LogicalNetworkInterface
Returns
TypeDescription
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
NameDescription
builderForValueLogicalInterface.LogicalNetworkInterface.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueLogicalInterface.LogicalNetworkInterface
Returns
TypeDescription
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
NameDescription
indexint
builderForValueLogicalInterface.LogicalNetworkInterface.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
LogicalInterface.LogicalNetworkInterface.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LogicalInterface.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LogicalInterface.Builder
Overrides

build()

public LogicalInterface build()
Returns
TypeDescription
LogicalInterface

buildPartial()

public LogicalInterface buildPartial()
Returns
TypeDescription
LogicalInterface

clear()

public LogicalInterface.Builder clear()
Returns
TypeDescription
LogicalInterface.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public LogicalInterface.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LogicalInterface.Builder
Overrides

clearInterfaceIndex()

public LogicalInterface.Builder clearInterfaceIndex()

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

int32 interface_index = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
LogicalInterface.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LogicalInterface.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LogicalInterface.Builder
Overrides

clone()

public LogicalInterface.Builder clone()
Returns
TypeDescription
LogicalInterface.Builder
Overrides

getDefaultInstanceForType()

public LogicalInterface getDefaultInstanceForType()
Returns
TypeDescription
LogicalInterface

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInterfaceIndex()

public int getInterfaceIndex()

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

int32 interface_index = 3;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LogicalInterface other)

public LogicalInterface.Builder mergeFrom(LogicalInterface other)
Parameter
NameDescription
otherLogicalInterface
Returns
TypeDescription
LogicalInterface.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LogicalInterface.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogicalInterface.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LogicalInterface.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LogicalInterface.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LogicalInterface.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
LogicalInterface.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LogicalInterface.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LogicalInterface.Builder
Overrides

setInterfaceIndex(int value)

public LogicalInterface.Builder setInterfaceIndex(int value)

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

int32 interface_index = 3;

Parameter
NameDescription
valueint

The interfaceIndex to set.

Returns
TypeDescription
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
NameDescription
indexint
valueLogicalInterface.LogicalNetworkInterface
Returns
TypeDescription
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
NameDescription
indexint
builderForValueLogicalInterface.LogicalNetworkInterface.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LogicalInterface.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LogicalInterface.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LogicalInterface.Builder
Overrides