Class NetworkAdapterDetails.Builder (0.23.0)

public static final class NetworkAdapterDetails.Builder extends GeneratedMessageV3.Builder<NetworkAdapterDetails.Builder> implements NetworkAdapterDetailsOrBuilder

Details of network adapter.

Protobuf type google.cloud.migrationcenter.v1.NetworkAdapterDetails

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NetworkAdapterDetails build()
Returns
TypeDescription
NetworkAdapterDetails

buildPartial()

public NetworkAdapterDetails buildPartial()
Returns
TypeDescription
NetworkAdapterDetails

clear()

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

clearAdapterType()

public NetworkAdapterDetails.Builder clearAdapterType()

Network adapter type (e.g. VMXNET3).

string adapter_type = 1;

Returns
TypeDescription
NetworkAdapterDetails.Builder

This builder for chaining.

clearAddresses()

public NetworkAdapterDetails.Builder clearAddresses()

NetworkAddressList

.google.cloud.migrationcenter.v1.NetworkAddressList addresses = 3;

Returns
TypeDescription
NetworkAdapterDetails.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMacAddress()

public NetworkAdapterDetails.Builder clearMacAddress()

MAC address.

string mac_address = 2;

Returns
TypeDescription
NetworkAdapterDetails.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAdapterType()

public String getAdapterType()

Network adapter type (e.g. VMXNET3).

string adapter_type = 1;

Returns
TypeDescription
String

The adapterType.

getAdapterTypeBytes()

public ByteString getAdapterTypeBytes()

Network adapter type (e.g. VMXNET3).

string adapter_type = 1;

Returns
TypeDescription
ByteString

The bytes for adapterType.

getAddresses()

public NetworkAddressList getAddresses()

NetworkAddressList

.google.cloud.migrationcenter.v1.NetworkAddressList addresses = 3;

Returns
TypeDescription
NetworkAddressList

The addresses.

getAddressesBuilder()

public NetworkAddressList.Builder getAddressesBuilder()

NetworkAddressList

.google.cloud.migrationcenter.v1.NetworkAddressList addresses = 3;

Returns
TypeDescription
NetworkAddressList.Builder

getAddressesOrBuilder()

public NetworkAddressListOrBuilder getAddressesOrBuilder()

NetworkAddressList

.google.cloud.migrationcenter.v1.NetworkAddressList addresses = 3;

Returns
TypeDescription
NetworkAddressListOrBuilder

getDefaultInstanceForType()

public NetworkAdapterDetails getDefaultInstanceForType()
Returns
TypeDescription
NetworkAdapterDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMacAddress()

public String getMacAddress()

MAC address.

string mac_address = 2;

Returns
TypeDescription
String

The macAddress.

getMacAddressBytes()

public ByteString getMacAddressBytes()

MAC address.

string mac_address = 2;

Returns
TypeDescription
ByteString

The bytes for macAddress.

hasAddresses()

public boolean hasAddresses()

NetworkAddressList

.google.cloud.migrationcenter.v1.NetworkAddressList addresses = 3;

Returns
TypeDescription
boolean

Whether the addresses field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAddresses(NetworkAddressList value)

public NetworkAdapterDetails.Builder mergeAddresses(NetworkAddressList value)

NetworkAddressList

.google.cloud.migrationcenter.v1.NetworkAddressList addresses = 3;

Parameter
NameDescription
valueNetworkAddressList
Returns
TypeDescription
NetworkAdapterDetails.Builder

mergeFrom(NetworkAdapterDetails other)

public NetworkAdapterDetails.Builder mergeFrom(NetworkAdapterDetails other)
Parameter
NameDescription
otherNetworkAdapterDetails
Returns
TypeDescription
NetworkAdapterDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkAdapterDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkAdapterDetails.Builder
Overrides

setAdapterType(String value)

public NetworkAdapterDetails.Builder setAdapterType(String value)

Network adapter type (e.g. VMXNET3).

string adapter_type = 1;

Parameter
NameDescription
valueString

The adapterType to set.

Returns
TypeDescription
NetworkAdapterDetails.Builder

This builder for chaining.

setAdapterTypeBytes(ByteString value)

public NetworkAdapterDetails.Builder setAdapterTypeBytes(ByteString value)

Network adapter type (e.g. VMXNET3).

string adapter_type = 1;

Parameter
NameDescription
valueByteString

The bytes for adapterType to set.

Returns
TypeDescription
NetworkAdapterDetails.Builder

This builder for chaining.

setAddresses(NetworkAddressList value)

public NetworkAdapterDetails.Builder setAddresses(NetworkAddressList value)

NetworkAddressList

.google.cloud.migrationcenter.v1.NetworkAddressList addresses = 3;

Parameter
NameDescription
valueNetworkAddressList
Returns
TypeDescription
NetworkAdapterDetails.Builder

setAddresses(NetworkAddressList.Builder builderForValue)

public NetworkAdapterDetails.Builder setAddresses(NetworkAddressList.Builder builderForValue)

NetworkAddressList

.google.cloud.migrationcenter.v1.NetworkAddressList addresses = 3;

Parameter
NameDescription
builderForValueNetworkAddressList.Builder
Returns
TypeDescription
NetworkAdapterDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMacAddress(String value)

public NetworkAdapterDetails.Builder setMacAddress(String value)

MAC address.

string mac_address = 2;

Parameter
NameDescription
valueString

The macAddress to set.

Returns
TypeDescription
NetworkAdapterDetails.Builder

This builder for chaining.

setMacAddressBytes(ByteString value)

public NetworkAdapterDetails.Builder setMacAddressBytes(ByteString value)

MAC address.

string mac_address = 2;

Parameter
NameDescription
valueByteString

The bytes for macAddress to set.

Returns
TypeDescription
NetworkAdapterDetails.Builder

This builder for chaining.

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

public NetworkAdapterDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NetworkAdapterDetails.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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