Class NetworkAddress (0.4.0)

public final class NetworkAddress extends GeneratedMessageV3 implements NetworkAddressOrBuilder

Details of network address.

Protobuf type google.cloud.migrationcenter.v1.NetworkAddress

Static Fields

ASSIGNMENT_FIELD_NUMBER

public static final int ASSIGNMENT_FIELD_NUMBER
Field Value
TypeDescription
int

BCAST_FIELD_NUMBER

public static final int BCAST_FIELD_NUMBER
Field Value
TypeDescription
int

FQDN_FIELD_NUMBER

public static final int FQDN_FIELD_NUMBER
Field Value
TypeDescription
int

IP_ADDRESS_FIELD_NUMBER

public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
TypeDescription
int

SUBNET_MASK_FIELD_NUMBER

public static final int SUBNET_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NetworkAddress getDefaultInstance()
Returns
TypeDescription
NetworkAddress

getDescriptor()

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

newBuilder()

public static NetworkAddress.Builder newBuilder()
Returns
TypeDescription
NetworkAddress.Builder

newBuilder(NetworkAddress prototype)

public static NetworkAddress.Builder newBuilder(NetworkAddress prototype)
Parameter
NameDescription
prototypeNetworkAddress
Returns
TypeDescription
NetworkAddress.Builder

parseDelimitedFrom(InputStream input)

public static NetworkAddress parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworkAddress
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkAddress parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkAddress
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static NetworkAddress parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
NetworkAddress
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NetworkAddress parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkAddress
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NetworkAddress parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
NetworkAddress
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NetworkAddress parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkAddress
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NetworkAddress parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
NetworkAddress
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkAddress parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkAddress
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static NetworkAddress parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworkAddress
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkAddress parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkAddress
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static NetworkAddress parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
NetworkAddress
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NetworkAddress parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkAddress
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<NetworkAddress> parser()
Returns
TypeDescription
Parser<NetworkAddress>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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.

getParserForType()

public Parser<NetworkAddress> getParserForType()
Returns
TypeDescription
Parser<NetworkAddress>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public NetworkAddress.Builder newBuilderForType()
Returns
TypeDescription
NetworkAddress.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NetworkAddress.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
NetworkAddress.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public NetworkAddress.Builder toBuilder()
Returns
TypeDescription
NetworkAddress.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException