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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ContainerdConfig.RegistryHostConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ContainerdConfig.RegistryHostConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ContainerdConfig.RegistryHostConfig.Builder>
    • getDefaultInstanceForType

      public ContainerdConfig.RegistryHostConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ContainerdConfig.RegistryHostConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ContainerdConfig.RegistryHostConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ContainerdConfig.RegistryHostConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ContainerdConfig.RegistryHostConfig.Builder>
      Throws:
      IOException
    • getServer

      public String 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:
      getServer in interface ContainerdConfig.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:
      getServerBytes in interface ContainerdConfig.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:
      getHostsList in interface ContainerdConfig.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:
      getHostsCount in interface ContainerdConfig.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:
      getHosts in interface ContainerdConfig.RegistryHostConfigOrBuilder
    • setHosts

       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

       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

       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

       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

       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

       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

       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

      public ContainerdConfig.RegistryHostConfig.Builder removeHosts(int index)
       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

      public ContainerdConfig.RegistryHostConfig.HostConfig.Builder getHostsBuilder(int index)
       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

      public ContainerdConfig.RegistryHostConfig.HostConfigOrBuilder getHostsOrBuilder(int index)
       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:
      getHostsOrBuilder in interface ContainerdConfig.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:
      getHostsOrBuilderList in interface ContainerdConfig.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

      public ContainerdConfig.RegistryHostConfig.HostConfig.Builder addHostsBuilder(int index)
       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;