Class RetryPolicy

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.envoyproxy.envoy.config.core.v3.RetryPolicy
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RetryPolicyOrBuilder, Serializable

public final class RetryPolicy extends com.google.protobuf.GeneratedMessage implements RetryPolicyOrBuilder
 The message specifies the retry policy of remote data source when fetching fails.
 [#next-free-field: 7]
 
Protobuf type envoy.config.core.v3.RetryPolicy
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • bitField0_

      private int bitField0_
    • RETRY_BACK_OFF_FIELD_NUMBER

      public static final int RETRY_BACK_OFF_FIELD_NUMBER
      See Also:
    • retryBackOff_

      private BackoffStrategy retryBackOff_
    • NUM_RETRIES_FIELD_NUMBER

      public static final int NUM_RETRIES_FIELD_NUMBER
      See Also:
    • numRetries_

      private com.google.protobuf.UInt32Value numRetries_
    • RETRY_ON_FIELD_NUMBER

      public static final int RETRY_ON_FIELD_NUMBER
      See Also:
    • retryOn_

      private volatile Object retryOn_
    • RETRY_PRIORITY_FIELD_NUMBER

      public static final int RETRY_PRIORITY_FIELD_NUMBER
      See Also:
    • retryPriority_

      private RetryPolicy.RetryPriority retryPriority_
    • RETRY_HOST_PREDICATE_FIELD_NUMBER

      public static final int RETRY_HOST_PREDICATE_FIELD_NUMBER
      See Also:
    • retryHostPredicate_

      private List<RetryPolicy.RetryHostPredicate> retryHostPredicate_
    • HOST_SELECTION_RETRY_MAX_ATTEMPTS_FIELD_NUMBER

      public static final int HOST_SELECTION_RETRY_MAX_ATTEMPTS_FIELD_NUMBER
      See Also:
    • hostSelectionRetryMaxAttempts_

      private long hostSelectionRetryMaxAttempts_
    • memoizedIsInitialized

      private byte memoizedIsInitialized
    • DEFAULT_INSTANCE

      private static final RetryPolicy DEFAULT_INSTANCE
    • PARSER

      private static final com.google.protobuf.Parser<RetryPolicy> PARSER
  • Constructor Details

    • RetryPolicy

      private RetryPolicy(com.google.protobuf.GeneratedMessage.Builder<?> builder)
    • RetryPolicy

      private RetryPolicy()
  • Method Details

    • 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
    • hasRetryBackOff

      public boolean hasRetryBackOff()
       Specifies parameters that control :ref:`retry backoff strategy <envoy_v3_api_msg_config.core.v3.BackoffStrategy>`.
       This parameter is optional, in which case the default base interval is 1000 milliseconds. The
       default maximum interval is 10 times the base interval.
       
      .envoy.config.core.v3.BackoffStrategy retry_back_off = 1;
      Specified by:
      hasRetryBackOff in interface RetryPolicyOrBuilder
      Returns:
      Whether the retryBackOff field is set.
    • getRetryBackOff

      public BackoffStrategy getRetryBackOff()
       Specifies parameters that control :ref:`retry backoff strategy <envoy_v3_api_msg_config.core.v3.BackoffStrategy>`.
       This parameter is optional, in which case the default base interval is 1000 milliseconds. The
       default maximum interval is 10 times the base interval.
       
      .envoy.config.core.v3.BackoffStrategy retry_back_off = 1;
      Specified by:
      getRetryBackOff in interface RetryPolicyOrBuilder
      Returns:
      The retryBackOff.
    • getRetryBackOffOrBuilder

      public BackoffStrategyOrBuilder getRetryBackOffOrBuilder()
       Specifies parameters that control :ref:`retry backoff strategy <envoy_v3_api_msg_config.core.v3.BackoffStrategy>`.
       This parameter is optional, in which case the default base interval is 1000 milliseconds. The
       default maximum interval is 10 times the base interval.
       
      .envoy.config.core.v3.BackoffStrategy retry_back_off = 1;
      Specified by:
      getRetryBackOffOrBuilder in interface RetryPolicyOrBuilder
    • hasNumRetries

      public boolean hasNumRetries()
       Specifies the allowed number of retries. This parameter is optional and
       defaults to 1.
       
      .google.protobuf.UInt32Value num_retries = 2 [(.udpa.annotations.field_migrate) = { ... }
      Specified by:
      hasNumRetries in interface RetryPolicyOrBuilder
      Returns:
      Whether the numRetries field is set.
    • getNumRetries

      public com.google.protobuf.UInt32Value getNumRetries()
       Specifies the allowed number of retries. This parameter is optional and
       defaults to 1.
       
      .google.protobuf.UInt32Value num_retries = 2 [(.udpa.annotations.field_migrate) = { ... }
      Specified by:
      getNumRetries in interface RetryPolicyOrBuilder
      Returns:
      The numRetries.
    • getNumRetriesOrBuilder

      public com.google.protobuf.UInt32ValueOrBuilder getNumRetriesOrBuilder()
       Specifies the allowed number of retries. This parameter is optional and
       defaults to 1.
       
      .google.protobuf.UInt32Value num_retries = 2 [(.udpa.annotations.field_migrate) = { ... }
      Specified by:
      getNumRetriesOrBuilder in interface RetryPolicyOrBuilder
    • getRetryOn

      public String getRetryOn()
       For details, see :ref:`retry_on <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_on>`.
       
      string retry_on = 3;
      Specified by:
      getRetryOn in interface RetryPolicyOrBuilder
      Returns:
      The retryOn.
    • getRetryOnBytes

      public com.google.protobuf.ByteString getRetryOnBytes()
       For details, see :ref:`retry_on <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_on>`.
       
      string retry_on = 3;
      Specified by:
      getRetryOnBytes in interface RetryPolicyOrBuilder
      Returns:
      The bytes for retryOn.
    • hasRetryPriority

      public boolean hasRetryPriority()
       For details, see :ref:`retry_priority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.
       
      .envoy.config.core.v3.RetryPolicy.RetryPriority retry_priority = 4;
      Specified by:
      hasRetryPriority in interface RetryPolicyOrBuilder
      Returns:
      Whether the retryPriority field is set.
    • getRetryPriority

      public RetryPolicy.RetryPriority getRetryPriority()
       For details, see :ref:`retry_priority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.
       
      .envoy.config.core.v3.RetryPolicy.RetryPriority retry_priority = 4;
      Specified by:
      getRetryPriority in interface RetryPolicyOrBuilder
      Returns:
      The retryPriority.
    • getRetryPriorityOrBuilder

      public RetryPolicy.RetryPriorityOrBuilder getRetryPriorityOrBuilder()
       For details, see :ref:`retry_priority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.
       
      .envoy.config.core.v3.RetryPolicy.RetryPriority retry_priority = 4;
      Specified by:
      getRetryPriorityOrBuilder in interface RetryPolicyOrBuilder
    • getRetryHostPredicateList

      public List<RetryPolicy.RetryHostPredicate> getRetryHostPredicateList()
       For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
       
      repeated .envoy.config.core.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
      Specified by:
      getRetryHostPredicateList in interface RetryPolicyOrBuilder
    • getRetryHostPredicateOrBuilderList

      public List<? extends RetryPolicy.RetryHostPredicateOrBuilder> getRetryHostPredicateOrBuilderList()
       For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
       
      repeated .envoy.config.core.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
      Specified by:
      getRetryHostPredicateOrBuilderList in interface RetryPolicyOrBuilder
    • getRetryHostPredicateCount

      public int getRetryHostPredicateCount()
       For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
       
      repeated .envoy.config.core.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
      Specified by:
      getRetryHostPredicateCount in interface RetryPolicyOrBuilder
    • getRetryHostPredicate

      public RetryPolicy.RetryHostPredicate getRetryHostPredicate(int index)
       For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
       
      repeated .envoy.config.core.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
      Specified by:
      getRetryHostPredicate in interface RetryPolicyOrBuilder
    • getRetryHostPredicateOrBuilder

      public RetryPolicy.RetryHostPredicateOrBuilder getRetryHostPredicateOrBuilder(int index)
       For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
       
      repeated .envoy.config.core.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
      Specified by:
      getRetryHostPredicateOrBuilder in interface RetryPolicyOrBuilder
    • getHostSelectionRetryMaxAttempts

      public long getHostSelectionRetryMaxAttempts()
       For details, see :ref:`host_selection_retry_max_attempts <envoy_v3_api_field_config.route.v3.RetryPolicy.host_selection_retry_max_attempts>`.
       
      int64 host_selection_retry_max_attempts = 6;
      Specified by:
      getHostSelectionRetryMaxAttempts in interface RetryPolicyOrBuilder
      Returns:
      The hostSelectionRetryMaxAttempts.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static RetryPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RetryPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RetryPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RetryPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RetryPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RetryPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RetryPolicy parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RetryPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RetryPolicy parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RetryPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RetryPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RetryPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public RetryPolicy.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RetryPolicy.Builder newBuilder()
    • newBuilder

      public static RetryPolicy.Builder newBuilder(RetryPolicy prototype)
    • toBuilder

      public RetryPolicy.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RetryPolicy.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RetryPolicy getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RetryPolicy> parser()
    • getParserForType

      public com.google.protobuf.Parser<RetryPolicy> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public RetryPolicy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder