Package com.google.container.v1
Class ContainerdConfig.RegistryHostConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ContainerdConfig.RegistryHostConfig.Builder>
com.google.container.v1.ContainerdConfig.RegistryHostConfig.Builder
- All Implemented Interfaces:
ContainerdConfig.RegistryHostConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ContainerdConfig.RegistryHostConfig
public static final class ContainerdConfig.RegistryHostConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ContainerdConfig.RegistryHostConfig.Builder>
implements ContainerdConfig.RegistryHostConfigOrBuilder
RegistryHostConfig configures the top-level structure for a single containerd registry server's configuration, which represents one hosts.toml file on the node. It will override the same fqdns in PrivateRegistryAccessConfig.Protobuf type
google.container.v1.ContainerdConfig.RegistryHostConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllHosts(Iterable<? extends ContainerdConfig.RegistryHostConfig.HostConfig> values) HostConfig configures a list of host-specific configurations for the server.addHosts(int index, ContainerdConfig.RegistryHostConfig.HostConfig value) HostConfig configures a list of host-specific configurations for the server.addHosts(int index, ContainerdConfig.RegistryHostConfig.HostConfig.Builder builderForValue) HostConfig configures a list of host-specific configurations for the server.HostConfig configures a list of host-specific configurations for the server.addHosts(ContainerdConfig.RegistryHostConfig.HostConfig.Builder builderForValue) HostConfig configures a list of host-specific configurations for the server.HostConfig configures a list of host-specific configurations for the server.addHostsBuilder(int index) HostConfig configures a list of host-specific configurations for the server.build()clear()HostConfig configures a list of host-specific configurations for the server.Defines the host name of the registry server, which will be used to create configuration file as /etc/containerd/hosts.d/<server>/hosts.toml.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetHosts(int index) HostConfig configures a list of host-specific configurations for the server.getHostsBuilder(int index) HostConfig configures a list of host-specific configurations for the server.HostConfig configures a list of host-specific configurations for the server.intHostConfig configures a list of host-specific configurations for the server.HostConfig configures a list of host-specific configurations for the server.getHostsOrBuilder(int index) HostConfig configures a list of host-specific configurations for the server.HostConfig configures a list of host-specific configurations for the server.Defines the host name of the registry server, which will be used to create configuration file as /etc/containerd/hosts.d/<server>/hosts.toml.com.google.protobuf.ByteStringDefines the host name of the registry server, which will be used to create configuration file as /etc/containerd/hosts.d/<server>/hosts.toml.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeHosts(int index) HostConfig configures a list of host-specific configurations for the server.setHosts(int index, ContainerdConfig.RegistryHostConfig.HostConfig value) HostConfig configures a list of host-specific configurations for the server.setHosts(int index, ContainerdConfig.RegistryHostConfig.HostConfig.Builder builderForValue) HostConfig configures a list of host-specific configurations for the server.Defines the host name of the registry server, which will be used to create configuration file as /etc/containerd/hosts.d/<server>/hosts.toml.setServerBytes(com.google.protobuf.ByteString value) Defines the host name of the registry server, which will be used to create configuration file as /etc/containerd/hosts.d/<server>/hosts.toml.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ContainerdConfig.RegistryHostConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ContainerdConfig.RegistryHostConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ContainerdConfig.RegistryHostConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ContainerdConfig.RegistryHostConfig.Builder>
-
mergeFrom
public ContainerdConfig.RegistryHostConfig.Builder mergeFrom(ContainerdConfig.RegistryHostConfig other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ContainerdConfig.RegistryHostConfig.Builder>
-
mergeFrom
public ContainerdConfig.RegistryHostConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ContainerdConfig.RegistryHostConfig.Builder>- Throws:
IOException
-
getServer
Defines the host name of the registry server, which will be used to create configuration file as /etc/containerd/hosts.d/<server>/hosts.toml. It supports fully qualified domain names (FQDN) and IP addresses: Specifying port is supported, while scheme and path are NOT supported. Wildcards are NOT supported. Examples: - `my.customdomain.com` - `10.0.1.2:5000`
string server = 1;- Specified by:
getServerin interfaceContainerdConfig.RegistryHostConfigOrBuilder- Returns:
- The server.
-
getServerBytes
public com.google.protobuf.ByteString getServerBytes()Defines the host name of the registry server, which will be used to create configuration file as /etc/containerd/hosts.d/<server>/hosts.toml. It supports fully qualified domain names (FQDN) and IP addresses: Specifying port is supported, while scheme and path are NOT supported. Wildcards are NOT supported. Examples: - `my.customdomain.com` - `10.0.1.2:5000`
string server = 1;- Specified by:
getServerBytesin interfaceContainerdConfig.RegistryHostConfigOrBuilder- Returns:
- The bytes for server.
-
setServer
Defines the host name of the registry server, which will be used to create configuration file as /etc/containerd/hosts.d/<server>/hosts.toml. It supports fully qualified domain names (FQDN) and IP addresses: Specifying port is supported, while scheme and path are NOT supported. Wildcards are NOT supported. Examples: - `my.customdomain.com` - `10.0.1.2:5000`
string server = 1;- Parameters:
value- The server to set.- Returns:
- This builder for chaining.
-
clearServer
Defines the host name of the registry server, which will be used to create configuration file as /etc/containerd/hosts.d/<server>/hosts.toml. It supports fully qualified domain names (FQDN) and IP addresses: Specifying port is supported, while scheme and path are NOT supported. Wildcards are NOT supported. Examples: - `my.customdomain.com` - `10.0.1.2:5000`
string server = 1;- Returns:
- This builder for chaining.
-
setServerBytes
public ContainerdConfig.RegistryHostConfig.Builder setServerBytes(com.google.protobuf.ByteString value) Defines the host name of the registry server, which will be used to create configuration file as /etc/containerd/hosts.d/<server>/hosts.toml. It supports fully qualified domain names (FQDN) and IP addresses: Specifying port is supported, while scheme and path are NOT supported. Wildcards are NOT supported. Examples: - `my.customdomain.com` - `10.0.1.2:5000`
string server = 1;- Parameters:
value- The bytes for server to set.- Returns:
- This builder for chaining.
-
getHostsList
HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2;- Specified by:
getHostsListin interfaceContainerdConfig.RegistryHostConfigOrBuilder
-
getHostsCount
public int getHostsCount()HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2;- Specified by:
getHostsCountin interfaceContainerdConfig.RegistryHostConfigOrBuilder
-
getHosts
HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2;- Specified by:
getHostsin interfaceContainerdConfig.RegistryHostConfigOrBuilder
-
setHosts
public ContainerdConfig.RegistryHostConfig.Builder setHosts(int index, ContainerdConfig.RegistryHostConfig.HostConfig value) HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2; -
setHosts
public ContainerdConfig.RegistryHostConfig.Builder setHosts(int index, ContainerdConfig.RegistryHostConfig.HostConfig.Builder builderForValue) HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2; -
addHosts
public ContainerdConfig.RegistryHostConfig.Builder addHosts(ContainerdConfig.RegistryHostConfig.HostConfig value) HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2; -
addHosts
public ContainerdConfig.RegistryHostConfig.Builder addHosts(int index, ContainerdConfig.RegistryHostConfig.HostConfig value) HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2; -
addHosts
public ContainerdConfig.RegistryHostConfig.Builder addHosts(ContainerdConfig.RegistryHostConfig.HostConfig.Builder builderForValue) HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2; -
addHosts
public ContainerdConfig.RegistryHostConfig.Builder addHosts(int index, ContainerdConfig.RegistryHostConfig.HostConfig.Builder builderForValue) HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2; -
addAllHosts
public ContainerdConfig.RegistryHostConfig.Builder addAllHosts(Iterable<? extends ContainerdConfig.RegistryHostConfig.HostConfig> values) HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2; -
clearHosts
HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2; -
removeHosts
HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2; -
getHostsBuilder
HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2; -
getHostsOrBuilder
HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2;- Specified by:
getHostsOrBuilderin interfaceContainerdConfig.RegistryHostConfigOrBuilder
-
getHostsOrBuilderList
public List<? extends ContainerdConfig.RegistryHostConfig.HostConfigOrBuilder> getHostsOrBuilderList()HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2;- Specified by:
getHostsOrBuilderListin interfaceContainerdConfig.RegistryHostConfigOrBuilder
-
addHostsBuilder
HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2; -
addHostsBuilder
HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2; -
getHostsBuilderList
HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
repeated .google.container.v1.ContainerdConfig.RegistryHostConfig.HostConfig hosts = 2;
-