Class Operation.Builder (2.46.0)

public static final class Operation.Builder extends GeneratedMessageV3.Builder<Operation.Builder> implements OperationOrBuilder

This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.

Protobuf type google.container.v1.Operation

Implements

OperationOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllClusterConditions(Iterable<? extends StatusCondition> values) (deprecated)

public Operation.Builder addAllClusterConditions(Iterable<? extends StatusCondition> values)

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
values Iterable<? extends com.google.container.v1.StatusCondition>
Returns
Type Description
Operation.Builder

addAllNodepoolConditions(Iterable<? extends StatusCondition> values) (deprecated)

public Operation.Builder addAllNodepoolConditions(Iterable<? extends StatusCondition> values)

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
values Iterable<? extends com.google.container.v1.StatusCondition>
Returns
Type Description
Operation.Builder

addClusterConditions(StatusCondition value) (deprecated)

public Operation.Builder addClusterConditions(StatusCondition value)

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
value StatusCondition
Returns
Type Description
Operation.Builder

addClusterConditions(StatusCondition.Builder builderForValue) (deprecated)

public Operation.Builder addClusterConditions(StatusCondition.Builder builderForValue)

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
builderForValue StatusCondition.Builder
Returns
Type Description
Operation.Builder

addClusterConditions(int index, StatusCondition value) (deprecated)

public Operation.Builder addClusterConditions(int index, StatusCondition value)

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

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

Parameters
Name Description
index int
value StatusCondition
Returns
Type Description
Operation.Builder

addClusterConditions(int index, StatusCondition.Builder builderForValue) (deprecated)

public Operation.Builder addClusterConditions(int index, StatusCondition.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue StatusCondition.Builder
Returns
Type Description
Operation.Builder

addClusterConditionsBuilder() (deprecated)

public StatusCondition.Builder addClusterConditionsBuilder()

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
StatusCondition.Builder

addClusterConditionsBuilder(int index) (deprecated)

public StatusCondition.Builder addClusterConditionsBuilder(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 int
Returns
Type Description
StatusCondition.Builder

addNodepoolConditions(StatusCondition value) (deprecated)

public Operation.Builder addNodepoolConditions(StatusCondition value)

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
value StatusCondition
Returns
Type Description
Operation.Builder

addNodepoolConditions(StatusCondition.Builder builderForValue) (deprecated)

public Operation.Builder addNodepoolConditions(StatusCondition.Builder builderForValue)

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
builderForValue StatusCondition.Builder
Returns
Type Description
Operation.Builder

addNodepoolConditions(int index, StatusCondition value) (deprecated)

public Operation.Builder addNodepoolConditions(int index, StatusCondition value)

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

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

Parameters
Name Description
index int
value StatusCondition
Returns
Type Description
Operation.Builder

addNodepoolConditions(int index, StatusCondition.Builder builderForValue) (deprecated)

public Operation.Builder addNodepoolConditions(int index, StatusCondition.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue StatusCondition.Builder
Returns
Type Description
Operation.Builder

addNodepoolConditionsBuilder() (deprecated)

public StatusCondition.Builder addNodepoolConditionsBuilder()

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
StatusCondition.Builder

addNodepoolConditionsBuilder(int index) (deprecated)

public StatusCondition.Builder addNodepoolConditionsBuilder(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 int
Returns
Type Description
StatusCondition.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Operation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Operation.Builder
Overrides

build()

public Operation build()
Returns
Type Description
Operation

buildPartial()

public Operation buildPartial()
Returns
Type Description
Operation

clear()

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

clearClusterConditions() (deprecated)

public Operation.Builder clearClusterConditions()

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
Operation.Builder

clearDetail()

public Operation.Builder clearDetail()

Detailed operation progress, if available.

string detail = 8;

Returns
Type Description
Operation.Builder

This builder for chaining.

clearEndTime()

public Operation.Builder clearEndTime()

[Output only] The time the operation completed, in RFC3339 text format.

string end_time = 11;

Returns
Type Description
Operation.Builder

This builder for chaining.

clearError()

public Operation.Builder clearError()

The error result of the operation in case of failure.

.google.rpc.Status error = 15;

Returns
Type Description
Operation.Builder

clearField(Descriptors.FieldDescriptor field)

public Operation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Operation.Builder
Overrides

clearLocation()

public Operation.Builder clearLocation()

[Output only] The name of the Google Compute Engine zone or region in which the cluster resides.

string location = 9;

Returns
Type Description
Operation.Builder

This builder for chaining.

clearName()

public Operation.Builder clearName()

The server-assigned ID for the operation.

string name = 1;

Returns
Type Description
Operation.Builder

This builder for chaining.

clearNodepoolConditions() (deprecated)

public Operation.Builder clearNodepoolConditions()

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
Operation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Operation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Operation.Builder
Overrides

clearOperationType()

public Operation.Builder clearOperationType()

The operation type.

.google.container.v1.Operation.Type operation_type = 3;

Returns
Type Description
Operation.Builder

This builder for chaining.

clearProgress()

public Operation.Builder clearProgress()

Output only. [Output only] Progress information for an operation.

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

Returns
Type Description
Operation.Builder
public Operation.Builder clearSelfLink()

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

string self_link = 6;

Returns
Type Description
Operation.Builder

This builder for chaining.

clearStartTime()

public Operation.Builder clearStartTime()

[Output only] The time the operation started, in RFC3339 text format.

string start_time = 10;

Returns
Type Description
Operation.Builder

This builder for chaining.

clearStatus()

public Operation.Builder clearStatus()

The current status of the operation.

.google.container.v1.Operation.Status status = 4;

Returns
Type Description
Operation.Builder

This builder for chaining.

clearStatusMessage() (deprecated)

public Operation.Builder clearStatusMessage()

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

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
Operation.Builder

This builder for chaining.

public Operation.Builder clearTargetLink()

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;

Returns
Type Description
Operation.Builder

This builder for chaining.

clearZone() (deprecated)

public Operation.Builder clearZone()

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

The name of the Google Compute Engine zone in which the operation is taking place. This field is deprecated, use location instead.

string zone = 2 [deprecated = true];

Returns
Type Description
Operation.Builder

This builder for chaining.

clone()

public Operation.Builder clone()
Returns
Type Description
Operation.Builder
Overrides

getClusterConditions(int index) (deprecated)

public 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 int
Returns
Type Description
StatusCondition

getClusterConditionsBuilder(int index) (deprecated)

public StatusCondition.Builder getClusterConditionsBuilder(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 int
Returns
Type Description
StatusCondition.Builder

getClusterConditionsBuilderList() (deprecated)

public List<StatusCondition.Builder> getClusterConditionsBuilderList()

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
List<Builder>

getClusterConditionsCount() (deprecated)

public 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
int

getClusterConditionsList() (deprecated)

public 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
List<StatusCondition>

getClusterConditionsOrBuilder(int index) (deprecated)

public 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 int
Returns
Type Description
StatusConditionOrBuilder

getClusterConditionsOrBuilderList() (deprecated)

public 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
List<? extends com.google.container.v1.StatusConditionOrBuilder>

getDefaultInstanceForType()

public Operation getDefaultInstanceForType()
Returns
Type Description
Operation

getDescriptorForType()

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

getDetail()

public String getDetail()

Detailed operation progress, if available.

string detail = 8;

Returns
Type Description
String

The detail.

getDetailBytes()

public ByteString getDetailBytes()

Detailed operation progress, if available.

string detail = 8;

Returns
Type Description
ByteString

The bytes for detail.

getEndTime()

public String getEndTime()

[Output only] The time the operation completed, in RFC3339 text format.

string end_time = 11;

Returns
Type Description
String

The endTime.

getEndTimeBytes()

public ByteString getEndTimeBytes()

[Output only] The time the operation completed, in RFC3339 text format.

string end_time = 11;

Returns
Type Description
ByteString

The bytes for endTime.

getError()

public 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.

getErrorBuilder()

public Status.Builder getErrorBuilder()

The error result of the operation in case of failure.

.google.rpc.Status error = 15;

Returns
Type Description
com.google.rpc.Status.Builder

getErrorOrBuilder()

public 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 String getLocation()

[Output only] The name of the Google Compute Engine zone or region in which the cluster resides.

string location = 9;

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

[Output only] The name of the Google Compute Engine zone or region in which the cluster resides.

string location = 9;

Returns
Type Description
ByteString

The bytes for location.

getName()

public String getName()

The server-assigned ID for the operation.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The server-assigned ID for the operation.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getNodepoolConditions(int index) (deprecated)

public 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 int
Returns
Type Description
StatusCondition

getNodepoolConditionsBuilder(int index) (deprecated)

public StatusCondition.Builder getNodepoolConditionsBuilder(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 int
Returns
Type Description
StatusCondition.Builder

getNodepoolConditionsBuilderList() (deprecated)

public List<StatusCondition.Builder> getNodepoolConditionsBuilderList()

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
List<Builder>

getNodepoolConditionsCount() (deprecated)

public 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
int

getNodepoolConditionsList() (deprecated)

public 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
List<StatusCondition>

getNodepoolConditionsOrBuilder(int index) (deprecated)

public 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 int
Returns
Type Description
StatusConditionOrBuilder

getNodepoolConditionsOrBuilderList() (deprecated)

public 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
List<? extends com.google.container.v1.StatusConditionOrBuilder>

getOperationType()

public Operation.Type getOperationType()

The operation type.

.google.container.v1.Operation.Type operation_type = 3;

Returns
Type Description
Operation.Type

The operationType.

getOperationTypeValue()

public int getOperationTypeValue()

The operation type.

.google.container.v1.Operation.Type operation_type = 3;

Returns
Type Description
int

The enum numeric value on the wire for operationType.

getProgress()

public OperationProgress getProgress()

Output only. [Output only] Progress information for an operation.

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

Returns
Type Description
OperationProgress

The progress.

getProgressBuilder()

public OperationProgress.Builder getProgressBuilder()

Output only. [Output only] Progress information for an operation.

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

Returns
Type Description
OperationProgress.Builder

getProgressOrBuilder()

public OperationProgressOrBuilder getProgressOrBuilder()

Output only. [Output only] Progress information for an operation.

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

Returns
Type Description
OperationProgressOrBuilder
public String getSelfLink()

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

string self_link = 6;

Returns
Type Description
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

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

string self_link = 6;

Returns
Type Description
ByteString

The bytes for selfLink.

getStartTime()

public String getStartTime()

[Output only] The time the operation started, in RFC3339 text format.

string start_time = 10;

Returns
Type Description
String

The startTime.

getStartTimeBytes()

public ByteString getStartTimeBytes()

[Output only] The time the operation started, in RFC3339 text format.

string start_time = 10;

Returns
Type Description
ByteString

The bytes for startTime.

getStatus()

public Operation.Status getStatus()

The current status of the operation.

.google.container.v1.Operation.Status status = 4;

Returns
Type Description
Operation.Status

The status.

getStatusMessage() (deprecated)

public String getStatusMessage()

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

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
String

The statusMessage.

getStatusMessageBytes() (deprecated)

public ByteString getStatusMessageBytes()

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

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
ByteString

The bytes for statusMessage.

getStatusValue()

public int getStatusValue()

The current status of the operation.

.google.container.v1.Operation.Status status = 4;

Returns
Type Description
int

The enum numeric value on the wire for status.

public String getTargetLink()

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;

Returns
Type Description
String

The targetLink.

getTargetLinkBytes()

public ByteString getTargetLinkBytes()

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;

Returns
Type Description
ByteString

The bytes for targetLink.

getZone() (deprecated)

public String getZone()

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

The name of the Google Compute Engine zone in which the operation is taking place. This field is deprecated, use location instead.

string zone = 2 [deprecated = true];

Returns
Type Description
String

The zone.

getZoneBytes() (deprecated)

public ByteString getZoneBytes()

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

The name of the Google Compute Engine zone in which the operation is taking place. This field is deprecated, use location instead.

string zone = 2 [deprecated = true];

Returns
Type Description
ByteString

The bytes for zone.

hasError()

public boolean hasError()

The error result of the operation in case of failure.

.google.rpc.Status error = 15;

Returns
Type Description
boolean

Whether the error field is set.

hasProgress()

public boolean hasProgress()

Output only. [Output only] Progress information for an operation.

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

Returns
Type Description
boolean

Whether the progress field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeError(Status value)

public Operation.Builder mergeError(Status value)

The error result of the operation in case of failure.

.google.rpc.Status error = 15;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
Operation.Builder

mergeFrom(Operation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeProgress(OperationProgress value)

public Operation.Builder mergeProgress(OperationProgress value)

Output only. [Output only] Progress information for an operation.

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

Parameter
Name Description
value OperationProgress
Returns
Type Description
Operation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Operation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Operation.Builder
Overrides

removeClusterConditions(int index) (deprecated)

public Operation.Builder removeClusterConditions(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 int
Returns
Type Description
Operation.Builder

removeNodepoolConditions(int index) (deprecated)

public Operation.Builder removeNodepoolConditions(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 int
Returns
Type Description
Operation.Builder

setClusterConditions(int index, StatusCondition value) (deprecated)

public Operation.Builder setClusterConditions(int index, StatusCondition value)

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

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

Parameters
Name Description
index int
value StatusCondition
Returns
Type Description
Operation.Builder

setClusterConditions(int index, StatusCondition.Builder builderForValue) (deprecated)

public Operation.Builder setClusterConditions(int index, StatusCondition.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue StatusCondition.Builder
Returns
Type Description
Operation.Builder

setDetail(String value)

public Operation.Builder setDetail(String value)

Detailed operation progress, if available.

string detail = 8;

Parameter
Name Description
value String

The detail to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setDetailBytes(ByteString value)

public Operation.Builder setDetailBytes(ByteString value)

Detailed operation progress, if available.

string detail = 8;

Parameter
Name Description
value ByteString

The bytes for detail to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setEndTime(String value)

public Operation.Builder setEndTime(String value)

[Output only] The time the operation completed, in RFC3339 text format.

string end_time = 11;

Parameter
Name Description
value String

The endTime to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setEndTimeBytes(ByteString value)

public Operation.Builder setEndTimeBytes(ByteString value)

[Output only] The time the operation completed, in RFC3339 text format.

string end_time = 11;

Parameter
Name Description
value ByteString

The bytes for endTime to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setError(Status value)

public Operation.Builder setError(Status value)

The error result of the operation in case of failure.

.google.rpc.Status error = 15;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
Operation.Builder

setError(Status.Builder builderForValue)

public Operation.Builder setError(Status.Builder builderForValue)

The error result of the operation in case of failure.

.google.rpc.Status error = 15;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
Operation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Operation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Operation.Builder
Overrides

setLocation(String value)

public Operation.Builder setLocation(String value)

[Output only] The name of the Google Compute Engine zone or region in which the cluster resides.

string location = 9;

Parameter
Name Description
value String

The location to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public Operation.Builder setLocationBytes(ByteString value)

[Output only] The name of the Google Compute Engine zone or region in which the cluster resides.

string location = 9;

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setName(String value)

public Operation.Builder setName(String value)

The server-assigned ID for the operation.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Operation.Builder setNameBytes(ByteString value)

The server-assigned ID for the operation.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setNodepoolConditions(int index, StatusCondition value) (deprecated)

public Operation.Builder setNodepoolConditions(int index, StatusCondition value)

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

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

Parameters
Name Description
index int
value StatusCondition
Returns
Type Description
Operation.Builder

setNodepoolConditions(int index, StatusCondition.Builder builderForValue) (deprecated)

public Operation.Builder setNodepoolConditions(int index, StatusCondition.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue StatusCondition.Builder
Returns
Type Description
Operation.Builder

setOperationType(Operation.Type value)

public Operation.Builder setOperationType(Operation.Type value)

The operation type.

.google.container.v1.Operation.Type operation_type = 3;

Parameter
Name Description
value Operation.Type

The operationType to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setOperationTypeValue(int value)

public Operation.Builder setOperationTypeValue(int value)

The operation type.

.google.container.v1.Operation.Type operation_type = 3;

Parameter
Name Description
value int

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

Returns
Type Description
Operation.Builder

This builder for chaining.

setProgress(OperationProgress value)

public Operation.Builder setProgress(OperationProgress value)

Output only. [Output only] Progress information for an operation.

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

Parameter
Name Description
value OperationProgress
Returns
Type Description
Operation.Builder

setProgress(OperationProgress.Builder builderForValue)

public Operation.Builder setProgress(OperationProgress.Builder builderForValue)

Output only. [Output only] Progress information for an operation.

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

Parameter
Name Description
builderForValue OperationProgress.Builder
Returns
Type Description
Operation.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Operation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Operation.Builder
Overrides
public Operation.Builder setSelfLink(String value)

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

string self_link = 6;

Parameter
Name Description
value String

The selfLink to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public Operation.Builder setSelfLinkBytes(ByteString value)

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

string self_link = 6;

Parameter
Name Description
value ByteString

The bytes for selfLink to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setStartTime(String value)

public Operation.Builder setStartTime(String value)

[Output only] The time the operation started, in RFC3339 text format.

string start_time = 10;

Parameter
Name Description
value String

The startTime to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setStartTimeBytes(ByteString value)

public Operation.Builder setStartTimeBytes(ByteString value)

[Output only] The time the operation started, in RFC3339 text format.

string start_time = 10;

Parameter
Name Description
value ByteString

The bytes for startTime to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setStatus(Operation.Status value)

public Operation.Builder setStatus(Operation.Status value)

The current status of the operation.

.google.container.v1.Operation.Status status = 4;

Parameter
Name Description
value Operation.Status

The status to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setStatusMessage(String value) (deprecated)

public Operation.Builder setStatusMessage(String value)

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

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];

Parameter
Name Description
value String

The statusMessage to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setStatusMessageBytes(ByteString value) (deprecated)

public Operation.Builder setStatusMessageBytes(ByteString value)

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

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];

Parameter
Name Description
value ByteString

The bytes for statusMessage to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setStatusValue(int value)

public Operation.Builder setStatusValue(int value)

The current status of the operation.

.google.container.v1.Operation.Status status = 4;

Parameter
Name Description
value int

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

Returns
Type Description
Operation.Builder

This builder for chaining.

public Operation.Builder setTargetLink(String value)

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;

Parameter
Name Description
value String

The targetLink to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setTargetLinkBytes(ByteString value)

public Operation.Builder setTargetLinkBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for targetLink to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Operation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Operation.Builder
Overrides

setZone(String value) (deprecated)

public Operation.Builder setZone(String value)

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

The name of the Google Compute Engine zone in which the operation is taking place. This field is deprecated, use location instead.

string zone = 2 [deprecated = true];

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
Operation.Builder

This builder for chaining.

setZoneBytes(ByteString value) (deprecated)

public Operation.Builder setZoneBytes(ByteString value)

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

The name of the Google Compute Engine zone in which the operation is taking place. This field is deprecated, use location instead.

string zone = 2 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
Operation.Builder

This builder for chaining.