Class NetworkAddress.Builder (0.22.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NetworkAddress build()
Returns
TypeDescription
NetworkAddress

buildPartial()

public NetworkAddress buildPartial()
Returns
TypeDescription
NetworkAddress

clear()

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

clearAssignment()

public NetworkAddress.Builder clearAssignment()

Whether DHCP is used to assign addresses.

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

Returns
TypeDescription
NetworkAddress.Builder

This builder for chaining.

clearBcast()

public NetworkAddress.Builder clearBcast()

Broadcast address.

string bcast = 3;

Returns
TypeDescription
NetworkAddress.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFqdn()

public NetworkAddress.Builder clearFqdn()

Fully qualified domain name.

string fqdn = 4;

Returns
TypeDescription
NetworkAddress.Builder

This builder for chaining.

clearIpAddress()

public NetworkAddress.Builder clearIpAddress()

Assigned or configured IP Address.

string ip_address = 1;

Returns
TypeDescription
NetworkAddress.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubnetMask()

public NetworkAddress.Builder clearSubnetMask()

Subnet mask.

string subnet_mask = 2;

Returns
TypeDescription
NetworkAddress.Builder

This builder for chaining.

clone()

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

getAssignment()

public NetworkAddress.AddressAssignment getAssignment()

Whether DHCP is used to assign addresses.

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

Returns
TypeDescription
NetworkAddress.AddressAssignment

The assignment.

getAssignmentValue()

public int getAssignmentValue()

Whether DHCP is used to assign addresses.

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

Returns
TypeDescription
int

The enum numeric value on the wire for assignment.

getBcast()

public String getBcast()

Broadcast address.

string bcast = 3;

Returns
TypeDescription
String

The bcast.

getBcastBytes()

public ByteString getBcastBytes()

Broadcast address.

string bcast = 3;

Returns
TypeDescription
ByteString

The bytes for bcast.

getDefaultInstanceForType()

public NetworkAddress getDefaultInstanceForType()
Returns
TypeDescription
NetworkAddress

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFqdn()

public String getFqdn()

Fully qualified domain name.

string fqdn = 4;

Returns
TypeDescription
String

The fqdn.

getFqdnBytes()

public ByteString getFqdnBytes()

Fully qualified domain name.

string fqdn = 4;

Returns
TypeDescription
ByteString

The bytes for fqdn.

getIpAddress()

public String getIpAddress()

Assigned or configured IP Address.

string ip_address = 1;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

Assigned or configured IP Address.

string ip_address = 1;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

getSubnetMask()

public String getSubnetMask()

Subnet mask.

string subnet_mask = 2;

Returns
TypeDescription
String

The subnetMask.

getSubnetMaskBytes()

public ByteString getSubnetMaskBytes()

Subnet mask.

string subnet_mask = 2;

Returns
TypeDescription
ByteString

The bytes for subnetMask.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NetworkAddress other)

public NetworkAddress.Builder mergeFrom(NetworkAddress other)
Parameter
NameDescription
otherNetworkAddress
Returns
TypeDescription
NetworkAddress.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkAddress.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueNetworkAddress.AddressAssignment

The assignment to set.

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

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

Returns
TypeDescription
NetworkAddress.Builder

This builder for chaining.

setBcast(String value)

public NetworkAddress.Builder setBcast(String value)

Broadcast address.

string bcast = 3;

Parameter
NameDescription
valueString

The bcast to set.

Returns
TypeDescription
NetworkAddress.Builder

This builder for chaining.

setBcastBytes(ByteString value)

public NetworkAddress.Builder setBcastBytes(ByteString value)

Broadcast address.

string bcast = 3;

Parameter
NameDescription
valueByteString

The bytes for bcast to set.

Returns
TypeDescription
NetworkAddress.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFqdn(String value)

public NetworkAddress.Builder setFqdn(String value)

Fully qualified domain name.

string fqdn = 4;

Parameter
NameDescription
valueString

The fqdn to set.

Returns
TypeDescription
NetworkAddress.Builder

This builder for chaining.

setFqdnBytes(ByteString value)

public NetworkAddress.Builder setFqdnBytes(ByteString value)

Fully qualified domain name.

string fqdn = 4;

Parameter
NameDescription
valueByteString

The bytes for fqdn to set.

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

The ipAddress to set.

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

The bytes for ipAddress to set.

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

setSubnetMask(String value)

public NetworkAddress.Builder setSubnetMask(String value)

Subnet mask.

string subnet_mask = 2;

Parameter
NameDescription
valueString

The subnetMask to set.

Returns
TypeDescription
NetworkAddress.Builder

This builder for chaining.

setSubnetMaskBytes(ByteString value)

public NetworkAddress.Builder setSubnetMaskBytes(ByteString value)

Subnet mask.

string subnet_mask = 2;

Parameter
NameDescription
valueByteString

The bytes for subnetMask to set.

Returns
TypeDescription
NetworkAddress.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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