Class MachineNetworkDetails.Builder (0.33.0)

public static final class MachineNetworkDetails.Builder extends GeneratedMessageV3.Builder<MachineNetworkDetails.Builder> implements MachineNetworkDetailsOrBuilder

Details of network adapters and settings.

Protobuf type google.cloud.migrationcenter.v1.MachineNetworkDetails

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MachineNetworkDetails build()
Returns
Type Description
MachineNetworkDetails

buildPartial()

public MachineNetworkDetails buildPartial()
Returns
Type Description
MachineNetworkDetails

clear()

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

clearAdapters()

public MachineNetworkDetails.Builder clearAdapters()

List of network adapters.

.google.cloud.migrationcenter.v1.NetworkAdapterList adapters = 4;

Returns
Type Description
MachineNetworkDetails.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrimaryIpAddress()

public MachineNetworkDetails.Builder clearPrimaryIpAddress()

The primary IP address of the machine.

string primary_ip_address = 1;

Returns
Type Description
MachineNetworkDetails.Builder

This builder for chaining.

clearPrimaryMacAddress()

public MachineNetworkDetails.Builder clearPrimaryMacAddress()

MAC address of the machine. This property is used to uniqly identify the machine.

string primary_mac_address = 3;

Returns
Type Description
MachineNetworkDetails.Builder

This builder for chaining.

clearPublicIpAddress()

public MachineNetworkDetails.Builder clearPublicIpAddress()

The public IP address of the machine.

string public_ip_address = 2;

Returns
Type Description
MachineNetworkDetails.Builder

This builder for chaining.

clone()

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

getAdapters()

public NetworkAdapterList getAdapters()

List of network adapters.

.google.cloud.migrationcenter.v1.NetworkAdapterList adapters = 4;

Returns
Type Description
NetworkAdapterList

The adapters.

getAdaptersBuilder()

public NetworkAdapterList.Builder getAdaptersBuilder()

List of network adapters.

.google.cloud.migrationcenter.v1.NetworkAdapterList adapters = 4;

Returns
Type Description
NetworkAdapterList.Builder

getAdaptersOrBuilder()

public NetworkAdapterListOrBuilder getAdaptersOrBuilder()

List of network adapters.

.google.cloud.migrationcenter.v1.NetworkAdapterList adapters = 4;

Returns
Type Description
NetworkAdapterListOrBuilder

getDefaultInstanceForType()

public MachineNetworkDetails getDefaultInstanceForType()
Returns
Type Description
MachineNetworkDetails

getDescriptorForType()

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

getPrimaryIpAddress()

public String getPrimaryIpAddress()

The primary IP address of the machine.

string primary_ip_address = 1;

Returns
Type Description
String

The primaryIpAddress.

getPrimaryIpAddressBytes()

public ByteString getPrimaryIpAddressBytes()

The primary IP address of the machine.

string primary_ip_address = 1;

Returns
Type Description
ByteString

The bytes for primaryIpAddress.

getPrimaryMacAddress()

public String getPrimaryMacAddress()

MAC address of the machine. This property is used to uniqly identify the machine.

string primary_mac_address = 3;

Returns
Type Description
String

The primaryMacAddress.

getPrimaryMacAddressBytes()

public ByteString getPrimaryMacAddressBytes()

MAC address of the machine. This property is used to uniqly identify the machine.

string primary_mac_address = 3;

Returns
Type Description
ByteString

The bytes for primaryMacAddress.

getPublicIpAddress()

public String getPublicIpAddress()

The public IP address of the machine.

string public_ip_address = 2;

Returns
Type Description
String

The publicIpAddress.

getPublicIpAddressBytes()

public ByteString getPublicIpAddressBytes()

The public IP address of the machine.

string public_ip_address = 2;

Returns
Type Description
ByteString

The bytes for publicIpAddress.

hasAdapters()

public boolean hasAdapters()

List of network adapters.

.google.cloud.migrationcenter.v1.NetworkAdapterList adapters = 4;

Returns
Type Description
boolean

Whether the adapters field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAdapters(NetworkAdapterList value)

public MachineNetworkDetails.Builder mergeAdapters(NetworkAdapterList value)

List of network adapters.

.google.cloud.migrationcenter.v1.NetworkAdapterList adapters = 4;

Parameter
Name Description
value NetworkAdapterList
Returns
Type Description
MachineNetworkDetails.Builder

mergeFrom(MachineNetworkDetails other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAdapters(NetworkAdapterList value)

public MachineNetworkDetails.Builder setAdapters(NetworkAdapterList value)

List of network adapters.

.google.cloud.migrationcenter.v1.NetworkAdapterList adapters = 4;

Parameter
Name Description
value NetworkAdapterList
Returns
Type Description
MachineNetworkDetails.Builder

setAdapters(NetworkAdapterList.Builder builderForValue)

public MachineNetworkDetails.Builder setAdapters(NetworkAdapterList.Builder builderForValue)

List of network adapters.

.google.cloud.migrationcenter.v1.NetworkAdapterList adapters = 4;

Parameter
Name Description
builderForValue NetworkAdapterList.Builder
Returns
Type Description
MachineNetworkDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPrimaryIpAddress(String value)

public MachineNetworkDetails.Builder setPrimaryIpAddress(String value)

The primary IP address of the machine.

string primary_ip_address = 1;

Parameter
Name Description
value String

The primaryIpAddress to set.

Returns
Type Description
MachineNetworkDetails.Builder

This builder for chaining.

setPrimaryIpAddressBytes(ByteString value)

public MachineNetworkDetails.Builder setPrimaryIpAddressBytes(ByteString value)

The primary IP address of the machine.

string primary_ip_address = 1;

Parameter
Name Description
value ByteString

The bytes for primaryIpAddress to set.

Returns
Type Description
MachineNetworkDetails.Builder

This builder for chaining.

setPrimaryMacAddress(String value)

public MachineNetworkDetails.Builder setPrimaryMacAddress(String value)

MAC address of the machine. This property is used to uniqly identify the machine.

string primary_mac_address = 3;

Parameter
Name Description
value String

The primaryMacAddress to set.

Returns
Type Description
MachineNetworkDetails.Builder

This builder for chaining.

setPrimaryMacAddressBytes(ByteString value)

public MachineNetworkDetails.Builder setPrimaryMacAddressBytes(ByteString value)

MAC address of the machine. This property is used to uniqly identify the machine.

string primary_mac_address = 3;

Parameter
Name Description
value ByteString

The bytes for primaryMacAddress to set.

Returns
Type Description
MachineNetworkDetails.Builder

This builder for chaining.

setPublicIpAddress(String value)

public MachineNetworkDetails.Builder setPublicIpAddress(String value)

The public IP address of the machine.

string public_ip_address = 2;

Parameter
Name Description
value String

The publicIpAddress to set.

Returns
Type Description
MachineNetworkDetails.Builder

This builder for chaining.

setPublicIpAddressBytes(ByteString value)

public MachineNetworkDetails.Builder setPublicIpAddressBytes(ByteString value)

The public IP address of the machine.

string public_ip_address = 2;

Parameter
Name Description
value ByteString

The bytes for publicIpAddress to set.

Returns
Type Description
MachineNetworkDetails.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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