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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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>
|
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;
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;
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;
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;
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;
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
|
public LogicalInterface.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public LogicalInterface build()
public LogicalInterface buildPartial()
public LogicalInterface.Builder clear()
Overrides
public LogicalInterface.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
public LogicalInterface.Builder clearLogicalNetworkInterfaces()
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
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;
public LogicalInterface.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public LogicalInterface.Builder clone()
Overrides
public LogicalInterface getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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
|
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
|
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;
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 | |
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;
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
|
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> | |
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public LogicalInterface.Builder mergeFrom(LogicalInterface other)
public LogicalInterface.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public LogicalInterface.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final LogicalInterface.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
public LogicalInterface.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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;
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;
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.
|
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.
|
public LogicalInterface.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final LogicalInterface.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides