Class BatchCreateTasksMetadata.Builder (2.95.0)

public static final class BatchCreateTasksMetadata.Builder extends GeneratedMessage.Builder<BatchCreateTasksMetadata.Builder> implements BatchCreateTasksMetadataOrBuilder

Metadata message for [BatchCreateTasks].

Protobuf type google.cloud.tasks.v2beta3.BatchCreateTasksMetadata

Static Methods

getDescriptor()

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

Methods

build()

public BatchCreateTasksMetadata build()
Returns
Type Description
BatchCreateTasksMetadata

buildPartial()

public BatchCreateTasksMetadata buildPartial()
Returns
Type Description
BatchCreateTasksMetadata

clear()

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

clearEndTime()

public BatchCreateTasksMetadata.Builder clearEndTime()

The time when the batch create finished.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
BatchCreateTasksMetadata.Builder

clearFailedRequests()

public BatchCreateTasksMetadata.Builder clearFailedRequests()
Returns
Type Description
BatchCreateTasksMetadata.Builder

clearStartTime()

public BatchCreateTasksMetadata.Builder clearStartTime()

The time when the batch create started.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
BatchCreateTasksMetadata.Builder

clearState()

public BatchCreateTasksMetadata.Builder clearState()

Output only. The state of the batch create operation.

.google.cloud.tasks.v2beta3.BatchCreateTasksMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BatchCreateTasksMetadata.Builder

This builder for chaining.

containsFailedRequests(int key)

public boolean containsFailedRequests(int key)

A map of failed requests, where the key is the index of the request in BatchCreateTasksRequest.requests and the value is the error status.

map<int32, .google.rpc.Status> failed_requests = 4;

Parameter
Name Description
key int
Returns
Type Description
boolean

getDefaultInstanceForType()

public BatchCreateTasksMetadata getDefaultInstanceForType()
Returns
Type Description
BatchCreateTasksMetadata

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

The time when the batch create finished.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

The time when the batch create finished.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

The time when the batch create finished.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
TimestampOrBuilder

getFailedRequests() (deprecated)

public Map<Integer,Status> getFailedRequests()
Returns
Type Description
Map<java.lang.Integer,com.google.rpc.Status>

getFailedRequestsCount()

public int getFailedRequestsCount()

A map of failed requests, where the key is the index of the request in BatchCreateTasksRequest.requests and the value is the error status.

map<int32, .google.rpc.Status> failed_requests = 4;

Returns
Type Description
int

getFailedRequestsMap()

public Map<Integer,Status> getFailedRequestsMap()

A map of failed requests, where the key is the index of the request in BatchCreateTasksRequest.requests and the value is the error status.

map<int32, .google.rpc.Status> failed_requests = 4;

Returns
Type Description
Map<java.lang.Integer,com.google.rpc.Status>

getFailedRequestsOrDefault(int key, Status defaultValue)

public Status getFailedRequestsOrDefault(int key, Status defaultValue)

A map of failed requests, where the key is the index of the request in BatchCreateTasksRequest.requests and the value is the error status.

map<int32, .google.rpc.Status> failed_requests = 4;

Parameters
Name Description
key int
defaultValue com.google.rpc.Status
Returns
Type Description
com.google.rpc.Status

getFailedRequestsOrThrow(int key)

public Status getFailedRequestsOrThrow(int key)

A map of failed requests, where the key is the index of the request in BatchCreateTasksRequest.requests and the value is the error status.

map<int32, .google.rpc.Status> failed_requests = 4;

Parameter
Name Description
key int
Returns
Type Description
com.google.rpc.Status

getMutableFailedRequests() (deprecated)

public Map<Integer,Status> getMutableFailedRequests()

Use alternate mutation accessors instead.

Returns
Type Description
Map<java.lang.Integer,com.google.rpc.Status>

getStartTime()

public Timestamp getStartTime()

The time when the batch create started.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The time when the batch create started.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The time when the batch create started.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
TimestampOrBuilder

getState()

public BatchCreateTasksMetadata.State getState()

Output only. The state of the batch create operation.

.google.cloud.tasks.v2beta3.BatchCreateTasksMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BatchCreateTasksMetadata.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the batch create operation.

.google.cloud.tasks.v2beta3.BatchCreateTasksMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasEndTime()

public boolean hasEndTime()

The time when the batch create finished.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

The time when the batch create started.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public BatchCreateTasksMetadata.Builder mergeEndTime(Timestamp value)

The time when the batch create finished.

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
BatchCreateTasksMetadata.Builder

mergeFrom(BatchCreateTasksMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public BatchCreateTasksMetadata.Builder mergeStartTime(Timestamp value)

The time when the batch create started.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
BatchCreateTasksMetadata.Builder

putAllFailedRequests(Map<Integer,Status> values)

public BatchCreateTasksMetadata.Builder putAllFailedRequests(Map<Integer,Status> values)

A map of failed requests, where the key is the index of the request in BatchCreateTasksRequest.requests and the value is the error status.

map<int32, .google.rpc.Status> failed_requests = 4;

Parameter
Name Description
values Map<java.lang.Integer,com.google.rpc.Status>
Returns
Type Description
BatchCreateTasksMetadata.Builder

putFailedRequests(int key, Status value)

public BatchCreateTasksMetadata.Builder putFailedRequests(int key, Status value)

A map of failed requests, where the key is the index of the request in BatchCreateTasksRequest.requests and the value is the error status.

map<int32, .google.rpc.Status> failed_requests = 4;

Parameters
Name Description
key int
value com.google.rpc.Status
Returns
Type Description
BatchCreateTasksMetadata.Builder

putFailedRequestsBuilderIfAbsent(int key)

public Status.Builder putFailedRequestsBuilderIfAbsent(int key)

A map of failed requests, where the key is the index of the request in BatchCreateTasksRequest.requests and the value is the error status.

map<int32, .google.rpc.Status> failed_requests = 4;

Parameter
Name Description
key int
Returns
Type Description
com.google.rpc.Status.Builder

removeFailedRequests(int key)

public BatchCreateTasksMetadata.Builder removeFailedRequests(int key)

A map of failed requests, where the key is the index of the request in BatchCreateTasksRequest.requests and the value is the error status.

map<int32, .google.rpc.Status> failed_requests = 4;

Parameter
Name Description
key int
Returns
Type Description
BatchCreateTasksMetadata.Builder

setEndTime(Timestamp value)

public BatchCreateTasksMetadata.Builder setEndTime(Timestamp value)

The time when the batch create finished.

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
BatchCreateTasksMetadata.Builder

setEndTime(Timestamp.Builder builderForValue)

public BatchCreateTasksMetadata.Builder setEndTime(Timestamp.Builder builderForValue)

The time when the batch create finished.

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BatchCreateTasksMetadata.Builder

setStartTime(Timestamp value)

public BatchCreateTasksMetadata.Builder setStartTime(Timestamp value)

The time when the batch create started.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
BatchCreateTasksMetadata.Builder

setStartTime(Timestamp.Builder builderForValue)

public BatchCreateTasksMetadata.Builder setStartTime(Timestamp.Builder builderForValue)

The time when the batch create started.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BatchCreateTasksMetadata.Builder

setState(BatchCreateTasksMetadata.State value)

public BatchCreateTasksMetadata.Builder setState(BatchCreateTasksMetadata.State value)

Output only. The state of the batch create operation.

.google.cloud.tasks.v2beta3.BatchCreateTasksMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value BatchCreateTasksMetadata.State

The state to set.

Returns
Type Description
BatchCreateTasksMetadata.Builder

This builder for chaining.

setStateValue(int value)

public BatchCreateTasksMetadata.Builder setStateValue(int value)

Output only. The state of the batch create operation.

.google.cloud.tasks.v2beta3.BatchCreateTasksMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
BatchCreateTasksMetadata.Builder

This builder for chaining.