# Interface OperationOrBuilder (2.96.0)

2.96.0 (latest) 2.94.0 2.91.0 2.90.0 2.88.0 2.86.0 2.85.0 2.84.0 2.83.0 2.81.0 2.79.0 2.78.0 2.77.0 2.76.0 2.75.0 2.73.0 2.71.0 2.70.0 2.67.0 2.66.0 2.65.0 2.63.0 2.62.0 2.61.0 2.60.0 2.59.0 2.58.0 2.57.0 2.56.0 2.55.0 2.54.0 2.52.0 2.51.0 2.50.0 2.49.0 2.48.0 2.47.0 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.40.0 2.39.0 2.38.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.27.0 2.26.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.2 2.4.1 2.3.8

    public interface OperationOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getClusterConditions(int index) (deprecated)

    public abstract StatusCondition getClusterConditions(int index)

Which conditions caused the current cluster state.
Deprecated. Use field error instead.

`
repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1.StatusCondition` |   |

### getClusterConditionsCount() (deprecated)

    public abstract int getClusterConditionsCount()

Which conditions caused the current cluster state.
Deprecated. Use field error instead.

`
repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getClusterConditionsList() (deprecated)

    public abstract List<StatusCondition> getClusterConditionsList()

Which conditions caused the current cluster state.
Deprecated. Use field error instead.

`
repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1.StatusCondition>` |   |

### getClusterConditionsOrBuilder(int index) (deprecated)

    public abstract StatusConditionOrBuilder getClusterConditionsOrBuilder(int index)

Which conditions caused the current cluster state.
Deprecated. Use field error instead.

`
repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1.StatusConditionOrBuilder` |   |

### getClusterConditionsOrBuilderList() (deprecated)

    public abstract List<? extends StatusConditionOrBuilder> getClusterConditionsOrBuilderList()

Which conditions caused the current cluster state.
Deprecated. Use field error instead.

`
repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.container.v1.StatusConditionOrBuilder>` |   |

### getDetail()

    public abstract String getDetail()

Output only. Detailed operation progress, if available.

`string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The detail. |

### getDetailBytes()

    public abstract ByteString getDetailBytes()

Output only. Detailed operation progress, if available.

`string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for detail. |

### getEndTime()

    public abstract String getEndTime()

Output only. The time the operation completed, in
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.

`string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The endTime. |

### getEndTimeBytes()

    public abstract ByteString getEndTimeBytes()

Output only. The time the operation completed, in
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.

`string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for endTime. |

### getError()

    public abstract Status getError()

The error result of the operation in case of failure.

`.google.rpc.Status error = 15;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.rpc.Status` | The error. |

### getErrorOrBuilder()

    public abstract StatusOrBuilder getErrorOrBuilder()

The error result of the operation in case of failure.

`.google.rpc.Status error = 15;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.rpc.StatusOrBuilder` |   |

### getLocation()

    public abstract String getLocation()

Output only. The name of the Google Compute Engine
[zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
or
[region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
in which the cluster resides.

`string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The location. |

### getLocationBytes()

    public abstract ByteString getLocationBytes()

Output only. The name of the Google Compute Engine
[zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
or
[region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
in which the cluster resides.

`string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for location. |

### getName()

    public abstract String getName()

Output only. The server-assigned ID for the operation.

`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

Output only. The server-assigned ID for the operation.

`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getNodepoolConditions(int index) (deprecated)

    public abstract StatusCondition getNodepoolConditions(int index)

Which conditions caused the current node pool state.
Deprecated. Use field error instead.

`
repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1.StatusCondition` |   |

### getNodepoolConditionsCount() (deprecated)

    public abstract int getNodepoolConditionsCount()

Which conditions caused the current node pool state.
Deprecated. Use field error instead.

`
repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getNodepoolConditionsList() (deprecated)

    public abstract List<StatusCondition> getNodepoolConditionsList()

Which conditions caused the current node pool state.
Deprecated. Use field error instead.

`
repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1.StatusCondition>` |   |

### getNodepoolConditionsOrBuilder(int index) (deprecated)

    public abstract StatusConditionOrBuilder getNodepoolConditionsOrBuilder(int index)

Which conditions caused the current node pool state.
Deprecated. Use field error instead.

`
repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1.StatusConditionOrBuilder` |   |

### getNodepoolConditionsOrBuilderList() (deprecated)

    public abstract List<? extends StatusConditionOrBuilder> getNodepoolConditionsOrBuilderList()

Which conditions caused the current node pool state.
Deprecated. Use field error instead.

`
repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.container.v1.StatusConditionOrBuilder>` |   |

### getOperationType()

    public abstract Operation.Type getOperationType()

Output only. The operation type.

`
.google.container.v1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1.Operation.Type` | The operationType. |

### getOperationTypeValue()

    public abstract int getOperationTypeValue()

Output only. The operation type.

`
.google.container.v1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for operationType. |

### getProgress()

    public abstract OperationProgress getProgress()

Output only. Progress information for an operation.

`
.google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1.OperationProgress` | The progress. |

### getProgressOrBuilder()

    public abstract OperationProgressOrBuilder getProgressOrBuilder()

Output only. Progress information for an operation.

`
.google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1.OperationProgressOrBuilder` |   |

### getSelfLink()

    public abstract String getSelfLink()

Output only. Server-defined URI for the operation. Example:
`https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.

`string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The selfLink. |

### getSelfLinkBytes()

    public abstract ByteString getSelfLinkBytes()

Output only. Server-defined URI for the operation. Example:
`https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.

`string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for selfLink. |

### getStartTime()

    public abstract String getStartTime()

Output only. The time the operation started, in
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.

`string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The startTime. |

### getStartTimeBytes()

    public abstract ByteString getStartTimeBytes()

Output only. The time the operation started, in
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.

`string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for startTime. |

### getStatus()

    public abstract Operation.Status getStatus()

Output only. The current status of the operation.

`
.google.container.v1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1.Operation.Status` | The status. |

### getStatusMessage() (deprecated)

    public abstract String getStatusMessage()

**Deprecated.** *google.container.v1.Operation.status_message is deprecated. See
google/container/v1/cluster_service.proto;l=4167*

Output only. If an error has occurred, a textual description of the error.
Deprecated. Use the field error instead.

`
string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The statusMessage. |

### getStatusMessageBytes() (deprecated)

    public abstract ByteString getStatusMessageBytes()

**Deprecated.** *google.container.v1.Operation.status_message is deprecated. See
google/container/v1/cluster_service.proto;l=4167*

Output only. If an error has occurred, a textual description of the error.
Deprecated. Use the field error instead.

`
string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for statusMessage. |

### getStatusValue()

    public abstract int getStatusValue()

Output only. The current status of the operation.

`
.google.container.v1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for status. |

### getTargetLink()

    public abstract String getTargetLink()

Output only. Server-defined URI for the target of the operation. The format
of this is a URI to the resource being modified (such as a cluster, node
pool, or node). For node pool repairs, there may be multiple nodes being
repaired, but only one will be the target.

Examples:

-

# #

`https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`

# #

`https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`

`https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`

`string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The targetLink. |

### getTargetLinkBytes()

    public abstract ByteString getTargetLinkBytes()

Output only. Server-defined URI for the target of the operation. The format
of this is a URI to the resource being modified (such as a cluster, node
pool, or node). For node pool repairs, there may be multiple nodes being
repaired, but only one will be the target.

Examples:

-

# #

`https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`

# #

`https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`

`https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`

`string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for targetLink. |

### getZone() (deprecated)

    public abstract String getZone()

**Deprecated.** *google.container.v1.Operation.zone is deprecated. See
google/container/v1/cluster_service.proto;l=4153*

Output only. The name of the Google Compute Engine
[zone](https://cloud.google.com/compute/docs/zones#available)
in which the operation is taking place. This field is deprecated, use
location instead.

`string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The zone. |

### getZoneBytes() (deprecated)

    public abstract ByteString getZoneBytes()

**Deprecated.** *google.container.v1.Operation.zone is deprecated. See
google/container/v1/cluster_service.proto;l=4153*

Output only. The name of the Google Compute Engine
[zone](https://cloud.google.com/compute/docs/zones#available)
in which the operation is taking place. This field is deprecated, use
location instead.

`string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for zone. |

### hasError()

    public abstract boolean hasError()

The error result of the operation in case of failure.

`.google.rpc.Status error = 15;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the error field is set. |

### hasProgress()

    public abstract boolean hasProgress()

Output only. Progress information for an operation.

`
.google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the progress field is set. |