Class Pipeline.RetryPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Pipeline.RetryPolicy.Builder>
com.google.cloud.eventarc.v1.Pipeline.RetryPolicy.Builder
All Implemented Interfaces:
Pipeline.RetryPolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Pipeline.RetryPolicy

public static final class Pipeline.RetryPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<Pipeline.RetryPolicy.Builder> implements Pipeline.RetryPolicyOrBuilder
 The retry policy configuration for the Pipeline. The pipeline
 exponentially backs off in case the destination is non responsive or
 returns a retryable error code. The default semantics are as follows:
 The backoff starts with a 5 second delay and doubles the
 delay after each failed attempt (10 seconds, 20 seconds, 40 seconds, etc.).
 The delay is capped at 60 seconds by default.
 Please note that if you set the min_retry_delay and max_retry_delay fields
 to the same value this will make the duration between retries constant.
 
Protobuf type google.cloud.eventarc.v1.Pipeline.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.Builder<Pipeline.RetryPolicy.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<Pipeline.RetryPolicy.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<Pipeline.RetryPolicy.Builder>
    • getDefaultInstanceForType

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

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

      public Pipeline.RetryPolicy buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

    • isInitialized

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

      public Pipeline.RetryPolicy.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<Pipeline.RetryPolicy.Builder>
      Throws:
      IOException
    • getMaxAttempts

      public int getMaxAttempts()
       Optional. The maximum number of delivery attempts for any message. The
       value must be between 1 and 100. The default value for this field is 5.
       
      int32 max_attempts = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxAttempts in interface Pipeline.RetryPolicyOrBuilder
      Returns:
      The maxAttempts.
    • setMaxAttempts

      public Pipeline.RetryPolicy.Builder setMaxAttempts(int value)
       Optional. The maximum number of delivery attempts for any message. The
       value must be between 1 and 100. The default value for this field is 5.
       
      int32 max_attempts = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The maxAttempts to set.
      Returns:
      This builder for chaining.
    • clearMaxAttempts

      public Pipeline.RetryPolicy.Builder clearMaxAttempts()
       Optional. The maximum number of delivery attempts for any message. The
       value must be between 1 and 100. The default value for this field is 5.
       
      int32 max_attempts = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasMinRetryDelay

      public boolean hasMinRetryDelay()
       Optional. The minimum amount of seconds to wait between retry attempts.
       The value must be between 1 and 600. The default value for this field
       is 5.
       
      .google.protobuf.Duration min_retry_delay = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMinRetryDelay in interface Pipeline.RetryPolicyOrBuilder
      Returns:
      Whether the minRetryDelay field is set.
    • getMinRetryDelay

      public com.google.protobuf.Duration getMinRetryDelay()
       Optional. The minimum amount of seconds to wait between retry attempts.
       The value must be between 1 and 600. The default value for this field
       is 5.
       
      .google.protobuf.Duration min_retry_delay = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMinRetryDelay in interface Pipeline.RetryPolicyOrBuilder
      Returns:
      The minRetryDelay.
    • setMinRetryDelay

      public Pipeline.RetryPolicy.Builder setMinRetryDelay(com.google.protobuf.Duration value)
       Optional. The minimum amount of seconds to wait between retry attempts.
       The value must be between 1 and 600. The default value for this field
       is 5.
       
      .google.protobuf.Duration min_retry_delay = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setMinRetryDelay

      public Pipeline.RetryPolicy.Builder setMinRetryDelay(com.google.protobuf.Duration.Builder builderForValue)
       Optional. The minimum amount of seconds to wait between retry attempts.
       The value must be between 1 and 600. The default value for this field
       is 5.
       
      .google.protobuf.Duration min_retry_delay = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeMinRetryDelay

      public Pipeline.RetryPolicy.Builder mergeMinRetryDelay(com.google.protobuf.Duration value)
       Optional. The minimum amount of seconds to wait between retry attempts.
       The value must be between 1 and 600. The default value for this field
       is 5.
       
      .google.protobuf.Duration min_retry_delay = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearMinRetryDelay

      public Pipeline.RetryPolicy.Builder clearMinRetryDelay()
       Optional. The minimum amount of seconds to wait between retry attempts.
       The value must be between 1 and 600. The default value for this field
       is 5.
       
      .google.protobuf.Duration min_retry_delay = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getMinRetryDelayBuilder

      public com.google.protobuf.Duration.Builder getMinRetryDelayBuilder()
       Optional. The minimum amount of seconds to wait between retry attempts.
       The value must be between 1 and 600. The default value for this field
       is 5.
       
      .google.protobuf.Duration min_retry_delay = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getMinRetryDelayOrBuilder

      public com.google.protobuf.DurationOrBuilder getMinRetryDelayOrBuilder()
       Optional. The minimum amount of seconds to wait between retry attempts.
       The value must be between 1 and 600. The default value for this field
       is 5.
       
      .google.protobuf.Duration min_retry_delay = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMinRetryDelayOrBuilder in interface Pipeline.RetryPolicyOrBuilder
    • hasMaxRetryDelay

      public boolean hasMaxRetryDelay()
       Optional. The maximum amount of seconds to wait between retry attempts.
       The value must be between 1 and 600. The default value for this field
       is 60.
       
      .google.protobuf.Duration max_retry_delay = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMaxRetryDelay in interface Pipeline.RetryPolicyOrBuilder
      Returns:
      Whether the maxRetryDelay field is set.
    • getMaxRetryDelay

      public com.google.protobuf.Duration getMaxRetryDelay()
       Optional. The maximum amount of seconds to wait between retry attempts.
       The value must be between 1 and 600. The default value for this field
       is 60.
       
      .google.protobuf.Duration max_retry_delay = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxRetryDelay in interface Pipeline.RetryPolicyOrBuilder
      Returns:
      The maxRetryDelay.
    • setMaxRetryDelay

      public Pipeline.RetryPolicy.Builder setMaxRetryDelay(com.google.protobuf.Duration value)
       Optional. The maximum amount of seconds to wait between retry attempts.
       The value must be between 1 and 600. The default value for this field
       is 60.
       
      .google.protobuf.Duration max_retry_delay = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setMaxRetryDelay

      public Pipeline.RetryPolicy.Builder setMaxRetryDelay(com.google.protobuf.Duration.Builder builderForValue)
       Optional. The maximum amount of seconds to wait between retry attempts.
       The value must be between 1 and 600. The default value for this field
       is 60.
       
      .google.protobuf.Duration max_retry_delay = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeMaxRetryDelay

      public Pipeline.RetryPolicy.Builder mergeMaxRetryDelay(com.google.protobuf.Duration value)
       Optional. The maximum amount of seconds to wait between retry attempts.
       The value must be between 1 and 600. The default value for this field
       is 60.
       
      .google.protobuf.Duration max_retry_delay = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearMaxRetryDelay

      public Pipeline.RetryPolicy.Builder clearMaxRetryDelay()
       Optional. The maximum amount of seconds to wait between retry attempts.
       The value must be between 1 and 600. The default value for this field
       is 60.
       
      .google.protobuf.Duration max_retry_delay = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getMaxRetryDelayBuilder

      public com.google.protobuf.Duration.Builder getMaxRetryDelayBuilder()
       Optional. The maximum amount of seconds to wait between retry attempts.
       The value must be between 1 and 600. The default value for this field
       is 60.
       
      .google.protobuf.Duration max_retry_delay = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getMaxRetryDelayOrBuilder

      public com.google.protobuf.DurationOrBuilder getMaxRetryDelayOrBuilder()
       Optional. The maximum amount of seconds to wait between retry attempts.
       The value must be between 1 and 600. The default value for this field
       is 60.
       
      .google.protobuf.Duration max_retry_delay = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxRetryDelayOrBuilder in interface Pipeline.RetryPolicyOrBuilder