Class Operation

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.container.v1.Operation
All Implemented Interfaces:
OperationOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Operation extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • ZONE_FIELD_NUMBER

      public static final int ZONE_FIELD_NUMBER
      See Also:
    • OPERATION_TYPE_FIELD_NUMBER

      public static final int OPERATION_TYPE_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • DETAIL_FIELD_NUMBER

      public static final int DETAIL_FIELD_NUMBER
      See Also:
    • STATUS_MESSAGE_FIELD_NUMBER

      public static final int STATUS_MESSAGE_FIELD_NUMBER
      See Also:
    • LOCATION_FIELD_NUMBER

      public static final int LOCATION_FIELD_NUMBER
      See Also:
    • START_TIME_FIELD_NUMBER

      public static final int START_TIME_FIELD_NUMBER
      See Also:
    • END_TIME_FIELD_NUMBER

      public static final int END_TIME_FIELD_NUMBER
      See Also:
    • PROGRESS_FIELD_NUMBER

      public static final int PROGRESS_FIELD_NUMBER
      See Also:
    • CLUSTER_CONDITIONS_FIELD_NUMBER

      public static final int CLUSTER_CONDITIONS_FIELD_NUMBER
      See Also:
    • NODEPOOL_CONDITIONS_FIELD_NUMBER

      public static final int NODEPOOL_CONDITIONS_FIELD_NUMBER
      See Also:
    • ERROR_FIELD_NUMBER

      public static final int ERROR_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String getName()
       Output only. The server-assigned ID for the operation.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface OperationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The server-assigned ID for the operation.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface OperationOrBuilder
      Returns:
      The bytes for name.
    • getZone

      @Deprecated public String getZone()
      Deprecated.
      google.container.v1.Operation.zone is deprecated. See google/container/v1/cluster_service.proto;l=4153
       Output only. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the operation is taking place. This field is deprecated, use
       location instead.
       
      string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getZone in interface OperationOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      @Deprecated public com.google.protobuf.ByteString getZoneBytes()
      Deprecated.
      google.container.v1.Operation.zone is deprecated. See google/container/v1/cluster_service.proto;l=4153
       Output only. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the operation is taking place. This field is deprecated, use
       location instead.
       
      string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getZoneBytes in interface OperationOrBuilder
      Returns:
      The bytes for zone.
    • getOperationTypeValue

      public int getOperationTypeValue()
       Output only. The operation type.
       
      .google.container.v1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOperationTypeValue in interface OperationOrBuilder
      Returns:
      The enum numeric value on the wire for operationType.
    • getOperationType

      public Operation.Type getOperationType()
       Output only. The operation type.
       
      .google.container.v1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOperationType in interface OperationOrBuilder
      Returns:
      The operationType.
    • getStatusValue

      public int getStatusValue()
       Output only. The current status of the operation.
       
      .google.container.v1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusValue in interface OperationOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • getStatus

      public Operation.Status getStatus()
       Output only. The current status of the operation.
       
      .google.container.v1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatus in interface OperationOrBuilder
      Returns:
      The status.
    • getDetail

      public String getDetail()
       Output only. Detailed operation progress, if available.
       
      string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDetail in interface OperationOrBuilder
      Returns:
      The detail.
    • getDetailBytes

      public com.google.protobuf.ByteString getDetailBytes()
       Output only. Detailed operation progress, if available.
       
      string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDetailBytes in interface OperationOrBuilder
      Returns:
      The bytes for detail.
    • getStatusMessage

      @Deprecated public String getStatusMessage()
      Deprecated.
      google.container.v1.Operation.status_message is deprecated. See google/container/v1/cluster_service.proto;l=4167
       Output only. If an error has occurred, a textual description of the error.
       Deprecated. Use the field error instead.
       
      string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusMessage in interface OperationOrBuilder
      Returns:
      The statusMessage.
    • getStatusMessageBytes

      @Deprecated public com.google.protobuf.ByteString getStatusMessageBytes()
      Deprecated.
      google.container.v1.Operation.status_message is deprecated. See google/container/v1/cluster_service.proto;l=4167
       Output only. If an error has occurred, a textual description of the error.
       Deprecated. Use the field error instead.
       
      string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusMessageBytes in interface OperationOrBuilder
      Returns:
      The bytes for statusMessage.
    • getSelfLink

      public String getSelfLink()
       Output only. Server-defined URI for the operation. Example:
       `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
       
      string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSelfLink in interface OperationOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       Output only. Server-defined URI for the operation. Example:
       `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
       
      string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSelfLinkBytes in interface OperationOrBuilder
      Returns:
      The bytes for selfLink.
    • getTargetLink

      public String getTargetLink()
       Output only. Server-defined URI for the target of the operation. The format
       of this is a URI to the resource being modified (such as a cluster, node
       pool, or node). For node pool repairs, there may be multiple nodes being
       repaired, but only one will be the target.
      
       Examples:
      
       -
       ##
       `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
      
       ##
       `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
      
       `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
       
      string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTargetLink in interface OperationOrBuilder
      Returns:
      The targetLink.
    • getTargetLinkBytes

      public com.google.protobuf.ByteString getTargetLinkBytes()
       Output only. Server-defined URI for the target of the operation. The format
       of this is a URI to the resource being modified (such as a cluster, node
       pool, or node). For node pool repairs, there may be multiple nodes being
       repaired, but only one will be the target.
      
       Examples:
      
       -
       ##
       `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
      
       ##
       `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
      
       `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
       
      string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTargetLinkBytes in interface OperationOrBuilder
      Returns:
      The bytes for targetLink.
    • getLocation

      public String getLocation()
       Output only. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
       or
       [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
       in which the cluster resides.
       
      string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocation in interface OperationOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Output only. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
       or
       [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
       in which the cluster resides.
       
      string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocationBytes in interface OperationOrBuilder
      Returns:
      The bytes for location.
    • getStartTime

      public String getStartTime()
       Output only. The time the operation started, in
       [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       
      string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartTime in interface OperationOrBuilder
      Returns:
      The startTime.
    • getStartTimeBytes

      public com.google.protobuf.ByteString getStartTimeBytes()
       Output only. The time the operation started, in
       [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       
      string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartTimeBytes in interface OperationOrBuilder
      Returns:
      The bytes for startTime.
    • getEndTime

      public String getEndTime()
       Output only. The time the operation completed, in
       [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       
      string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndTime in interface OperationOrBuilder
      Returns:
      The endTime.
    • getEndTimeBytes

      public com.google.protobuf.ByteString getEndTimeBytes()
       Output only. The time the operation completed, in
       [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       
      string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndTimeBytes in interface OperationOrBuilder
      Returns:
      The bytes for endTime.
    • hasProgress

      public boolean hasProgress()
       Output only. Progress information for an operation.
       
      .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasProgress in interface OperationOrBuilder
      Returns:
      Whether the progress field is set.
    • getProgress

      public OperationProgress getProgress()
       Output only. Progress information for an operation.
       
      .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProgress in interface OperationOrBuilder
      Returns:
      The progress.
    • getProgressOrBuilder

      public OperationProgressOrBuilder getProgressOrBuilder()
       Output only. Progress information for an operation.
       
      .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProgressOrBuilder in interface OperationOrBuilder
    • getClusterConditionsList

      @Deprecated public List<StatusCondition> getClusterConditionsList()
      Deprecated.
       Which conditions caused the current cluster state.
       Deprecated. Use field error instead.
       
      repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
      Specified by:
      getClusterConditionsList in interface OperationOrBuilder
    • getClusterConditionsOrBuilderList

      @Deprecated public List<? extends StatusConditionOrBuilder> getClusterConditionsOrBuilderList()
      Deprecated.
       Which conditions caused the current cluster state.
       Deprecated. Use field error instead.
       
      repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
      Specified by:
      getClusterConditionsOrBuilderList in interface OperationOrBuilder
    • getClusterConditionsCount

      @Deprecated public int getClusterConditionsCount()
      Deprecated.
       Which conditions caused the current cluster state.
       Deprecated. Use field error instead.
       
      repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
      Specified by:
      getClusterConditionsCount in interface OperationOrBuilder
    • getClusterConditions

      @Deprecated public StatusCondition getClusterConditions(int index)
      Deprecated.
       Which conditions caused the current cluster state.
       Deprecated. Use field error instead.
       
      repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
      Specified by:
      getClusterConditions in interface OperationOrBuilder
    • getClusterConditionsOrBuilder

      @Deprecated public StatusConditionOrBuilder getClusterConditionsOrBuilder(int index)
      Deprecated.
       Which conditions caused the current cluster state.
       Deprecated. Use field error instead.
       
      repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
      Specified by:
      getClusterConditionsOrBuilder in interface OperationOrBuilder
    • getNodepoolConditionsList

      @Deprecated public List<StatusCondition> getNodepoolConditionsList()
      Deprecated.
       Which conditions caused the current node pool state.
       Deprecated. Use field error instead.
       
      repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
      Specified by:
      getNodepoolConditionsList in interface OperationOrBuilder
    • getNodepoolConditionsOrBuilderList

      @Deprecated public List<? extends StatusConditionOrBuilder> getNodepoolConditionsOrBuilderList()
      Deprecated.
       Which conditions caused the current node pool state.
       Deprecated. Use field error instead.
       
      repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
      Specified by:
      getNodepoolConditionsOrBuilderList in interface OperationOrBuilder
    • getNodepoolConditionsCount

      @Deprecated public int getNodepoolConditionsCount()
      Deprecated.
       Which conditions caused the current node pool state.
       Deprecated. Use field error instead.
       
      repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
      Specified by:
      getNodepoolConditionsCount in interface OperationOrBuilder
    • getNodepoolConditions

      @Deprecated public StatusCondition getNodepoolConditions(int index)
      Deprecated.
       Which conditions caused the current node pool state.
       Deprecated. Use field error instead.
       
      repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
      Specified by:
      getNodepoolConditions in interface OperationOrBuilder
    • getNodepoolConditionsOrBuilder

      @Deprecated public StatusConditionOrBuilder getNodepoolConditionsOrBuilder(int index)
      Deprecated.
       Which conditions caused the current node pool state.
       Deprecated. Use field error instead.
       
      repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
      Specified by:
      getNodepoolConditionsOrBuilder in interface OperationOrBuilder
    • hasError

      public boolean hasError()
       The error result of the operation in case of failure.
       
      .google.rpc.Status error = 15;
      Specified by:
      hasError in interface OperationOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public Status getError()
       The error result of the operation in case of failure.
       
      .google.rpc.Status error = 15;
      Specified by:
      getError in interface OperationOrBuilder
      Returns:
      The error.
    • getErrorOrBuilder

      public StatusOrBuilder getErrorOrBuilder()
       The error result of the operation in case of failure.
       
      .google.rpc.Status error = 15;
      Specified by:
      getErrorOrBuilder in interface OperationOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Operation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Operation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Operation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Operation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Operation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Operation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Operation parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Operation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Operation parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Operation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Operation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Operation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Operation.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Operation.Builder newBuilder()
    • newBuilder

      public static Operation.Builder newBuilder(Operation prototype)
    • toBuilder

      public Operation.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Operation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Operation getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Operation> parser()
    • getParserForType

      public com.google.protobuf.Parser<Operation> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Operation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder