Class NetworkAddress.Builder (0.27.0)

public static final class NetworkAddress.Builder extends GeneratedMessageV3.Builder<NetworkAddress.Builder> implements NetworkAddressOrBuilder

Details of network address.

Protobuf type google.cloud.migrationcenter.v1.NetworkAddress

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NetworkAddress build()
Returns
Type Description
NetworkAddress

buildPartial()

public NetworkAddress buildPartial()
Returns
Type Description
NetworkAddress

clear()

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

clearAssignment()

public NetworkAddress.Builder clearAssignment()

Whether DHCP is used to assign addresses.

.google.cloud.migrationcenter.v1.NetworkAddress.AddressAssignment assignment = 5;

Returns
Type Description
NetworkAddress.Builder

This builder for chaining.

clearBcast()

public NetworkAddress.Builder clearBcast()

Broadcast address.

string bcast = 3;

Returns
Type Description
NetworkAddress.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFqdn()

public NetworkAddress.Builder clearFqdn()

Fully qualified domain name.

string fqdn = 4;

Returns
Type Description
NetworkAddress.Builder

This builder for chaining.

clearIpAddress()

public NetworkAddress.Builder clearIpAddress()

Assigned or configured IP Address.

string ip_address = 1;

Returns
Type Description
NetworkAddress.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubnetMask()

public NetworkAddress.Builder clearSubnetMask()

Subnet mask.

string subnet_mask = 2;

Returns
Type Description
NetworkAddress.Builder

This builder for chaining.

clone()

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

getAssignment()

public NetworkAddress.AddressAssignment getAssignment()

Whether DHCP is used to assign addresses.

.google.cloud.migrationcenter.v1.NetworkAddress.AddressAssignment assignment = 5;

Returns
Type Description
NetworkAddress.AddressAssignment

The assignment.

getAssignmentValue()

public int getAssignmentValue()

Whether DHCP is used to assign addresses.

.google.cloud.migrationcenter.v1.NetworkAddress.AddressAssignment assignment = 5;

Returns
Type Description
int

The enum numeric value on the wire for assignment.

getBcast()

public String getBcast()

Broadcast address.

string bcast = 3;

Returns
Type Description
String

The bcast.

getBcastBytes()

public ByteString getBcastBytes()

Broadcast address.

string bcast = 3;

Returns
Type Description
ByteString

The bytes for bcast.

getDefaultInstanceForType()

public NetworkAddress getDefaultInstanceForType()
Returns
Type Description
NetworkAddress

getDescriptorForType()

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

getFqdn()

public String getFqdn()

Fully qualified domain name.

string fqdn = 4;

Returns
Type Description
String

The fqdn.

getFqdnBytes()

public ByteString getFqdnBytes()

Fully qualified domain name.

string fqdn = 4;

Returns
Type Description
ByteString

The bytes for fqdn.

getIpAddress()

public String getIpAddress()

Assigned or configured IP Address.

string ip_address = 1;

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

Assigned or configured IP Address.

string ip_address = 1;

Returns
Type Description
ByteString

The bytes for ipAddress.

getSubnetMask()

public String getSubnetMask()

Subnet mask.

string subnet_mask = 2;

Returns
Type Description
String

The subnetMask.

getSubnetMaskBytes()

public ByteString getSubnetMaskBytes()

Subnet mask.

string subnet_mask = 2;

Returns
Type Description
ByteString

The bytes for subnetMask.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NetworkAddress other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAssignment(NetworkAddress.AddressAssignment value)

public NetworkAddress.Builder setAssignment(NetworkAddress.AddressAssignment value)

Whether DHCP is used to assign addresses.

.google.cloud.migrationcenter.v1.NetworkAddress.AddressAssignment assignment = 5;

Parameter
Name Description
value NetworkAddress.AddressAssignment

The assignment to set.

Returns
Type Description
NetworkAddress.Builder

This builder for chaining.

setAssignmentValue(int value)

public NetworkAddress.Builder setAssignmentValue(int value)

Whether DHCP is used to assign addresses.

.google.cloud.migrationcenter.v1.NetworkAddress.AddressAssignment assignment = 5;

Parameter
Name Description
value int

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

Returns
Type Description
NetworkAddress.Builder

This builder for chaining.

setBcast(String value)

public NetworkAddress.Builder setBcast(String value)

Broadcast address.

string bcast = 3;

Parameter
Name Description
value String

The bcast to set.

Returns
Type Description
NetworkAddress.Builder

This builder for chaining.

setBcastBytes(ByteString value)

public NetworkAddress.Builder setBcastBytes(ByteString value)

Broadcast address.

string bcast = 3;

Parameter
Name Description
value ByteString

The bytes for bcast to set.

Returns
Type Description
NetworkAddress.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFqdn(String value)

public NetworkAddress.Builder setFqdn(String value)

Fully qualified domain name.

string fqdn = 4;

Parameter
Name Description
value String

The fqdn to set.

Returns
Type Description
NetworkAddress.Builder

This builder for chaining.

setFqdnBytes(ByteString value)

public NetworkAddress.Builder setFqdnBytes(ByteString value)

Fully qualified domain name.

string fqdn = 4;

Parameter
Name Description
value ByteString

The bytes for fqdn to set.

Returns
Type Description
NetworkAddress.Builder

This builder for chaining.

setIpAddress(String value)

public NetworkAddress.Builder setIpAddress(String value)

Assigned or configured IP Address.

string ip_address = 1;

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
NetworkAddress.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public NetworkAddress.Builder setIpAddressBytes(ByteString value)

Assigned or configured IP Address.

string ip_address = 1;

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
NetworkAddress.Builder

This builder for chaining.

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

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

setSubnetMask(String value)

public NetworkAddress.Builder setSubnetMask(String value)

Subnet mask.

string subnet_mask = 2;

Parameter
Name Description
value String

The subnetMask to set.

Returns
Type Description
NetworkAddress.Builder

This builder for chaining.

setSubnetMaskBytes(ByteString value)

public NetworkAddress.Builder setSubnetMaskBytes(ByteString value)

Subnet mask.

string subnet_mask = 2;

Parameter
Name Description
value ByteString

The bytes for subnetMask to set.

Returns
Type Description
NetworkAddress.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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