Class SubjectAltNameMatcher.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SubjectAltNameMatcherOrBuilder, Cloneable
    Enclosing class:
    SubjectAltNameMatcher

    public static final class SubjectAltNameMatcher.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SubjectAltNameMatcher.Builder>
    implements SubjectAltNameMatcherOrBuilder
     Matcher for subject alternative names, to match both type and value of the SAN.
     
    Protobuf type envoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher
    • 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<SubjectAltNameMatcher.Builder>
      • clear

        public SubjectAltNameMatcher.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<SubjectAltNameMatcher.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<SubjectAltNameMatcher.Builder>
      • getDefaultInstanceForType

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

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

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

        public SubjectAltNameMatcher.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<SubjectAltNameMatcher.Builder>
      • clearField

        public SubjectAltNameMatcher.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<SubjectAltNameMatcher.Builder>
      • clearOneof

        public SubjectAltNameMatcher.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<SubjectAltNameMatcher.Builder>
      • setRepeatedField

        public SubjectAltNameMatcher.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<SubjectAltNameMatcher.Builder>
      • addRepeatedField

        public SubjectAltNameMatcher.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<SubjectAltNameMatcher.Builder>
      • isInitialized

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

        public SubjectAltNameMatcher.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<SubjectAltNameMatcher.Builder>
        Throws:
        IOException
      • getSanTypeValue

        public int getSanTypeValue()
         Specification of type of SAN. Note that the default enum value is an invalid choice.
         
        .envoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher.SanType san_type = 1 [(.validate.rules) = { ... }
        Specified by:
        getSanTypeValue in interface SubjectAltNameMatcherOrBuilder
        Returns:
        The enum numeric value on the wire for sanType.
      • setSanTypeValue

        public SubjectAltNameMatcher.Builder setSanTypeValue​(int value)
         Specification of type of SAN. Note that the default enum value is an invalid choice.
         
        .envoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher.SanType san_type = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The enum numeric value on the wire for sanType to set.
        Returns:
        This builder for chaining.
      • getSanType

        public SubjectAltNameMatcher.SanType getSanType()
         Specification of type of SAN. Note that the default enum value is an invalid choice.
         
        .envoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher.SanType san_type = 1 [(.validate.rules) = { ... }
        Specified by:
        getSanType in interface SubjectAltNameMatcherOrBuilder
        Returns:
        The sanType.
      • setSanType

        public SubjectAltNameMatcher.Builder setSanType​(SubjectAltNameMatcher.SanType value)
         Specification of type of SAN. Note that the default enum value is an invalid choice.
         
        .envoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher.SanType san_type = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The sanType to set.
        Returns:
        This builder for chaining.
      • clearSanType

        public SubjectAltNameMatcher.Builder clearSanType()
         Specification of type of SAN. Note that the default enum value is an invalid choice.
         
        .envoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher.SanType san_type = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • hasMatcher

        public boolean hasMatcher()
         Matcher for SAN value.
         
        .envoy.type.matcher.v3.StringMatcher matcher = 2 [(.validate.rules) = { ... }
        Specified by:
        hasMatcher in interface SubjectAltNameMatcherOrBuilder
        Returns:
        Whether the matcher field is set.
      • clearMatcher

        public SubjectAltNameMatcher.Builder clearMatcher()
         Matcher for SAN value.
         
        .envoy.type.matcher.v3.StringMatcher matcher = 2 [(.validate.rules) = { ... }
      • getMatcherBuilder

        public StringMatcher.Builder getMatcherBuilder()
         Matcher for SAN value.
         
        .envoy.type.matcher.v3.StringMatcher matcher = 2 [(.validate.rules) = { ... }
      • setUnknownFields

        public final SubjectAltNameMatcher.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<SubjectAltNameMatcher.Builder>
      • mergeUnknownFields

        public final SubjectAltNameMatcher.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<SubjectAltNameMatcher.Builder>