Package com.google.api
Class MethodSettings.LongRunning.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<MethodSettings.LongRunning,MethodSettings.LongRunning.Builder>
com.google.api.MethodSettings.LongRunning.Builder
- All Implemented Interfaces:
MethodSettings.LongRunningOrBuilder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
- Enclosing class:
- MethodSettings.LongRunning
public static final class MethodSettings.LongRunning.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<MethodSettings.LongRunning,MethodSettings.LongRunning.Builder>
implements MethodSettings.LongRunningOrBuilder
Describes settings to use when generating API methods that use the long-running operation pattern. All default values below are from those used in the client library generators (e.g. [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).Protobuf type
google.api.MethodSettings.LongRunning
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionInitial delay after which the first poll request will be made.Maximum time between two subsequent poll requests.Multiplier to gradually increase delay between subsequent polls until it reaches max_poll_delay.Total polling timeout.com.google.protobuf.Duration
Initial delay after which the first poll request will be made.com.google.protobuf.Duration
Maximum time between two subsequent poll requests.float
Multiplier to gradually increase delay between subsequent polls until it reaches max_poll_delay.com.google.protobuf.Duration
Total polling timeout.boolean
Initial delay after which the first poll request will be made.boolean
Maximum time between two subsequent poll requests.boolean
Total polling timeout.mergeInitialPollDelay
(com.google.protobuf.Duration value) Initial delay after which the first poll request will be made.mergeMaxPollDelay
(com.google.protobuf.Duration value) Maximum time between two subsequent poll requests.mergeTotalPollTimeout
(com.google.protobuf.Duration value) Total polling timeout.setInitialPollDelay
(com.google.protobuf.Duration value) Initial delay after which the first poll request will be made.setInitialPollDelay
(com.google.protobuf.Duration.Builder builderForValue) Initial delay after which the first poll request will be made.setMaxPollDelay
(com.google.protobuf.Duration value) Maximum time between two subsequent poll requests.setMaxPollDelay
(com.google.protobuf.Duration.Builder builderForValue) Maximum time between two subsequent poll requests.setPollDelayMultiplier
(float value) Multiplier to gradually increase delay between subsequent polls until it reaches max_poll_delay.setTotalPollTimeout
(com.google.protobuf.Duration value) Total polling timeout.setTotalPollTimeout
(com.google.protobuf.Duration.Builder builderForValue) Total polling timeout.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasInitialPollDelay
public boolean hasInitialPollDelay()Initial delay after which the first poll request will be made. Default value: 5 seconds.
.google.protobuf.Duration initial_poll_delay = 1 [json_name = "initialPollDelay"];
- Specified by:
hasInitialPollDelay
in interfaceMethodSettings.LongRunningOrBuilder
- Returns:
- Whether the initialPollDelay field is set.
-
getInitialPollDelay
public com.google.protobuf.Duration getInitialPollDelay()Initial delay after which the first poll request will be made. Default value: 5 seconds.
.google.protobuf.Duration initial_poll_delay = 1 [json_name = "initialPollDelay"];
- Specified by:
getInitialPollDelay
in interfaceMethodSettings.LongRunningOrBuilder
- Returns:
- The initialPollDelay.
-
setInitialPollDelay
Initial delay after which the first poll request will be made. Default value: 5 seconds.
.google.protobuf.Duration initial_poll_delay = 1 [json_name = "initialPollDelay"];
-
setInitialPollDelay
public MethodSettings.LongRunning.Builder setInitialPollDelay(com.google.protobuf.Duration.Builder builderForValue) Initial delay after which the first poll request will be made. Default value: 5 seconds.
.google.protobuf.Duration initial_poll_delay = 1 [json_name = "initialPollDelay"];
-
mergeInitialPollDelay
Initial delay after which the first poll request will be made. Default value: 5 seconds.
.google.protobuf.Duration initial_poll_delay = 1 [json_name = "initialPollDelay"];
-
clearInitialPollDelay
Initial delay after which the first poll request will be made. Default value: 5 seconds.
.google.protobuf.Duration initial_poll_delay = 1 [json_name = "initialPollDelay"];
-
getPollDelayMultiplier
public float getPollDelayMultiplier()Multiplier to gradually increase delay between subsequent polls until it reaches max_poll_delay. Default value: 1.5.
float poll_delay_multiplier = 2 [json_name = "pollDelayMultiplier"];
- Specified by:
getPollDelayMultiplier
in interfaceMethodSettings.LongRunningOrBuilder
- Returns:
- The pollDelayMultiplier.
-
setPollDelayMultiplier
Multiplier to gradually increase delay between subsequent polls until it reaches max_poll_delay. Default value: 1.5.
float poll_delay_multiplier = 2 [json_name = "pollDelayMultiplier"];
- Parameters:
value
- The pollDelayMultiplier to set.- Returns:
- This builder for chaining.
-
clearPollDelayMultiplier
Multiplier to gradually increase delay between subsequent polls until it reaches max_poll_delay. Default value: 1.5.
float poll_delay_multiplier = 2 [json_name = "pollDelayMultiplier"];
- Returns:
- This builder for chaining.
-
hasMaxPollDelay
public boolean hasMaxPollDelay()Maximum time between two subsequent poll requests. Default value: 45 seconds.
.google.protobuf.Duration max_poll_delay = 3 [json_name = "maxPollDelay"];
- Specified by:
hasMaxPollDelay
in interfaceMethodSettings.LongRunningOrBuilder
- Returns:
- Whether the maxPollDelay field is set.
-
getMaxPollDelay
public com.google.protobuf.Duration getMaxPollDelay()Maximum time between two subsequent poll requests. Default value: 45 seconds.
.google.protobuf.Duration max_poll_delay = 3 [json_name = "maxPollDelay"];
- Specified by:
getMaxPollDelay
in interfaceMethodSettings.LongRunningOrBuilder
- Returns:
- The maxPollDelay.
-
setMaxPollDelay
Maximum time between two subsequent poll requests. Default value: 45 seconds.
.google.protobuf.Duration max_poll_delay = 3 [json_name = "maxPollDelay"];
-
setMaxPollDelay
public MethodSettings.LongRunning.Builder setMaxPollDelay(com.google.protobuf.Duration.Builder builderForValue) Maximum time between two subsequent poll requests. Default value: 45 seconds.
.google.protobuf.Duration max_poll_delay = 3 [json_name = "maxPollDelay"];
-
mergeMaxPollDelay
Maximum time between two subsequent poll requests. Default value: 45 seconds.
.google.protobuf.Duration max_poll_delay = 3 [json_name = "maxPollDelay"];
-
clearMaxPollDelay
Maximum time between two subsequent poll requests. Default value: 45 seconds.
.google.protobuf.Duration max_poll_delay = 3 [json_name = "maxPollDelay"];
-
hasTotalPollTimeout
public boolean hasTotalPollTimeout()Total polling timeout. Default value: 5 minutes.
.google.protobuf.Duration total_poll_timeout = 4 [json_name = "totalPollTimeout"];
- Specified by:
hasTotalPollTimeout
in interfaceMethodSettings.LongRunningOrBuilder
- Returns:
- Whether the totalPollTimeout field is set.
-
getTotalPollTimeout
public com.google.protobuf.Duration getTotalPollTimeout()Total polling timeout. Default value: 5 minutes.
.google.protobuf.Duration total_poll_timeout = 4 [json_name = "totalPollTimeout"];
- Specified by:
getTotalPollTimeout
in interfaceMethodSettings.LongRunningOrBuilder
- Returns:
- The totalPollTimeout.
-
setTotalPollTimeout
Total polling timeout. Default value: 5 minutes.
.google.protobuf.Duration total_poll_timeout = 4 [json_name = "totalPollTimeout"];
-
setTotalPollTimeout
public MethodSettings.LongRunning.Builder setTotalPollTimeout(com.google.protobuf.Duration.Builder builderForValue) Total polling timeout. Default value: 5 minutes.
.google.protobuf.Duration total_poll_timeout = 4 [json_name = "totalPollTimeout"];
-
mergeTotalPollTimeout
Total polling timeout. Default value: 5 minutes.
.google.protobuf.Duration total_poll_timeout = 4 [json_name = "totalPollTimeout"];
-
clearTotalPollTimeout
Total polling timeout. Default value: 5 minutes.
.google.protobuf.Duration total_poll_timeout = 4 [json_name = "totalPollTimeout"];
-