Class Operation.Builder (2.5.1)

Stay organized with collections Save and categorize content based on your preferences.
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 URL for the resource.

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=1969

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 URL for the target of the operation.

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=1956

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 URL for the resource.

string self_link = 6;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

Server-defined URL for the resource.

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=1969

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=1969

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 URL for the target of the operation.

string target_link = 7;

Returns
TypeDescription