Class FaultDelay.Builder

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

    public static final class FaultDelay.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<FaultDelay.Builder>
    implements FaultDelayOrBuilder
     Delay specification is used to inject latency into the
     HTTP/gRPC/Mongo/Redis operation or delay proxying of TCP connections.
     [#next-free-field: 6]
     
    Protobuf type envoy.config.filter.fault.v2.FaultDelay
    • 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<FaultDelay.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public FaultDelay.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<FaultDelay.Builder>
        Throws:
        IOException
      • getTypeValue

        @Deprecated
        public int getTypeValue()
        Deprecated.
        envoy.config.filter.fault.v2.FaultDelay.type is deprecated. See envoy/config/filter/fault/v2/fault.proto;l=40
         Unused and deprecated. Will be removed in the next release.
         
        .envoy.config.filter.fault.v2.FaultDelay.FaultDelayType type = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];
        Specified by:
        getTypeValue in interface FaultDelayOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        @Deprecated
        public FaultDelay.Builder setTypeValue​(int value)
        Deprecated.
        envoy.config.filter.fault.v2.FaultDelay.type is deprecated. See envoy/config/filter/fault/v2/fault.proto;l=40
         Unused and deprecated. Will be removed in the next release.
         
        .envoy.config.filter.fault.v2.FaultDelay.FaultDelayType type = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • getType

        @Deprecated
        public FaultDelay.FaultDelayType getType()
        Deprecated.
        envoy.config.filter.fault.v2.FaultDelay.type is deprecated. See envoy/config/filter/fault/v2/fault.proto;l=40
         Unused and deprecated. Will be removed in the next release.
         
        .envoy.config.filter.fault.v2.FaultDelay.FaultDelayType type = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];
        Specified by:
        getType in interface FaultDelayOrBuilder
        Returns:
        The type.
      • setType

        @Deprecated
        public FaultDelay.Builder setType​(FaultDelay.FaultDelayType value)
        Deprecated.
        envoy.config.filter.fault.v2.FaultDelay.type is deprecated. See envoy/config/filter/fault/v2/fault.proto;l=40
         Unused and deprecated. Will be removed in the next release.
         
        .envoy.config.filter.fault.v2.FaultDelay.FaultDelayType type = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        @Deprecated
        public FaultDelay.Builder clearType()
        Deprecated.
        envoy.config.filter.fault.v2.FaultDelay.type is deprecated. See envoy/config/filter/fault/v2/fault.proto;l=40
         Unused and deprecated. Will be removed in the next release.
         
        .envoy.config.filter.fault.v2.FaultDelay.FaultDelayType type = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];
        Returns:
        This builder for chaining.
      • hasFixedDelay

        public boolean hasFixedDelay()
         Add a fixed delay before forwarding the operation upstream. See
         https://developers.google.com/protocol-buffers/docs/proto3#json for
         the JSON/YAML Duration mapping. For HTTP/Mongo/Redis, the specified
         delay will be injected before a new request/operation. For TCP
         connections, the proxying of the connection upstream will be delayed
         for the specified period. This is required if type is FIXED.
         
        .google.protobuf.Duration fixed_delay = 3 [(.validate.rules) = { ... }
        Specified by:
        hasFixedDelay in interface FaultDelayOrBuilder
        Returns:
        Whether the fixedDelay field is set.
      • getFixedDelay

        public com.google.protobuf.Duration getFixedDelay()
         Add a fixed delay before forwarding the operation upstream. See
         https://developers.google.com/protocol-buffers/docs/proto3#json for
         the JSON/YAML Duration mapping. For HTTP/Mongo/Redis, the specified
         delay will be injected before a new request/operation. For TCP
         connections, the proxying of the connection upstream will be delayed
         for the specified period. This is required if type is FIXED.
         
        .google.protobuf.Duration fixed_delay = 3 [(.validate.rules) = { ... }
        Specified by:
        getFixedDelay in interface FaultDelayOrBuilder
        Returns:
        The fixedDelay.
      • setFixedDelay

        public FaultDelay.Builder setFixedDelay​(com.google.protobuf.Duration value)
         Add a fixed delay before forwarding the operation upstream. See
         https://developers.google.com/protocol-buffers/docs/proto3#json for
         the JSON/YAML Duration mapping. For HTTP/Mongo/Redis, the specified
         delay will be injected before a new request/operation. For TCP
         connections, the proxying of the connection upstream will be delayed
         for the specified period. This is required if type is FIXED.
         
        .google.protobuf.Duration fixed_delay = 3 [(.validate.rules) = { ... }
      • setFixedDelay

        public FaultDelay.Builder setFixedDelay​(com.google.protobuf.Duration.Builder builderForValue)
         Add a fixed delay before forwarding the operation upstream. See
         https://developers.google.com/protocol-buffers/docs/proto3#json for
         the JSON/YAML Duration mapping. For HTTP/Mongo/Redis, the specified
         delay will be injected before a new request/operation. For TCP
         connections, the proxying of the connection upstream will be delayed
         for the specified period. This is required if type is FIXED.
         
        .google.protobuf.Duration fixed_delay = 3 [(.validate.rules) = { ... }
      • mergeFixedDelay

        public FaultDelay.Builder mergeFixedDelay​(com.google.protobuf.Duration value)
         Add a fixed delay before forwarding the operation upstream. See
         https://developers.google.com/protocol-buffers/docs/proto3#json for
         the JSON/YAML Duration mapping. For HTTP/Mongo/Redis, the specified
         delay will be injected before a new request/operation. For TCP
         connections, the proxying of the connection upstream will be delayed
         for the specified period. This is required if type is FIXED.
         
        .google.protobuf.Duration fixed_delay = 3 [(.validate.rules) = { ... }
      • clearFixedDelay

        public FaultDelay.Builder clearFixedDelay()
         Add a fixed delay before forwarding the operation upstream. See
         https://developers.google.com/protocol-buffers/docs/proto3#json for
         the JSON/YAML Duration mapping. For HTTP/Mongo/Redis, the specified
         delay will be injected before a new request/operation. For TCP
         connections, the proxying of the connection upstream will be delayed
         for the specified period. This is required if type is FIXED.
         
        .google.protobuf.Duration fixed_delay = 3 [(.validate.rules) = { ... }
      • getFixedDelayBuilder

        public com.google.protobuf.Duration.Builder getFixedDelayBuilder()
         Add a fixed delay before forwarding the operation upstream. See
         https://developers.google.com/protocol-buffers/docs/proto3#json for
         the JSON/YAML Duration mapping. For HTTP/Mongo/Redis, the specified
         delay will be injected before a new request/operation. For TCP
         connections, the proxying of the connection upstream will be delayed
         for the specified period. This is required if type is FIXED.
         
        .google.protobuf.Duration fixed_delay = 3 [(.validate.rules) = { ... }
      • getFixedDelayOrBuilder

        public com.google.protobuf.DurationOrBuilder getFixedDelayOrBuilder()
         Add a fixed delay before forwarding the operation upstream. See
         https://developers.google.com/protocol-buffers/docs/proto3#json for
         the JSON/YAML Duration mapping. For HTTP/Mongo/Redis, the specified
         delay will be injected before a new request/operation. For TCP
         connections, the proxying of the connection upstream will be delayed
         for the specified period. This is required if type is FIXED.
         
        .google.protobuf.Duration fixed_delay = 3 [(.validate.rules) = { ... }
        Specified by:
        getFixedDelayOrBuilder in interface FaultDelayOrBuilder
      • hasHeaderDelay

        public boolean hasHeaderDelay()
         Fault delays are controlled via an HTTP header (if applicable).
         
        .envoy.config.filter.fault.v2.FaultDelay.HeaderDelay header_delay = 5;
        Specified by:
        hasHeaderDelay in interface FaultDelayOrBuilder
        Returns:
        Whether the headerDelay field is set.
      • getHeaderDelay

        public FaultDelay.HeaderDelay getHeaderDelay()
         Fault delays are controlled via an HTTP header (if applicable).
         
        .envoy.config.filter.fault.v2.FaultDelay.HeaderDelay header_delay = 5;
        Specified by:
        getHeaderDelay in interface FaultDelayOrBuilder
        Returns:
        The headerDelay.
      • setHeaderDelay

        public FaultDelay.Builder setHeaderDelay​(FaultDelay.HeaderDelay value)
         Fault delays are controlled via an HTTP header (if applicable).
         
        .envoy.config.filter.fault.v2.FaultDelay.HeaderDelay header_delay = 5;
      • setHeaderDelay

        public FaultDelay.Builder setHeaderDelay​(FaultDelay.HeaderDelay.Builder builderForValue)
         Fault delays are controlled via an HTTP header (if applicable).
         
        .envoy.config.filter.fault.v2.FaultDelay.HeaderDelay header_delay = 5;
      • mergeHeaderDelay

        public FaultDelay.Builder mergeHeaderDelay​(FaultDelay.HeaderDelay value)
         Fault delays are controlled via an HTTP header (if applicable).
         
        .envoy.config.filter.fault.v2.FaultDelay.HeaderDelay header_delay = 5;
      • clearHeaderDelay

        public FaultDelay.Builder clearHeaderDelay()
         Fault delays are controlled via an HTTP header (if applicable).
         
        .envoy.config.filter.fault.v2.FaultDelay.HeaderDelay header_delay = 5;
      • getHeaderDelayBuilder

        public FaultDelay.HeaderDelay.Builder getHeaderDelayBuilder()
         Fault delays are controlled via an HTTP header (if applicable).
         
        .envoy.config.filter.fault.v2.FaultDelay.HeaderDelay header_delay = 5;
      • hasPercentage

        public boolean hasPercentage()
         The percentage of operations/connections/requests on which the delay will be injected.
         
        .envoy.type.FractionalPercent percentage = 4;
        Specified by:
        hasPercentage in interface FaultDelayOrBuilder
        Returns:
        Whether the percentage field is set.
      • getPercentage

        public FractionalPercent getPercentage()
         The percentage of operations/connections/requests on which the delay will be injected.
         
        .envoy.type.FractionalPercent percentage = 4;
        Specified by:
        getPercentage in interface FaultDelayOrBuilder
        Returns:
        The percentage.
      • setPercentage

        public FaultDelay.Builder setPercentage​(FractionalPercent value)
         The percentage of operations/connections/requests on which the delay will be injected.
         
        .envoy.type.FractionalPercent percentage = 4;
      • setPercentage

        public FaultDelay.Builder setPercentage​(FractionalPercent.Builder builderForValue)
         The percentage of operations/connections/requests on which the delay will be injected.
         
        .envoy.type.FractionalPercent percentage = 4;
      • mergePercentage

        public FaultDelay.Builder mergePercentage​(FractionalPercent value)
         The percentage of operations/connections/requests on which the delay will be injected.
         
        .envoy.type.FractionalPercent percentage = 4;
      • clearPercentage

        public FaultDelay.Builder clearPercentage()
         The percentage of operations/connections/requests on which the delay will be injected.
         
        .envoy.type.FractionalPercent percentage = 4;
      • getPercentageBuilder

        public FractionalPercent.Builder getPercentageBuilder()
         The percentage of operations/connections/requests on which the delay will be injected.
         
        .envoy.type.FractionalPercent percentage = 4;
      • setUnknownFields

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

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