Class ClusterSpecifierPlugin.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ClusterSpecifierPluginOrBuilder, java.lang.Cloneable
    Enclosing class:
    ClusterSpecifierPlugin

    public static final class ClusterSpecifierPlugin.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<ClusterSpecifierPlugin.Builder>
    implements ClusterSpecifierPluginOrBuilder
     Configuration for a cluster specifier plugin.
     
    Protobuf type envoy.config.route.v3.ClusterSpecifierPlugin
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • 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<ClusterSpecifierPlugin.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

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

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

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

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

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

        public ClusterSpecifierPlugin.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                 throws java.io.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<ClusterSpecifierPlugin.Builder>
        Throws:
        java.io.IOException
      • hasExtension

        public boolean hasExtension()
         The name of the plugin and its opaque configuration.
         
        .envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
        Specified by:
        hasExtension in interface ClusterSpecifierPluginOrBuilder
        Returns:
        Whether the extension field is set.
      • clearExtension

        public ClusterSpecifierPlugin.Builder clearExtension()
         The name of the plugin and its opaque configuration.
         
        .envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
      • getExtensionBuilder

        public TypedExtensionConfig.Builder getExtensionBuilder()
         The name of the plugin and its opaque configuration.
         
        .envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
      • getIsOptional

        public boolean getIsOptional()
         If is_optional is not set or is set to false and the plugin defined by this message is not a
         supported type, the containing resource is NACKed. If is_optional is set to true, the resource
         would not be NACKed for this reason. In this case, routes referencing this plugin's name would
         not be treated as an illegal configuration, but would result in a failure if the route is
         selected.
         
        bool is_optional = 2;
        Specified by:
        getIsOptional in interface ClusterSpecifierPluginOrBuilder
        Returns:
        The isOptional.
      • setIsOptional

        public ClusterSpecifierPlugin.Builder setIsOptional​(boolean value)
         If is_optional is not set or is set to false and the plugin defined by this message is not a
         supported type, the containing resource is NACKed. If is_optional is set to true, the resource
         would not be NACKed for this reason. In this case, routes referencing this plugin's name would
         not be treated as an illegal configuration, but would result in a failure if the route is
         selected.
         
        bool is_optional = 2;
        Parameters:
        value - The isOptional to set.
        Returns:
        This builder for chaining.
      • clearIsOptional

        public ClusterSpecifierPlugin.Builder clearIsOptional()
         If is_optional is not set or is set to false and the plugin defined by this message is not a
         supported type, the containing resource is NACKed. If is_optional is set to true, the resource
         would not be NACKed for this reason. In this case, routes referencing this plugin's name would
         not be treated as an illegal configuration, but would result in a failure if the route is
         selected.
         
        bool is_optional = 2;
        Returns:
        This builder for chaining.