Class Operation.Builder (2.25.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
TypeDescription
Descriptor

Methods

addAllClusterConditions(Iterable<? extends StatusCondition> values)

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
NameDescription
valuesIterable<? extends com.google.container.v1.StatusCondition>
Returns
TypeDescription
Operation.Builder

addAllNodepoolConditions(Iterable<? extends StatusCondition> values)

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
NameDescription
valuesIterable<? extends com.google.container.v1.StatusCondition>
Returns
TypeDescription
Operation.Builder

addClusterConditions(StatusCondition value)

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
NameDescription
valueStatusCondition
Returns
TypeDescription
Operation.Builder

addClusterConditions(StatusCondition.Builder builderForValue)

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
NameDescription
builderForValueStatusCondition.Builder
Returns
TypeDescription
Operation.Builder

addClusterConditions(int index, StatusCondition value)

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
NameDescription
indexint
valueStatusCondition
Returns
TypeDescription
Operation.Builder

addClusterConditions(int index, StatusCondition.Builder builderForValue)

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
NameDescription
indexint
builderForValueStatusCondition.Builder
Returns
TypeDescription
Operation.Builder

addClusterConditionsBuilder()

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

addClusterConditionsBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
StatusCondition.Builder

addNodepoolConditions(StatusCondition value)

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
NameDescription
valueStatusCondition
Returns
TypeDescription
Operation.Builder

addNodepoolConditions(StatusCondition.Builder builderForValue)

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
NameDescription
builderForValueStatusCondition.Builder
Returns
TypeDescription
Operation.Builder

addNodepoolConditions(int index, StatusCondition value)

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
NameDescription
indexint
valueStatusCondition
Returns
TypeDescription
Operation.Builder

addNodepoolConditions(int index, StatusCondition.Builder builderForValue)

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
NameDescription
indexint
builderForValueStatusCondition.Builder
Returns
TypeDescription
Operation.Builder

addNodepoolConditionsBuilder()

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

addNodepoolConditionsBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
StatusCondition.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Operation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Operation.Builder
Overrides

build()

public Operation build()
Returns
TypeDescription
Operation

buildPartial()

public Operation buildPartial()
Returns
TypeDescription
Operation

clear()

public Operation.Builder clear()
Returns
TypeDescription
Operation.Builder
Overrides

clearClusterConditions()

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

clearDetail()

public Operation.Builder clearDetail()

Detailed operation progress, if available.

string detail = 8;

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

clearField(Descriptors.FieldDescriptor field)

public Operation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Operation.Builder

This builder for chaining.

clearName()

public Operation.Builder clearName()

The server-assigned ID for the operation.

string name = 1;

Returns
TypeDescription
Operation.Builder

This builder for chaining.

clearNodepoolConditions()

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Operation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Operation.Builder
Overrides

clearOperationType()

public Operation.Builder clearOperationType()

The operation type.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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=2438

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
TypeDescription
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
TypeDescription
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=2425

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

This builder for chaining.

clone()

public Operation.Builder clone()
Returns
TypeDescription
Operation.Builder
Overrides

getClusterConditions(int index)

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
NameDescription
indexint
Returns
TypeDescription
StatusCondition

getClusterConditionsBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
StatusCondition.Builder

getClusterConditionsBuilderList()

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

getClusterConditionsCount()

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

getClusterConditionsList()

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

getClusterConditionsOrBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
StatusConditionOrBuilder

getClusterConditionsOrBuilderList()

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

getDefaultInstanceForType()

public Operation getDefaultInstanceForType()
Returns
TypeDescription
Operation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetail()

public String getDetail()

Detailed operation progress, if available.

string detail = 8;

Returns
TypeDescription
String

The detail.

getDetailBytes()

public ByteString getDetailBytes()

Detailed operation progress, if available.

string detail = 8;

Returns
TypeDescription
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
TypeDescription
String

The endTime.

getEndTimeBytes()

public ByteString getEndTimeBytes()

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

string end_time = 11;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for location.

getName()

public String getName()

The server-assigned ID for the operation.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The server-assigned ID for the operation.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNodepoolConditions(int index)

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
NameDescription
indexint
Returns
TypeDescription
StatusCondition

getNodepoolConditionsBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
StatusCondition.Builder

getNodepoolConditionsBuilderList()

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

getNodepoolConditionsCount()

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

getNodepoolConditionsList()

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

getNodepoolConditionsOrBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
StatusConditionOrBuilder

getNodepoolConditionsOrBuilderList()

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

getOperationType()

public Operation.Type getOperationType()

The operation type.

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

Returns
TypeDescription
Operation.Type

The operationType.

getOperationTypeValue()

public int getOperationTypeValue()

The operation type.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The startTime.

getStartTimeBytes()

public ByteString getStartTimeBytes()

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

string start_time = 10;

Returns
TypeDescription
ByteString

The bytes for startTime.

getStatus()

public Operation.Status getStatus()

The current status of the operation.

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

Returns
TypeDescription
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=2438

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
TypeDescription
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=2438

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
TypeDescription
ByteString

The bytes for statusMessage.

getStatusValue()

public int getStatusValue()

The current status of the operation.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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=2425

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
TypeDescription
String

The zone.

getZoneBytes() (deprecated)

public ByteString getZoneBytes()

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

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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the progress field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
Operation.Builder

mergeFrom(Operation other)

public Operation.Builder mergeFrom(Operation other)
Parameter
NameDescription
otherOperation
Returns
TypeDescription
Operation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Operation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Operation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Operation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueOperationProgress
Returns
TypeDescription
Operation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Operation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Operation.Builder
Overrides

removeClusterConditions(int index)

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
NameDescription
indexint
Returns
TypeDescription
Operation.Builder

removeNodepoolConditions(int index)

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
NameDescription
indexint
Returns
TypeDescription
Operation.Builder

setClusterConditions(int index, StatusCondition value)

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
NameDescription
indexint
valueStatusCondition
Returns
TypeDescription
Operation.Builder

setClusterConditions(int index, StatusCondition.Builder builderForValue)

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
NameDescription
indexint
builderForValueStatusCondition.Builder
Returns
TypeDescription
Operation.Builder

setDetail(String value)

public Operation.Builder setDetail(String value)

Detailed operation progress, if available.

string detail = 8;

Parameter
NameDescription
valueString

The detail to set.

Returns
TypeDescription
Operation.Builder

This builder for chaining.

setDetailBytes(ByteString value)

public Operation.Builder setDetailBytes(ByteString value)

Detailed operation progress, if available.

string detail = 8;

Parameter
NameDescription
valueByteString

The bytes for detail to set.

Returns
TypeDescription
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
NameDescription
valueString

The endTime to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for endTime to set.

Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
Operation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Operation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The location to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Operation.Builder

This builder for chaining.

setNodepoolConditions(int index, StatusCondition value)

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
NameDescription
indexint
valueStatusCondition
Returns
TypeDescription
Operation.Builder

setNodepoolConditions(int index, StatusCondition.Builder builderForValue)

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
NameDescription
indexint
builderForValueStatusCondition.Builder
Returns
TypeDescription
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
NameDescription
valueOperation.Type

The operationType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueOperationProgress
Returns
TypeDescription
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
NameDescription
builderForValueOperationProgress.Builder
Returns
TypeDescription
Operation.Builder

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

public Operation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
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
NameDescription
valueString

The startTime to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for startTime to set.

Returns
TypeDescription
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
NameDescription
valueOperation.Status

The status to set.

Returns
TypeDescription
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=2438

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
NameDescription
valueString

The statusMessage to set.

Returns
TypeDescription
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=2438

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
NameDescription
valueByteString

The bytes for statusMessage to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The targetLink to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for targetLink to set.

Returns
TypeDescription
Operation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Operation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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=2425

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
NameDescription
valueString

The zone to set.

Returns
TypeDescription
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=2425

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
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
Operation.Builder

This builder for chaining.