Class Operation

  • All Implemented Interfaces:
    OperationOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Operation
    extends com.google.protobuf.GeneratedMessageV3
    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.v1beta1.Operation
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

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

        public String getName()
         The server-assigned ID for the operation.
         
        string name = 1;
        Specified by:
        getName in interface OperationOrBuilder
        Returns:
        The name.
      • getNameBytes

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

        @Deprecated
        public String getZone()
        Deprecated.
        google.container.v1beta1.Operation.zone is deprecated. See google/container/v1beta1/cluster_service.proto;l=2735
         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];
        Specified by:
        getZone in interface OperationOrBuilder
        Returns:
        The zone.
      • getZoneBytes

        @Deprecated
        public com.google.protobuf.ByteString getZoneBytes()
        Deprecated.
        google.container.v1beta1.Operation.zone is deprecated. See google/container/v1beta1/cluster_service.proto;l=2735
         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];
        Specified by:
        getZoneBytes in interface OperationOrBuilder
        Returns:
        The bytes for zone.
      • getOperationTypeValue

        public int getOperationTypeValue()
         The operation type.
         
        .google.container.v1beta1.Operation.Type operation_type = 3;
        Specified by:
        getOperationTypeValue in interface OperationOrBuilder
        Returns:
        The enum numeric value on the wire for operationType.
      • getStatusValue

        public int getStatusValue()
         The current status of the operation.
         
        .google.container.v1beta1.Operation.Status status = 4;
        Specified by:
        getStatusValue in interface OperationOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • getStatus

        public Operation.Status getStatus()
         The current status of the operation.
         
        .google.container.v1beta1.Operation.Status status = 4;
        Specified by:
        getStatus in interface OperationOrBuilder
        Returns:
        The status.
      • getDetail

        public String getDetail()
         Detailed operation progress, if available.
         
        string detail = 8;
        Specified by:
        getDetail in interface OperationOrBuilder
        Returns:
        The detail.
      • getDetailBytes

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

        @Deprecated
        public String getStatusMessage()
        Deprecated.
        google.container.v1beta1.Operation.status_message is deprecated. See google/container/v1beta1/cluster_service.proto;l=2748
         Output only. If an error has occurred, a textual description of the error.
         Deprecated. Use 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.v1beta1.Operation.status_message is deprecated. See google/container/v1beta1/cluster_service.proto;l=2748
         Output only. If an error has occurred, a textual description of the error.
         Deprecated. Use 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()
         Server-defined URI for the operation. Example:
         `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
         
        string self_link = 6;
        Specified by:
        getSelfLink in interface OperationOrBuilder
        Returns:
        The selfLink.
      • getSelfLinkBytes

        public com.google.protobuf.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;
        Specified by:
        getSelfLinkBytes in interface OperationOrBuilder
        Returns:
        The bytes for selfLink.
      • getTargetLink

        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;
        Specified by:
        getTargetLink in interface OperationOrBuilder
        Returns:
        The targetLink.
      • getTargetLinkBytes

        public com.google.protobuf.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;
        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;
        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;
        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;
        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;
        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;
        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;
        Specified by:
        getEndTimeBytes in interface OperationOrBuilder
        Returns:
        The bytes for endTime.
      • hasProgress

        public boolean hasProgress()
         Output only. [Output only] Progress information for an operation.
         
        .google.container.v1beta1.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. [Output only] Progress information for an operation.
         
        .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getProgress in interface OperationOrBuilder
        Returns:
        The progress.
      • getProgressOrBuilder

        public OperationProgressOrBuilder getProgressOrBuilder()
         Output only. [Output only] Progress information for an operation.
         
        .google.container.v1beta1.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.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true];
        Specified by:
        getClusterConditionsList in interface OperationOrBuilder
      • getClusterConditionsCount

        @Deprecated
        public int getClusterConditionsCount()
        Deprecated.
         Which conditions caused the current cluster state.
         Deprecated. Use field error instead.
         
        repeated .google.container.v1beta1.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.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true];
        Specified by:
        getClusterConditions 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.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true];
        Specified by:
        getNodepoolConditionsList 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.v1beta1.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.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true];
        Specified by:
        getNodepoolConditions 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 com.google.rpc.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 com.google.rpc.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.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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