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

@Generated 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:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    The message specifies the retry policy of remote data source when fetching fails.
    static final class 
    See :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
    static interface 
     
    static final class 
    See :ref:`RetryPriority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.
    static interface 
     

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    long
    For details, see :ref:`host_selection_retry_max_attempts <envoy_v3_api_field_config.route.v3.RetryPolicy.host_selection_retry_max_attempts>`.
    com.google.protobuf.UInt32Value
    Specifies the allowed number of retries.
    com.google.protobuf.UInt32ValueOrBuilder
    Specifies the allowed number of retries.
    com.google.protobuf.Parser<RetryPolicy>
     
    Specifies parameters that control :ref:`retry backoff strategy <envoy_v3_api_msg_config.core.v3.BackoffStrategy>`.
    Specifies parameters that control :ref:`retry backoff strategy <envoy_v3_api_msg_config.core.v3.BackoffStrategy>`.
    For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
    int
    For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
    For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
    For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
    For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
    For details, see :ref:`retry_on <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_on>`.
    com.google.protobuf.ByteString
    For details, see :ref:`retry_on <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_on>`.
    For details, see :ref:`retry_priority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.
    For details, see :ref:`retry_priority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.
    int
     
    int
     
    boolean
    Specifies the allowed number of retries.
    boolean
    Specifies parameters that control :ref:`retry backoff strategy <envoy_v3_api_msg_config.core.v3.BackoffStrategy>`.
    boolean
    For details, see :ref:`retry_priority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<RetryPolicy>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • RETRY_BACK_OFF_FIELD_NUMBER

      public static final int RETRY_BACK_OFF_FIELD_NUMBER
      See Also:
    • NUM_RETRIES_FIELD_NUMBER

      public static final int NUM_RETRIES_FIELD_NUMBER
      See Also:
    • RETRY_ON_FIELD_NUMBER

      public static final int RETRY_ON_FIELD_NUMBER
      See Also:
    • RETRY_PRIORITY_FIELD_NUMBER

      public static final int RETRY_PRIORITY_FIELD_NUMBER
      See Also:
    • RETRY_HOST_PREDICATE_FIELD_NUMBER

      public static final int RETRY_HOST_PREDICATE_FIELD_NUMBER
      See Also:
    • HOST_SELECTION_RETRY_MAX_ATTEMPTS_FIELD_NUMBER

      public static final int HOST_SELECTION_RETRY_MAX_ATTEMPTS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage
    • 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