public static final class V1.HostAlias.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.HostAlias.Builder> implements V1.HostAliasOrBuilder
HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.Protobuf type
k8s.io.api.core.v1.HostAlias
Modifier and Type | Method and Description |
---|---|
V1.HostAlias.Builder |
addAllHostnames(Iterable<String> values)
Hostnames for the above IP address.
|
V1.HostAlias.Builder |
addHostnames(String value)
Hostnames for the above IP address.
|
V1.HostAlias.Builder |
addHostnamesBytes(com.google.protobuf.ByteString value)
Hostnames for the above IP address.
|
V1.HostAlias.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.HostAlias |
build() |
V1.HostAlias |
buildPartial() |
V1.HostAlias.Builder |
clear() |
V1.HostAlias.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1.HostAlias.Builder |
clearHostnames()
Hostnames for the above IP address.
|
V1.HostAlias.Builder |
clearIp()
IP address of the host file entry.
|
V1.HostAlias.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1.HostAlias.Builder |
clone() |
V1.HostAlias |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getHostnames(int index)
Hostnames for the above IP address.
|
com.google.protobuf.ByteString |
getHostnamesBytes(int index)
Hostnames for the above IP address.
|
int |
getHostnamesCount()
Hostnames for the above IP address.
|
com.google.protobuf.ProtocolStringList |
getHostnamesList()
Hostnames for the above IP address.
|
String |
getIp()
IP address of the host file entry.
|
com.google.protobuf.ByteString |
getIpBytes()
IP address of the host file entry.
|
boolean |
hasIp()
IP address of the host file entry.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1.HostAlias.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1.HostAlias.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1.HostAlias.Builder |
mergeFrom(V1.HostAlias other) |
V1.HostAlias.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.HostAlias.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.HostAlias.Builder |
setHostnames(int index,
String value)
Hostnames for the above IP address.
|
V1.HostAlias.Builder |
setIp(String value)
IP address of the host file entry.
|
V1.HostAlias.Builder |
setIpBytes(com.google.protobuf.ByteString value)
IP address of the host file entry.
|
V1.HostAlias.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1.HostAlias.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<V1.HostAlias.Builder>
public V1.HostAlias.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<V1.HostAlias.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<V1.HostAlias.Builder>
public V1.HostAlias getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public V1.HostAlias build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public V1.HostAlias buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public V1.HostAlias.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<V1.HostAlias.Builder>
public V1.HostAlias.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<V1.HostAlias.Builder>
public V1.HostAlias.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<V1.HostAlias.Builder>
public V1.HostAlias.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<V1.HostAlias.Builder>
public V1.HostAlias.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<V1.HostAlias.Builder>
public V1.HostAlias.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<V1.HostAlias.Builder>
public V1.HostAlias.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<V1.HostAlias.Builder>
public V1.HostAlias.Builder mergeFrom(V1.HostAlias other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<V1.HostAlias.Builder>
public V1.HostAlias.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<V1.HostAlias.Builder>
IOException
public boolean hasIp()
IP address of the host file entry.
optional string ip = 1;
hasIp
in interface V1.HostAliasOrBuilder
public String getIp()
IP address of the host file entry.
optional string ip = 1;
getIp
in interface V1.HostAliasOrBuilder
public com.google.protobuf.ByteString getIpBytes()
IP address of the host file entry.
optional string ip = 1;
getIpBytes
in interface V1.HostAliasOrBuilder
public V1.HostAlias.Builder setIp(String value)
IP address of the host file entry.
optional string ip = 1;
public V1.HostAlias.Builder clearIp()
IP address of the host file entry.
optional string ip = 1;
public V1.HostAlias.Builder setIpBytes(com.google.protobuf.ByteString value)
IP address of the host file entry.
optional string ip = 1;
public com.google.protobuf.ProtocolStringList getHostnamesList()
Hostnames for the above IP address.
repeated string hostnames = 2;
getHostnamesList
in interface V1.HostAliasOrBuilder
public int getHostnamesCount()
Hostnames for the above IP address.
repeated string hostnames = 2;
getHostnamesCount
in interface V1.HostAliasOrBuilder
public String getHostnames(int index)
Hostnames for the above IP address.
repeated string hostnames = 2;
getHostnames
in interface V1.HostAliasOrBuilder
public com.google.protobuf.ByteString getHostnamesBytes(int index)
Hostnames for the above IP address.
repeated string hostnames = 2;
getHostnamesBytes
in interface V1.HostAliasOrBuilder
public V1.HostAlias.Builder setHostnames(int index, String value)
Hostnames for the above IP address.
repeated string hostnames = 2;
public V1.HostAlias.Builder addHostnames(String value)
Hostnames for the above IP address.
repeated string hostnames = 2;
public V1.HostAlias.Builder addAllHostnames(Iterable<String> values)
Hostnames for the above IP address.
repeated string hostnames = 2;
public V1.HostAlias.Builder clearHostnames()
Hostnames for the above IP address.
repeated string hostnames = 2;
public V1.HostAlias.Builder addHostnamesBytes(com.google.protobuf.ByteString value)
Hostnames for the above IP address.
repeated string hostnames = 2;
public final V1.HostAlias.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<V1.HostAlias.Builder>
public final V1.HostAlias.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<V1.HostAlias.Builder>
Copyright © 2021. All rights reserved.