Class LogicalInterface.LogicalNetworkInterface.Builder (0.4.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LogicalInterface.LogicalNetworkInterface build()
Returns
TypeDescription
LogicalInterface.LogicalNetworkInterface

buildPartial()

public LogicalInterface.LogicalNetworkInterface buildPartial()
Returns
TypeDescription
LogicalInterface.LogicalNetworkInterface

clear()

public LogicalInterface.LogicalNetworkInterface.Builder clear()
Returns
TypeDescription
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
TypeDescription
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public LogicalInterface.LogicalNetworkInterface.Builder clearId()

An identifier for the Network, generated by the backend.

string id = 5;

Returns
TypeDescription
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

clearIpAddress()

public LogicalInterface.LogicalNetworkInterface.Builder clearIpAddress()

IP address in the network

string ip_address = 2;

Returns
TypeDescription
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

clearNetwork()

public LogicalInterface.LogicalNetworkInterface.Builder clearNetwork()

Name of the network

string network = 1;

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public LogicalInterface.LogicalNetworkInterface.Builder clone()
Returns
TypeDescription
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
TypeDescription
boolean

The defaultGateway.

getDefaultInstanceForType()

public LogicalInterface.LogicalNetworkInterface getDefaultInstanceForType()
Returns
TypeDescription
LogicalInterface.LogicalNetworkInterface

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public String getId()

An identifier for the Network, generated by the backend.

string id = 5;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

An identifier for the Network, generated by the backend.

string id = 5;

Returns
TypeDescription
ByteString

The bytes for id.

getIpAddress()

public String getIpAddress()

IP address in the network

string ip_address = 2;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

IP address in the network

string ip_address = 2;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

getNetwork()

public String getNetwork()

Name of the network

string network = 1;

Returns
TypeDescription
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Name of the network

string network = 1;

Returns
TypeDescription
ByteString

The bytes for network.

getNetworkType()

public Network.Type getNetworkType()

Type of network.

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

Returns
TypeDescription
Network.Type

The networkType.

getNetworkTypeValue()

public int getNetworkTypeValue()

Type of network.

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

Returns
TypeDescription
int

The enum numeric value on the wire for networkType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LogicalInterface.LogicalNetworkInterface other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The defaultGateway to set.

Returns
TypeDescription
LogicalInterface.LogicalNetworkInterface.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LogicalInterface.LogicalNetworkInterface.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The id to set.

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

The bytes for id to set.

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

The ipAddress to set.

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

The bytes for ipAddress to set.

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

The network to set.

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

The bytes for network to set.

Returns
TypeDescription
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
NameDescription
valueNetwork.Type

The networkType to set.

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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