Class OperationMetadata

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

    public final class OperationMetadata
    extends com.google.protobuf.GeneratedMessageV3
    implements OperationMetadataOrBuilder
     Metadata used across all long running operations returned by AutoML API.
     
    Protobuf type google.cloud.automl.v1beta1.OperationMetadata
    See Also:
    Serialized Form
    • Field Detail

      • DELETE_DETAILS_FIELD_NUMBER

        public static final int DELETE_DETAILS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DEPLOY_MODEL_DETAILS_FIELD_NUMBER

        public static final int DEPLOY_MODEL_DETAILS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • UNDEPLOY_MODEL_DETAILS_FIELD_NUMBER

        public static final int UNDEPLOY_MODEL_DETAILS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CREATE_MODEL_DETAILS_FIELD_NUMBER

        public static final int CREATE_MODEL_DETAILS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • IMPORT_DATA_DETAILS_FIELD_NUMBER

        public static final int IMPORT_DATA_DETAILS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BATCH_PREDICT_DETAILS_FIELD_NUMBER

        public static final int BATCH_PREDICT_DETAILS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXPORT_DATA_DETAILS_FIELD_NUMBER

        public static final int EXPORT_DATA_DETAILS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXPORT_MODEL_DETAILS_FIELD_NUMBER

        public static final int EXPORT_MODEL_DETAILS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXPORT_EVALUATED_EXAMPLES_DETAILS_FIELD_NUMBER

        public static final int EXPORT_EVALUATED_EXAMPLES_DETAILS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PROGRESS_PERCENT_FIELD_NUMBER

        public static final int PROGRESS_PERCENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PARTIAL_FAILURES_FIELD_NUMBER

        public static final int PARTIAL_FAILURES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CREATE_TIME_FIELD_NUMBER

        public static final int CREATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • UPDATE_TIME_FIELD_NUMBER

        public static final int UPDATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
    • 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
      • hasDeleteDetails

        public boolean hasDeleteDetails()
         Details of a Delete operation.
         
        .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8;
        Specified by:
        hasDeleteDetails in interface OperationMetadataOrBuilder
        Returns:
        Whether the deleteDetails field is set.
      • hasDeployModelDetails

        public boolean hasDeployModelDetails()
         Details of a DeployModel operation.
         
        .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24;
        Specified by:
        hasDeployModelDetails in interface OperationMetadataOrBuilder
        Returns:
        Whether the deployModelDetails field is set.
      • hasUndeployModelDetails

        public boolean hasUndeployModelDetails()
         Details of an UndeployModel operation.
         
        .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25;
        Specified by:
        hasUndeployModelDetails in interface OperationMetadataOrBuilder
        Returns:
        Whether the undeployModelDetails field is set.
      • hasCreateModelDetails

        public boolean hasCreateModelDetails()
         Details of CreateModel operation.
         
        .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10;
        Specified by:
        hasCreateModelDetails in interface OperationMetadataOrBuilder
        Returns:
        Whether the createModelDetails field is set.
      • hasImportDataDetails

        public boolean hasImportDataDetails()
         Details of ImportData operation.
         
        .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15;
        Specified by:
        hasImportDataDetails in interface OperationMetadataOrBuilder
        Returns:
        Whether the importDataDetails field is set.
      • hasBatchPredictDetails

        public boolean hasBatchPredictDetails()
         Details of BatchPredict operation.
         
        .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16;
        Specified by:
        hasBatchPredictDetails in interface OperationMetadataOrBuilder
        Returns:
        Whether the batchPredictDetails field is set.
      • hasExportDataDetails

        public boolean hasExportDataDetails()
         Details of ExportData operation.
         
        .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21;
        Specified by:
        hasExportDataDetails in interface OperationMetadataOrBuilder
        Returns:
        Whether the exportDataDetails field is set.
      • hasExportModelDetails

        public boolean hasExportModelDetails()
         Details of ExportModel operation.
         
        .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22;
        Specified by:
        hasExportModelDetails in interface OperationMetadataOrBuilder
        Returns:
        Whether the exportModelDetails field is set.
      • hasExportEvaluatedExamplesDetails

        public boolean hasExportEvaluatedExamplesDetails()
         Details of ExportEvaluatedExamples operation.
         
        .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26;
        Specified by:
        hasExportEvaluatedExamplesDetails in interface OperationMetadataOrBuilder
        Returns:
        Whether the exportEvaluatedExamplesDetails field is set.
      • getProgressPercent

        public int getProgressPercent()
         Output only. Progress of operation. Range: [0, 100].
         Not used currently.
         
        int32 progress_percent = 13;
        Specified by:
        getProgressPercent in interface OperationMetadataOrBuilder
        Returns:
        The progressPercent.
      • getPartialFailuresList

        public List<com.google.rpc.Status> getPartialFailuresList()
         Output only. Partial failures encountered.
         E.g. single files that couldn't be read.
         This field should never exceed 20 entries.
         Status details field will contain standard GCP error details.
         
        repeated .google.rpc.Status partial_failures = 2;
        Specified by:
        getPartialFailuresList in interface OperationMetadataOrBuilder
      • getPartialFailuresOrBuilderList

        public List<? extends com.google.rpc.StatusOrBuilder> getPartialFailuresOrBuilderList()
         Output only. Partial failures encountered.
         E.g. single files that couldn't be read.
         This field should never exceed 20 entries.
         Status details field will contain standard GCP error details.
         
        repeated .google.rpc.Status partial_failures = 2;
        Specified by:
        getPartialFailuresOrBuilderList in interface OperationMetadataOrBuilder
      • getPartialFailuresCount

        public int getPartialFailuresCount()
         Output only. Partial failures encountered.
         E.g. single files that couldn't be read.
         This field should never exceed 20 entries.
         Status details field will contain standard GCP error details.
         
        repeated .google.rpc.Status partial_failures = 2;
        Specified by:
        getPartialFailuresCount in interface OperationMetadataOrBuilder
      • getPartialFailures

        public com.google.rpc.Status getPartialFailures​(int index)
         Output only. Partial failures encountered.
         E.g. single files that couldn't be read.
         This field should never exceed 20 entries.
         Status details field will contain standard GCP error details.
         
        repeated .google.rpc.Status partial_failures = 2;
        Specified by:
        getPartialFailures in interface OperationMetadataOrBuilder
      • getPartialFailuresOrBuilder

        public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder​(int index)
         Output only. Partial failures encountered.
         E.g. single files that couldn't be read.
         This field should never exceed 20 entries.
         Status details field will contain standard GCP error details.
         
        repeated .google.rpc.Status partial_failures = 2;
        Specified by:
        getPartialFailuresOrBuilder in interface OperationMetadataOrBuilder
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Time when the operation was created.
         
        .google.protobuf.Timestamp create_time = 3;
        Specified by:
        hasCreateTime in interface OperationMetadataOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. Time when the operation was created.
         
        .google.protobuf.Timestamp create_time = 3;
        Specified by:
        getCreateTime in interface OperationMetadataOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. Time when the operation was created.
         
        .google.protobuf.Timestamp create_time = 3;
        Specified by:
        getCreateTimeOrBuilder in interface OperationMetadataOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. Time when the operation was updated for the last time.
         
        .google.protobuf.Timestamp update_time = 4;
        Specified by:
        hasUpdateTime in interface OperationMetadataOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. Time when the operation was updated for the last time.
         
        .google.protobuf.Timestamp update_time = 4;
        Specified by:
        getUpdateTime in interface OperationMetadataOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. Time when the operation was updated for the last time.
         
        .google.protobuf.Timestamp update_time = 4;
        Specified by:
        getUpdateTimeOrBuilder in interface OperationMetadataOrBuilder
      • 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 OperationMetadata parseFrom​(ByteBuffer data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        protected OperationMetadata.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<OperationMetadata> 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 OperationMetadata getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder