Class Generated.IngressTLS.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Generated.IngressTLSOrBuilder
    Enclosing class:
    Generated.IngressTLS

    public static final class Generated.IngressTLS.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.IngressTLS.Builder>
    implements Generated.IngressTLSOrBuilder
     IngressTLS describes the transport layer security associated with an ingress.
     
    Protobuf type k8s.io.api.networking.v1.IngressTLS
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IngressTLS.Builder>
      • clear

        public Generated.IngressTLS.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.GeneratedMessageV3.Builder<Generated.IngressTLS.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.GeneratedMessageV3.Builder<Generated.IngressTLS.Builder>
      • getDefaultInstanceForType

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

        public Generated.IngressTLS build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Generated.IngressTLS buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Generated.IngressTLS.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IngressTLS.Builder>
      • setField

        public Generated.IngressTLS.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IngressTLS.Builder>
      • clearField

        public Generated.IngressTLS.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IngressTLS.Builder>
      • clearOneof

        public Generated.IngressTLS.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IngressTLS.Builder>
      • setRepeatedField

        public Generated.IngressTLS.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IngressTLS.Builder>
      • addRepeatedField

        public Generated.IngressTLS.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IngressTLS.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IngressTLS.Builder>
      • mergeFrom

        public Generated.IngressTLS.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<Generated.IngressTLS.Builder>
        Throws:
        IOException
      • getHostsList

        public com.google.protobuf.ProtocolStringList getHostsList()
         hosts is a list of hosts included in the TLS certificate. The values in
         this list must match the name/s used in the tlsSecret. Defaults to the
         wildcard host setting for the loadbalancer controller fulfilling this
         Ingress, if left unspecified.
         +listType=atomic
         +optional
         
        repeated string hosts = 1;
        Specified by:
        getHostsList in interface Generated.IngressTLSOrBuilder
        Returns:
        A list containing the hosts.
      • getHostsCount

        public int getHostsCount()
         hosts is a list of hosts included in the TLS certificate. The values in
         this list must match the name/s used in the tlsSecret. Defaults to the
         wildcard host setting for the loadbalancer controller fulfilling this
         Ingress, if left unspecified.
         +listType=atomic
         +optional
         
        repeated string hosts = 1;
        Specified by:
        getHostsCount in interface Generated.IngressTLSOrBuilder
        Returns:
        The count of hosts.
      • getHosts

        public String getHosts​(int index)
         hosts is a list of hosts included in the TLS certificate. The values in
         this list must match the name/s used in the tlsSecret. Defaults to the
         wildcard host setting for the loadbalancer controller fulfilling this
         Ingress, if left unspecified.
         +listType=atomic
         +optional
         
        repeated string hosts = 1;
        Specified by:
        getHosts in interface Generated.IngressTLSOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The hosts at the given index.
      • getHostsBytes

        public com.google.protobuf.ByteString getHostsBytes​(int index)
         hosts is a list of hosts included in the TLS certificate. The values in
         this list must match the name/s used in the tlsSecret. Defaults to the
         wildcard host setting for the loadbalancer controller fulfilling this
         Ingress, if left unspecified.
         +listType=atomic
         +optional
         
        repeated string hosts = 1;
        Specified by:
        getHostsBytes in interface Generated.IngressTLSOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the hosts at the given index.
      • setHosts

        public Generated.IngressTLS.Builder setHosts​(int index,
                                                     String value)
         hosts is a list of hosts included in the TLS certificate. The values in
         this list must match the name/s used in the tlsSecret. Defaults to the
         wildcard host setting for the loadbalancer controller fulfilling this
         Ingress, if left unspecified.
         +listType=atomic
         +optional
         
        repeated string hosts = 1;
        Parameters:
        index - The index to set the value at.
        value - The hosts to set.
        Returns:
        This builder for chaining.
      • addHosts

        public Generated.IngressTLS.Builder addHosts​(String value)
         hosts is a list of hosts included in the TLS certificate. The values in
         this list must match the name/s used in the tlsSecret. Defaults to the
         wildcard host setting for the loadbalancer controller fulfilling this
         Ingress, if left unspecified.
         +listType=atomic
         +optional
         
        repeated string hosts = 1;
        Parameters:
        value - The hosts to add.
        Returns:
        This builder for chaining.
      • addAllHosts

        public Generated.IngressTLS.Builder addAllHosts​(Iterable<String> values)
         hosts is a list of hosts included in the TLS certificate. The values in
         this list must match the name/s used in the tlsSecret. Defaults to the
         wildcard host setting for the loadbalancer controller fulfilling this
         Ingress, if left unspecified.
         +listType=atomic
         +optional
         
        repeated string hosts = 1;
        Parameters:
        values - The hosts to add.
        Returns:
        This builder for chaining.
      • clearHosts

        public Generated.IngressTLS.Builder clearHosts()
         hosts is a list of hosts included in the TLS certificate. The values in
         this list must match the name/s used in the tlsSecret. Defaults to the
         wildcard host setting for the loadbalancer controller fulfilling this
         Ingress, if left unspecified.
         +listType=atomic
         +optional
         
        repeated string hosts = 1;
        Returns:
        This builder for chaining.
      • addHostsBytes

        public Generated.IngressTLS.Builder addHostsBytes​(com.google.protobuf.ByteString value)
         hosts is a list of hosts included in the TLS certificate. The values in
         this list must match the name/s used in the tlsSecret. Defaults to the
         wildcard host setting for the loadbalancer controller fulfilling this
         Ingress, if left unspecified.
         +listType=atomic
         +optional
         
        repeated string hosts = 1;
        Parameters:
        value - The bytes of the hosts to add.
        Returns:
        This builder for chaining.
      • hasSecretName

        public boolean hasSecretName()
         secretName is the name of the secret used to terminate TLS traffic on
         port 443. Field is left optional to allow TLS routing based on SNI
         hostname alone. If the SNI host in a listener conflicts with the "Host"
         header field used by an IngressRule, the SNI host is used for termination
         and value of the "Host" header is used for routing.
         +optional
         
        optional string secretName = 2;
        Specified by:
        hasSecretName in interface Generated.IngressTLSOrBuilder
        Returns:
        Whether the secretName field is set.
      • getSecretName

        public String getSecretName()
         secretName is the name of the secret used to terminate TLS traffic on
         port 443. Field is left optional to allow TLS routing based on SNI
         hostname alone. If the SNI host in a listener conflicts with the "Host"
         header field used by an IngressRule, the SNI host is used for termination
         and value of the "Host" header is used for routing.
         +optional
         
        optional string secretName = 2;
        Specified by:
        getSecretName in interface Generated.IngressTLSOrBuilder
        Returns:
        The secretName.
      • getSecretNameBytes

        public com.google.protobuf.ByteString getSecretNameBytes()
         secretName is the name of the secret used to terminate TLS traffic on
         port 443. Field is left optional to allow TLS routing based on SNI
         hostname alone. If the SNI host in a listener conflicts with the "Host"
         header field used by an IngressRule, the SNI host is used for termination
         and value of the "Host" header is used for routing.
         +optional
         
        optional string secretName = 2;
        Specified by:
        getSecretNameBytes in interface Generated.IngressTLSOrBuilder
        Returns:
        The bytes for secretName.
      • setSecretName

        public Generated.IngressTLS.Builder setSecretName​(String value)
         secretName is the name of the secret used to terminate TLS traffic on
         port 443. Field is left optional to allow TLS routing based on SNI
         hostname alone. If the SNI host in a listener conflicts with the "Host"
         header field used by an IngressRule, the SNI host is used for termination
         and value of the "Host" header is used for routing.
         +optional
         
        optional string secretName = 2;
        Parameters:
        value - The secretName to set.
        Returns:
        This builder for chaining.
      • clearSecretName

        public Generated.IngressTLS.Builder clearSecretName()
         secretName is the name of the secret used to terminate TLS traffic on
         port 443. Field is left optional to allow TLS routing based on SNI
         hostname alone. If the SNI host in a listener conflicts with the "Host"
         header field used by an IngressRule, the SNI host is used for termination
         and value of the "Host" header is used for routing.
         +optional
         
        optional string secretName = 2;
        Returns:
        This builder for chaining.
      • setSecretNameBytes

        public Generated.IngressTLS.Builder setSecretNameBytes​(com.google.protobuf.ByteString value)
         secretName is the name of the secret used to terminate TLS traffic on
         port 443. Field is left optional to allow TLS routing based on SNI
         hostname alone. If the SNI host in a listener conflicts with the "Host"
         header field used by an IngressRule, the SNI host is used for termination
         and value of the "Host" header is used for routing.
         +optional
         
        optional string secretName = 2;
        Parameters:
        value - The bytes for secretName to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Generated.IngressTLS.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IngressTLS.Builder>
      • mergeUnknownFields

        public final Generated.IngressTLS.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IngressTLS.Builder>