Interface OperationMetadataOrBuilder (0.38.0)

publicinterface OperationMetadataOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getApiVersion()

publicabstractStringgetApiVersion()

API version used to start the operation.

string api_version = 7;

Returns
Type Description
String

The apiVersion.

getApiVersionBytes()

publicabstractByteStringgetApiVersionBytes()

API version used to start the operation.

string api_version = 7;

Returns
Type Description
ByteString

The bytes for apiVersion.

getCreateTime()

publicabstractTimestampgetCreateTime()

The time the operation was created.

.google.protobuf.Timestamp create_time = 1;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

publicabstractTimestampOrBuildergetCreateTimeOrBuilder()

The time the operation was created.

.google.protobuf.Timestamp create_time = 1;

Returns
Type Description
TimestampOrBuilder

getEndTime()

publicabstractTimestampgetEndTime()

The time the operation finished running.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
Timestamp

The endTime.

getEndTimeOrBuilder()

publicabstractTimestampOrBuildergetEndTimeOrBuilder()

The time the operation finished running.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
TimestampOrBuilder

getRequestedCancellation()

publicabstractbooleangetRequestedCancellation()

Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [Operation.error][] value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

bool requested_cancellation = 6;

Returns
Type Description
boolean

The requestedCancellation.

getStatusMessage()

publicabstractStringgetStatusMessage()

Human-readable status of the operation, if any.

string status_message = 5;

Returns
Type Description
String

The statusMessage.

getStatusMessageBytes()

publicabstractByteStringgetStatusMessageBytes()

Human-readable status of the operation, if any.

string status_message = 5;

Returns
Type Description
ByteString

The bytes for statusMessage.

getTarget()

publicabstractStringgetTarget()

Server-defined resource path for the target of the operation.

string target = 3;

Returns
Type Description
String

The target.

getTargetBytes()

publicabstractByteStringgetTargetBytes()

Server-defined resource path for the target of the operation.

string target = 3;

Returns
Type Description
ByteString

The bytes for target.

getVerb()

publicabstractStringgetVerb()

The verb executed by the operation.

string verb = 4;

Returns
Type Description
String

The verb.

getVerbBytes()

publicabstractByteStringgetVerbBytes()

The verb executed by the operation.

string verb = 4;

Returns
Type Description
ByteString

The bytes for verb.

getWarnings(int index)

publicabstractStringgetWarnings(intindex)

Warnings that do not block the operation, but still hold relevant information for the end user to receive.

repeated string warnings = 8;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The warnings at the given index.

getWarningsBytes(int index)

publicabstractByteStringgetWarningsBytes(intindex)

Warnings that do not block the operation, but still hold relevant information for the end user to receive.

repeated string warnings = 8;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the warnings at the given index.

getWarningsCount()

publicabstractintgetWarningsCount()

Warnings that do not block the operation, but still hold relevant information for the end user to receive.

repeated string warnings = 8;

Returns
Type Description
int

The count of warnings.

getWarningsList()

publicabstractList<String>getWarningsList()

Warnings that do not block the operation, but still hold relevant information for the end user to receive.

repeated string warnings = 8;

Returns
Type Description
List<String>

A list containing the warnings.

hasCreateTime()

publicabstractbooleanhasCreateTime()

The time the operation was created.

.google.protobuf.Timestamp create_time = 1;

Returns
Type Description
boolean

Whether the createTime field is set.

hasEndTime()

publicabstractbooleanhasEndTime()

The time the operation finished running.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
boolean

Whether the endTime field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.