Class CircuitBreakers.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder>
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CircuitBreakersOrBuilder, Cloneable
Enclosing class:
CircuitBreakers

public static final class CircuitBreakers.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CircuitBreakers.Builder> implements CircuitBreakersOrBuilder
 :ref:`Circuit breaking<arch_overview_circuit_break>` settings can be
 specified individually for each defined priority.
 
Protobuf type envoy.api.v2.cluster.CircuitBreakers
  • 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<CircuitBreakers.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public CircuitBreakers.Builder mergeFrom(CircuitBreakers other)
    • isInitialized

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

      public CircuitBreakers.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<CircuitBreakers.Builder>
      Throws:
      IOException
    • getThresholdsList

      public List<CircuitBreakers.Thresholds> getThresholdsList()
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
      Specified by:
      getThresholdsList in interface CircuitBreakersOrBuilder
    • getThresholdsCount

      public int getThresholdsCount()
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
      Specified by:
      getThresholdsCount in interface CircuitBreakersOrBuilder
    • getThresholds

      public CircuitBreakers.Thresholds getThresholds(int index)
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
      Specified by:
      getThresholds in interface CircuitBreakersOrBuilder
    • setThresholds

      public CircuitBreakers.Builder setThresholds(int index, CircuitBreakers.Thresholds value)
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
    • setThresholds

      public CircuitBreakers.Builder setThresholds(int index, CircuitBreakers.Thresholds.Builder builderForValue)
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
    • addThresholds

       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
    • addThresholds

      public CircuitBreakers.Builder addThresholds(int index, CircuitBreakers.Thresholds value)
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
    • addThresholds

      public CircuitBreakers.Builder addThresholds(CircuitBreakers.Thresholds.Builder builderForValue)
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
    • addThresholds

      public CircuitBreakers.Builder addThresholds(int index, CircuitBreakers.Thresholds.Builder builderForValue)
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
    • addAllThresholds

      public CircuitBreakers.Builder addAllThresholds(Iterable<? extends CircuitBreakers.Thresholds> values)
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
    • clearThresholds

      public CircuitBreakers.Builder clearThresholds()
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
    • removeThresholds

      public CircuitBreakers.Builder removeThresholds(int index)
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
    • getThresholdsBuilder

      public CircuitBreakers.Thresholds.Builder getThresholdsBuilder(int index)
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
    • getThresholdsOrBuilder

      public CircuitBreakers.ThresholdsOrBuilder getThresholdsOrBuilder(int index)
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
      Specified by:
      getThresholdsOrBuilder in interface CircuitBreakersOrBuilder
    • getThresholdsOrBuilderList

      public List<? extends CircuitBreakers.ThresholdsOrBuilder> getThresholdsOrBuilderList()
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
      Specified by:
      getThresholdsOrBuilderList in interface CircuitBreakersOrBuilder
    • addThresholdsBuilder

      public CircuitBreakers.Thresholds.Builder addThresholdsBuilder()
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
    • addThresholdsBuilder

      public CircuitBreakers.Thresholds.Builder addThresholdsBuilder(int index)
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
    • getThresholdsBuilderList

      public List<CircuitBreakers.Thresholds.Builder> getThresholdsBuilderList()
       If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
       are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
       the first one in the list is used. If no Thresholds is defined for a given
       :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
       are used.
       
      repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
    • setUnknownFields

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

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