public final class BatchOperationMetadata extends GeneratedMessageV3 implements BatchOperationMetadataOrBuilder
Metadata used for long running operations returned by CTS batch APIs.
It's used to replace
google.longrunning.Operation.metadata.
Protobuf type google.cloud.talent.v4beta1.BatchOperationMetadata
Static Fields
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
public static final int END_TIME_FIELD_NUMBER
Field Value
public static final int FAILURE_COUNT_FIELD_NUMBER
Field Value
public static final int STATE_DESCRIPTION_FIELD_NUMBER
Field Value
public static final int STATE_FIELD_NUMBER
Field Value
public static final int SUCCESS_COUNT_FIELD_NUMBER
Field Value
public static final int TOTAL_COUNT_FIELD_NUMBER
Field Value
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Static Methods
public static BatchOperationMetadata getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static BatchOperationMetadata.Builder newBuilder()
Returns
public static BatchOperationMetadata.Builder newBuilder(BatchOperationMetadata prototype)
Parameter
Returns
public static BatchOperationMetadata parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static BatchOperationMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchOperationMetadata parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static BatchOperationMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchOperationMetadata parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static BatchOperationMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchOperationMetadata parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static BatchOperationMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchOperationMetadata parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static BatchOperationMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchOperationMetadata parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static BatchOperationMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<BatchOperationMetadata> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public Timestamp getCreateTime()
The time when the batch operation is created.
.google.protobuf.Timestamp create_time = 6;
Returns
public TimestampOrBuilder getCreateTimeOrBuilder()
The time when the batch operation is created.
.google.protobuf.Timestamp create_time = 6;
Returns
public BatchOperationMetadata getDefaultInstanceForType()
Returns
public Timestamp getEndTime()
The time when the batch operation is finished and
google.longrunning.Operation.done is
set to true
.
.google.protobuf.Timestamp end_time = 8;
Returns
public TimestampOrBuilder getEndTimeOrBuilder()
The time when the batch operation is finished and
google.longrunning.Operation.done is
set to true
.
.google.protobuf.Timestamp end_time = 8;
Returns
public int getFailureCount()
Count of failed item(s) inside an operation.
int32 failure_count = 4;
Returns
Type | Description |
int | The failureCount.
|
public Parser<BatchOperationMetadata> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public BatchOperationMetadata.State getState()
The state of a long running operation.
.google.cloud.talent.v4beta1.BatchOperationMetadata.State state = 1;
Returns
public String getStateDescription()
More detailed information about operation state.
string state_description = 2;
Returns
Type | Description |
String | The stateDescription.
|
public ByteString getStateDescriptionBytes()
More detailed information about operation state.
string state_description = 2;
Returns
Type | Description |
ByteString | The bytes for stateDescription.
|
public int getStateValue()
The state of a long running operation.
.google.cloud.talent.v4beta1.BatchOperationMetadata.State state = 1;
Returns
Type | Description |
int | The enum numeric value on the wire for state.
|
public int getSuccessCount()
Count of successful item(s) inside an operation.
int32 success_count = 3;
Returns
Type | Description |
int | The successCount.
|
public int getTotalCount()
Count of total item(s) inside an operation.
int32 total_count = 5;
Returns
Type | Description |
int | The totalCount.
|
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public Timestamp getUpdateTime()
The time when the batch operation status is updated. The metadata and the
update_time
is refreshed every minute otherwise cached data is returned.
.google.protobuf.Timestamp update_time = 7;
Returns
public TimestampOrBuilder getUpdateTimeOrBuilder()
The time when the batch operation status is updated. The metadata and the
update_time
is refreshed every minute otherwise cached data is returned.
.google.protobuf.Timestamp update_time = 7;
Returns
public boolean hasCreateTime()
The time when the batch operation is created.
.google.protobuf.Timestamp create_time = 6;
Returns
Type | Description |
boolean | Whether the createTime field is set.
|
public boolean hasEndTime()
The time when the batch operation is finished and
google.longrunning.Operation.done is
set to true
.
.google.protobuf.Timestamp end_time = 8;
Returns
Type | Description |
boolean | Whether the endTime field is set.
|
public boolean hasUpdateTime()
The time when the batch operation status is updated. The metadata and the
update_time
is refreshed every minute otherwise cached data is returned.
.google.protobuf.Timestamp update_time = 7;
Returns
Type | Description |
boolean | Whether the updateTime field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public BatchOperationMetadata.Builder newBuilderForType()
Returns
protected BatchOperationMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public BatchOperationMetadata.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions