public final class HostsEntry extends GeneratedMessageV3 implements HostsEntryOrBuilder
Single /etc/hosts entry.
Protobuf type google.cloud.migrationcenter.v1.HostsEntry
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > HostsEntryImplements
HostsEntryOrBuilderStatic Fields
HOST_NAMES_FIELD_NUMBER
public static final int HOST_NAMES_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
IP_FIELD_NUMBER
public static final int IP_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static HostsEntry getDefaultInstance()
Returns | |
---|---|
Type | Description |
HostsEntry |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static HostsEntry.Builder newBuilder()
Returns | |
---|---|
Type | Description |
HostsEntry.Builder |
newBuilder(HostsEntry prototype)
public static HostsEntry.Builder newBuilder(HostsEntry prototype)
Parameter | |
---|---|
Name | Description |
prototype | HostsEntry |
Returns | |
---|---|
Type | Description |
HostsEntry.Builder |
parseDelimitedFrom(InputStream input)
public static HostsEntry parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
HostsEntry |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static HostsEntry parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HostsEntry |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static HostsEntry parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data | byte[] |
Returns | |
---|---|
Type | Description |
HostsEntry |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HostsEntry parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HostsEntry |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static HostsEntry parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data | ByteString |
Returns | |
---|---|
Type | Description |
HostsEntry |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HostsEntry parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HostsEntry |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static HostsEntry parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input | CodedInputStream |
Returns | |
---|---|
Type | Description |
HostsEntry |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static HostsEntry parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HostsEntry |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static HostsEntry parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
HostsEntry |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static HostsEntry parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HostsEntry |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static HostsEntry parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data | ByteBuffer |
Returns | |
---|---|
Type | Description |
HostsEntry |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static HostsEntry parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HostsEntry |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<HostsEntry> parser()
Returns | |
---|---|
Type | Description |
Parser<HostsEntry> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj | Object |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public HostsEntry getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
HostsEntry |
getHostNames(int index)
public String getHostNames(int index)
List of host names / aliases.
repeated string host_names = 2;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
int | The count of hostNames. |
getHostNamesList()
public ProtocolStringList getHostNamesList()
List of host names / aliases.
repeated string host_names = 2;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the hostNames. |
getIp()
public String getIp()
IP (raw, IPv4/6 agnostic).
string ip = 1;
Returns | |
---|---|
Type | Description |
String | The ip. |
getIpBytes()
public ByteString getIpBytes()
IP (raw, IPv4/6 agnostic).
string ip = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for ip. |
getParserForType()
public Parser<HostsEntry> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<HostsEntry> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public HostsEntry.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
HostsEntry.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected HostsEntry.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent | BuilderParent |
Returns | |
---|---|
Type | Description |
HostsEntry.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused | UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public HostsEntry.Builder toBuilder()
Returns | |
---|---|
Type | Description |
HostsEntry.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output | CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |