Class CdnLoopConfig.Builder

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

    public static final class CdnLoopConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CdnLoopConfig.Builder>
    implements CdnLoopConfigOrBuilder
     CDN-Loop Header filter config. See the :ref:`configuration overview
     <config_http_filters_cdn_loop>` for more information.
     
    Protobuf type envoy.extensions.filters.http.cdn_loop.v3.CdnLoopConfig
    • 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<CdnLoopConfig.Builder>
      • clear

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

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

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

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

        public CdnLoopConfig.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<CdnLoopConfig.Builder>
      • setField

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

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

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

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

        public CdnLoopConfig.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<CdnLoopConfig.Builder>
      • mergeFrom

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

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

        public CdnLoopConfig.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<CdnLoopConfig.Builder>
        Throws:
        IOException
      • getCdnId

        public String getCdnId()
         The CDN identifier to use for loop checks and to append to the
         CDN-Loop header.
         RFC 8586 calls this the cdn-id. The cdn-id can either be a
         pseudonym or hostname the CDN is in control of.
         cdn_id must not be empty.
         
        string cdn_id = 1 [(.validate.rules) = { ... }
        Specified by:
        getCdnId in interface CdnLoopConfigOrBuilder
        Returns:
        The cdnId.
      • getCdnIdBytes

        public com.google.protobuf.ByteString getCdnIdBytes()
         The CDN identifier to use for loop checks and to append to the
         CDN-Loop header.
         RFC 8586 calls this the cdn-id. The cdn-id can either be a
         pseudonym or hostname the CDN is in control of.
         cdn_id must not be empty.
         
        string cdn_id = 1 [(.validate.rules) = { ... }
        Specified by:
        getCdnIdBytes in interface CdnLoopConfigOrBuilder
        Returns:
        The bytes for cdnId.
      • setCdnId

        public CdnLoopConfig.Builder setCdnId​(String value)
         The CDN identifier to use for loop checks and to append to the
         CDN-Loop header.
         RFC 8586 calls this the cdn-id. The cdn-id can either be a
         pseudonym or hostname the CDN is in control of.
         cdn_id must not be empty.
         
        string cdn_id = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The cdnId to set.
        Returns:
        This builder for chaining.
      • clearCdnId

        public CdnLoopConfig.Builder clearCdnId()
         The CDN identifier to use for loop checks and to append to the
         CDN-Loop header.
         RFC 8586 calls this the cdn-id. The cdn-id can either be a
         pseudonym or hostname the CDN is in control of.
         cdn_id must not be empty.
         
        string cdn_id = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setCdnIdBytes

        public CdnLoopConfig.Builder setCdnIdBytes​(com.google.protobuf.ByteString value)
         The CDN identifier to use for loop checks and to append to the
         CDN-Loop header.
         RFC 8586 calls this the cdn-id. The cdn-id can either be a
         pseudonym or hostname the CDN is in control of.
         cdn_id must not be empty.
         
        string cdn_id = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for cdnId to set.
        Returns:
        This builder for chaining.
      • getMaxAllowedOccurrences

        public int getMaxAllowedOccurrences()
         The maximum allowed count of cdn_id in the downstream CDN-Loop
         request header.
         The default of 0 means a request can transit the CdnLoopFilter
         once. A value of 1 means that a request can transit the
         CdnLoopFilter twice and so on.
         
        uint32 max_allowed_occurrences = 2;
        Specified by:
        getMaxAllowedOccurrences in interface CdnLoopConfigOrBuilder
        Returns:
        The maxAllowedOccurrences.
      • setMaxAllowedOccurrences

        public CdnLoopConfig.Builder setMaxAllowedOccurrences​(int value)
         The maximum allowed count of cdn_id in the downstream CDN-Loop
         request header.
         The default of 0 means a request can transit the CdnLoopFilter
         once. A value of 1 means that a request can transit the
         CdnLoopFilter twice and so on.
         
        uint32 max_allowed_occurrences = 2;
        Parameters:
        value - The maxAllowedOccurrences to set.
        Returns:
        This builder for chaining.
      • clearMaxAllowedOccurrences

        public CdnLoopConfig.Builder clearMaxAllowedOccurrences()
         The maximum allowed count of cdn_id in the downstream CDN-Loop
         request header.
         The default of 0 means a request can transit the CdnLoopFilter
         once. A value of 1 means that a request can transit the
         CdnLoopFilter twice and so on.
         
        uint32 max_allowed_occurrences = 2;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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