Output only. Identifies whether the user has requested cancellation
of the operation. Operations that have been cancelled successfully
have
google.longrunning.Operation.error
value with a google.rpc.Status.code of 1,
corresponding to
Code.CANCELLED.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Interface OperationMetadataOrBuilder (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.OperationMetadataOrBuilder)\n- [0.10.0](/java/docs/reference/google-cloud-storagebatchoperations/0.10.0/com.google.cloud.storagebatchoperations.v1.OperationMetadataOrBuilder)\n- [0.8.0](/java/docs/reference/google-cloud-storagebatchoperations/0.8.0/com.google.cloud.storagebatchoperations.v1.OperationMetadataOrBuilder)\n- [0.7.0](/java/docs/reference/google-cloud-storagebatchoperations/0.7.0/com.google.cloud.storagebatchoperations.v1.OperationMetadataOrBuilder)\n- [0.4.0](/java/docs/reference/google-cloud-storagebatchoperations/0.4.0/com.google.cloud.storagebatchoperations.v1.OperationMetadataOrBuilder)\n- [0.3.0](/java/docs/reference/google-cloud-storagebatchoperations/0.3.0/com.google.cloud.storagebatchoperations.v1.OperationMetadataOrBuilder)\n- [0.2.0](/java/docs/reference/google-cloud-storagebatchoperations/0.2.0/com.google.cloud.storagebatchoperations.v1.OperationMetadataOrBuilder) \n\n public interface OperationMetadataOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getApiVersion()\n\n public abstract String getApiVersion()\n\nOutput only. API version used to start the operation.\n\n`string api_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getApiVersionBytes()\n\n public abstract ByteString getApiVersionBytes()\n\nOutput only. API version used to start the operation.\n\n`string api_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getCreateTime()\n\n public abstract Timestamp getCreateTime()\n\nOutput only. The time the operation was created.\n\n`.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getCreateTimeOrBuilder()\n\n public abstract TimestampOrBuilder getCreateTimeOrBuilder()\n\nOutput only. The time the operation was created.\n\n`.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getEndTime()\n\n public abstract Timestamp getEndTime()\n\nOutput only. The time the operation finished running.\n\n`.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getEndTimeOrBuilder()\n\n public abstract TimestampOrBuilder getEndTimeOrBuilder()\n\nOutput only. The time the operation finished running.\n\n`.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getJob()\n\n public abstract Job getJob()\n\nOutput only. The Job associated with the operation.\n\n`\n.google.cloud.storagebatchoperations.v1.Job job = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getJobOrBuilder()\n\n public abstract JobOrBuilder getJobOrBuilder()\n\nOutput only. The Job associated with the operation.\n\n`\n.google.cloud.storagebatchoperations.v1.Job job = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getOperation()\n\n public abstract String getOperation()\n\nOutput only. The unique operation resource name.\nFormat: projects/{project}/locations/global/operations/{operation}.\n\n`string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getOperationBytes()\n\n public abstract ByteString getOperationBytes()\n\nOutput only. The unique operation resource name.\nFormat: projects/{project}/locations/global/operations/{operation}.\n\n`string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getRequestedCancellation()\n\n public abstract boolean getRequestedCancellation()\n\nOutput only. Identifies whether the user has requested cancellation\nof the operation. Operations that have been cancelled successfully\nhave\ngoogle.longrunning.Operation.error\nvalue with a google.rpc.Status.code of 1,\ncorresponding to\nCode.CANCELLED.\n\n`bool requested_cancellation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### hasCreateTime()\n\n public abstract boolean hasCreateTime()\n\nOutput only. The time the operation was created.\n\n`.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### hasEndTime()\n\n public abstract boolean hasEndTime()\n\nOutput only. The time the operation finished running.\n\n`.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### hasJob()\n\n public abstract boolean hasJob()\n\nOutput only. The Job associated with the operation.\n\n`\n.google.cloud.storagebatchoperations.v1.Job job = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`"]]