Class LogicalInterface.LogicalNetworkInterface.Builder (0.49.0)

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

Each logical network interface is effectively a network and IP pair.

Protobuf type google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LogicalInterface.LogicalNetworkInterface build()
Returns
Type Description
LogicalInterface.LogicalNetworkInterface

buildPartial()

public LogicalInterface.LogicalNetworkInterface buildPartial()
Returns
Type Description
LogicalInterface.LogicalNetworkInterface

clear()

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

clearDefaultGateway()

public LogicalInterface.LogicalNetworkInterface.Builder clearDefaultGateway()

Whether this interface is the default gateway for the instance. Only one interface can be the default gateway for the instance.

bool default_gateway = 3;

Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public LogicalInterface.LogicalNetworkInterface.Builder clearId()

An identifier for the Network, generated by the backend.

string id = 5;

Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

clearIpAddress()

public LogicalInterface.LogicalNetworkInterface.Builder clearIpAddress()

IP address in the network

string ip_address = 2;

Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

clearNetwork()

public LogicalInterface.LogicalNetworkInterface.Builder clearNetwork()

Name of the network

string network = 1;

Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

clearNetworkType()

public LogicalInterface.LogicalNetworkInterface.Builder clearNetworkType()

Type of network.

.google.cloud.baremetalsolution.v2.Network.Type network_type = 4;

Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultGateway()

public boolean getDefaultGateway()

Whether this interface is the default gateway for the instance. Only one interface can be the default gateway for the instance.

bool default_gateway = 3;

Returns
Type Description
boolean

The defaultGateway.

getDefaultInstanceForType()

public LogicalInterface.LogicalNetworkInterface getDefaultInstanceForType()
Returns
Type Description
LogicalInterface.LogicalNetworkInterface

getDescriptorForType()

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

getId()

public String getId()

An identifier for the Network, generated by the backend.

string id = 5;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

An identifier for the Network, generated by the backend.

string id = 5;

Returns
Type Description
ByteString

The bytes for id.

getIpAddress()

public String getIpAddress()

IP address in the network

string ip_address = 2;

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

IP address in the network

string ip_address = 2;

Returns
Type Description
ByteString

The bytes for ipAddress.

getNetwork()

public String getNetwork()

Name of the network

string network = 1;

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Name of the network

string network = 1;

Returns
Type Description
ByteString

The bytes for network.

getNetworkType()

public Network.Type getNetworkType()

Type of network.

.google.cloud.baremetalsolution.v2.Network.Type network_type = 4;

Returns
Type Description
Network.Type

The networkType.

getNetworkTypeValue()

public int getNetworkTypeValue()

Type of network.

.google.cloud.baremetalsolution.v2.Network.Type network_type = 4;

Returns
Type Description
int

The enum numeric value on the wire for networkType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LogicalInterface.LogicalNetworkInterface other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDefaultGateway(boolean value)

public LogicalInterface.LogicalNetworkInterface.Builder setDefaultGateway(boolean value)

Whether this interface is the default gateway for the instance. Only one interface can be the default gateway for the instance.

bool default_gateway = 3;

Parameter
Name Description
value boolean

The defaultGateway to set.

Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public LogicalInterface.LogicalNetworkInterface.Builder setId(String value)

An identifier for the Network, generated by the backend.

string id = 5;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

setIdBytes(ByteString value)

public LogicalInterface.LogicalNetworkInterface.Builder setIdBytes(ByteString value)

An identifier for the Network, generated by the backend.

string id = 5;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

setIpAddress(String value)

public LogicalInterface.LogicalNetworkInterface.Builder setIpAddress(String value)

IP address in the network

string ip_address = 2;

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public LogicalInterface.LogicalNetworkInterface.Builder setIpAddressBytes(ByteString value)

IP address in the network

string ip_address = 2;

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

setNetwork(String value)

public LogicalInterface.LogicalNetworkInterface.Builder setNetwork(String value)

Name of the network

string network = 1;

Parameter
Name Description
value String

The network to set.

Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public LogicalInterface.LogicalNetworkInterface.Builder setNetworkBytes(ByteString value)

Name of the network

string network = 1;

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

setNetworkType(Network.Type value)

public LogicalInterface.LogicalNetworkInterface.Builder setNetworkType(Network.Type value)

Type of network.

.google.cloud.baremetalsolution.v2.Network.Type network_type = 4;

Parameter
Name Description
value Network.Type

The networkType to set.

Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

setNetworkTypeValue(int value)

public LogicalInterface.LogicalNetworkInterface.Builder setNetworkTypeValue(int value)

Type of network.

.google.cloud.baremetalsolution.v2.Network.Type network_type = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for networkType to set.

Returns
Type Description
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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