Class WaitOperationRequest.Builder (2.65.0)

public static final class WaitOperationRequest.Builder extends GeneratedMessage.Builder<WaitOperationRequest.Builder> implements WaitOperationRequestOrBuilder

The request message for Operations.WaitOperation.

Protobuf type google.longrunning.WaitOperationRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public WaitOperationRequest build()
Returns
Type Description
WaitOperationRequest

buildPartial()

public WaitOperationRequest buildPartial()
Returns
Type Description
WaitOperationRequest

clear()

public WaitOperationRequest.Builder clear()
Returns
Type Description
WaitOperationRequest.Builder
Overrides

clearName()

public WaitOperationRequest.Builder clearName()

The name of the operation resource to wait on.

string name = 1;

Returns
Type Description
WaitOperationRequest.Builder

This builder for chaining.

clearTimeout()

public WaitOperationRequest.Builder clearTimeout()

The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.

.google.protobuf.Duration timeout = 2;

Returns
Type Description
WaitOperationRequest.Builder

getDefaultInstanceForType()

public WaitOperationRequest getDefaultInstanceForType()
Returns
Type Description
WaitOperationRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

The name of the operation resource to wait on.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the operation resource to wait on.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getTimeout()

public Duration getTimeout()

The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.

.google.protobuf.Duration timeout = 2;

Returns
Type Description
Duration

The timeout.

getTimeoutBuilder()

public Duration.Builder getTimeoutBuilder()

The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.

.google.protobuf.Duration timeout = 2;

Returns
Type Description
Builder

getTimeoutOrBuilder()

public DurationOrBuilder getTimeoutOrBuilder()

The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.

.google.protobuf.Duration timeout = 2;

Returns
Type Description
DurationOrBuilder

hasTimeout()

public boolean hasTimeout()

The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.

.google.protobuf.Duration timeout = 2;

Returns
Type Description
boolean

Whether the timeout field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WaitOperationRequest other)

public WaitOperationRequest.Builder mergeFrom(WaitOperationRequest other)
Parameter
Name Description
other WaitOperationRequest
Returns
Type Description
WaitOperationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WaitOperationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WaitOperationRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WaitOperationRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WaitOperationRequest.Builder
Overrides

mergeTimeout(Duration value)

public WaitOperationRequest.Builder mergeTimeout(Duration value)

The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.

.google.protobuf.Duration timeout = 2;

Parameter
Name Description
value Duration
Returns
Type Description
WaitOperationRequest.Builder

setName(String value)

public WaitOperationRequest.Builder setName(String value)

The name of the operation resource to wait on.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
WaitOperationRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public WaitOperationRequest.Builder setNameBytes(ByteString value)

The name of the operation resource to wait on.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
WaitOperationRequest.Builder

This builder for chaining.

setTimeout(Duration value)

public WaitOperationRequest.Builder setTimeout(Duration value)

The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.

.google.protobuf.Duration timeout = 2;

Parameter
Name Description
value Duration
Returns
Type Description
WaitOperationRequest.Builder

setTimeout(Duration.Builder builderForValue)

public WaitOperationRequest.Builder setTimeout(Duration.Builder builderForValue)

The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.

.google.protobuf.Duration timeout = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
WaitOperationRequest.Builder