Class HostsEntry (0.23.0)

public final class HostsEntry extends GeneratedMessageV3 implements HostsEntryOrBuilder

Single /etc/hosts entry.

Protobuf type google.cloud.migrationcenter.v1.HostsEntry

Implements

HostsEntryOrBuilder

Static Fields

HOST_NAMES_FIELD_NUMBER

public static final int HOST_NAMES_FIELD_NUMBER
Field Value
TypeDescription
int

IP_FIELD_NUMBER

public static final int IP_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static HostsEntry getDefaultInstance()
Returns
TypeDescription
HostsEntry

getDescriptor()

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

newBuilder()

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

newBuilder(HostsEntry prototype)

public static HostsEntry.Builder newBuilder(HostsEntry prototype)
Parameter
NameDescription
prototypeHostsEntry
Returns
TypeDescription
HostsEntry.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public HostsEntry getDefaultInstanceForType()
Returns
TypeDescription
HostsEntry

getHostNames(int index)

public String getHostNames(int index)

List of host names / aliases.

repeated string host_names = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The hostNames at the given index.

getHostNamesBytes(int index)

public ByteString getHostNamesBytes(int index)

List of host names / aliases.

repeated string host_names = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the hostNames at the given index.

getHostNamesCount()

public int getHostNamesCount()

List of host names / aliases.

repeated string host_names = 2;

Returns
TypeDescription
int

The count of hostNames.

getHostNamesList()

public ProtocolStringList getHostNamesList()

List of host names / aliases.

repeated string host_names = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the hostNames.

getIp()

public String getIp()

IP (raw, IPv4/6 agnostic).

string ip = 1;

Returns
TypeDescription
String

The ip.

getIpBytes()

public ByteString getIpBytes()

IP (raw, IPv4/6 agnostic).

string ip = 1;

Returns
TypeDescription
ByteString

The bytes for ip.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 HostsEntry.Builder newBuilderForType()
Returns
TypeDescription
HostsEntry.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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