Class AllowListedRoutesConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AllowListedRoutesConfig.Builder>
io.envoyproxy.envoy.extensions.internal_redirect.allow_listed_routes.v3.AllowListedRoutesConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AllowListedRoutesConfigOrBuilder, Cloneable
Enclosing class:
AllowListedRoutesConfig

public static final class AllowListedRoutesConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AllowListedRoutesConfig.Builder> implements AllowListedRoutesConfigOrBuilder
 An internal redirect predicate that accepts only explicitly allowed target routes.
 [#extension: envoy.internal_redirect_predicates.allow_listed_routes]
 
Protobuf type envoy.extensions.internal_redirect.allow_listed_routes.v3.AllowListedRoutesConfig
  • Method Details

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

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

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

      public AllowListedRoutesConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<AllowListedRoutesConfig.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public AllowListedRoutesConfig.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<AllowListedRoutesConfig.Builder>
      Throws:
      IOException
    • getAllowedRouteNamesList

      public com.google.protobuf.ProtocolStringList getAllowedRouteNamesList()
       The list of routes that's allowed as redirect target by this predicate,
       identified by the route's :ref:`name <envoy_v3_api_field_config.route.v3.Route.route>`.
       Empty route names are not allowed.
       
      repeated string allowed_route_names = 1 [(.validate.rules) = { ... }
      Specified by:
      getAllowedRouteNamesList in interface AllowListedRoutesConfigOrBuilder
      Returns:
      A list containing the allowedRouteNames.
    • getAllowedRouteNamesCount

      public int getAllowedRouteNamesCount()
       The list of routes that's allowed as redirect target by this predicate,
       identified by the route's :ref:`name <envoy_v3_api_field_config.route.v3.Route.route>`.
       Empty route names are not allowed.
       
      repeated string allowed_route_names = 1 [(.validate.rules) = { ... }
      Specified by:
      getAllowedRouteNamesCount in interface AllowListedRoutesConfigOrBuilder
      Returns:
      The count of allowedRouteNames.
    • getAllowedRouteNames

      public String getAllowedRouteNames(int index)
       The list of routes that's allowed as redirect target by this predicate,
       identified by the route's :ref:`name <envoy_v3_api_field_config.route.v3.Route.route>`.
       Empty route names are not allowed.
       
      repeated string allowed_route_names = 1 [(.validate.rules) = { ... }
      Specified by:
      getAllowedRouteNames in interface AllowListedRoutesConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowedRouteNames at the given index.
    • getAllowedRouteNamesBytes

      public com.google.protobuf.ByteString getAllowedRouteNamesBytes(int index)
       The list of routes that's allowed as redirect target by this predicate,
       identified by the route's :ref:`name <envoy_v3_api_field_config.route.v3.Route.route>`.
       Empty route names are not allowed.
       
      repeated string allowed_route_names = 1 [(.validate.rules) = { ... }
      Specified by:
      getAllowedRouteNamesBytes in interface AllowListedRoutesConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowedRouteNames at the given index.
    • setAllowedRouteNames

      public AllowListedRoutesConfig.Builder setAllowedRouteNames(int index, String value)
       The list of routes that's allowed as redirect target by this predicate,
       identified by the route's :ref:`name <envoy_v3_api_field_config.route.v3.Route.route>`.
       Empty route names are not allowed.
       
      repeated string allowed_route_names = 1 [(.validate.rules) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The allowedRouteNames to set.
      Returns:
      This builder for chaining.
    • addAllowedRouteNames

      public AllowListedRoutesConfig.Builder addAllowedRouteNames(String value)
       The list of routes that's allowed as redirect target by this predicate,
       identified by the route's :ref:`name <envoy_v3_api_field_config.route.v3.Route.route>`.
       Empty route names are not allowed.
       
      repeated string allowed_route_names = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The allowedRouteNames to add.
      Returns:
      This builder for chaining.
    • addAllAllowedRouteNames

      public AllowListedRoutesConfig.Builder addAllAllowedRouteNames(Iterable<String> values)
       The list of routes that's allowed as redirect target by this predicate,
       identified by the route's :ref:`name <envoy_v3_api_field_config.route.v3.Route.route>`.
       Empty route names are not allowed.
       
      repeated string allowed_route_names = 1 [(.validate.rules) = { ... }
      Parameters:
      values - The allowedRouteNames to add.
      Returns:
      This builder for chaining.
    • clearAllowedRouteNames

      public AllowListedRoutesConfig.Builder clearAllowedRouteNames()
       The list of routes that's allowed as redirect target by this predicate,
       identified by the route's :ref:`name <envoy_v3_api_field_config.route.v3.Route.route>`.
       Empty route names are not allowed.
       
      repeated string allowed_route_names = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • addAllowedRouteNamesBytes

      public AllowListedRoutesConfig.Builder addAllowedRouteNamesBytes(com.google.protobuf.ByteString value)
       The list of routes that's allowed as redirect target by this predicate,
       identified by the route's :ref:`name <envoy_v3_api_field_config.route.v3.Route.route>`.
       Empty route names are not allowed.
       
      repeated string allowed_route_names = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes of the allowedRouteNames to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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