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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic 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.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.HostAlias.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.HostAlias.Builder>public V1.HostAlias getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1.HostAlias build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1.HostAlias buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1.HostAlias.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone 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.BuildersetField 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.BuilderclearField 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.BuilderclearOneof 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.BuildersetRepeatedField 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.BuilderaddRepeatedField 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.BuildermergeFrom 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.MessageLiteOrBuilderisInitialized 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.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.HostAlias.Builder>IOExceptionpublic boolean hasIp()
IP address of the host file entry.
optional string ip = 1;hasIp in interface V1.HostAliasOrBuilderpublic String getIp()
IP address of the host file entry.
optional string ip = 1;getIp in interface V1.HostAliasOrBuilderpublic com.google.protobuf.ByteString getIpBytes()
IP address of the host file entry.
optional string ip = 1;getIpBytes in interface V1.HostAliasOrBuilderpublic 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.HostAliasOrBuilderpublic int getHostnamesCount()
Hostnames for the above IP address.
repeated string hostnames = 2;getHostnamesCount in interface V1.HostAliasOrBuilderpublic String getHostnames(int index)
Hostnames for the above IP address.
repeated string hostnames = 2;getHostnames in interface V1.HostAliasOrBuilderpublic com.google.protobuf.ByteString getHostnamesBytes(int index)
Hostnames for the above IP address.
repeated string hostnames = 2;getHostnamesBytes in interface V1.HostAliasOrBuilderpublic 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.BuildersetUnknownFields 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.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.HostAlias.Builder>Copyright © 2021. All rights reserved.